Dixi:
I have today merged gcc-3.4-20051115 and gpc-20051116 (with both Message-ID: E1EcXkX-0004mi-00@hera.math.uni.wroc.pl and Message-ID: E1Ed6ro-00056J-00@hera.math.uni.wroc.pl applied) into our gcc branch, which also uses Hiroaki Etoh's SSP
[...]
I've hacked a bit on the infrastructure, and after building our gcc with Apple's gcc, I could rebuild it with itself then Pascal didn't ICE building the RTS (figured that out before Adriaan's answer made it to my INBOX, but thanks nonetheless). These are the results:
Test Run By tglaser on 2005-11-22 22:20:52 Native configuration is powerpc-apple-darwin8.2.0 (g4.gecko.ig3.net)
=== gpc tests ===
Running target any Running testsuite ...
UNSUPPORTED: agettext2test.pas UNSUPPORTED: agettexttest.pas UNSUPPORTED: aregextest.pas UNSUPPORTED: asmtest.pas UNSUPPORTED: fjf165a.pas FAIL: fjf998r.pas UNSUPPORTED: gmptest.pas UNSUPPORTED: longr2.pas FAIL: mir047h.pas FAIL: prep2p.pas FAIL: systemtest.pas [...] gpc version 20051116, based on gcc-3.4.5 20051115 (propolice; MirOS 083A)
Snippets:
| TEST fjf998q.pas: OK | TEST fjf998r.pas: failed: | TEST fjf998s.pas: OK
uh?
| TEST mir047h.pas: OK | ./test_run: line 345: 10690 Bus error ./"$A_OUT" "$1" | TEST mir048a.pas: OK
Looks familiar - the same problem shows up on i386-ecce-mirbsd8. May be a stack protector issue?
| TEST prep2p.pas: 0a1,2 | > _ARCH_PPC | > _BIG_ENDIAN | 1a4 | > __BIG_ENDIAN__ | failed
I think you already know this.
| TEST systemtest.pas: a.out(2075) malloc: *** vm_allocate(size=2147483648) failed (error code=3) | a.out(2075) malloc: *** error: can't allocate region | a.out(2075) malloc: *** set a breakpoint in szone_error to debug | a.out(2075) malloc: *** vm_allocate(size=2147483648) failed (error code=3) | a.out(2075) malloc: *** error: can't allocate region | a.out(2075) malloc: *** set a breakpoint in szone_error to debug | OK
No idea, I don't know anything about Macintoshes (that's just a shell account I have at a friend's box).
I'll now look whether just doing a make bootstrap is enough to circumvent the Apple GCC brokenness.
//mirabile