Building GHC on Mac OS 10.2.1

Kirsten Chevalier catamorphism at
Sat Dec 30 01:56:06 EST 2006

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
<<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\
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.


Kirsten Chevalier* chevalier at *Often in error, never in doubt
"Of the seven deadly sins, lust is definitely the pick of the litter."
-- Tom Robbins

More information about the Glasgow-haskell-users mailing list