newbie: GHC 6.3 build problem

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

Alson Kemp wrote:
[...] 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. [...]
I've just stumbled over exactly the same problem in this second, and I'm already investigating what goes wrong. The problem is probably caused by a recent change, a GHC from the HEAD about a week ago works fine... :-( Cheers, S.

This should be fixed now. The fastest way to a working installation is to simply update the toplevel "mk" directory, remove all "package.conf.installed" files, and do a "make install". Cheers, S.
participants (2)
-
Alson Kemp
-
Sven Panne