Re: GHC 6.5 on Mac Os X
Chris Brown [EMAIL PROTECTED] writes: ld: Undefined symbols: _TypeRep_AClass_stauic_info I have noticed that there are spelling mistakes in these error messages. _TypeRep_AClass_stauic_info should be _TypeRep_AClass_static_info Earlier there was something with DISCASD instead of DISCARD If you are cutting and pasting these error messages (rather than typing them by hand), then this strongly suggests a faulty low bit in memory. Regards, Malcolm ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: GHC 6.5 on Mac Os X
On 28-Mar-06, at 4:52 AM, Simon Marlow wrote: 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. We went through that off-list on the weekend. Perl really seems to be misbehave in a strange, non-deterministic way on Christopher's machine. I, too, suspect a strange hardware problem, but the fact is that I am clueless. Did you know that the Catholic Church still has trained exorcists? Cheers, Wolfgang ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: GHC 6.5 on Mac Os X
Hi, I have managed to get through stage1 of the compilation - but now I get link errors! ... TcTyDecls.o stage1/typecheck/TcType.o stage1/typecheck/TcUnify.o stage1/types/Class.o stage1/types/FunDeps.o stage1/types/ Generics.o stage1/types/InstEnv.o stage1/types/Kind.o stage1/types/ TyCon.o stage1/types/Type.o stage1/types/TypeRep.o stage1/types/ Unify.o stage1/utils/Bag.o stage1/utils/Binary.o stage1/utils/ BitSet.o stage1/utils/BufWrite.o stage1/utils/Digraph.o stage1/ utils/Encoding.o stage1/utils/FastMutInt.o stage1/utils/ FastString.o stage1/utils/FastTypes.o stage1/utils/FiniteMap.o stage1/utils/IOEnv.o stage1/utils/ListSetOps.o stage1/utils/ Maybes.o stage1/utils/OrdList.o stage1/utils/Outputable.o stage1/ utils/Panic.o stage1/utils/Pretty.o stage1/utils/StringBuffer.o stage1/utils/UniqFM.o stage1/utils/UniqSet.o stage1/utils/Util.o stage1/parser/hschooks.o ld: Undefined symbols: _TypeRep_AClass_stauic_info ghc: 13296096 bytes, 3 GCs, 166208/166208 avg/max bytes residency (1 samples), 15M in use, 0.10 INIT (0.00 elapsed), 0.06 MUT (3.31 elapsed), 0.04 GC (0.04 elapsed) :ghc make: *** [stage1/ghc-6.5.20060117] Error 1 Could this also have something todo with the mangler? Chris. On 29 Mar 2006, at 20:01, Wolfgang Thaller wrote: On 28-Mar-06, at 4:52 AM, Simon Marlow wrote: 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. We went through that off-list on the weekend. Perl really seems to be misbehave in a strange, non-deterministic way on Christopher's machine. I, too, suspect a strange hardware problem, but the fact is that I am clueless. Did you know that the Catholic Church still has trained exorcists? Cheers, Wolfgang ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: GHC 6.5 on Mac Os X
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