Incompatible sizes on AMD64
Simon Marlow
simonmar at microsoft.com
Mon Jan 9 05:33:40 EST 2006
Juliusz Chroboczek wrote:
> When compiling Darcs on AMD64, I get a worrying sounding warning about
> incompatible datasizes from the C compiler. I've reduced the Darcs
> code to what I believe is a minimal example (at any rate, removing a
> single clause anywhere makes the warning go away).
>
> Compiling the attached gives
>
> $ ghc -c -O -keep-hc-files Bug.hs
> Bug.hc: In function ‘s2iP_ret’:
> Bug.hc:400: warning: cast to pointer from integer of different size
>
> Compiling with ``-fvia-c'' instead of ``-O'' does not yield the
> warning. This is GHC 6.4.1, as provided in Ian's 6.4.1-1 Debian
> package.
Thanks, a good bug, now fixed. GHC was mis-compiling chr#, but it looks
to be harmless.
Cheers,
Simon
More information about the Glasgow-haskell-bugs
mailing list