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: 171185256 bytes, 15 GCs, 1843508/1843508 avg/max bytes residency
(1 samples), 0.01 INIT (0.00 elapsed), 9.64 MUT (9.90 elapsed), 2.65 GC
(2.86 elapsed) :ghc>>
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: 184785080 bytes, 16 GCs, 1801688/1801688 avg/max bytes residency
(1 samples), 0.02 INIT (0.01 elapsed), 10.19 MUT (10.45 elapsed), 2.71
GC (3.01 elapsed) :ghc>>
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: 112945276 bytes, 8 GCs, 0/0 avg/max bytes residency (0 samples),
0.01 INIT (0.00 elapsed), 6.36 MUT (6.67 elapsed), 1.16 GC (1.32
elapsed) :ghc>>
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: 80551268 bytes, 5 GCs, 0/0 avg/max bytes residency (0 samples),
0.01 INIT (0.01 elapsed), 4.61 MUT (4.86 elapsed), 0.59 GC (0.66
elapsed) :ghc>>
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: 481373280 bytes, 53 GCs, 4386282/4428728 avg/max bytes residency
(4 samples), 0.02 INIT (0.00 elapsed), 25.19 MUT (25.64 elapsed), 11.35
GC (11.52 elapsed) :ghc>>
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: 153838792 bytes, 14 GCs, 1575260/1575260 avg/max bytes residency
(1 samples), 0.02 INIT (0.00 elapsed), 8.70 MUT (9.06 elapsed), 2.18 GC
(2.43 elapsed) :ghc>>
ghc-3.02: module version changed to 1; reason: no old .hi file