我想在我的FreeBSD桌面上安装GDC,所以我遵循了这个:https://wiki.dlang.org/GDC/Installation/Generic
我在我的tcsh终端上输入了以下内容:
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这些不会产生任何错误。但当我输入这个的时候,
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终端说:
configure: error: GDC is required to build d为什么会发生这种情况?
发布于 2018-08-13 12:45:47
GDC已经更新,现在可以使用D前端(v2.081.1)。参见https://github.com/D-Programming-GDC/GDC/commit/1c2972f44660d64173202a7f111bd915a578700c。这意味着将需要一个GDC引导编译器来构建GDC。
在与一些GDC开发人员讨论后,这是我对他们的策略的理解:
stable和gdc-x-stable分支将继续使用C++前端,因此它们不需要GDC引导compiler.master,而gdc-x分支将使用D前端,因此将需要GDC引导编译器所以,我相信程序应该是
gdc-x-stable分支构建引导编译器gdc-x gdc-x使用(2)中生成的GDC编译器再次构建gdc-x分支。https://stackoverflow.com/questions/51815286
复制相似问题