> I am trying to compile the source in the CVS repository for an
> i386-unknown-linux machine. I have compiled GHC-4.00, but as
> I wish to
> work on the new RTS it is specifically this code that I wish
> to compile.
>
> The compilation bombs out with the following error message:
>
> ghc: module version changed to 1; reason: no old .hi file
> ghc -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen
> -InativeGen -Iparser
> -iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSuga
r:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:mai>
n:reader:profiling:parser:nativeGen -recomp -fvia-C -syslib
> misc -DREPORT_TO_MOTHERLODE -c main/Main.lhs -o main/Main.o -osuf o
> ghc: no such system library (-syslib): misc
> 0
> Usage: For basic information, try the `-help' option.
> make[2]: *** [main/Main.o] Error 1
> make[1]: *** [all] Error 1
> make: *** [all] Error 1
You're probably compiling with ghc 2.10 (we recommend 3.02, but 2.10 should
work).
To fix your problem, add the line
GhcReportCompiles = NO
to your build.mk.
Cheers
--
Simon Marlow
Microsoft Research Ltd., Cambridge, U.K.