I am trying to get GHC, with the latest PrimOps.h fix, to compile with gcc 2.95 on
Sparc
Solaris. I now have an hsc but it doesn't get very far with compiling the standard
library
because when it gets to PrelEnum.lhs, it complains that
../../../ghc/driver/ghc -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing -O
-split-objs -odir PrelEnum -H20m -fcompiling-prelude -static -H30m -c PrelEnum.lhs
-o PrelEnum.o -osuf o
ghc: ignoring heap-size-setting option (-H20m)...not the largest seen
PrelEnum.lhs:12:
Could not find valid [boot] interface file `PrelList'
[ consequential error messages snipped]
If I sneakily try to rename PrelList.hi (which hsc just generated) to PrelList.hi-boot
I get a
different message:
../../../ghc/driver/ghc -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing -O
-split-objs -odir PrelEnum -H20m -fcompiling-prelude -static -H30m -c PrelEnum.lhs
-o PrelEnum.o -osuf o
ghc: ignoring heap-size-setting option (-H20m)...not the largest seen
PrelEnum.lhs:12:
PrelList.hi-boot:56 Interface file parse error; on input ` k_a1vz '
PrelEnum.lhs:12:
Could not find valid [boot] interface file `PrelList'
What is going on? It would be nice if I could at last stop using a prehistoric
version of
GCC . . .
Attached is PrelList.hi
PrelList.hi