The current svn tree, revision 117177 as checked out about half an hour ago, fails to build on an x86-64 running GCC 4.1.1 and Linux: [phr@donnybrook objdir]$ gcc -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux Thread model: posix gcc version 4.1.1 20060525 (Red Hat 4.1.1-1) The failing part of the build is as follows: make[5]: Entering directory `/home/donnybrook2/phr/gcc/objdir/gcc' /home/donnybrook2/phr/gcc/objdir/./gcc/xgcc -B/home/donnybrook2/phr/gcc/objdir/./gcc/ -B/home/donnybrook2/phr/gcc/installdir/x86_64-unknown-linux-gnu/bin/ -B/home/donnybrook2/phr/gcc/installdir/x86_64-unknown-linux-gnu/lib/ -isystem /hom\ e/donnybrook2/phr/gcc/installdir/x86_64-unknown-linux-gnu/include -isystem /hom\ e/donnybrook2/phr/gcc/installdir/x86_64-unknown-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I32 -I../../gcc/gcc -I../../gcc/gcc/32 -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I\ ../../gcc/gcc/../libdecnumber -I../libdecnumber -m32 -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-omit-frame-pointer -fno-asynchronous-unwind-tables \ -c ../../gcc/gcc/crtstuff.c -DCRT_BEGIN \ -o 32/crtbegin.o In file included from /usr/include/features.h:352, from /usr/include/stdio.h:28, from ../../gcc/gcc/tsystem.h:90, from ../../gcc/gcc/crtstuff.c:68: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or direc\ tory make[5]: *** [32/crtbegin.o] Error 1 make[5]: Leaving directory `/home/donnybrook2/phr/gcc/objdir/gcc' make[4]: *** [extra32] Error 2 make[4]: Leaving directory `/home/donnybrook2/phr/gcc/objdir/gcc' make[3]: *** [stmp-multilib] Error 2 make[3]: Leaving directory `/home/donnybrook2/phr/gcc/objdir/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/home/donnybrook2/phr/gcc/objdir' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/donnybrook2/phr/gcc/objdir' make: *** [all] Error 2
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or direc\ tory That means you don't have the 32bit userland installed which means you either use --disable-multilib or install it.
(In reply to comment #1) > /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or > direc\ > tory > > That means you don't have the 32bit userland installed which means you either > use --disable-multilib or install it. > I have this same problem, the issue is that my stubs-32.h is located in /usr/include/i486-linux-gnu/gnu/stubs-32.h not in /usr/local/gnu. I am running kubunut 7.04 64bit
*** Bug 32996 has been marked as a duplicate of this bug. ***
It seems that installing the ia32 libc headers, which provides the stubs-32.h file on debian lenny, doesn't really help. The header file goes into /usr/include/i486-linux-gnu/gnu/stubs-32.h, but xgcc does not look there for header files, so the bootstrap fails: topic@nisava:~/Desktop/gsoc/work/build-gcc/x86_64-unknown-linux-gnu/32/libgcc$ /home/topic/Desktop/gsoc/work/build-gcc/./gcc/xgcc -v -B/home/topic/Desktop/gsoc/work/build-gcc/./gcc/ -B/home/topic/Desktop/gsoc/work/gcc-bin/x86_64-unknown-linux-gnu/bin/ -B/home/topic/Desktop/gsoc/work/gcc-bin/x86_64-unknown-linux-gnu/lib/ -isystem /home/topic/Desktop/gsoc/work/gcc-bin/x86_64-unknown-linux-gnu/include -isystem /home/topic/Desktop/gsoc/work/gcc-bin/x86_64-unknown-linux-gnu/sys-include -g -fkeep-inline-functions -m32 -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../.././gcc -I../../../../../gcc/libgcc -I../../../../../gcc/libgcc/. -I../../../../../gcc/libgcc/../gcc -I../../../../../gcc/libgcc/../include -I../../../../../gcc/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../../../../../gcc/libgcc/../gcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS Reading specs from /home/topic/Desktop/gsoc/work/build-gcc/./gcc/specs Target: x86_64-unknown-linux-gnu Configured with: ../../gcc/configure --prefix=/home/topic/Desktop/gsoc/work/gcc-bin --enable-java-maintainer-mode Thread model: posix gcc version 4.3.0 20070805 (experimental) /home/topic/Desktop/gsoc/work/build-gcc/./gcc/cc1 -quiet -v -I. -I. -I../../.././gcc -I../../../../../gcc/libgcc -I../../../../../gcc/libgcc/. -I../../../../../gcc/libgcc/../gcc -I../../../../../gcc/libgcc/../include -I../../../../../gcc/libgcc/config/libbid -imultilib 32 -iprefix /home/topic/Desktop/gsoc/work/build-gcc/gcc/../lib/gcc/x86_64-unknown-linux-gnu/4.3.0/ -isystem /home/topic/Desktop/gsoc/work/build-gcc/./gcc/include -isystem /home/topic/Desktop/gsoc/work/build-gcc/./gcc/include-fixed -MD _muldi3.d -MF _muldi3.dep -MP -MT _muldi3.o -DIN_GCC -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -DL_muldi3 -DHIDE_EXPORTS -isystem /home/topic/Desktop/gsoc/work/gcc-bin/x86_64-unknown-linux-gnu/include -isystem /home/topic/Desktop/gsoc/work/gcc-bin/x86_64-unknown-linux-gnu/sys-include -isystem ./include ../../../../../gcc/libgcc/../gcc/libgcc2.c -quiet -dumpbase libgcc2.c -m32 -mtune=generic -auxbase-strip _muldi3.o -g -g -g -O2 -O2 -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -version -fkeep-inline-functions -fPIC -fvisibility=hidden -o /tmp/cc2epigH.s ignoring nonexistent directory "/home/topic/Desktop/gsoc/work/gcc-bin/x86_64-unknown-linux-gnu/include" ignoring nonexistent directory "/home/topic/Desktop/gsoc/work/gcc-bin/x86_64-unknown-linux-gnu/sys-include" ignoring nonexistent directory "./include" ignoring nonexistent directory "/home/topic/Desktop/gsoc/work/build-gcc/gcc/../lib/gcc/x86_64-unknown-linux-gnu/4.3.0/include" ignoring nonexistent directory "/home/topic/Desktop/gsoc/work/build-gcc/gcc/../lib/gcc/x86_64-unknown-linux-gnu/4.3.0/include-fixed" ignoring nonexistent directory "/home/topic/Desktop/gsoc/work/build-gcc/gcc/../lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../x86_64-unknown-linux-gnu/include" ignoring nonexistent directory "/home/topic/Desktop/gsoc/work/build-gcc/gcc/../lib/gcc/../../include" ignoring nonexistent directory "/home/topic/Desktop/gsoc/work/build-gcc/gcc/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.3.0/include" ignoring nonexistent directory "/home/topic/Desktop/gsoc/work/build-gcc/gcc/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.3.0/include-fixed" ignoring nonexistent directory "/home/topic/Desktop/gsoc/work/build-gcc/gcc/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../x86_64-unknown-linux-gnu/include" ignoring duplicate directory "." ignoring duplicate directory "../../../../../gcc/libgcc/." #include "..." search starts here: #include <...> search starts here: . ../../.././gcc ../../../../../gcc/libgcc ../../../../../gcc/libgcc/../gcc ../../../../../gcc/libgcc/../include ../../../../../gcc/libgcc/config/libbid /home/topic/Desktop/gsoc/work/build-gcc/./gcc/include /home/topic/Desktop/gsoc/work/build-gcc/./gcc/include-fixed /usr/local/include /usr/include End of search list. GNU C version 4.3.0 20070805 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.1.3 20070629 (prerelease) (Debian 4.1.2-13), GMP version 4.2.1, MPFR version 2.2.1. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: a598355425901e814b78928fd2aceb15 In file included from /home/topic/Desktop/gsoc/work/build-gcc/./gcc/include-fixed/features.h:354, from /usr/include/stdio.h:28, from ../../../../../gcc/libgcc/../gcc/tsystem.h:90, from ../../../../../gcc/libgcc/../gcc/libgcc2.c:33: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory