Re-compiling wired-in packages
astrohavoc at gmail.com
Tue Apr 25 11:30:44 UTC 2017
> I did just that recently, see
> for how I did it, in particular boot.sh.
Thank you for your work! I looked at boot.sh, and tried the "ghc Setup.hs
&& ./Cabal" approach. It works for ghc-prim & integer-simple, but not base.
Since porting gmp to my target platform is hard, I chose integer-simple,
and "./Cabal build" produces the following error message for base:
Preprocessing library for base-184.108.40.206..
Building library for base-220.127.116.11..
[ 1 of 238] Compiling GHC.IO[boot] ( GHC/IO.hs-boot,
[ 2 of 238] Compiling GHC.Stack.Types ( GHC/Stack/Types.hs,
Bad interface file:
Something is amiss; requested module
integer-simple-0.1.1.1:GHC.Integer differs from name found in the
interface file integer-simple:GHC.Integer (if these names look the same,
try again with -dppr-debug)
57 | import GHC.Integer ()
The compilation for integer-simple didn't produce error, and it is properly
registered by ghc-pkg, so I've no idea why there's a bad interface file. Do
you have any ideas on possible causes? Thanks a lot.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ghc-devs