hsc2hs on Mac

Malcolm Wallace malcolm.wallace at me.com
Fri May 13 09:20:41 CEST 2011


> hsc2hs converts
>  (#const sizeof(struct stat))
>  (#peek struct stat, st_mtimespec)
> to 
>  108
>  36
> but the correct values are
>  144
>  32.
> 
> Is this a bug of hsc2hs?

Not directly.  hsc2hs calls the C compiler to determine these numbers.  It seems it is calling gcc-4.0 rather than gcc-4.2.  It might be a bug that it is calling the wrong compiler, but that might just be misconfiguration in your environment, or in the Haskell Platform.

> gcc-4.0 says sizeof (struct stat) is 108 while gcc-4.2 (default) says
> that is 144.





More information about the Glasgow-haskell-users mailing list