I tried to build gcc-4.0.0-20050410 (RC1) and got the following error: /usr/local/bin/gcc -maix64 -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -DHAVE_CONFIG_H -o cc1 \ c-parse.o c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o rs6000-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o main.o libbackend.a ../libcpp/libcpp.a ../libcpp/libcpp.a -liconv ../libiberty/libiberty.a ld: 0711-781 ERROR: TOC overflow. TOC size: 102280 Maximum size: 65536 collect2: ld returned 12 exit status make[2]: *** [cc1] Error 1 make[2]: Leaving directory `/devel/build/objdir.400pre/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/devel/build/objdir.400pre/gcc' make: *** [bootstrap] Error 2
This is my configure commandline: CC="/usr/local/bin/gcc -maix64" CFLAGS="-O9 -maix64 -maltivec -mabi=altivec" CXXFLAGS="-g -O9 -maix64 -maltivec -mabi=altivec" CFLAGS_FOR_TARGET="-O9 -maix64 -maltivec -mabi=altivec" LIBCFLAGS="-g -O9 -maix64 -maltivec -mabi=altivec" LIBCXXFLAGS="-g -O9 -maix64 -maltivec -mabi=altivec" /devel/build/gcc-4.0.0-20050410/configure --enable-threads=aix --enable-version-specific-runtime-libs --disable-nls --enable-libgcj-debug --enable-libgcj-multifile --with-x --enable-gtk-cairo --enable-gather-detailed-mem-stats --enable-languages=c,c++,f95,java,objc And my make commandline: BOOT_CFLAGS="-O9 -maix64" CFLAGS="-O9 -maix64" CXXFLAGS="-O9 -maix64" LIBCFLAGS="-g -O9 -maix64" LIBCXXFLAGS="-g -O9 -maix64 -fno-implicit-templates" nohup /usr/local/bin/make bootstrap& It looks like at least the 64bit build on powerpc-ibm-aix5.2.0.0 needs a "-Wl,-bbigtoc" as a default flag. Lothar -- Summary: [4.0 RC1] Bootstrap failure (ld: TOC overflow) Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ltg at zes dot uni-bremen dot de CC: gcc-bugs at gcc dot gnu dot org GCC host triplet: powerpc-ibm-aix5.2.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21037