Hi all,
I've been talking with Peter for a while now about my problems with installing gpc on my machine. After trying to put the 2.0 version, he "persuaded" me to look at the alpha version of 2.1 (which is supposed to be already more stable).
I am running Digital Unix 4.0D on a Dec Alpha machine. I reinstalled gcc-2.8.1 in order to be able to build gpc-980420 (the latest version that is available). I edited the p/diffs/gcc-2.8.1.diffs to point to gcc-2.8.1 instead of gcc-2.8.0 and I edited a couple of lines in config-lang.in for the test about the version of gcc to require 2.8.1 instead of 2.8.0.
Patched all the patches, installed the source at the correct place typed ./configure then cd p and ./configure (then edited a line in config.cache as it seemed to still want to use cc-E as the preprocessor to switch it to gcc -E) reruned ./configure and then launched make LANGUAGES=pascal in the source (gcc-2.8.1) directory.
I get stuck at the compiling of rts-base.p and here is my error message. I included some previous lines since I get something weird with rts-string.c (which is compiled two steps before the rts-base.p):
error> rts-string.c:632: warning: no previous prototype for `_p_val_medcard_nocheck' error> rts-string.c:633: warning: no previous prototype for `_p_val_longcard_nocheck' error> rts-string.c:662: warning: no previous prototype for `_p_val_shortreal' error> rts-string.c:663: warning: no previous prototype for `_p_val_real' error> rts-string.c:664: warning: no previous prototype for `_p_val_longreal' error> ../../xgcc -B../../ -c -DGPC -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -g -I. -I../.. -I/usr/users/igor/TEMP/gcc-2.8.1/p/rts/../.. -I/usr/users/igor/TEMP/gcc-2.8.1/p/rts/../../config rts-bind.c error> ../../xgpc -B../../ --automake -c -DGPC -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -g -I. -I../.. -I/usr/users/igor/TEMP/gcc-2.8.1/p/rts/../.. -I/usr/users/igor/TEMP/gcc-2.8.1/p/rts/../../config rts-base.p error> xgpc: Internal compiler error: program gpc1 got fatal signal 11 error> *** Exit 1 error> Stop. error> *** Exit 1 error> Stop.
Using Peter's comments (from a previous email) I reran the last command with the following flags -v --automake=-v and here is the result:
new command> # ../../xgpc -B../../ -v --automake=-v -c -DGPC -Wall -g -I. -I../.. -I/usr/users/igor/TEMP/gcc-2.8.1/p/rts/../.. -I/usr/users/igor/TEMP/gcc-2.8.1/p/rts/../../config rts-base.p messages> Reading specs from ../../specs messages> gpc driver version 980420(2.8.1) executing gpc version 2.8.1 messages> ../../gpc-cpp -lang-pascal -v -I. -I../.. -I/usr/users/igor/TEMP/gcc-2.8.1/p/rts/../.. -I/usr/users/igor/TEMP/gcc-2.8.1/p/rts/../../config -isystem ../../include -nocharescape -undef -D__GNUC__=2 -D__GPC__=2 -D__GNUC_MINOR__=8 -Dunix -D__osf__ -D__alpha -D__alpha__ -D_LONGLONG -DSYSTYPE_BSD -D_SYSTYPE_BSD -D__unix__ -D__osf__ -D__alpha -D__alpha__ -D_LONGLONG -D__SYSTYPE_BSD__ -D_SYSTYPE_BSD -D__unix -D__SYSTYPE_BSD -Asystem(unix) -Asystem(xpg4) -Acpu(alpha) -Amachine(alpha) -D__BITS_LITTLE_ENDIAN__=1 -D__BYTES_LITTLE_ENDIAN__=1 -D__WORDS_LITTLE_ENDIAN__=1 -g -Wall -D__LANGUAGE_C__ -D__LANGUAGE_C -DLANGUAGE_C -DGPC rts-base.p /tmp/ccaaabaa.i messages> GNU CPP version 980420(2.8.1) messages> #include "..." search starts here: messages> #include <...> search starts here: messages> . messages> ../.. messages> /usr/users/igor/TEMP/gcc-2.8.1/p/rts/../.. messages> /usr/users/igor/TEMP/gcc-2.8.1/p/rts/../../config messages> ../../include messages> /usr/local/include messages> /usr/local/alphaev56-dec-osf4.0d/include messages> /usr/local/lib/gcc-lib/alphaev56-dec-osf4.0d/2.8.1/include messages> /usr/include messages> End of search list. messages> ../../gpc1 /tmp/ccaaabaa.i -quiet -dumpbase rts-base.pas -g -Wall -version -famtmpfile=rts-base.gpc -fautomake=-v -o /tmp/ccaaabaa.s messages> GNU Pascal version 980420(2.8.1) (alphaev56-dec-osf4.0d) compiled by GNU C version 2.8.1. messages> xgpc: Internal compiler error: program gpc1 got fatal signal 11
Peter also told me to run it with the -dy or -dY to have more info on what is going. The results are identical to the one just described above. Word for word the messages are the same.
I hope that there anyone out there that knows what is going on. As you can see, I am not an expert at this but I am looking forward to be able to continue to program in pascal.
Thanks a lot in advance.
Igor
According to Igor Perisic:
I get stuck at the compiling of rts-base.p and here is my error
message. [...] messages> ../../gpc1 /tmp/ccaaabaa.i -quiet -dumpbase rts-base.pas -g -Wall -version -famtmpfile=rts-base.gpc -fautomake=-v -o /tmp/ccaaabaa.s messages> GNU Pascal version 980420(2.8.1) (alphaev56-dec-osf4.0d) compiled by GNU C version 2.8.1. messages> xgpc: Internal compiler error: program gpc1 got fatal signal 11
Peter also told me to run it with the -dy or -dY to have more info
on what is going. The results are identical to the one just described above. Word for word the messages are the same.
This might again be an instance of the version number problem. Please retry with a changed `p/version.c' that contains a line
char *version_string = "2.8.0";
instead of
char *version_string = GPC_VERSION_STRING;
Good luck,
Peter
Hi Folks,
the lates version will not compile under IRIX 6.2. It seems to be a makefile problem. (I tried the native make and the GNU make as well.) Here goes the log (last lines only):
../../xgpc -B../../ --automake -c -DGPC -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -O2 -I. -I../.. -I/usr/local/src/gcc-2.8.0/p/rts/../.. -I/usr/local/src/gcc-2.8.0/p/rts/../../config rts-assign.p ../../xgpc -B../../ --automake -c -DGPC -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -O2 -I. -I../.. -I/usr/local/src/gcc-2.8.0/p/rts/../.. -I/usr/local/src/gcc-2.8.0/p/rts/../../config rts-str.p rts-str.p: In function `Insert': rts-str.p:107: warning: passing arg 1 of `Insert_f' discards `const' from pointer target type ../../xgpc -B../../ --automake -c -DGPC -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -O2 -I. -I../.. -I/usr/local/src/gcc-2.8.0/p/rts/../.. -I/usr/local/src/gcc-2.8.0/p/rts/../../config rts-numtodec.p rts-numtodec.p: In function `Longreal_to_decimal': rts-numtodec.p:70: warning: `First_char' might be used uninitialized in this function rts-numtodec.p:204: warning: `Ch' might be used uninitialized in this function ../../xgpc -B../../ --automake -c -DGPC -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -O2 -I. -I../.. -I/usr/local/src/gcc-2.8.0/p/rts/../.. -I/usr/local/src/gcc-2.8.0/p/rts/../../config rts-intfrac.p ../../xgpc -B../../ --automake -c -DGPC -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -O2 -I. -I../.. -I/usr/local/src/gcc-2.8.0/p/rts/../.. -I/usr/local/src/gcc-2.8.0/p/rts/../../config rts-move.p rts-base.p:38: #error Bit endianness is not defined! rts-base.p:43: #error Byte endianness is not defined! rts-base.p:48: #error Word endianness is not defined! gpc1: gpc exited with status 1 rts-move.p: In function `Moveleft': rts-move.p:94: warning: cast increases required alignment of target type rts-move.p:95: warning: cast increases required alignment of target type rts-move.p:99: warning: cast increases required alignment of target type rts-move.p:100: warning: cast increases required alignment of target type rts-move.p:102: warning: cast increases required alignment of target type rts-move.p:103: warning: cast increases required alignment of target type rts-move.p:106: warning: cast increases required alignment of target type rts-move.p:123: warning: cast increases required alignment of target type rts-move.p:124: warning: cast increases required alignment of target type rts-move.p: In function `Moveright': rts-move.p:147: warning: pointer of type `void *' used in arithmetic rts-move.p:166: warning: cast increases required alignment of target type rts-move.p:170: warning: cast increases required alignment of target type rts-move.p:171: warning: cast increases required alignment of target type rts-move.p:172: warning: cast increases required alignment of target type rts-move.p:173: warning: cast increases required alignment of target type rts-move.p:185: warning: cast increases required alignment of target type rts-move.p:186: warning: cast increases required alignment of target type ../../xgcc -B../../ -c -DGPC -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -O2 -I. -I../.. -I/usr/local/src/gcc-2.8.0/p/rts/../.. -I/usr/local/src/gcc-2.8.0/p/rts/../../config rts-compat.c In file included from rts-compat.c:33: vasprintf.c:119: warning: no previous prototype for `vasprintf' In file included from rts-compat.c:37: asprintf.c:27: warning: no previous prototype for `asprintf' make[1]: *** No rule to make target `gpc.o', needed by `../../libgpc.a'. Stop. make[1]: Leaving directory `/usr/local/src/gcc-2.8.0/p/rts' make: *** [libgpc.a] Error 2
Any hints?
Cheers,
miklos