Rebuilding GHC on Mac OSX PPC

Joel Reymont joelr1 at gmail.com
Thu Jul 27 07:56:49 EDT 2006


On Jul 27, 2006, at 9:53 AM, Simon Marlow wrote:

> You need to use -r ghc-6-4-branch when checking out, sorry about that.

Ok, so I did  cvs co -r ghc-6-4-branch <ghc, hslibs, etc.>. My build  
failed after an hour.

/usr/bin/ld: warning multiple definitions of symbol _UP
/opt/local/lib/libreadline.5.dylib(terminal.so) definition of _UP
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libncurses.dylib 
(lib_termcap.o) definition of _UP
/usr/bin/ld: warning multiple definitions of symbol _BC
/opt/local/lib/libreadline.5.dylib(terminal.so) definition of _BC
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libncurses.dylib 
(lib_termcap.o) definition of _BC
/usr/bin/ld: warning multiple definitions of symbol _PC
/opt/local/lib/libreadline.5.dylib(terminal.so) definition of _PC
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libncurses.dylib 
(lib_tputs.o) definition of _PC
/usr/bin/ld: Undefined symbols:
_allocateExec

Full output:

/opt/local/bin/ghc -o stage1/ghc-6.4.2 -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/ 
compMan  -istage1/ndpFlatten  -istage1/iface  -istage1/cmm  -istage1/ 
nativeGen  -istage1/ghci -Istage1 -DGHCI -package template-haskell - 
threaded -package readline -DUSE_READLINE -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    -L../lib/ 
compat -lghccompat -no-link-chk    stage1/basicTypes/BasicTypes.o   
stage1/basicTypes/DataCon.o  stage1/basicTypes/Demand.o  stage1/ 
basicTypes/FieldLabel.o  stage1/basicTypes/Id.o  stage1/basicTypes/ 
IdInfo.o  stage1/basicTypes/Literal.o  stage1/basicTypes/MkId.o   
stage1/basicTypes/Module.o  stage1/basicTypes/Name.o  stage1/ 
basicTypes/NameEnv.o  stage1/basicTypes/NameSet.o  stage1/basicTypes/ 
NewDemand.o  stage1/basicTypes/OccName.o  stage1/basicTypes/ 
RdrName.o  stage1/basicTypes/SrcLoc.o  stage1/basicTypes/ 
UniqSupply.o  stage1/basicTypes/Unique.o  stage1/basicTypes/Var.o   
stage1/basicTypes/VarEnv.o  stage1/basicTypes/VarSet.o  stage1/cmm/ 
CLabel.o  stage1/cmm/Cmm.o  stage1/cmm/CmmLex.o  stage1/cmm/ 
CmmLint.o  stage1/cmm/CmmParse.o  stage1/cmm/CmmUtils.o  stage1/cmm/ 
MachOp.o  stage1/cmm/PprC.o  stage1/cmm/PprCmm.o  stage1/codeGen/ 
Bitmap.o  stage1/codeGen/CgBindery.o  stage1/codeGen/CgCallConv.o   
stage1/codeGen/CgCase.o  stage1/codeGen/CgClosure.o  stage1/codeGen/ 
CgCon.o  stage1/codeGen/CgExpr.o  stage1/codeGen/CgForeignCall.o   
stage1/codeGen/CgHeapery.o  stage1/codeGen/CgInfoTbls.o  stage1/ 
codeGen/CgLetNoEscape.o  stage1/codeGen/CgMonad.o  stage1/codeGen/ 
CgParallel.o  stage1/codeGen/CgPrimOp.o  stage1/codeGen/CgProf.o   
stage1/codeGen/CgStackery.o  stage1/codeGen/CgTailCall.o  stage1/ 
codeGen/CgTicky.o  stage1/codeGen/CgUtils.o  stage1/codeGen/ 
ClosureInfo.o  stage1/codeGen/CodeGen.o  stage1/codeGen/SMRep.o   
stage1/compMan/CompManager.o  stage1/coreSyn/CoreFVs.o  stage1/ 
coreSyn/CoreLint.o  stage1/coreSyn/CorePrep.o  stage1/coreSyn/ 
CoreSubst.o  stage1/coreSyn/CoreSyn.o  stage1/coreSyn/CoreTidy.o   
stage1/coreSyn/CoreUnfold.o  stage1/coreSyn/CoreUtils.o  stage1/ 
coreSyn/ExternalCore.o  stage1/coreSyn/MkExternalCore.o  stage1/ 
coreSyn/PprCore.o  stage1/coreSyn/PprExternalCore.o  stage1/ 
cprAnalysis/CprAnalyse.o  stage1/deSugar/Check.o  stage1/deSugar/ 
Desugar.o  stage1/deSugar/DsArrows.o  stage1/deSugar/DsBinds.o   
stage1/deSugar/DsCCall.o  stage1/deSugar/DsExpr.o  stage1/deSugar/ 
DsForeign.o  stage1/deSugar/DsGRHSs.o  stage1/deSugar/DsListComp.o   
stage1/deSugar/DsMeta.o  stage1/deSugar/DsMonad.o  stage1/deSugar/ 
DsUtils.o  stage1/deSugar/Match.o  stage1/deSugar/MatchCon.o  stage1/ 
deSugar/MatchLit.o  stage1/ghci/ByteCodeAsm.o  stage1/ghci/ 
ByteCodeFFI.o  stage1/ghci/ByteCodeGen.o  stage1/ghci/ 
ByteCodeInstr.o  stage1/ghci/ByteCodeItbls.o  stage1/ghci/ 
ByteCodeLink.o  stage1/ghci/InteractiveUI.o  stage1/ghci/Linker.o   
stage1/ghci/ObjLink.o  stage1/hsSyn/Convert.o  stage1/hsSyn/ 
HsBinds.o  stage1/hsSyn/HsDecls.o  stage1/hsSyn/HsExpr.o  stage1/ 
hsSyn/HsImpExp.o  stage1/hsSyn/HsLit.o  stage1/hsSyn/HsPat.o  stage1/ 
hsSyn/HsSyn.o  stage1/hsSyn/HsTypes.o  stage1/hsSyn/HsUtils.o  stage1/ 
iface/BinIface.o  stage1/iface/BuildTyCl.o  stage1/iface/IfaceEnv.o   
stage1/iface/IfaceSyn.o  stage1/iface/IfaceType.o  stage1/iface/ 
LoadIface.o  stage1/iface/MkIface.o  stage1/iface/TcIface.o  stage1/ 
main/CmdLineOpts.o  stage1/main/CodeOutput.o  stage1/main/Config.o   
stage1/main/Constants.o  stage1/main/DriverFlags.o  stage1/main/ 
DriverMkDepend.o  stage1/main/DriverPhases.o  stage1/main/ 
DriverPipeline.o  stage1/main/DriverState.o  stage1/main/ 
DriverUtil.o  stage1/main/ErrUtils.o  stage1/main/Finder.o  stage1/ 
main/GetImports.o  stage1/main/HscMain.o  stage1/main/HscStats.o   
stage1/main/HscTypes.o  stage1/main/Main.o  stage1/main/ 
PackageConfig.o  stage1/main/Packages.o  stage1/main/ParsePkgConf.o   
stage1/main/SysTools.o  stage1/main/TidyPgm.o  stage1/nativeGen/ 
AsmCodeGen.o  stage1/nativeGen/MachCodeGen.o  stage1/nativeGen/ 
MachInstrs.o  stage1/nativeGen/MachRegs.o  stage1/nativeGen/ 
NCGMonad.o  stage1/nativeGen/PositionIndependentCode.o  stage1/ 
nativeGen/PprMach.o  stage1/nativeGen/RegAllocInfo.o  stage1/ 
nativeGen/RegisterAlloc.o  stage1/ndpFlatten/FlattenInfo.o  stage1/ 
ndpFlatten/FlattenMonad.o  stage1/ndpFlatten/Flattening.o  stage1/ 
ndpFlatten/NDPCoreUtils.o  stage1/ndpFlatten/PArrAnal.o  stage1/ 
parser/Ctype.o  stage1/parser/LexCore.o  stage1/parser/Lexer.o   
stage1/parser/Parser.o  stage1/parser/ParserCore.o  stage1/parser/ 
ParserCoreUtils.o  stage1/parser/RdrHsSyn.o  stage1/prelude/ 
ForeignCall.o  stage1/prelude/PrelInfo.o  stage1/prelude/PrelNames.o   
stage1/prelude/PrelRules.o  stage1/prelude/PrimOp.o  stage1/prelude/ 
TysPrim.o  stage1/prelude/TysWiredIn.o  stage1/profiling/ 
CostCentre.o  stage1/profiling/SCCfinal.o  stage1/rename/RnBinds.o   
stage1/rename/RnEnv.o  stage1/rename/RnExpr.o  stage1/rename/ 
RnHsSyn.o  stage1/rename/RnNames.o  stage1/rename/RnSource.o  stage1/ 
rename/RnTypes.o  stage1/simplCore/CSE.o  stage1/simplCore/FloatIn.o   
stage1/simplCore/FloatOut.o  stage1/simplCore/LiberateCase.o  stage1/ 
simplCore/OccurAnal.o  stage1/simplCore/SAT.o  stage1/simplCore/ 
SATMonad.o  stage1/simplCore/SetLevels.o  stage1/simplCore/ 
SimplCore.o  stage1/simplCore/SimplEnv.o  stage1/simplCore/ 
SimplMonad.o  stage1/simplCore/SimplUtils.o  stage1/simplCore/ 
Simplify.o  stage1/simplStg/SRT.o  stage1/simplStg/SimplStg.o  stage1/ 
simplStg/StgStats.o  stage1/specialise/Rules.o  stage1/specialise/ 
SpecConstr.o  stage1/specialise/Specialise.o  stage1/stgSyn/ 
CoreToStg.o  stage1/stgSyn/StgLint.o  stage1/stgSyn/StgSyn.o  stage1/ 
stranal/DmdAnal.o  stage1/stranal/SaAbsInt.o  stage1/stranal/SaLib.o   
stage1/stranal/StrictAnal.o  stage1/stranal/WorkWrap.o  stage1/ 
stranal/WwLib.o  stage1/typecheck/Inst.o  stage1/typecheck/ 
TcArrows.o  stage1/typecheck/TcBinds.o  stage1/typecheck/ 
TcClassDcl.o  stage1/typecheck/TcDefaults.o  stage1/typecheck/ 
TcDeriv.o  stage1/typecheck/TcEnv.o  stage1/typecheck/TcExpr.o   
stage1/typecheck/TcForeign.o  stage1/typecheck/TcGenDeriv.o  stage1/ 
typecheck/TcHsSyn.o  stage1/typecheck/TcHsType.o  stage1/typecheck/ 
TcInstDcls.o  stage1/typecheck/TcMType.o  stage1/typecheck/ 
TcMatches.o  stage1/typecheck/TcPat.o  stage1/typecheck/TcRnDriver.o   
stage1/typecheck/TcRnMonad.o  stage1/typecheck/TcRnTypes.o  stage1/ 
typecheck/TcRules.o  stage1/typecheck/TcSimplify.o  stage1/typecheck/ 
TcSplice.o  stage1/typecheck/TcTyClsDecls.o  stage1/typecheck/ 
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/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/PrimPacked.o  stage1/utils/StringBuffer.o   
stage1/utils/UnicodeUtil.o  stage1/utils/UniqFM.o  stage1/utils/ 
UniqSet.o  stage1/utils/Util.o  stage1/parser/hschooks.o
/usr/bin/ld: warning multiple definitions of symbol _UP
/opt/local/lib/libreadline.5.dylib(terminal.so) definition of _UP
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libncurses.dylib 
(lib_termcap.o) definition of _UP
/usr/bin/ld: warning multiple definitions of symbol _BC
/opt/local/lib/libreadline.5.dylib(terminal.so) definition of _BC
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libncurses.dylib 
(lib_termcap.o) definition of _BC
/usr/bin/ld: warning multiple definitions of symbol _PC
/opt/local/lib/libreadline.5.dylib(terminal.so) definition of _PC
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libncurses.dylib 
(lib_tputs.o) definition of _PC
/usr/bin/ld: Undefined symbols:
_allocateExec
collect2: ld returned 1 exit status
<<ghc: 14018200 bytes, 3 GCs, 168628/168628 avg/max bytes residency  
(1 samples), 15M in use, 0.01 INIT (0.00 elapsed), 0.06 MUT (4.22  
elapsed), 0.03 GC (0.05 elapsed) :ghc>>
make[2]: *** [stage1/ghc-6.4.2] Error 1
make[1]: *** [all] Error 1
make: *** [build] Error 1

real    55m0.599s
user    48m57.869s
sys     3m45.973s

--
http://wagerlabs.com/







More information about the Glasgow-haskell-users mailing list