error building GHC Head

Greg Weber greg at gregweber.info
Thu Sep 15 06:11:16 CEST 2011


I just cloned GHC from github and tried to build it for the first time. I
get the below result where the build tool says that existing object files
are missing. I haven't touched a Makefile in a long time- help here is very
appreciated.

===--- building final phase
make -r --no-print-directory -f ghc.mk phase=final all
"inplace/bin/ghc-stage1"   -H32m -O    -package-name ghc-prim-0.2.0.0
-hide-all-packages -i -ilibraries/ghc-prim/.
-ilibraries/ghc-prim/dist-install/build
-ilibraries/ghc-prim/dist-install/build/autogen
-Ilibraries/ghc-prim/dist-install/build
-Ilibraries/ghc-prim/dist-install/build/autogen -Ilibraries/ghc-prim/.
 -optP-include
-optPlibraries/ghc-prim/dist-install/build/autogen/cabal_macros.h -package
rts-1.0 -split-objs -package-name ghc-prim -XHaskell98 -XCPP -XMagicHash
-XForeignFunctionInterface -XUnliftedFFITypes -XUnboxedTuples
-XEmptyDataDecls -XNoImplicitPrelude -O2 -no-user-package-conf -rtsopts
-odir libraries/ghc-prim/dist-install/build -hidir
libraries/ghc-prim/dist-install/build -stubdir
libraries/ghc-prim/dist-install/build -hisuf hi -osuf  o -hcsuf hc -c
libraries/ghc-prim/./GHC/CString.hs -o
libraries/ghc-prim/dist-install/build/GHC/CString.o
/usr/bin/ld: error: cannot find
libraries/ghc-prim/dist-install/build/GHC/CString_o_split/CString__1.o
/usr/bin/ld: error: cannot find
libraries/ghc-prim/dist-install/build/GHC/CString_o_split/.o::CString(void)
/usr/bin/ld: error: cannot find
libraries/ghc-prim/dist-install/build/GHC/CString_o_split/CString__3.o
/usr/bin/ld: error: cannot find
libraries/ghc-prim/dist-install/build/GHC/CString_o_split/CString__4.o
/usr/bin/ld: error: cannot find
libraries/ghc-prim/dist-install/build/GHC/CString_o_split/CString__5.o
/usr/bin/ld: error: cannot find
libraries/ghc-prim/dist-install/build/GHC/CString_o_split/CString__6.o
collect2: ld returned 1 exit status
make[1]: *** [libraries/ghc-prim/dist-install/build/GHC/CString.o] Error 1
make: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20110914/007776dc/attachment.htm>


More information about the Glasgow-haskell-users mailing list