hi,
I'm trying to compile gpc-20020910 with gcc-2.95.1 on Solaris_x86 but I get two different error-message depending what make I'm using. I'm not getting any error messages when running configure with options --enable-languages=pascal.
----with gmake----------------- ../.././xgpc -B../.././ -I. -W -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -g -O2 -DRTS_RELEASE_STRING="'`cat /export/home/juha/gcc-2.95.1/gcc/p/rts/rts-version`'" --unit-path=/export/home/juha/gcc-2.95.1/gcc/p/rts --automake --print-needed-options "/export/home/juha/gcc-2.95.1/gcc/p/rts/endian.pas" 2> "needed-options" || true if grep -v '^--' "needed-options" > /dev/null; then echo "needed-options: `cat "needed-options"`"; rm -f "needed-options"; false; else true; fi /export/home/juha/gpc-build/gcc/xgcc -B/export/home/juha/gpc-build/gcc/ -B/usr/local/i386-pc-solaris2.8/bin/ -I/usr/local/i386-pc-solaris2.8/include -c -I. -W -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -g -O2 -DRTS_RELEASE_STRING="'`cat /export/home/juha/gcc-2.95.1/gcc/p/rts/rts-version`'" /export/home/juha/gcc-2.95.1/gcc/p/rts/rts.c /export/home/juha/gcc-2.95.1/gcc/p/rts/rts.c: In function `_p_StatFS': /export/home/juha/gcc-2.95.1/gcc/p/rts/rts.c:1387: warning: passing arg 2 of `statvfs64' from incompatible pointer type /export/home/juha/gpc-build/gcc/xgcc -B/export/home/juha/gpc-build/gcc/ -B/usr/local/i386-pc-solaris2.8/bin/ -I/usr/local/i386-pc-solaris2.8/include -c -I. -W -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -g -O2 -DRTS_RELEASE_STRING="'`cat /export/home/juha/gcc-2.95.1/gcc/p/rts/rts-version`'" /export/home/juha/gcc-2.95.1/gcc/p/rts/file.c /export/home/juha/gpc-build/gcc/xgcc -B/export/home/juha/gpc-build/gcc/ -B/usr/local/i386-pc-solaris2.8/bin/ -I/usr/local/i386-pc-solaris2.8/include -c -I. -W -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -g -O2 -DRTS_RELEASE_STRING="'`cat /export/home/juha/gcc-2.95.1/gcc/p/rts/rts-version`'" /export/home/juha/gcc-2.95.1/gcc/p/rts/rts-va.c ../.././xgpc -B../.././ -c -g -I. -W -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -g -O2 -DRTS_RELEASE_STRING="'`cat /export/home/juha/gcc-2.95.1/gcc/p/rts/rts-version`'" --unit-path=/export/home/juha/gcc-2.95.1/gcc/p/rts --automake `cat needed-options` /export/home/juha/gcc-2.95.1/gcc/p/rts/rtsc.pas <implicit code>:22: Internal compiler error in `output_type', at dwarfout.c:4366 Please submit a full bug report. See URL:http://www.gnu.org/software/gcc/faq.html#bugreport for instructions. gmake[2]: *** [rtsc.o] Error 1 gmake[2]: Leaving directory `/export/home/juha/gpc-build/gcc/p/rts' gmake[1]: *** [pascal.rts] Error 2 gmake[1]: Leaving directory `/export/home/juha/gpc-build/gcc' gmake: *** [all-gcc] Error 2
--------------with make-------------------
/export/home/juha/gpc-build/gcc/xgcc -B/export/home/juha/gpc-build/gcc/ -B/usr/local/i386-pc-solaris2.8/bin/ -I/usr/local/i386-pc-solaris2.8/include -DIN_GCC -g -O2 -I./include -I. -I/export/home/juha/gcc-2.95.1/gcc -I/export/home/juha/gcc-2.95.1/gcc/config -I/export/home/juha/gcc-2.95.1/gcc/../include \ -aux-info SYSCALLS.c.X -S -o tmp-SYSCALLS.s SYSCALLS.c rm -f SYSCALLS.c tmp-SYSCALLS.s src=`cd /export/home/juha/gcc-2.95.1/gcc && pwd` && \ cd /export/home/juha/gcc-2.95.1/gcc/p/rts && make -f /export/home/juha/gcc-2.95.1/gcc/Makefile.in srcdir=. SCRIPTDIR="$src/p/script" SHELL="/bin/sh" CFLAGS="-g -O2" AR="ar" AR_FLAGS="cr" RANLIB="true" RANLIB_TEST="[ -f true ] || ( [ "i386-pc-solaris2.8" = "i386-pc-solaris2.8" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" RTSFLAGS="" DESTDIR="../.." generated-files make: Fatal error in reader: /export/home/juha/gcc-2.95.1/gcc/Makefile.in, line 116: Unexpected end of line seen Current working directory /export/home/juha/gcc-2.95.1/gcc/p/rts *** Error code 1 make: Fatal error: Command failed for target `/export/home/juha/gcc-2.95.1/gcc/p/rts/configure' Current working directory /export/home/juha/gpc-build/gcc *** Error code 1 make: Fatal error: Command failed for target `all-gcc'
--------------------snip-----------
Any ideas?
mvh/Juha Korkiakangas jmakor@nada.kth.se
Juha Korkiakangas wrote:
I'm trying to compile gpc-20020910 with gcc-2.95.1 on Solaris_x86 but I get two different error-message depending what make I'm using. I'm not getting any error messages when running configure with options --enable-languages=pascal.
----with gmake----------------- ../.././xgpc -B../.././ -c -g -I. -W -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -g -O2 -DRTS_RELEASE_STRING="'`cat /export/home/juha/gcc-2.95.1/gcc/p/rts/rts-version`'" --unit-path=/export/home/juha/gcc-2.95.1/gcc/p/rts --automake `cat needed-options` /export/home/juha/gcc-2.95.1/gcc/p/rts/rtsc.pas <implicit code>:22: Internal compiler error in `output_type', at dwarfout.c:4366 Please submit a full bug report. See URL:http://www.gnu.org/software/gcc/faq.html#bugreport for instructions.
There are some problems with debug info generation. Try building without them by adding something like `CFLAGS=-O3' (i.e., without `-g') on the command line.
--------------with make-------------------
Non-GNU make doesn't work in general for GCC/GPC. Just use gmake.
Frank
Juha Korkiakangas wrote:
hi,
I'm trying to compile gpc-20020910 with gcc-2.95.1 on Solaris_x86 but I get two different error-message depending what make I'm using. I'm not getting any error messages when running configure with options --enable-languages=pascal.
----with gmake-----------------
<snip>
../.././xgpc -B../.././ -c -g -I. -W -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -g -O2 -DRTS_RELEASE_STRING="'`cat /export/home/juha/gcc-2.95.1/gcc/p/rts/rts-version`'" --unit-path=/export/home/juha/gcc-2.95.1/gcc/p/rts --automake `cat needed-options` /export/home/juha/gcc-2.95.1/gcc/p/rts/rtsc.pas <implicit code>:22: Internal compiler error in `output_type', at dwarfout.c:4366
^^^^^^^^ For some reason your GPC is configured to use DWARF debugging format. IMHO DWARF debugging never worked for GPC. Quick fix is to build runtime without debugging symbols (make CFLAGS="-O2"). You may also try to force different debugging format (like '-gstabs').