Building GHC on Mac OS 10.2.1
Thorkil Naur
naur at post11.tele.dk
Sat Dec 30 18:26:11 EST 2006
Hello,
Sometimes, ghc complains about '#' for me when the C preprocessor has not been
run and there is an unexpected #include or #define in the way. Also, as I
read
ifeq "$(ghc_ge_603)" "YES"
# These modules are provided in GHC 6.3+
EXCLUDED_SRCS += \
System/Directory/Internals.hs
...
endif
in compat/Makefile, the particular compilation that you are stuck on here
should be excluded if you were using ghc-6.3 or newer. I am using a ghc-6.4.1
and building ghc-6.6 does not involve building
compat/System/Directory/Internals.o.
Best regards
Thorkil
On Saturday 30 December 2006 07:56, Kirsten Chevalier wrote:
> The latest is that while I was able to successfully install gcc 3.3,
> it made no difference at all. I was able to make some progress by
> running configure with --disable-threaded-rts. But, now I get:
>
> ------------------------------------------------------------------------
> == make boot -r;
> in /Users/krc/ghc-head/ghc/compat
> ------------------------------------------------------------------------
> ../utils/mkdependC/mkdependC -f .depend -I. -Iinclude -I../includes
> -- -O -I. -Iinclude -D__GHC_PATCHLEVEL__=1 -I../libraries/base/cbits
> -I../libraries/base/include --\
> cbits/directory.c cbits/rawSystem.c cbits/unicode.c
> /usr/local/bin/ghc -M -optdep-f -optdep.depend -osuf o -H16m -O
> -I. -Iinclude -Rghc-timing -I../libraries -fglasgow-exts -no-recomp
> Compat/Directory.hs Compat/RawSystem.h\
> s Compat/Unicode.hs Distribution/Compat/FilePath.hs
> Distribution/Compat/ReadP.hs Distribution/Compiler.hs
> Distribution/GetOpt.hs Distribution/InstalledPackageInfo.hs Distribu\
> tion/License.hs Distribution/Package.hs Distribution/ParseUtils.hs
> Distribution/Version.hs Language/Haskell/Extension.hs
> System/Directory/Internals.hs
> <<ghc: 8975060 bytes, 3 GCs, 9280/9280 avg/max bytes residency (1
> samples), 15M in use, 0.02 INIT (0.01 elapsed), 0.13 MUT (0.95
> elapsed), 0.03 GC (0.05 elapsed) :ghc>>
> make all
> /usr/local/bin/ghc -H16m -O -I. -Iinclude -Rghc-timing -I../libraries
> -fglasgow-exts -no-recomp -c System/Directory/Internals.hs -o
> System/Directory/Internals.o -ohi Sys\
> tem/Directory/Internals.hi
> System/Directory/Internals.hs:1: parse error on input `#'
> <<ghc: 5250952 bytes, 3 GCs, 5688/5688 avg/max bytes residency (1
> samples), 16M in use, 0.02 INIT (0.02 elapsed), 0.06 MUT (0.22
> elapsed), 0.04 GC (0.05 elapsed) :ghc>>
> make[2]: *** [System/Directory/Internals.o] Error 1
> make[1]: *** [boot] Error 2
> make: *** [stage1] Error 1
>
> My /usr/local/bin/ghc is ghc 6.0.1, which... *should* recognize
> OPTIONS (or any other pragma), right? Various documentation claims you
> should be able to bootstrap with anything newer than 5.0.4. I'm not
> *entirely* sure where the existing old version of ghc I have installed
> came from. But I think it's a standard build. Can anyone tell what's
> up? I've built ghc I-don't-know-how-many-times now and I'm *still*
> mystified by this.
>
> Thanks,
> Kirsten
>
> --
> Kirsten Chevalier* chevalier at alum.wellesley.edu *Often in error, never in
doubt
> "Of the seven deadly sins, lust is definitely the pick of the litter."
> -- Tom Robbins
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>
More information about the Glasgow-haskell-users
mailing list