[GHC] #12726: GHC 8.0.1: ghc --make broken on Raspberry Pi

#12726: GHC 8.0.1: ghc --make broken on Raspberry Pi -------------------------------------+------------------------------------- Reporter: robjhen | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Keywords: raspberry pi | Operating System: Linux Architecture: arm | Type of failure: GHC doesn't work | at all Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- == 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: {{{#!hs 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'. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12726 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12726: GHC 8.0.1: ghc --make broken on Raspberry Pi -------------------------------------+------------------------------------- Reporter: robjhen | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: raspberry pi Operating System: Linux | Architecture: arm Type of failure: GHC doesn't work | Test Case: at all | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by robjhen): * Attachment "output.txt" added. Full verbose compiler output -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12726 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12726: GHC 8.0.1: ghc --make broken on Raspberry Pi -------------------------------------+------------------------------------- Reporter: robjhen | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: raspberry pi Operating System: Linux | Architecture: arm Type of failure: GHC doesn't work | Test Case: at all | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by brent80): Passing this flag should get it to build -opta-march=armv7-a -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12726#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12726: GHC 8.0.1: ghc --make broken on Raspberry Pi -------------------------------------+------------------------------------- Reporter: robjhen | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: worksforme | Keywords: raspberry pi Operating System: Linux | Architecture: arm Type of failure: GHC doesn't work | Test Case: at all | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by siddhanathan): * status: new => closed * resolution: => worksforme Comment: Closing as per brent80's comment. Tested on Raspberry Pi 2. Please reopen if this was in error. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12726#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC