PowerPC ICE’s

Adriaan van Os gpc at microbizz.nl
Wed Jun 29 12:30:32 CEST 2011


Waldek Hebisch wrote:
> I did some work on updating gpc to newer gcc versions.  You can
> find it at GitHub:

Building a native powerpc-apple-darwin8 or powerpc-apple-darwin9 compiler with the snapshot and 
gcc-4.3.6 results in an ICE at p/module.c:2395. This is (for me) line

2394: #ifdef GCC_4_0
2395:       gcc_assert (class_done);
2396: #else
2397:       gcc_assert (class_done && code != RTL_EXPR);
2398: #endif

/adriaan/build/./gcc/xgcc -B/adriaan/build/./gcc/ 
-B/Developer/Pascal/gpc436u1/powerpc-apple-darwin9/bin/ 
-B/Developer/Pascal/gpc436u1/powerpc-apple-darwin9/lib/ -isystem 
/Developer/Pascal/gpc436u1/powerpc-apple-darwin9/include -isystem 
/Developer/Pascal/gpc436u1/powerpc-apple-darwin9/sys-include -c -I. -W -Wall -Wmissing-prototypes 
-Wmissing-declarations -O2 -g -g -O2     -Wpointer-arith -Wwrite-strings 
"/adriaan/gcc-4.3.6/gcc/p/rts/rts.c"
`echo /adriaan/build/./gcc/xgcc -B/adriaan/build/./gcc/ 
-B/Developer/Pascal/gpc436u1/powerpc-apple-darwin9/bin/ 
-B/Developer/Pascal/gpc436u1/powerpc-apple-darwin9/lib/ -isystem 
/Developer/Pascal/gpc436u1/powerpc-apple-darwin9/include -isystem 
/Developer/Pascal/gpc436u1/powerpc-apple-darwin9/sys-include | sed 's,^\([^ 
]*[/\][^/\]*\)gcc,\1gpc,;s/^gcc$/gpc/' ` -c -g -I. -W -Wall -Wmissing-prototypes 
-Wmissing-declarations -O2 -g -g -O2      --unit-path=/adriaan/gcc-4.3.6/gcc/p/rts --automake 
-DRTS_RELEASE_STRING="'`cat /adriaan/gcc-4.3.6/gcc/p/rts/rts-version`'" -DGCC_VERSION="'unknown'" 
"/adriaan/gcc-4.3.6/gcc/p/rts/rtsc.pas"
/adriaan/gcc-4.3.6/gcc/p/rts/rtsc.pas:0: internal compiler error: in store_node_fields, at 
p/module.c:2395
Please submit a full bug report,
with preprocessed source if appropriate.
See unsupported for instructions.
make[4]: *** [rtsc.o] Error 1
make[3]: *** [pascal.rts] Error 2

and 64-bit

/adriaan/build/./gcc/xgcc -B/adriaan/build/./gcc/ 
-B/Developer/Pascal/gpc436u1/powerpc-apple-darwin9/bin/ 
-B/Developer/Pascal/gpc436u1/powerpc-apple-darwin9/lib/ -isystem 
/Developer/Pascal/gpc436u1/powerpc-apple-darwin9/include -isystem 
/Developer/Pascal/gpc436u1/powerpc-apple-darwin9/sys-include -c -I. -W -Wall -Wmissing-prototypes 
-Wmissing-declarations -O2 -g -g -O2    -m64  -Wpointer-arith -Wwrite-strings 
"/adriaan/gcc-4.3.6/gcc/p/rts/rts.c"
`echo /adriaan/build/./gcc/xgcc -B/adriaan/build/./gcc/ 
-B/Developer/Pascal/gpc436u1/powerpc-apple-darwin9/bin/ 
-B/Developer/Pascal/gpc436u1/powerpc-apple-darwin9/lib/ -isystem 
/Developer/Pascal/gpc436u1/powerpc-apple-darwin9/include -isystem 
/Developer/Pascal/gpc436u1/powerpc-apple-darwin9/sys-include | sed 's,^\([^ 
]*[/\][^/\]*\)gcc,\1gpc,;s/^gcc$/gpc/' ` -c -g -I. -W -Wall -Wmissing-prototypes 
-Wmissing-declarations -O2 -g -g -O2    -m64   --unit-path=/adriaan/gcc-4.3.6/gcc/p/rts --automake 
-DRTS_RELEASE_STRING="'`cat /adriaan/gcc-4.3.6/gcc/p/rts/rts-version`'" -DGCC_VERSION="'unknown'" 
"/adriaan/gcc-4.3.6/gcc/p/rts/rtsc.pas"
/adriaan/gcc-4.3.6/gcc/p/rts/rtsc.pas:0: internal compiler error: in store_node_fields, at 
p/module.c:2395
Please submit a full bug report,
with preprocessed source if appropriate.
See unsupported for instructions.
make[4]: *** [rtsc.o] Error 1
make[3]: *** [ppc64/pascal.rts] Error 2
make[2]: *** [do_multidirs] Error 2
make[1]: *** [all-target-libgpc] Error 2
make: *** [all] Error 2
logout

The i386-apple-darwin[9-10] to powerpc-apple-darwin[9-10] cross compiler does build, but packed 
arrays of booleans cause ICE’s in the testsuite:

FAIL: az20.pas
  ./az20.pas: In main program:
  ./az20.pas:0: internal compiler error: in count_bits, at p/types.c:1598
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See unsupported for instructions.
  failed

The same problem occurs with

FAIL: confarr5.pas
FAIL: fjf746.pas
FAIL: fjf980b.pas
FAIL: martin3.pas
FAIL: pack10.pas
FAIL: pack11.pas
FAIL: pack2.pas
FAIL: pack4.pas
FAIL: pack5.pas

I think this needs to be fixed. Other testsuite failures look less serious.

Regards,

Adriaan van Os




More information about the Gpc mailing list