Christopher Brown wrote:

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
<<ghc: 795261768 bytes, 1901 GCs, 10806254/16691432 avg/max bytes residency (10 samples), 46M in use, 0.10 INIT (0.00 elapsed), 9.72 MUT (42.51 elapsed), 7.31 GC (9.09 elapsed) :ghc>>
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
<<ghc: 137823188 bytes, 39 GCs, 5163380/11942184 avg/max bytes residency (4 samples), 23M in use, 0.10 INIT (0.00 elapsed), 1.56 MUT (4.83 elapsed), 1.01 GC (1.29 elapsed) :ghc>>
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.

This seems very strange indeed - I immediately suspect something odd with your hardware. Try swapping out RAM, if you can.

Strange that it only seems to affect Perl (Perl is running the mangler that generates that .s file). I suppose it's possible there could be something strange with your Perl - maybe try replacing that?

If you run GHC with -keep-tmp-files, you can capture the erroneous .s file for later inspection; that might give us more clues.

Cheers,
        Simon
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to