Skip to content

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 mk/build.mk.

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.

Trac metadata
Trac field Value
Version 6.6
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Multiple
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information