[GHC] #10375: arm: ghci hits an illegal instruction

GHC ghc-devs at haskell.org
Thu Aug 27 15:59:56 UTC 2015


#10375: arm: ghci hits an illegal instruction
-------------------------------------+---------------------------------
        Reporter:  erikd             |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  high              |               Milestone:  7.10.3
       Component:  GHCi              |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:  arm
 Type of failure:  GHCi crash        |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+---------------------------------

Comment (by Ansible):

 Just wanted to point out that on raspberry pi 2 with debian jessie, ghc
 and ghci are both broken.  I tried the ghc binary from the ghc site, and
 it fails with the "Planet" test (from the top of this thread) in ghci, and
 in compiled code it fails "hello world".  So its pretty much a show
 stopper for ARM.


 {{{
 GHCi, version 7.10.2: http://www.haskell.org/ghc/  :? for help
 Prelude> data Planet = Mercury | Venus deriving Eq
 Prelude> Mercury == Mercury
 Illegal instruction
 bburdette at jessie-rpi:~$

 And my hello world program:

 main = do
   putStrLn "hello"

 The results:

 bburdette at jessie-rpi:~$ ghc hello.hs
 [1 of 1] Compiling Main             ( hello.hs, hello.o )
 Linking hello ...
 bburdette at jessie-rpi:~$ ls
 bin   ghc-7.10.2-arm-unknown-linux.tar.xz  hello.hi  hello.o
 code  hello                                hello.hs
 bburdette at jessie-rpi:~$ ./hello
 Illegal instruction
 bburdette at jessie-rpi:~$ ghc -O2 hello.hs
 bburdette at jessie-rpi:~$ ./hello
 Illegal instruction
 bburdette at jessie-rpi:~$
 }}}

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


More information about the ghc-tickets mailing list