[GHC] #8528: Preprocessor issues building GHC HEAD on Mavericks
GHC
ghc-devs at haskell.org
Wed Nov 13 06:54:29 UTC 2013
#8528: Preprocessor issues building GHC HEAD on Mavericks
----------------------------------------+----------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.7
Resolution: | Keywords:
Operating System: MacOS X | Architecture: x86_64 (amd64)
Type of failure: Building GHC failed | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
----------------------------------------+----------------------------------
Comment (by nkpart):
The gcc command that it fails on is this:
{{{
gcc -E -undef -traditional -m64 -fno-stack-protector -m64 -I
utils/genprimopcode/dist/build -I utils/genprimopcode/dist/build -I
utils/genprimopcode/dist/build/autogen -I
/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/lib/ghc-7.6.3/base-4.6.0.1/include
-I
/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/lib/ghc-7.6.3/include
-D__GLASGOW_HASKELL__=706 -Ddarwin_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1
-Ddarwin_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -U __PIC__ -D__PIC__ -x c
utils/genprimopcode/dist/build/Lexer.hs -o
/var/folders/s6/tzn1w8qn3vbdym7p74zs62lr0000gn/T/ghc49990_0/ghc49990_0.hscpp
}}}
I can run that command outside of the build and replicate the failure (as
long as I change the `-o`).
It fails with gcc-4.2 and gcc-4.8.
However, it works with clang. Does the build try and guess if I've got
fake clang gcc or apple-gcc installed? Could it be getting that wrong?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8528#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list