[GHC] #11058: selected processor does not support ARM mode

GHC ghc-devs at haskell.org
Tue Nov 3 23:18:55 UTC 2015


#11058: selected processor does not support ARM mode
----------------------------------------+------------------------------
        Reporter:  nomeata              |                Owner:
            Type:  bug                  |               Status:  new
        Priority:  normal               |            Milestone:
       Component:  Compiler             |              Version:  7.10.2
      Resolution:                       |             Keywords:
Operating System:  Unknown/Multiple     |         Architecture:  arm
 Type of failure:  Building GHC failed  |            Test Case:
      Blocked By:                       |             Blocking:
 Related Tickets:                       |  Differential Rev(s):
       Wiki Page:                       |
----------------------------------------+------------------------------

Comment (by erikd):

 I *think* this is fixable, but it requires a bit of fiddling about. As
 noted by @joeyhess in #10469 the Clang/LLVM target triple for `armel` is
 `armv4t-unknown-linux-gnueabi`.

 What we need to fix this is:

 * `configure.ac` needs to distinguish between Debian's `armhf` and
 `armel`.
 * `compiler/llvmGen/LlvmCodeGen/Ppr.hs` needs to set a different target
 triple depending on whether its build `armel` vs `armhf`.

 This also assumes that GCC build for `armel` understands the `-marm` flag
 that was a significant part of the fix for #10375.

 I'll see if I can get an `armel` chroot set up on one of my `armhf` boards
 to allow me to debug this. Assuming that works, I should have fix in a
 couple of days.

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


More information about the ghc-tickets mailing list