Hello all, I'm trying to compile gcc in my home dir, just to make some tests but I've having some errors during compilation. Compilation is being performed in an intel duo core. This is what I do: ~/ tar -xvjf gcc-4.1.1.tar.bz2 ~/ mkdir gcc-build ~/ cd gcc-build ~/ ../gcc-4.1.1/configure --prefix=/home/pmatos/gcc-bin --program-prefix=dr- --with-gnu-as --with-as=/usr/bin/as --with-gnu-ld --with-ld=/usr/bin/ld --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --enable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu (Note: some of these flags were copied from the Gentoo build, since I really didn't know what to use, the dr- prefix is just something so that the final binary doesn't shadow my production gcc) ~/ make -j 3 I get: checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for x86_64-pc-linux-gnu-gcc... /home/pmatos/gcc411-build/./gcc/xgcc -B/home/pmatos/gcc411-build/./gcc/ -B/home/pmatos/gcc-bin/x86_64-pc-linux-gnu/bin/ -B/home/pmatos/gcc-bin/x86_64-pc-linux-gnu/lib/ -isystem /home/pmatos/gcc-bin/x86_64-pc-linux-gnu/include -isystem /home/pmatos/gcc-bin/x86_64-pc-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[1]: *** [configure-target-libstdc++-v3] Error 1 make[1]: Leaving directory `/home/pmatos/gcc411-build' make: *** [all] Error 2 the respective config.log is: ... $ ../../../../gcc-4.1.1/libstdc++-v3/configure --with-multisubdir=32 --with-multisrctop= --enable-multilib --cache-file=./config.cache --build=x86_64-pc-linux-gnu --host=x86_64-p c-linux-gnu --target=x86_64-pc-linux-gnu --prefix=/home/pmatos/gcc-bin --with-gnu-as --wit h-as=/usr/bin/as --with-gnu-ld --with-ld=/usr/bin/ld --disable-altivec --enable-nls --with out-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secur eplt --disable-libunwind-exceptions --enable-multilib --disable-libmudflap --disable-libss p --disable-libgcj --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-c locale=gnu --enable-languages=c,c++,fortran,java,objc --program-transform-name=s,^,dr-,; --with-target-subdir=x86_64-pc-linux-gnu --srcdir=../../../gcc-4.1.1/libstdc++-v3 CPPFLAGS = build_alias=x86_64-pc-linux-gnu host_alias=x86_64-pc-linux-gnu target_alias=x86_64-pc-li nux-gnu -srcdir=../../../../gcc-4.1.1/libstdc++-v3 ... ## --------- ## ## Platform. ## ## --------- ## hostname = galileu uname -m = x86_64 uname -r = 2.6.18-gentoo-r4 uname -s = Linux uname -v = #1 SMP Wed Dec 13 12:08:32 GMT 2006 /usr/bin/uname -p = Intel(R) Pentium(R) D CPU 3.40GHz /bin/uname -X = unknown /bin/arch = x86_64 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/kde/3.5/bin PATH: /usr/local/bin PATH: /usr/bin PATH: /bin PATH: /opt/bin PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1 PATH: /opt/blackdown-jdk-1.4.2.03/bin PATH: /opt/blackdown-jdk-1.4.2.03/jre/bin PATH: /usr/kde/3.5/bin PATH: /usr/qt/3/bin ... configure:2406: /home/pmatos/gcc411-build/./gcc/xgcc -B/home/pmatos/gcc411-build/./gcc/ -B /home/pmatos/gcc-bin/x86_64-pc-linux-gnu/bin/ -B/home/pmatos/gcc-bin/x86_64-pc-linux-gnu/l ib/ -isystem /home/pmatos/gcc-bin/x86_64-pc-linux-gnu/include -isystem /home/pmatos/gcc-bi n/x86_64-pc-linux-gnu/sys-include -m32 -o conftest -O2 -g -O2 conftest.c >&5 /usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching for -lc /usr/bin/ld: warning: i386:x86-64 architecture of input file `/usr/lib/../lib/crt1.o' is i ncompatible with i386 output /usr/bin/ld: warning: i386:x86-64 architecture of input file `/usr/lib/../lib/crti.o' is i ncompatible with i386 output /usr/bin/ld: warning: i386:x86-64 architecture of input file `/usr/lib/../lib/crtn.o' is i ncompatible with i386 output configure:2409: $? = 0 configure:2443: checking for C compiler default output file name configure:2446: /home/pmatos/gcc411-build/./gcc/xgcc -B/home/pmatos/gcc411-build/./gcc/ -B /home/pmatos/gcc-bin/x86_64-pc-linux-gnu/bin/ -B/home/pmatos/gcc-bin/x86_64-pc-linux-gnu/l ib/ -isystem /home/pmatos/gcc-bin/x86_64-pc-linux-gnu/include -isystem /home/pmatos/gcc-bi n/x86_64-pc-linux-gnu/sys-include -m32 -O2 -g -O2 conftest.c >&5 /usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching for -lc /usr/bin/ld: warning: i386:x86-64 architecture of input file `/usr/lib/../lib/crt1.o' is i ncompatible with i386 output /usr/bin/ld: warning: i386:x86-64 architecture of input file `/usr/lib/../lib/crti.o' is i ncompatible with i386 output /usr/bin/ld: warning: i386:x86-64 architecture of input file `/usr/lib/../lib/crtn.o' is i ncompatible with i386 output configure:2449: $? = 0 configure:2495: result: a.out configure:2500: checking whether the C compiler works configure:2506: ./a.out ../../../../gcc-4.1.1/libstdc++-v3/configure: line 2507: 610 Segmentation fault ./$ ac_file configure:2509: $? = 139 configure:2518: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. Any ideas of what might be the problem? I can't even start to guess why the seg fault ocorred. Cheers, -- Paulo Jorge Matos - pocm at soton.ac.uk http://www.personal.soton.ac.uk/pocm PhD Student @ ECS University of Southampton, UK