When I try to compile gpc on my RS/6000 I do the following:
home> CFLAGS="-mno-fp-in-toc" ../gcc-2.95.2/configure --enable-language=pascal ... ... ... home> make ... ... ... (compilation without errors so far) gcc -c -DIN_GCC -DGPC -mfp-in-toc -DHAIFA -Wall -I. -I.. \ -I../../../gcc-2.95.2/gcc/p -I../../../gcc-2.95.2/gcc/p/..\ -I../../../gcc-2.95.2/gcc/p/../config \ -I../../../gcc-2.95.2/gcc/p/../../include \ ../../../gcc-2.95.2/gcc/p/setop.c rm -f ../gpc1 gcc -DIN_GCC -DGPC -mfp-in-toc -DHAIFA -Wall -o ../gpc1 \ `cat stamp-gbe` ../c-aux-info.o ../c-iterate.o ../c-pragma.o \ gpc-common.o gpc-convert.o gpc-decl.o lang.o gpc-lex.o gpc-typeck.o\ module.o gpi-hash.o circle-buf.o memfiles.o objects.o parse.o \ rts.o types.o util.o setop.o `if [ xobstack.o != x ]; \ then echo ../obstack.o; else true; fi` `case "gcc" in "cc") \ if [ xalloca.o != x ]; then echo ../alloca.o; else true; fi ;; esac`\ `if [ x != x ]; then echo ../; else true; fi` \ -lld ../../libiberty/libiberty.a ld: 0711-781 ERROR: TOC overflow. TOC size: 68508 Maximum size: 65536 collect2: ld returned 12 exit status make[2]: *** [../gpc1] Error 1 make[2]: Leaving directory `/usr/local/src/gpc-build/gcc/p' make[1]: *** [gpc1] Error 2 make[1]: Leaving directory `/usr/local/src/gpc-build/gcc' make: *** [all-gcc] Error 2
The manpage tells that setting -mfp-in-toc should avoid this error (TOC overflow) on a RS/6000.
IBM RS/6000, AIX 4.3.3.0 gcc-2.95.2 gpc-20000917
Has someone an idea what goes wrong?
Gerhard
Gerhard Olejniczak wrote:
home> CFLAGS="-mno-fp-in-toc" ../gcc-2.95.2/configure --enable-language=pascal [...] ld: 0711-781 ERROR: TOC overflow. TOC size: 68508 Maximum size: 65536
Maybe this is non-GNU ld, and you can try GNU ld instead?
Just guessing,
Peter