stage2 on sparc dies with "schedule: re-entered unsafely"
Building a registerised GHC-6.6 on Sparc Solaris or Sparc Linux gives a stage2 with the following problem:
$ ghc --version ghc-6.6: schedule: re-entered unsafely. Perhaps a 'foreign import unsafe' should be 'safe'?
This happens for Christian Maeder on Solaris and for me on Linux. It does not seem to be related to
SPLIT_OBJS= in the
Christian reports that it works for him with gcc-4.0.3 but not gcc-3.4.4, though that was not the only thing different between the two configurations:
It works with gcc_4.0.3_s10 on "SunOS leo 5.10 Generic_118833-20 sun4u sparc SUNW,Sun-Fire-280R" It crashes as above on "SunOS cni 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Fire-V240" with gcc_3.4.4_s10.
My results do not contradict this as I am using gcc-3.4.6 on Sparc Linux.