Hello "schedule: re-entered unsafely."
|Reported by:||Chobbes||Owned by:|
|Type of failure:||Runtime crash||Test Case:|
|Related Tickets:||#951, #9920||Differential Rev(s):|
After compiling the following program on ARM:
main = putStrLn "Hello, world!"
ghc hello.hs I receive the following error when running the compiled code:
$ ./hello hello: schedule: re-entered unsafely. Perhaps a 'foreign import unsafe' should be 'safe'?
I'm trying to get GHC running on my Raspberry Pi 2, running Raspbian Jessie Light, which can be found here:
I was following the instructions for installing the compiler on a freshly flashed RPI2 from here:
This was using the Linux ARMv7 binaries:
Additionally trying to upgrade cabal with
cabal install cabal-install seems to hang forever. It gets stuck in various Setup.hs files and doesn't seem to progress. No CPU is taken up using this.
Some summary information:
- llvm 3.5
- gcc 4.9.2
- original GHC from Raspbian is 7.6.3
- cabal-install from Raspbian is 188.8.131.52
- cabal is 184.108.40.206
- This same problem affects both 7.10.2, and 7.10.3
Change History (6)
comment:1 follow-ups: 2 4 Changed 17 months ago by
|Related Tickets:||951 → 951, #9920|
|Status:||new → infoneeded|