Andreas Jaeger wrote:
On i686-linux-gnu I get problems running the testsuite:
echo "/usr/src/packages/BUILD/gcc-3.3-hammer-20030605/obj-i586-suse-linux/gcc/xgpc -B/usr/src/packages/BUILD/gcc-3.3-hammer-20030605/obj-i586-suse-linux/gcc/ -g -O3 -W -Wall -Wundef -Wpointer-arith -Wno-unused " /usr/src/packages/BUILD/gcc-3.3-hammer-20030605/obj-i586-suse-linux/gcc/xgpc -B/usr/src/packages/BUILD/gcc-3.3-hammer-20030605/obj-i586-suse-linux/gcc/ -g -O3 -W -Wall -Wundef -Wpointer-arith -Wno-unused PC="/usr/src/packages/BUILD/gcc-3.3-hammer-20030605/obj-i586-suse-linux/gcc/xgpc -B/usr/src/packages/BUILD/gcc-3.3-hammer-20030605/obj-i586-suse-linux/gcc/" PFLAGS="--autobuild -g -O3 -W -Wall -Wundef -Wpointer-arith -Wno-unused -I ../rts --unit-path=/usr/src/packages/BUILD/gcc-3.3-hammer-20030605/obj-i586-suse-linux/gcc/p/units " SRCDIR="/usr/src/packages/BUILD/gcc-3.3-hammer-20030605/gcc/p/test" TEST_MAKE_FLAG=test-make-flag "/usr/src/packages/BUILD/gcc-3.3-hammer-20030605/gcc/p/test/test_run" | tee test_log | "/usr/src/packages/BUILD/gcc-3.3-hammer-20030605/gcc/p/test/test_sum" | tee test_summary gawk: cmd. line:44: (FILENAME=- FNR=20) fatal: grow_iop_buffer: iop->buf: can't allocate -2147483646 bytes of memory (Cannot allocate memory)
This could be a bug in gawk or in the gpc gawk script.
I don't know how even a buggy gawk script should cause such an array (after all, awk script don't deal with memory allocation themselves). So I suppose it is a bug in gawk (at least one that causes a possible bug in the script to displayed in a strange way ...).
You can `make pascal.check-long' to avoid using this script (at the cost of more verbose output) ...
/usr/src/packages/BUILD/gcc-3.3-hammer-20030605/gcc/p/rts/file.c: In function `_ p_Read_Word': /usr/src/packages/BUILD/gcc-3.3-hammer-20030605/gcc/p/rts/file.c:2293: warning: dereferencing type-punned pointer will break strict-aliasing rules
--- orig/rts/file.c Sat Apr 12 04:33:08 2003 +++ p/rts/file.c Mon May 19 02:10:56 2003 @@ -2290,7 +2290,7 @@ static char *_p_Read_Word (FDR f) { buf[length++] = ch; if (length >= size) - _p_ReAllocMem ((void **) &buf, size *= 2); + _p_ReAllocMem ((void *) &buf, size *= 2); ch = _p_DirectGetC (f); } while ((ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z') || (ch >= '0' && ch <= '9') || ch == '_');
/usr/src/packages/BUILD/gcc-3.3-hammer-20030605/gcc/p/rts/string2.pas:38: warning: duplicate implementation flag in GPI file `error.gpi' /usr/src/packages/BUILD/gcc-3.3-hammer-20030605/gcc/p/rts/string2.pas:38: error: cannot recompile module
I don't understand this one. Did you resume building after it failed in rts? In this case, maybe something got messed up. Try removing *.o *.gpi in rts and build again.
Frank