
#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): Correction: My previous explanation in comment 7 contains a mistake. It's not AdjustorAsm.S which needs to be disabled but StgCRun.S as it also becomes obvious from error messages listed in the original message to this bug report. The reason why I suspected AdjustorAsm.S is because I commented out the whole block around 'ifneq "$(PORTING_HOST)" "YES"' and just read the following condition 'ifneq "$(findstring $(TargetArch_CPP), powerpc64le)" ""' as "match for powerpc64le only' but, of course, it's the other way around. It matches for all architectures except powerpc64le. Furthermore, AdjustorAsm.S doesn't even contain any code which is built on powerpc32/linux, just powerpc32 code which builds on non-Linux targets. Thus, could you move the guarding 'ifneq "$(POWERPC_NO_FPRS)" "YES" ... endif' away from AdjustorAsm.S and put it around StgCRun.S? This is also what I did for the suggested patch for the Debian package [1].
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861806
-- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12075#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler