Skip to content

GHC 8.0.1: ghc --make broken on Raspberry Pi

System and compiler version

System: Raspberry Pi 2 running Raspbian Jessie (September 2016 release); LLVM 3.7 installed.

GHC: GHC 8.0.1 ARMv7 binary downloaded from GHC webpage (ghc-8.0.1-armv7-deb8-linux.tar.xz).

GCC version 4.9.2 (Raspbian 4.9.2-10)

Details

GHCi works perfectly, however 'ghc --make' does not work at all. The following minimal test program fails to compile:

main :: IO ()
main = putStrLn "Hello!"

Here are the first few lines of the compiler output:

pi@raspberrypi:~/haskell/test $ ~/opt/ghc-8.0.1/bin/ghc --make test.hs
[1 of 1] Compiling Main             ( test.hs, test.o )
/tmp/ghc2094_0/ghc_6.s: Assembler messages:

/tmp/ghc2094_0/ghc_6.s:40:0: error:
     Error: selected processor does not support ARM mode `movw r7,:lower16:stg_bh_upd_frame_info'

See attachment for full compiler output with '-v'.

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