Building on Debian 7
Joseph Rushton Wakeling
joseph.wakeling at webdrake.net
Tue Jul 30 17:49:05 PDT 2013
Hi all,
I decided it was about time I tested my described how-to-build-GDC method (cf.
earlier postings:-) on a fresh system.
So, I installed a basic Debian 7 system in VirtualBox and installed all the
dependencies listed on:
http://wiki.dlang.org/GDC/Installation/Generic
Then, it's
cd ~/code/D/gdc/dev
./setup-gcc.sh ../gcc-4.8.1/
cd ..
mkdir objdir
cd objdir
../gcc-4.8.1/configure --enable-languages=d --disable-multilib
--enable-checking=release --prefix=/opt/gdc
make 2>&1 | tee build.log
I don't want to post the full build log, but the build falls over when building
cc1 with the error:
collect2: error: ld returned 1 exit status
make[3]: *** [cc1] Error 1
make[3]: Leaving directory ~/code/D/gdc/objdir/gcc
make[2]: *** [all-stage3-gcc] Error 2
make[2]: Leaving directory ~/code/D/gdc/objdir
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory ~/code/D/gdc/objdir
make: *** [all] Error 2
I tried running the command to build cc1 manually in the hope that it would
produce a more clear indicator of what was wrong, but no luck. :-(
Any ideas what dependency might be missing or else what might be wrong? apt-get
build-dep gcc lists a whole host of different packages, but I don't want to just
blindly pull them in as the whole point is to work out which of them are
actually relevant.
Thanks & best wishes,
-- Joe
More information about the D.gnu
mailing list