newbie: GHC 6.3 build problem
Alson Kemp
akemp at MIT.EDU
Sun Jan 23 11:23:27 EST 2005
All,
Okay, I've done due diligence on this problem and haven't found any solution,
so I figured that I'd spam the list for help.
System: Gentoo Linux (freshly emerged...)
Pentium 3
GCC 3.3.4
I'm trying to build cvs-HEAD and am having problems. The build completes just
fine, but the built GHC 6.3 does not include the "-I" include directories
option for GCC. "ghc -O2 -v program.hs" shows that gcc is called thusly:
gcc -x c /tmp/ghc10338.hc -o /tmp/ghc10338.raw_s -DDONT_WANT_WIN32_DLL_SUPPORT
-fno-defer-pop -fomit-frame-pointer -fno-builtin -DSTOLEN_X86_REGS=4 -v -S
-Wimplicit -O -D__GLASGOW_HASKELL__=603 -ffloat-store -I .
If I use the Gentoo-built 6.2.2, then the call to gcc is:
gcc -x c /tmp/ghc32417.hc -o /tmp/ghc32417.raw_s -DDONT_WANT_WIN32_DLL_SUPPORT
-fno-defer-pop -mno-omit-leaf-frame-pointer -fomit-frame-pointer -fno-builtin
-DSTOLEN_X86_REGS=4 -v -S -Wimplicit -O -D__GLASGOW_HASKELL__=602 -nopie
-fno-stack-protector -fno-stack-protector-all -ffloat-store -I . -I . -I
/usr/lib/ghc-6.2.2/include
Help! How do I build GHC to include the proper "-I" flags when calling gcc?
-Alson Kemp
More information about the Glasgow-haskell-users
mailing list