[GHC] #8652: Cross-compiling broken for ARM/Linux target

GHC ghc-devs at haskell.org
Mon Jan 6 12:34:11 UTC 2014


#8652: Cross-compiling broken for ARM/Linux target
----------------------------------------+---------------------------
        Reporter:  kgardas              |            Owner:
            Type:  bug                  |           Status:  new
        Priority:  normal               |        Milestone:
       Component:  Compiler             |          Version:  7.7
      Resolution:                       |         Keywords:
Operating System:  Linux                |     Architecture:  arm
 Type of failure:  Building GHC failed  |       Difficulty:  Unknown
       Test Case:                       |       Blocked By:
        Blocking:                       |  Related Tickets:
----------------------------------------+---------------------------

Comment (by kgardas):

 After further investigation, this looks like an issue in configure. When
 it is run without --with-gcc, it even generates incorrect settings file:
 {{{
 $ cat settings
 [("GCC extra via C opts", " -fwrapv"),
  ("C compiler command", "/usr/bin/gcc"),
  ("C compiler flags", " -fno-stack-protector"),
  ("C compiler link flags", ""),
  ("ld command", "/usr/bin/arm-linux-gnueabihf-ld"),
  ("ld flags", ""),
  ("ld supports compact unwind", "NO"),
  ("ld supports build-id", "NO"),
  ("ld supports filelist", "NO"),
  ("ld is GNU ld", "YES"),
  ("ar command", "/usr/bin/ar"),
  ("ar flags", "q"),
  ("ar supports at file", "YES"),
  ("touch command", "touch"),
  ("dllwrap command", "/bin/false"),
  ("windres command", "/bin/false"),
  ("libtool command", "libtool"),
  ("perl command", "/usr/bin/perl"),
  ("target os", "OSLinux"),
  ("target arch", "ArchARM {armISA = ARMv7, armISAExt = [VFPv3,NEON],
 armABI = SOFTFP}"),
  ("target word size", "8"),
  ("target has GNU nonexec stack", "True"),
  ("target has .ident directive", "True"),
  ("target has subsections via symbols", "False"),
  ("Unregisterised", "NO"),
  ("LLVM llc command", "/usr/bin/llc"),
  ("LLVM opt command", "/usr/bin/opt")
  ]
 }}}
 When --with-gcc is used, then both C compiler command and also target's
 arch armABI field are correctly set.

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


More information about the ghc-tickets mailing list