> I'm trying to build version 4.01 on a Linux pentium, using freshly
> installed binary of 4.01, and I get this error message when running
> a "gmake all"
>
> --------------------------------------------------------------
> ----------
> ==fptools== gmake all --no-print-directory -r;
> in /home/kultarr/year4/mattl/ghc-4.01/ghc/lib/std
> --------------------------------------------------------------
> ----------
> rm -f PrelBase.o ; if [ ! -d PrelBase ]; then mkdir PrelBase;
> else find
> PrelBase -name '*.o' -print | xargs rm -f __rm_food ; fi ;
> ../../../ghc/driver/ghc -recomp -cpp -fglasgow-exts -fvia-C
> -Rghc-timing
> -O -split-objs -odir PrelBase -H10m -i. -c PrelBase.lhs -o
> PrelBase.o
> -osuf o
>
> PrelBase.lhs:18: Could not find valid interface file `PrelErr'
>
> PrelBase.lhs:18: Module `PrelErr' does not export `error'
>
> PrelBase.lhs:19: Could not find valid interface file `PrelGHC'
This is somewhat of a FAQ - the problem is that you're running a compiler
built on (and for) Linux/libc5, on Linux/libc6.
If your system can build binaries linked against libc5 (I believe the
correct incantation is '-b i486-linux-libc5' to gcc, and don't forget to add
'-optc' before each option for ghc) then you need to do that when building
the hsc binary in ghc/compiler. I didn't have any luck doing this myself; I
think our system here doesn't have enough bits installed.
Alternatively you could download one of the RPM packages kindly provided by
Manuel Chakravarty (check out the GHC download page:
http://www.dcs.gla.ac.uk/fp/software/ghc/download.html) which are compiled
against libc6.
Cheers,
Simon
--
Simon Marlow
Microsoft Research Ltd., Cambridge, U.K.