[GHC] #10863: "hello world" produces illegal instruction error

GHC ghc-devs at haskell.org
Mon Sep 14 05:47:27 UTC 2015


#10863: "hello world" produces illegal instruction error
----------------------------------+---------------------------------
        Reporter:  Ansible        |                   Owner:
            Type:  bug            |                  Status:  new
        Priority:  normal         |               Milestone:
       Component:  Compiler       |                 Version:  7.10.2
      Resolution:                 |                Keywords:
Operating System:  Linux          |            Architecture:  arm
 Type of failure:  Runtime crash  |               Test Case:
      Blocked By:                 |                Blocking:
 Related Tickets:                 |  Differential Revisions:
----------------------------------+---------------------------------

Comment (by Ansible):

 Moved over to testing, but still getting the SIGILL, unfortunately.  I did
 install ghc while it had the 3.5.2-1 llvm on there, but then upgraded to
 3.5.2-2

 {{{
 bburdette at jessie-rpi:~/code/ghcbug$ ghc --version
 The Glorious Glasgow Haskell Compilation System, version 7.10.2
 bburdette at jessie-rpi:~/code/ghcbug$ ghc hello.hs
 bburdette at jessie-rpi:~/code/ghcbug$ ./hello
 Illegal instruction
 bburdette at jessie-rpi:~/code/ghcbug$ ls
 a.out                        hello.o
 binutils_2.25.1-1_armhf.deb  install_log
 core                         libllvm3.5v5_3.5.2-2_armhf.deb
 download                     libstdc++6_5.2.1-16_armhf.deb
 download.1                   libtinfo5_6.0+20150810-1_armhf.deb
 frout                        llvm-3.5-dev_3.5.2-2_armhf.deb
 hello                        llvm-3.5-runtime_3.5.2-2_armhf.deb
 hello.hi                     llvm-3.5_3.5.2-2_armhf.deb
 hello.hs                     main.cpp
 bburdette at jessie-rpi:~/code/ghcbug$ rm hello
 bburdette at jessie-rpi:~/code/ghcbug$ ghc hello.hs
 Linking hello ...
 bburdette at jessie-rpi:~/code/ghcbug$ ./hello
 Illegal instruction
 bburdette at jessie-rpi:~/code/ghcbug$ dpkg -l | grep llvm-3.5
 ii  llvm-3.5                           1:3.5.2-2
 armhf        Modular compiler and toolchain technologies
 ii  llvm-3.5-dev                       1:3.5.2-2
 armhf        Modular compiler and toolchain technologies, libraries and
 headers
 ii  llvm-3.5-runtime                   1:3.5.2-2
 armhf        Modular compiler and toolchain technologies, IR interpreter
 bburdette at jessie-rpi:~/code/ghcbug$
 }}}

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


More information about the ghc-tickets mailing list