Hello, How can I modify my system to get gcc-4 compiled on AIX 5.2 ? I always get the error "ld: target bigtoc not found". Snippet of log below. My System: core file size (blocks, -c) 1048575 data seg size (kbytes, -d) 131072 file size (blocks, -f) 1048575 max memory size (kbytes, -m) 32768 open files (-n) 2000 pipe size (512 bytes, -p) 64 stack size (kbytes, -s) 32768 cpu time (seconds, -t) unlimited max user processes (-u) 262144 virtual memory (kbytes, -v) unlimited IBM F80, PowerPC_RS64-III, AIX 5.2.0.75, 500MHz CPU, 6 CPU Thanks for your help in advance. Thomas Baumann /openpkg/bin/make --no-print-directory CC=" stage1/xgcc -Bstage1/ -B/openpkg/powerpc-ibm-aix5.2.0.0/bin/" CC_FOR_BUILD=" stage1/xgcc -Bstage1/ -B/openpkg/powerpc-ibm-aix5.2.0.0/bin/" \ STAGE_PREFIX=stage1/ \ ADAFLAGS="" CFLAGS="-pipe -O2 -fomit-frame-pointer" LDFLAGS="-Wl,-bbigtoc" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="- pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition " libdir=/openpkg/lib LANGUAGES="c gcov gcov-dump c++" MAKEINFO= "/openpkg/RPM/TMP/gcc-4.0.2/missing makeinfo --split-size=5000000" MAKEINFOFLAGS="--no-split" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@" \ CFLAGS="-pipe -O2 -fomit-frame-pointer" WERROR="" stage1/xgcc -Bstage1/ -B/openpkg/powerpc-ibm-aix5.2.0.0/bin/ -c -pipe -O2 -fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -DHAVE_CONFIG_H - DGENERATOR_FILE -I. -Ibuild -I/openpkg/RPM/TMP/gcc-4.0.2/obj/../gcc -I/openpkg/RPM/TMP/gcc-4.0.2/obj/../gcc/build -I/openpkg/RPM/TMP /gcc-4.0.2/obj/../gcc/../include -I/openpkg/RPM/TMP/gcc-4.0.2/obj/../gcc/../libcpp/include -o build/genmodes.o /openpkg/RPM/TMP/gcc-4.0.2/obj/../gcc/genmodes.c stage1/xgcc -Bstage1/ -B/openpkg/powerpc-ibm-aix5.2.0.0/bin/ -c -pipe -O2 -fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -DHAVE_CONFIG_H - DGENERATOR_FILE -I. -Ibuild -I/openpkg/RPM/TMP/gcc-4.0.2/obj/../gcc -I/openpkg/RPM/TMP/gcc-4.0.2/obj/../gcc/build -I/openpkg/RPM/TMP /gcc-4.0.2/obj/../gcc/../include -I/openpkg/RPM/TMP/gcc-4.0.2/obj/../gcc/../libcpp/include -o build/errors.o /openpkg/RPM/TMP/gcc-4.0.2/obj/../gcc/errors.c stage1/xgcc -Bstage1/ -B/openpkg/powerpc-ibm-aix5.2.0.0/bin/ -pipe -O2 -fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings -W strict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -Wl,-bbigtoc -o build/genmodes \ build/genmodes.o build/errors.o ../build-powerpc-ibm-aix5.2.0.0/libiberty/libiberty.a /openpkg/bin/ld: target bigtoc not found collect2: ld returned 1 exit status make[2]: *** [build/genmodes] Error 1 make[1]: *** [stage2_build] Error 2 make: *** [bootstrap-lean] Error 2
/openpkg/bin/ld: target bigtoc not found GNU binutils is not recommend at all on AIX because it has not been updated for weak or any newer features for AIX. Can you try this without using GNU binutils?
Yes, without binutils it is working. I set following ulimits to make it compile: ulimit -c unlimited ulimit -d unlimited ulimit -f unlimited ulimit -m unlimited ulimit -s 131072 But one open question: I CAN COMPILE binutils-2.16.1 successfully, but why can't I use them? What is if i need to compile apps, which need binutils ? Thanks for your reply in advance. Thomas.
(In reply to comment #2) > I CAN COMPILE binutils-2.16.1 successfully, but why can't I use them? Because it has not been ported to AIX 5 yet. > What is if i need to compile apps, which need binutils ? Ask the app not here.