[EMAIL PROTECTED] writes:
> I have just built ghc-2.03 with green-card 0.9.
> 
> Whereas green-card used to work fine with ghc-2.02, I now get:
> 
> ghc: consistency warning: minor version not 1:
> 080525b0 t cc.StdDis.lhs.36.0..
> ghc: consistency error: major version not 32:
> 080537fd t hsc.StdDis.lhs.31.0..
> 
> when linking with -lHSgc .
> 

Hi,

looks like you're linking with a 2.02 compiled version of the Green
Card standard DISs, try recompiling green-card/lib with 2.03.

The ghc driver uses two pairs of version numbers for consistency
checking; one pair (major/minor) that is pinned on compiled Haskell
source, the other pair is added while compiling .hc files.

The checker uses the former to see if we're linking together a binary
containing object files coming from the same Haskell compiler, while
the latter is used to check if the same set of include files/RTS was
used.

In going from 2.02 to 2.03, the major version number of the Haskell
consistency id pair was bumped up by one (a couple of changes, albeit
small, caused us to do so -- better be on the safe side :-) , the
RTS/.hc version number was incremented for the 2.03 patches, I
believe.

Major version mismatches are treated as errors, minor version numbers
are warnings, as you've experienced first hand.

The consistency numbers are pushed out into the intermediate files in
the shape of a RCS/SCCS Id keyword, so what(1) and the like should be
able to pick them up.

Hope that helps,

--Sigbjorn

Reply via email to