[GHC] #11236: Illegal instruction on ARMv7 with official build and simple program (IMX53 board)

#11236: Illegal instruction on ARMv7 with official build and simple program (IMX53 board) -------------------------------------+------------------------------------- Reporter: varosi | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Keywords: ARMv7 | Operating System: Linux Architecture: arm | Type of failure: Incorrect result | at runtime Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- On IMX53 Quick Start board http://www.nxp.com/products/interface-and-connectivity/interface-and- system-management/switch-monitoring-ics/i.mx53-quick-start-board:IMX53QSB With Debian Jessie I'm installing: https://www.haskell.org/ghc/download_ghc_7_10_2#linux_armv7 ghc-7.10.2-arm-unknown-linux.tar.xz (108 MB) When I compile simple program as: import System.IO main = putStrLn "Hello World in ARM!" and then compile and run I got: "Illegal instruction" message When we debug it it seems that there is missing end of function and going straight into main function without changing to ARM Thumb instructions. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11236 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11236: Illegal instruction on ARMv7 with official build and simple program (IMX53 board) -------------------------------------+------------------------------------- Reporter: varosi | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: ARMv7 Operating System: Linux | Architecture: arm Type of failure: Incorrect result | Test Case: at runtime | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by rwbarton): What version of LLVM are you using? You definitely need 3.5.2 as there were GHC calling convention-related bug fixes in that version. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11236#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11236: Illegal instruction on ARMv7 with official build and simple program (IMX53 board) -------------------------------------+------------------------------------- Reporter: varosi | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: ARMv7 Operating System: Linux | Architecture: arm Type of failure: Incorrect result | Test Case: at runtime | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by varosi): Great! Thanks! I have installed LLVM 3.5.2 and it now is working fine. It will be great if GHC configure script is doing version checking of LLVM
= 3.5.2, report warning and stop using it if it is under 3.5.2 for ARM.
-- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11236#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11236: Illegal instruction on ARMv7 with official build and simple program (IMX53 board) -------------------------------------+------------------------------------- Reporter: varosi | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: ARMv7 Operating System: Linux | Architecture: arm Type of failure: Incorrect result | Test Case: at runtime | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by varosi): This will prevent all those headaches and wasted time. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11236#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11236: Illegal instruction on ARMv7 with official build and simple program (IMX53 board) -------------------------------------+------------------------------------- Reporter: varosi | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: wontfix | Keywords: ARMv7 Operating System: Linux | Architecture: arm Type of failure: Incorrect result | Test Case: at runtime | Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by rwbarton): * status: new => closed * resolution: => wontfix Comment: Agreed that there should be such a check in the GHC 7.10 line. But HEAD will require LLVM 3.7+, which I imagine contains the relevant bug fix that is in 3.5.2. And I don't know whether there will be another release of GHC 7.10. The GHC 8.0 release should be just a few months away anyways. So for that reason, even though your request is completely correct, I'm going to go ahead and close this ticket as wontfix. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11236#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC