Hey there !
Thought I supply some more info. on the problem.
If I compile ghc-4.00/2 with -O, it will compile hsc, but not
before setting several modules -Onot, and then fails to compile
PrelBase.
If I compile ghc-4.00/2 without -O, it compiles hsc, getting past
PrelBase,
but seems to think that PrelMaybe.hi is not a valid interface file,
needed by
PrelList.lhs where the compilation stops.
GHC-2.10 in incompatable with the build as there is no PrelArr needed by
something in the compiler(I looked, but forget which).
The following are the warnings I get from building the compiler. I not
sure
it will help to find where the problem lies within the compiler.
Later
Ed
---snip-
ghc-3.02 -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen
-Iparser
-iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:reader:profiling:parser:nativeGen
-recomp -H32m -fvia-C -c utils/FastString.lhs -o utils/FastString.o
-osuf o
<>
ghc-3.02: module version changed to 1; reason: no old .hi file
/tmp/ghc20264.hc:823: warning: passing arg 4 of `fwrite' from
incompatible pointer type
/tmp/ghc20264.hc:918: warning: passing arg 4 of `fwrite' from
incompatible pointer type
ghc-3.02 -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen
-Iparser
-iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:reader:profiling:parser:nativeGen
-recomp -H32m-c utils/Outputable.lhs -o utils/Outputable.o -osuf o
<>
ghc-3.02: module version changed to 1; reason: no old .hi file
/tmp/ghc20427.hc:3668: warning: passing arg 2 of `fputc' from
incompatible pointer type
/tmp/ghc20427.hc:3725: warning: passing arg 2 of `fputc' from
incompatible pointer type
/tmp/ghc20427.hc:3852: warning: passing arg 4 of `fwrite' from
incompatible pointer type
ghc-3.02 -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen
-Iparser
-iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:reader:profiling:parser:nativeGen
-recomp -H32m -fvia-C -fno-prune-tydecls -c utils/StringBuffer.lhs -o
utils/StringBuffer.o -osuf o
<>
ghc-3.02: module version changed to 1; reason: no old .hi file
/tmp/ghc21018.hc:2820: warning: passing arg 4 of `fread' from
incompatible pointer type
ghc-3.02 -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen
-Iparser
-iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:reader:profiling:parser:nativeGen
-recomp -H32m-c basicTypes/Demand.lhs -o basicTypes/Demand.o -osuf o
Demand.lhs:105: Warning:
No explicit method nor default method for `readsPrec'
in an instance declaration for `Read'
<>
ghc-3.02: module version changed to 1; reason: no old .hi file
ghc-3.02 -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen
-Iparser
-iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:reader:profiling:parser:nativeGen
-recomp -H32m -K2m -H16m -fvia-C -c reader/Lex.lhs -o reader/Lex.o
-osuf o
ghc-3.02: ignoring heap-size-setting option (-H16m)...not the largest
seen
ghc-3.02: ignoring heap-size-setting option (-H16m)...not the largest
seen
"reader/Lex.lhs":266: _scc_ (`set [profiling] cost centre') ignored
"reader/Lex.lhs":621: _scc_ (`set [profiling] cost centre') ignored
Lex.lhs:157: Warning:
No explicit method nor default method for `showsPrec'
in an instance declaration for `Show'
NOTE: Simplifier still going after 4 iterations; bailing out.
<>
ghc-3.02: module version changed to 1; reason: no old .hi file
ghc-3.02 -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen
-Iparser
-iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:reader:profiling:parser:nativeGen
-recomp -H32m-c absCSyn/Costs.lhs -o absCSyn/Costs.o -osuf o
Costs.lhs:84: Warning:
No explicit method nor default method for `fromInteger'
in an instance declaration for `Num'
NOTE: Simplifier still going after 4 iterations; bailing out.
<>
ghc-3.02: module version changed to 1; reason: no old .hi file