GHC 4.00 bug

1998-10-13 Thread edward barry jr

The following bug occurred while compiling GHC-4.00 on a Linux
platform, using ghc-3.03, gcc-2.7.3.2

Thanks
Ed
-

ghc-3.03 -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 -O -H32m-c hsSyn/HsDecls.lhs -o hsSyn/HsDecls.o -osuf o

HsDecls.lhs:10: Warning:
Failed to find (optional) interface decl for
`s6CV'
desired at
HsBinds.hi:60

HsDecls.lhs:10: Warning:
Failed to find (optional) interface decl for
`s6CV'
desired at
HsBinds.hi:60

HsDecls.lhs:10: Warning:
Failed to find (optional) interface decl for
`s6CV'
desired at
HsBinds.hi:60


panic! (the `impossible' happened):
tcLookupTyVar: HsBinds.s6CV{-r3qc-}

Please report it as a compiler bug to
[EMAIL PROTECTED]

make[2]: *** [hsSyn/HsDecls.o] Error 1






addendum to problem compilling 4.00/2

1998-10-02 Thread edward barry jr

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





Problem compiling ghc4.00/2

1998-09-29 Thread edward barry jr

Hey there;

The following problem occurred while compiling GHC-4.00/2
on a Linux platform, using ghc-3.02(apr.14 version) and gcc2.7.2.3

Any idea what it means when the compiler can not find the suitable *.hi
file. It is physically there. Viewing PrelMaybe.hi shows no apparent
inconsistencies.

Thanks
Ed Barry


-snip
rm -f PrelMaybe.o ; if [ ! -d PrelMaybe ]; then mkdir PrelMaybe; else
find PrelMaybe -name '*.o' -print | xargs rm -f __rm_food ; fi ;
../../../ghc/driver/ghc -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing
-O -H32m -split-objs -odir PrelMaybe-c PrelMaybe.lhs -o PrelMaybe.o
-osuf o
<>
ghc: module version changed to 1; reason: no old .hi file
touch PrelMaybe.o ;
rm -f PrelList.o ; if [ ! -d PrelList ]; then mkdir PrelList; else find
PrelList -name '*.o' -print | xargs rm -f __rm_food ; fi ;
../../../ghc/driver/ghc -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing
-O -H32m -split-objs -odir PrelList-c PrelList.lhs -o PrelList.o
-osuf o

PrelList.lhs:27: Could not find valid interface file `PrelMaybe'


Compilation had errors
make[3]: *** [PrelList.o] Error 1
make[2]: *** [all] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1





How to read .hc files

1998-05-06 Thread edward barry jr

Hi All;

I seem to recall seeing some documentation on how to read/interpret
generated .hc files.
Simon M. suggested that perhaps I meant how to read a simple dump, but I
thought
the references I am referring to were specific to .hc files.

Any help, where I might have encountered this??

Thanks!!
Ed Barry