<div dir="ltr">Dear devs,<br><br>I'm getting this build error when compiling GHC:<br><br>"inplace/bin/ghc-stage1" -hisuf hi -osuf o -hcsuf hc -static -H64m -O0 -fasm -package-name ghc-prim-0.3.1.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 -package-name ghc-prim -XHaskell98 -XCPP -XMagicHash -XForeignFunctionInterface -XUnliftedFFITypes -XUnboxedTuples -XEmptyDataDecls -XNoImplicitPrelude -O -fasm -no-user-package-db -rtsopts -odir libraries/ghc-prim/dist-install/build -hidir libraries/ghc-prim/dist-install/build -stubdir libraries/ghc-prim/dist-install/build -dynamic-too -c libraries/ghc-prim/./GHC/Types.hs -o libraries/ghc-prim/dist-install/build/GHC/Types.o -dyno libraries/ghc-prim/dist-install/build/GHC/Types.dyn_o<br>
<br>libraries/ghc-prim/GHC/Types.hs:1:1:<br> Failed to load interface for ‛GHC.Base’<br> There are files missing in the ‛base’ package,<br> try running 'ghc-pkg check'.<br> Use -v to see a list of the files searched for.<br>
make[1]: *** [libraries/ghc-prim/dist-install/build/GHC/Types.o] Error 1<br><br>I uploaded a full log of (perl boot && ./configure && make) here: <a href="http://www.cse.chalmers.se/~danr/log">http://www.cse.chalmers.se/~danr/log</a> (3MB)<br>
<br>At lines 2515- I can see this:<br><br>"/home/dan/code/ghc/inplace/bin/ghc-pkg" update --force libraries/base/dist-install/inplace-pkg-config<br>Reading package info from "libraries/base/dist-install/inplace-pkg-config" ... done.<br>
base-4.7.0.0: Warning: haddock-interfaces: /home/dan/code/ghc/libraries/base/dist-install/doc/html/base/base.haddock doesn't exist or isn't a file<br>base-4.7.0.0: cannot find any of ["Control/Applicative.hi","Control/Applicative.p_hi","Control/Applicative.dyn_hi"] (ignoring)<br>
...<br>base-4.7.0.0: cannot find any of ["GHC/Base.hi","GHC/Base.p_hi","GHC/Base.dyn_hi"] (ignoring)<br><br>Maybe this is related? I don't know if these ignores are expected.<br><br>I've tried cloning the repo from <a href="http://git.haskell.org/ghc.git">http://git.haskell.org/ghc.git</a> and the github mirror, I'm using the "quick" build flavour, but I've also tried adding <br>
<br>DYNAMIC_BY_DEFAULT=NO<br>DYNAMIC_GHC_PROGRAMS=NO<br><br>before GhcLibWays' definition in mk/<a href="http://build.mk">build.mk</a> without success.<br><br>Any ideas what could be wrong?<br><br>Thanks,<br>Dan<br></div>