Hi,
I'm trying to build GPC (using the sources gpc-20050331.tar.bz2 and gcc-core-3.4.4.tar.bz2) on AIX 5.3. After working for a while the compiler crashes with an "Internal compiler error" (see below). Did anyone succeed building GPC on AIX using the recent sources?
Thanks for your help! Marcus
/opt/db2/db2bavpi/gpc/build/gcc/xgcc -B/opt/db2/db2bavpi/gpc/build/gcc/ -B/opt/d b2/db2bavpi/powerpc-ibm-aix5.3.0.0/bin/ -B/opt/db2/db2bavpi/powerpc-ibm-aix5.3.0 .0/lib/ -isystem /opt/db2/db2bavpi/powerpc-ibm-aix5.3.0.0/include -isystem /opt/ db2/db2bavpi/powerpc-ibm-aix5.3.0.0/sys-include -O2 -DIN_GCC -W -Wall -Wwrit e-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isys tem ./include -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I . -I. -I../../gcc-3.4.3/gcc -I../../gcc-3.4.3/gcc/. -I../../gcc-3.4.3/gcc/../inc lude -I../intl -DL_fixunsdfsi -c ../../gcc-3.4.3/gcc/libgcc2.c -o libgcc/./_fix unsdfsi.o ../../gcc-3.4.3/gcc/libgcc2.c: In function `__fixunsdfsi': ../../gcc-3.4.3/gcc/libgcc2.c:1384: error: unrecognizable insn: (insn:HI 11 10 12 0 ../../gcc-3.4.3/gcc/libgcc2.c:1381 (set (reg:CCEQ 122) (compare:CCEQ (ior:SI (gt:SI (reg:CCFP 121) (const_int 0 [0x0])) (eq:SI (reg:CCFP 121) (const_int 0 [0x0]))) (const_int 1 [0x1]))) -1 (insn_list 10 (nil)) (expr_list:REG_DEAD (reg:CCFP 121) (nil))) ../../gcc-3.4.3/gcc/libgcc2.c:1384: internal compiler error: in extract_insn, at recog.c:2083 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://gcc.gnu.org/bugs.html for instructions. gmake[2]: *** [libgcc/./_fixunsdfsi.o] Error 1 gmake[2]: Leaving directory `/opt/db2/db2bavpi/gpc/build/gcc' gmake[1]: *** [libgcc.a] Error 2 gmake[1]: Leaving directory `/opt/db2/db2bavpi/gpc/build/gcc' gmake: *** [all-gcc] Error 2
Marcus Wirth wrote:
Hi,
I'm trying to build GPC (using the sources gpc-20050331.tar.bz2 and gcc-core-3.4.4.tar.bz2) on AIX 5.3. After working for a while the compiler crashes with an "Internal compiler error" (see below). Did anyone succeed building GPC on AIX using the recent sources?
Thanks for your help! Marcus
/opt/db2/db2bavpi/gpc/build/gcc/xgcc -B/opt/db2/db2bavpi/gpc/build/gcc/ -B/opt/d b2/db2bavpi/powerpc-ibm-aix5.3.0.0/bin/ -B/opt/db2/db2bavpi/powerpc-ibm-aix5.3.0 .0/lib/ -isystem /opt/db2/db2bavpi/powerpc-ibm-aix5.3.0.0/include -isystem /opt/ db2/db2bavpi/powerpc-ibm-aix5.3.0.0/sys-include -O2 -DIN_GCC -W -Wall -Wwrit e-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isys tem ./include -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I . -I. -I../../gcc-3.4.3/gcc -I../../gcc-3.4.3/gcc/. -I../../gcc-3.4.3/gcc/../inc lude -I../intl -DL_fixunsdfsi -c ../../gcc-3.4.3/gcc/libgcc2.c -o libgcc/./_fix unsdfsi.o ../../gcc-3.4.3/gcc/libgcc2.c: In function `__fixunsdfsi': ../../gcc-3.4.3/gcc/libgcc2.c:1384: error: unrecognizable insn: (insn:HI 11 10 12 0 ../../gcc-3.4.3/gcc/libgcc2.c:1381 (set (reg:CCEQ 122) (compare:CCEQ (ior:SI (gt:SI (reg:CCFP 121) (const_int 0 [0x0])) (eq:SI (reg:CCFP 121) (const_int 0 [0x0]))) (const_int 1 [0x1]))) -1 (insn_list 10 (nil)) (expr_list:REG_DEAD (reg:CCFP 121) (nil))) ../../gcc-3.4.3/gcc/libgcc2.c:1384: internal compiler error: in extract_insn, at recog.c:2083 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://gcc.gnu.org/bugs.html for instructions. gmake[2]: *** [libgcc/./_fixunsdfsi.o] Error 1 gmake[2]: Leaving directory `/opt/db2/db2bavpi/gpc/build/gcc' gmake[1]: *** [libgcc.a] Error 2 gmake[1]: Leaving directory `/opt/db2/db2bavpi/gpc/build/gcc' gmake: *** [all-gcc] Error 2
gpc-20050331 is more than year old and has a number of problems on non-Intel machines. The above does not look like one of the known problems (in fact the error message comes from C part of the compiler). However, I would first start with newer version. The latest snapshot is:
http://www.math.uni.wroc.pl/~hebisch/gpc/gpc-20060325.tar.bz2
Gert Doering recently wrote about building GPC on AIX-5.3:
http://www.gnu-pascal.de/crystal/gpc/en/mail13605.html
He succesfully build the compiler, but due to spurious warnings is unable to get meaningfull results from the testsuite (the problem is still under investigation).