[GHC] #12075: Fails to build on powerpcspe because of inline assembly

GHC ghc-devs at haskell.org
Mon May 1 19:30:18 UTC 2017


#12075: Fails to build on powerpcspe because of inline assembly
----------------------------------------+----------------------------------
        Reporter:  glaubitz             |                Owner:  (none)
            Type:  bug                  |               Status:  infoneeded
        Priority:  normal               |            Milestone:  8.4.1
       Component:  Compiler (NCG)       |              Version:  8.0.1
      Resolution:                       |             Keywords:
Operating System:  Linux                |         Architecture:  powerpc
 Type of failure:  Building GHC failed  |            Test Case:
      Blocked By:                       |             Blocking:
 Related Tickets:                       |  Differential Rev(s):
       Wiki Page:                       |
----------------------------------------+----------------------------------

Comment (by glaubitz):

 So, this actually seems to be fairly easy to fix but I cannot come up with
 a satisfiable patch.

 Basically, we just need to disable rts/AdjustorAsm.S in rts/ghc.mk if the
 C compiler defines {{{__NO_FPRS__}}}. When this macro is defined, the CPU
 is using FPU emulation instead of a hardware FPU, so basically the same as
 for ARM soft-float.

 Looking at the main {{{ghc.mk}}}, it does something similar for ARM but it
 actually defines a Haskell constructor with "SOFT" defined for armABI in
 case of FPU emulation.

 Can someone more familiar with the build system suggest a patch which I
 can test?

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


More information about the ghc-tickets mailing list