Title: Message
Yes, I fixed this a week or two ago.  You need to 'cvs update'.
The cvs commit logs should show which commit fixed it if you want
to just grab the patch.
 
Simon
-----Original Message-----
From: Mike Thomas [mailto:[EMAIL PROTECTED]]
Sent: 12 May 2002 10:29
To: [EMAIL PROTECTED]
Subject: stgSyn/CoreToStg.lhs:1112: Couldn't match `#' against `*'

Hi there.
 
While building current CVS GHC under Windows with a CVS version of GHC from 26 April I get the error at the end of this message (short extract here):
 
----------------------------------------------------------------------------------------------
stgSyn/CoreToStg.lhs:1112:
    Couldn't match `#' against `*'
    When matching types `GHC.Prim.Int#' and `a'
 Expected type: GHC.Prim.Int#
 Inferred type: a
    In the application `error ("cafRefs " ++ (showSDoc (ppr id)))'
----------------------------------------------------------------------------------------------
 
I modified the file to "import Err" and passed a "-i" command line option to get the compiler to see "err.hi-boot" in "libraries/base/GHC", but now I get (details at end of the email):
 
----------------------------------------------------------------------------------------------
stgSyn/CoreToStg.lhs:18:
    Something is amiss; requested module name Err differs from name found in the
 interface file GHC.Err
----------------------------------------------------------------------------------------------
 
Is there an easy way around this (bootstrap?) problem?
 
I would also like some advice about how to interpret the initial error message about "#" and "*" if someone can point me in the right direction in the documentation.
 
 
Cheers
 
Mike Thomas
 
------------------------------------------------------------------------------------------------------------------
/cygdrive/f/lang/ghc/ghcnl/bin/ghc -DGHCI -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:profiling:parser:usageSP:cprAnalysis:compMan:ndpFlatten:nativeGen:ghci  -package concurrent -package util -recomp -Rghc-timing -H16M '-#include "hschooks.h"' -O    -c stgSyn/CoreToStg.lhs -o stgSyn/CoreToStg.o
 

stgSyn/CoreToStg.lhs:1112:
 
    Couldn't match `#' against `*'
 
    When matching types `GHC.Prim.Int#' and `a'
 
 Expected type: GHC.Prim.Int#
 
 Inferred type: a
 
    In the application `error ("cafRefs " ++ (showSDoc (ppr id)))'
 
<<ghc: 147694784 bytes, 78 GCs, 6234233/15873980 avg/max bytes residency (5 samples), 30M in use, 0.02 INIT (0.02 elapsed), 11.42 MUT (12.32 elapsed), 8.20 GC (8.37 elapsed) :ghc>>
 
make[2]: *** [stgSyn/CoreToStg.o] Error 1
make[1]: *** [all] Error 1
make[1]: Leaving directory `/e/cvs/fptools/ghc'
make: *** [all] Error 1
 
----------------------------------------------------------------------------------------------------------------------------
/cygdrive/f/lang/ghc/ghcnl/bin/ghc -DGHCI -cpp -fglasgow-exts -Rghc-timing -I. -
IcodeGen -InativeGen -Iparser -i"e:/cvs/fptools/libraries/base/GHC" -iutils:basi
cTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore
:stranal:stgSyn:simplStg:codeGen:absCSyn:main:profiling:parser:usageSP:cprAnalys
is:compMan:ndpFlatten:nativeGen:ghci  -package concurrent -package util -recomp
-Rghc-timing -H16M '-#include "hschooks.h"' -O    -c stgSyn/CoreToStg.lhs -o stg
Syn/CoreToStg.o
 
stgSyn/CoreToStg.lhs:18:
    Something is amiss; requested module name Err differs from name found in the
 interface file GHC.Err
<<ghc: 28041516 bytes, 8 GCs, 1120992/2226000 avg/max bytes residency (2 samples
), 17M in use, 0.02 INIT (0.03 elapsed), 1.55 MUT (2.00 elapsed), 0.76 GC (0.77
elapsed) :ghc>>
make: *** [stgSyn/CoreToStg.o] Error 1

Reply via email to