
You have to build the libraries before you build stage2. (the stage2
compiler relies on the libraries!) Just sit in the root directory of
the tree (just above libraries/ and compiler/) and type 'make'.
The library error message was a compiler bug, fixed yesterday. It should
work now.
Simon
| -----Original Message-----
| From: glasgow-haskell-users-bounces@haskell.org
[mailto:glasgow-haskell-users-
| bounces@haskell.org] On Behalf Of David Kirkman
| Sent: 09 August 2006 01:37
| To: glasgow-haskell-users@haskell.org
| Subject: Building GHC on OS X
|
| Hi,
|
| I've been using ghc on Mac OS X for a while now, so when I noticed
| Simon Marlow's call (made last month, but I just noticed it) for
people
| to help with OS X, I thought, why not?
|
| Well, it turns out that I can't even build ghc, so I'm not likely to
| end up being much help. But it would be nice to at least be able to
| build the thing, so if anybody can help me...
|
| I'm trying to build GHC (6.5.?? ... version from darcs.haskell.org as
| of yesterday) on Mac OS X (10.4.7 ppc) bootstrapping from ghc 6.4.2
| and gcc 4.0.1.
|
| "./configure; make" does not work. On my initial try, I ran into the
| UNDO_DELETE, etc problems associated with Darwin's partial readline
| support described in ticket #766. The fix suggested in that ticket
| seems to work fine, but not until I installed the GNU readline
library.
| (If the change to detect the broken Darwin readline is in the
| repository,
| it did not work for me).
|
| After fixing the readline problem, it looks like I can build at least
| part of the stage1 compiler -- but the build fails just after starting
| to build stage2. The final error is:
|
| > ../compiler/ghc-inplace -H32m -O0 -W -fno-warn-unused-matches -
| fwarn-unused-imports -istage2/utils -istage2/basicTypes -istage2/
| types -istage2/hsSyn -istage2/prelude -istage2/rename -istage2/
| typecheck -istage2/deSugar -istage2/coreSyn -istage2/specialise -
| istage2/simplCore -istage2/stranal -istage2/stgSyn -istage2/
| simplStg -istage2/codeGen -istage2/main -istage2/profiling -
| istage2/parser -istage2/cprAnalysis -istage2/ndpFlatten -istage2/
| iface -istage2/cmm -istage2/nativeGen -istage2/ghci -Istage2 -
| DGHCI -DBREAKPOINT -package template-haskell -threaded -cpp -fglasgow-
| exts -fno-generics -Rghc-timing -I. -IcodeGen -InativeGen -Iparser -
| package unix -package Cabal -ignore-package lang -recomp -Rghc-timing
| -DDEBUG -H16M '-#include "hschooks.h"' -package-name ghc-6.5 -
| fgenerics -O -c utils/FastString.lhs -o stage2/utils/FastString.o -
| ohi stage2/utils/FastString.hi
| >
| > utils/FastString.lhs:73:0:
| > Failed to load interface for `GHC.Exts':
| > Could not find module `GHC.Exts':
| > use -v to see a list of the files searched for
| > <