Hi,
I'm trying to build the gpc-20040516 "beta" snapshopt with GCC-3.3.x on AIX 5.1. GCC-3.x itself supports AIX 5, I have a working version on the system (binary install, not compiled-it-myself).
I tried gcc-3.3.3 and gcc-3.3.1, and followed the INSTALL instructions, using a separate build directory, configuring with
/gnulocal/src/gpc-build> /gnulocal/src/gcc-3.3.x/configure --enable-languages=pascal --prefix=/gnulocal
which went well, including patching the respective compiler (tried with 3.3.3 and 3.3.1).
Then running "make" with no arguments:
/gnulocal/src/gpc-build> make
make works for quite a while, and then fails in compiling /gnulocal/src/gcc-3.3.1/gcc/p/lang.c with the following messages:
gcc -o p/lang.o -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -I. -Ip -I/gnulocal/src/gcc-3.3.1/gcc -I/gnulocal/src/gcc-3.3.1/gcc/p -I/gnulocal/src/gcc-3.3.1/gcc/config -I/gnulocal/src/gcc-3.3.1/gcc/../include -DGPC -I/gnulocal/src/gcc-3.3.1/gcc/p /gnulocal/src/gcc-3.3.1/gcc/p/lang.c /gnulocal/src/gcc-3.3.1/gcc/p/lang.c: In function `lang_init': /gnulocal/src/gcc-3.3.1/gcc/p/lang.c:511: warning: implicit declaration of function `rs6000_cpu_cpp_builtins' /gnulocal/src/gcc-3.3.1/gcc/p/lang.c:511: error: `pfile' undeclared (first use in this function) /gnulocal/src/gcc-3.3.1/gcc/p/lang.c:511: error: (Each undeclared identifier is reported only once /gnulocal/src/gcc-3.3.1/gcc/p/lang.c:511: error: for each function it appears in.) /gnulocal/src/gcc-3.3.1/gcc/p/lang.c: At top level: /gnulocal/src/gcc-3.3.1/gcc/p/lang.c:425: warning: `builtin_define_with_value' defined but not used /gnulocal/src/gcc-3.3.1/gcc/p/lang.c:432: warning: `builtin_define_std' defined but not used gmake[1]: *** [p/lang.o] Error 1 gmake[1]: Leaving directory `/gnul_43_ppc/src/gpc-build/gcc' gmake: *** [all-gcc] Error 2
the line 511 is this one:
TARGET_CPU_CPP_BUILTINS ();
...which fully escapes me as for why it might not compile...!??
Can you offer advice how to track this down? Maybe I need to use a different gcc-core or a different gpc snapshot?
thanks,
gert