首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >GDC安装错误

GDC安装错误
EN

Stack Overflow用户
提问于 2018-08-13 12:38:26
回答 1查看 77关注 0票数 0

我想在我的FreeBSD桌面上安装GDC,所以我遵循了这个:https://wiki.dlang.org/GDC/Installation/Generic

我在我的tcsh终端上输入了以下内容:

代码语言:javascript
复制
vmware@localhost:~ % sudo mkdir -p gdc/dev
vmware@localhost:~ % sudo cp Downloads/gcc-7.3.0.tar.xz gdc
vmware@localhost:~ % cd gdc
vmware@localhost:~/gdc % sudo tar -xvf gcc-7.3.0.tar.xz
vmware@localhost:~/gdc % sudo git clone https://github.com/D-Programming-GDC/GDC.git dev
vmware@localhost:~/gdc % cd dev
vmware@localhost:~/gdc/dev % sudo git checkout gdc-7
vmware@localhost:~/gdc/dev % sudo ./setup-gcc.sh ../gcc-7.3.0
vmware@localhost:~/gdc/dev % sudo mkdir ../objdir
vmware@localhost:~/gdc/dev % cd ../objdir

这些不会产生任何错误。但当我输入这个的时候,

代码语言:javascript
复制
vmware@localhost:~/gdc/objdir % sudo ../gcc-7.3.0/configure --enable-languages=d --disable-bootstrap --prefix=/usr/local/share/gdc --with-bugurl="http://bugzilla.gdcproject.org" --enable-checking=yes

终端说:

代码语言:javascript
复制
configure: error: GDC is required to build d

为什么会发生这种情况?

EN

回答 1

Stack Overflow用户

发布于 2018-08-13 12:45:47

GDC已经更新,现在可以使用D前端(v2.081.1)。参见https://github.com/D-Programming-GDC/GDC/commit/1c2972f44660d64173202a7f111bd915a578700c。这意味着将需要一个GDC引导编译器来构建GDC。

在与一些GDC开发人员讨论后,这是我对他们的策略的理解:

  • stablegdc-x-stable分支将继续使用C++前端,因此它们不需要GDC引导compiler.
  • master,而gdc-x分支将使用D前端,因此将需要GDC引导编译器

所以,我相信程序应该是

  1. gdc-x-stable分支构建引导编译器
  2. 使用(1)中的引导编译器构建gdc-x gdc-x使用(2)中生成的GDC编译器再次构建gdc-x分支。
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51815286

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档