Hi,
I am trying to get GHC 6.5 to compile on Mac OS X and I am not having
much success. I managed to get the CVS version to build without any
problems on my linux machine, and when I followed the same steps to
complie on my mac I get errors.
Here are the steps I followed on my mac
autoreconf
./configure
make
I am using Happy version 1.14
alex version 2.0.1
I also tried 2 different builds, one using gcc 3.3 and the other
using gcc 4.0
With gcc 4.0 I get the following error:
------------------------------------------------------------------------
==fptools== make all - --no-print-directory -r;
in /Users/chrisbrown/fptools/ghc/utils/hsc2hs
------------------------------------------------------------------------
/usr/local/bin//ghc -H16m -O -i../../lib/compat -ignore-package Cabal
-Rghc-timing -Wall -c Main.hs -o Main.o -ohi Main.hi
/tmp/ghc7100.s:unknown:Undefined local symbol L___DISCARD__$stuc
<>
make[3]: *** [Main.o] Error 1
make[2]: *** [all] Error 1
make[1]: *** [all] Error 1
make: *** [build] Error 1
dhcp293e:~/fptools chrisbrown$
And with gcc 3.3 I get:
/usr/local/bin//ghc -H16m -O -istage1/utils -istage1/basicTypes -
istage1/types -istage1/hsSyn -istage1/prelude -istage1/rename -
istage1/typecheck -istage1/deSugar -istage1/coreSyn -istage1/
specialise -istage1/simplCore -istage1/stranal -istage1/stgSyn -
istage1/simplStg -istage1/codeGen -istage1/main -istage1/
profiling -istage1/parser -istage1/cprAnalysis -istage1/
ndpFlatten -istage1/iface -istage1/cmm -istage1/nativeGen -Istage1
-cpp -fglasgow-exts -fno-generics -Rghc-timing -I. -IcodeGen -
InativeGen -Iparser -package unix -ignore-package lang -recomp -Rghc-
timing -H16M '-#include "hschooks.h"' -i../lib/compat -ignore-
package Cabal -c deSugar/Desugar.lhs -o stage1/deSugar/Desugar.o -
ohi stage1/deSugar/Desugar.hi
/tmp/ghc7343.s:unknown:Undefined local symbol L___DISCASD__$stub
<>
make[2]: *** [stage1/deSugar/Desugar.o] Error 1
make[1]: *** [all] Error 1
make: *** [build] Error 1
dhcp293e:~/fptools chrisbrown$ gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1809)
dhcp293e:~/fptools chrisbrown$
These error messages seem to be non-deterministic. I am running Mac
OS X 10.4.1 with 1 gig RAM.
Cheers,
Chris.
Christopher Brown
Ph.D. Student University of Kent. UK.
http://www.cs.kent.ac.uk/people/rpg/cmb21/index.html