GDC on 64 bit linux fails (gentoo)

Anders Johnsen skabet at gmail.com
Mon Feb 12 08:25:09 PST 2007


I'm trying to compile GDC 0.22 in 64 bit with GCC 4.1.1. I followed the guide but recived this error.

....
Adding multilib support to Makefile in ../../../libstdc++-v3
multidirs=32
with_multisubdir=
Running configure in multilib subdirs 32
pwd: /home/johnsen/c++/gcc-4.1.1/gcc/d/gcc-4.1.1/build/x86_64-unknown-linux-gnu/libstdc++-v3
Running configure in multilib subdir 32
pwd: /home/johnsen/c++/gcc-4.1.1/gcc/d/gcc-4.1.1/build/x86_64-unknown-linux-gnu
mkdir 32
configure: creating cache ./config.cache
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-unknown-linux-gnu-gcc... /home/johnsen/c++/gcc-4.1.1/gcc/d/gcc-4.1.1/build/./gcc/xgcc -B/home/johnsen/c++/gcc-4.1.1/gcc/d/gcc-4.1.1/build/./gcc/ -B/opt/gdc/x86_64-unknown-linux-gnu/bin/ -B/opt/gdc/x86_64-unknown-linux-gnu/lib/ -isystem /opt/gdc/x86_64-unknown-linux-gnu/include -isystem /opt/gdc/x86_64-unknown-linux-gnu/sys-include  -m32
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[2]: *** [configure-target-libstdc++-v3] Error 1
make[2]: Leaving directory `/home/johnsen/c++/gcc-4.1.1/gcc/d/gcc-4.1.1/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/johnsen/c++/gcc-4.1.1/gcc/d/gcc-4.1.1/build'
make: *** [gdc] Error 2

Anyone have same error, or just successfully compiled in 64 bit linux? Also, are there any plans on making some binary releases of GDC or DMD in 64 bit? 

Thanks,
Anders Johnsen



More information about the Digitalmars-d mailing list