Hi all,
Apparently I'm on the list now (right, administrator?)...
Klaus suggested:
So here you go, abort! Who messed around with the language_string recently? This should be rather trivial to fix for Peter. The actual bug is in p/parse.c and is even documented. Just take the language_string hack for _IBMR2 out and your compiler should work. The "bug" is around line 360 in p/parse.c. Of course, to fix this, we need to change p/parse.y, being the source for parse.c. Nick, do you have bison installed on your machine? If not, you have to change p/parse.c by hand for a quick fix, and don't apply the p/parse.y patch below.
Yes I have bison. I changed p/parse.y the way you suggested (I can't use `patch', on aix `patch' doesn't seems to behave the way it should. BTW, the gpc patches that needed to be applied in GPC: configure didn't apply them because of this problem. This in turn caused my first linking problem that Peter related to a VPATH problem, but which was not. I was eventually able to apply the patches by moving the files to a linux machine, using `patch' and then moving back the fixed files to the aix machine. So in future releases of gpc this patch problem with aix should be fixed -- but this all aside and between brackets :-) To continue: I resumed gmake and now the rts part of p has been built! I got a few errors which did not cause s stop of gmake, I'm not sure if they are a problem (should I worry about them?):
---begin--- gmake[1]: Entering directory `/backup/gnu/gcc-2.8.1/p/rts' ../../xgpc -B../../ --automake -c -DGPC -Wall -Wpointer-arith -Wmissing-prototy pes -Wmissing-declarations -g -O2 -I. -I../.. -I/backup/gnu/gcc-2.8.1/p/rts/.. /.. -I/backup/gnu/gcc-2.8.1/p/rts/../../config gpc.pas 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 gpc.pas:331: warning: no previous prototype for `__init_Gpc' ---end---
Anyway, at this very moment gmake has finished the build and I will now make the stage2 compiler, install and run some tests (fingers crossed...). I'll keep you all informed on how this evolves.
Oh yes, another thing: just checked and I noticed that the _IBMR2 faulty hack in p/parse.y was already present in version gpc-971001.
Greetz and already many thanks to Peter and Klaus,
Nick