[GHC] #4829: build does not respect --with-gcc option
GHC
cvs-ghc at haskell.org
Tue Dec 21 14:59:17 CET 2010
#4829: build does not respect --with-gcc option
---------------------------------+------------------------------------------
Reporter: gwright | Owner: gwright
Type: bug | Status: patch
Priority: high | Milestone: 7.0.3
Component: Build System | Version: 7.0.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: Building GHC failed
---------------------------------+------------------------------------------
Changes (by gwright):
* status: new => patch
Comment:
Someone else seems to have fixed the original bug reported in this ticker.
But in the words of Yoda, "There is another."
The remaining bug only occurs on OS X. Apple's `dtrace` uses
`/usr/bin/gcc` as its default preprocessor. If `/usr/bin/gcc` isn't the
`gcc` you want, you need to pass the correct `gcc` through the `cpppath`
option. (Yes, this is a bit odd looking.)
The attached patch fixes this. I edited validate to pass `--with-
gcc=/usr/bin/gcc-4.2` to `configure`, pointed `/usr/bin/gcc` to the
`no_gcc` script above. `sh validate` ran to completion.
If the patch is applied, this ticket can be closed.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4829#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list