Hello all,
Regarding my "xgpc: Internal compiler error: program gpc1 got fatal signal 6", Peter Gerwinski wrote:
Please try to compile rts-base.p manually, giving the additional option `-dY'. This will dump the source to `stderr' thus showing us after which line the error occured.
Result:
---begin--- unit RTS_Base;
interface
const
Bits_Big_Endian = {$ifdef __BITS_LITTLE_ENDIAN__}{$else} {$ifdef __BITS_BIG_ENDIAN__} True {$else}{$endif} {$endif};
Bytes_Big_Endian = {$ifdef __BYTES_LITTLE_ENDIAN__}{$else} {$ifdef __BYTES_BIG_ENDIAN__} True {$else}{$endif} {$endif};
Words_Big_Endian = {$ifdef __WORDS_LITTLE_ENDIAN__}{$else} {$ifdef __WORDS_BIG_ENDIAN__} True {$else}{$endif} {$endif};
Need_Word_Alignment = {$ifdef __NEED_WORD_ALIGNMENT__}{$else} False {$endif};
implementation
end.rts-base.p:56: warning: no previous prototype for `__init_Rts_base' xgpc: Internal compiler error: program gpc1 got fatal signal 6 ---end---
After that, please retry with `-dy' instead of `-dY' which will dump - a lot of - parser debugging information to `stderr'. In both cases, please post the last, say, 10 lines of the output to this list.
Result:
---begin--- Entering state 1206 Reducing via rule 962 (line 6508), import_part any_declaration_part -> unit_imp lementation state stack now 0 3 13 190 216 256 313 498 612 724 842 Entering state 1071 Next token is 268 (END) Reducing via rule 988 (line 6708), -> @70 rts-base.p:56: warning: no previous prototype for `__init_Rts_base' state stack now 0 3 13 190 216 256 313 498 612 724 842 1071 Entering state 715 Reducing via rule 948 (line 6399), -> pushlevel1 state stack now 0 3 13 190 216 256 313 498 612 724 842 1071 715 Entering state 830 Reducing via rule 989 (line 6736), -> @71 state stack now 0 3 13 190 216 256 313 498 612 724 842 1071 715 830 Entering state 1066 Reducing via rule 950 (line 6417), -> poplevel1 state stack now 0 3 13 190 216 256 313 498 612 724 842 1071 715 830 1066 Entering state 1194 Reducing via rule 990 (line 6743), @70 pushlevel1 @71 poplevel1 -> implicit_mod ule_constructor xgpc: Internal compiler error: program gpc1 got fatal signal 6 ---end---
Another note: configure determined that our system is a powerpc-ibm-aix4.1.4. I also tried building the compiler after a `configure rs6000-ibm-aix', but the same error was generated. Are we the first ones to try gpc on aix? I have a group of fanatic pascal programmers here and they want a compiler running on different systems to increase portability. I was (still am) hoping that gpc brings the solution...
Nick Cremelie
P.S. again, please reply by e-mail as I'm not subscribed to the list yet.