[GHC] #11190: Hello "schedule: re-entered unsafely."

GHC ghc-devs at haskell.org
Wed Dec 9 23:14:13 UTC 2015


#11190: Hello "schedule: re-entered unsafely."
--------------------------------+----------------------------------
           Reporter:  Chobbes   |             Owner:
               Type:  bug       |            Status:  new
           Priority:  normal    |         Milestone:
          Component:  Compiler  |           Version:  7.10.2
           Keywords:            |  Operating System:  Linux
       Architecture:  arm       |   Type of failure:  Runtime crash
          Test Case:            |        Blocked By:
           Blocking:            |   Related Tickets:  951
Differential Rev(s):            |         Wiki Page:
--------------------------------+----------------------------------
 After compiling the following program on ARM:

 {{{#!hs
 main = putStrLn "Hello, world!"
 }}}

 using `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:

 https://www.raspberrypi.org/downloads/raspbian/

 I was following the instructions for installing the compiler on a freshly
 flashed RPI2 from here:

 http://statusfailed.com/blog/2015/11/29/haskell-and-servant-on-scaleway-
 arm-servers.html

 This was using the Linux ARMv7 binaries:

 https://www.haskell.org/ghc/download_ghc_7_10_3#linux_armv7
 https://www.haskell.org/ghc/download_ghc_7_10_2#linux_armv7

 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 1.20.0.3
   - cabal is 1.20.0.2
   - This same problem affects both 7.10.2, and 7.10.3

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11190>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list