
Hi,
I tried to build GHC "stable" on my two computers, a PowerBook G4 and
a MacBook, both running 10.5.2. This is the first time I've ever
tried, so I'm somewhat clueless about a lot of it. I went with the
basic instructions (./configure; make) with no 'mk/build.mk' and no
configure options other than '--prefix'.
On each system, I ran into a different error, though both point to the
linker, 'ld'. The PowerBook failure looks similar to ticket #1958 [1];
however, it doesn't appear to be building parsec at that point. I
gather that it's building stage1 due to the "-o
stage1/ghc-6.8.2.20080213".
The MacBook build apparently completed stage1 and failed in trying to
build stage2 (i.e. "-o stage2/ghc-inplace").
I have included snippets below from the output of each build. I
thought it might be useful to share and see if these are already known
problems with/without workarounds. Also, I'm willing to help
debug/test if there's anything specific you want me to try. Otherwise,
I'll probably fiddle with the 'mk/build.mk' (as discussed in [1] and
[2]) and/or changing which linker is used.
Additionally, I have a somewhat unrelated question. What's the
different between ghc-stable [3] and ghc-6.8 [4]?
Thanks,
Sean
[1] http://hackage.haskell.org/trac/ghc/ticket/1958
[2] http://hackage.haskell.org/trac/ghc/wiki/Building/Hacking
[3] http://darcs.haskell.org/ghc-stable/
[4] http://darcs.haskell.org/ghc-6.8/
------------------------------------------------
PPC build output
------------------------------------------------
/usr/local/ghc-6.8.2-ppc-tiger/bin/ghc -o stage1/ghc-6.8.2.20080213
-H16m -O -istage1/utils -istage1/basicTypes -istage1/types
-istage1/hsSyn -istage1/prelude -istage1/rename -istage1/typecheck
-istage1/deSugar -istage1/coreSyn -istage1/vectorise
-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
-Wall -fno-warn-name-shadowing -fno-warn-orphans -Istage1 -cpp
-fglasgow-exts -fno-generics -Rghc-timing -I. -Iparser -package unix
-ignore-package lang -recomp -Rghc-timing -H16M '-#include
"cutils.h"' -DUSING_COMPAT -i../compat -ignore-package Cabal -package
directory -package pretty -package containers -L../compat
-lghccompat -no-link-chk stage1/basicTypes/BasicTypes.o
stage1/basicTypes/DataCon.o <snip>
collect2: ld terminated with signal 10 [Bus error]
<