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

GHC ghc-devs at haskell.org
Fri May 5 15:29:29 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:  Build System         |              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:                       |
----------------------------------------+----------------------------------
Changes (by trommler):

 * component:  Compiler (NCG) => Build System


Comment:

 Replying to [comment:5 glaubitz]:
 >
 > That's exactly the problem. The inline assembly is there and used even
 when "--enable-unregisterised" was passed to "configure". Apparently, it
 just checks for "powerpc" and ignores the "--enable-unregistrised".
 I wonder why the assembly code in `StgCRun.c` causes a problem here. In an
 unregisterised compiler `USE_MINIINTERPRETER` is defined in
 `includes/ghc.mk` and ordinary C code should be used for `StgRun()` and
 `StgReturn()`.  I don't see that define in the command lines in the
 ticket. To be sure we have an issue with the build system, could you clean
 your source tree and configure the compiler with `--enable-unregisterised`
 and then compile again.

 BTW `StgCRunAsm.S` should not matter in your case at all. It has code only
 for AIX and PowerPC 64-bit Little Endian. It does not, however, handle
 `USE_MINIINTERPRETER` which is incorrect on AIX and 64-bit LE. I will post
 a patch for `StgCRunAsm.S` on Phab shortly.

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


More information about the ghc-tickets mailing list