www.digitalmars.com         C & C++   DMDScript  

D.gnu - Build errors with GDC

Hello all,

I'm trying to build GDC from source, following the instructions here:

I'm doing this on Ubuntu 12.04 64-bit version, and I'm using the GCC 4.6.3 
sources and the --enable-multilib option.

If I follow the exact make command used in the instructions,

     make -j2 2>&1 | tee build.log

... then no matter what the number of cores specified, I get an error:

     *** No rule to make target `libcommon-target.a', needed by `gdc'. Stop.

If I just run a 'make' command without other options, I get a different (but by 
the look of it related) error,

g++  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual  -fno-common 
-DHAVE_CONFIG_H -I. -Id -I../../gcc-4.6.3/gcc -I../../gcc-4.6.3/gcc/d 
-I../../gcc-4.6.3/gcc/../include -I../../gcc-4.6.3/gcc/../libcpp/include 
-I../../gcc-4.6.3/gcc/../libdecnumber -I../../gcc-4.6.3/gcc/../libdecnumber/bid 
-I../libdecnumber    -I. -Id -I../../gcc-4.6.3/gcc -I../../gcc-4.6.3/gcc/d 
-I../../gcc-4.6.3/gcc/../include -I../../gcc-4.6.3/gcc/../libcpp/include 
-I../../gcc-4.6.3/gcc/../libdecnumber -I../../gcc-4.6.3/gcc/../libdecnumber/bid 
-I../libdecnumber   -I../../gcc-4.6.3/gcc/d -I../../gcc-4.6.3/gcc/d/dfrontend 
-Id  -Wno-missing-braces -Wno-format -Wno-deprecated -Wstrict-aliasing 
-DGCC_SAFE_DMD=1 -o d/d-lang.glue.o -c ../../gcc-4.6.3/gcc/d/d-lang.cc
In file included from ../../gcc-4.6.3/gcc/d/d-lang.cc:22:0:
../../gcc-4.6.3/gcc/d/d-gcc-includes.h:55:34: fatal error: 
common/common-target.h: No such file or directory

Can anyone advise?  Am I simply using a wrong GCC version, or is there another 
issue here?

Thanks and best wishes,

     -- Joe
Jul 04 2012