[GHC] #10456: Wrong CPP during cross-compilation
GHC
ghc-devs at haskell.org
Wed May 27 22:08:21 UTC 2015
#10456: Wrong CPP during cross-compilation
-------------------------------------+-------------------------------------
Reporter: jakzale | Owner:
Type: bug | Status: new
Priority: low | Milestone:
Component: Build System | Version: 7.11
Resolution: | Keywords: cross-
Operating System: Unknown/Multiple | compiling
Type of failure: Building GHC | Architecture:
failed | Unknown/Multiple
Blocked By: | Test Case:
Related Tickets: | Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by rwbarton):
I can reproduce this with just `./configure --target=i386-unknown-linux`,
though using the wrong CPP to build dependencies has no visibly bad
effects in my case. The OP's immediate issue is that the build system
knows it is doing a build for the host system, so it added `-m64`, but
then actually used the cross-compiler for CPP.
I wonder whether, until recently (when the stage1 compiler gained some TH
support), it was the case that there was no C code in the compiler proper
(as opposed to the rts and libraries)?
I guess we need separate CPP_STAGEn variables, or to have the dependency
generation use CC rather than CPP...
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10456#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list