Hi all,
After a few days work, I finally got gpc compiled on a powerpc based RS/6000 with AIX4.1.4. I thought I'd first try it with a simple program called littletest.pas:
program littletest;
var i,j: integer; begin i:=1; j:=2; writeln('Sum is ',i+j); end.
Well, this is the result:
$ gpc --verbose littletest.pas Reading specs from /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.4.0/2.7.2.1/specs gpc version 971001(2.7.2.1) /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.4.0/2.7.2.1/gpc-cpp -lang-pascal -v -nocharescape -undef -D__GNUC__=2 -D__GPC__=2 -D__GNUC_MINOR__=7 -D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_IBMR2 -D_POWER -D_AIX -D_AIX32 -Asystem(unix) -Asystem(aix) -Acpu(powerpc) -Amachine(powerpc) -D__CHAR_UNSIGNED__ -D_ARCH_PPC littetest.pas /tmp/ccQLxsya.i GNU CPP version 971001(2.7.2.1) #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/local/powerpc-ibm-aix4.1.4.0/include /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.4.0/2.7.2.1/include /usr/include End of search list. /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.4.0/2.7.2.1/gpc1 /tmp/ccQLxsya.i -quiet -dumpbase littletest.pas -version -famtmpfile=littletest.gpc -o /tmp/ccQLxsya.s GNU PASCAL version 971001(2.7.2.1) compiled by GNU C version 2.7.2.1. gpc: Internal compiler error: program gpc1 got fatal signal 6
Needless to say, I get a beautiful coredump out of that which my debugger dbx can't read very well, but anyways this is the result of a "where":
raise(??) at 0xd0077eac abort() at 0xd0019a70 emit_stack_save(??, ??, ??), line 887 in "explow.c" init_main_program_rtx(), line 1588 in "util.c" yyparse(), line 545 in "parse.y" compile_file(name = "/tmp/ccQLxsya.i")line 2232 in "toplev.c" main(argc = 9, argv = 0x2ff22b94, envp = 0xffffffff), line 3931 in "toplev.c"
If anyone would have any idea on how to solve this, it would be greatly appreciated. Please reply by mail as I am not yet subscribed to this mailing list!
Nick Cremelie
Hello, Nick! Hello, all!
According to Nick Cremelie:
GNU PASCAL version 971001(2.7.2.1) compiled by GNU C version 2.7.2.1. gpc: Internal compiler error: program gpc1 got fatal signal 6
:-(
init_main_program_rtx(), line 1588 in "util.c"
This seems to be the critical routine. Since it has been changed crucially since gpc-971001, you should try a more recent ("alpha") version of GPC, available from
ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/alpha/ .
(I think, the next release can be labeled "beta" again.:-)
Greetings,
Peter