<div dir="ltr">Dear devs,<br><br>I&#39;m getting this build error when compiling GHC:<br><br>&quot;inplace/bin/ghc-stage1&quot; -hisuf hi -osuf&nbsp; o -hcsuf hc -static&nbsp; -H64m -O0 -fasm&nbsp;&nbsp;&nbsp; -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/.&nbsp;&nbsp;&nbsp; -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&nbsp; -no-user-package-db -rtsopts&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -odir libraries/ghc-prim/dist-install/build -hidir libraries/ghc-prim/dist-install/build -stubdir libraries/ghc-prim/dist-install/build&nbsp; -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>&nbsp;&nbsp;&nbsp; Failed to load interface for &#8219;GHC.Base&rsquo;<br>&nbsp;&nbsp;&nbsp; There are files missing in the &#8219;base&rsquo; package,<br>&nbsp;&nbsp;&nbsp; try running &#39;ghc-pkg check&#39;.<br>&nbsp;&nbsp;&nbsp; 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 &amp;&amp; ./configure &amp;&amp; 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>&quot;/home/dan/code/ghc/inplace/bin/ghc-pkg&quot; update --force&nbsp; libraries/base/dist-install/inplace-pkg-config<br>Reading package info from &quot;libraries/base/dist-install/inplace-pkg-config&quot; ... done.<br>

base-4.7.0.0: Warning: haddock-interfaces: /home/dan/code/ghc/libraries/base/dist-install/doc/html/base/base.haddock doesn&#39;t exist or isn&#39;t a file<br>base-4.7.0.0: cannot find any of [&quot;Control/Applicative.hi&quot;,&quot;Control/Applicative.p_hi&quot;,&quot;Control/Applicative.dyn_hi&quot;] (ignoring)<br>

...<br>base-4.7.0.0: cannot find any of [&quot;GHC/Base.hi&quot;,&quot;GHC/Base.p_hi&quot;,&quot;GHC/Base.dyn_hi&quot;] (ignoring)<br><br>Maybe this is related? I don&#39;t know if these ignores are expected.<br><br>I&#39;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&#39;m using the &quot;quick&quot; build flavour, but I&#39;ve also tried adding <br>

<br>DYNAMIC_BY_DEFAULT=NO<br>DYNAMIC_GHC_PROGRAMS=NO<br><br>before GhcLibWays&#39; 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>