D.gnu - Building on Debian 7
- Joseph Rushton Wakeling (33/33) Jul 30 2013 Hi all,...
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: *** [cc1] Error 1 make: Leaving directory ~/code/D/gdc/objdir/gcc make: *** [all-stage3-gcc] Error 2 make: Leaving directory ~/code/D/gdc/objdir make: *** [stage3-bubble] Error 2 make: 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
Jul 30 2013