[Haskell-cafe] -fvia-C error

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Thu Jun 12 03:43:38 EDT 2008


On Wed, 2008-06-11 at 23:50 -0700, Anatoly Yakovenko wrote:
> any idea what could be causing this error when i add the -fvia-C option
> 
> /tmp/ghc32300_0/ghc32300_0.hc:6:23:
>      error: SFMT_wrap.h: No such file or directory
> make: *** [release] Error 1

Some package you're using is a FFI binding that uses that C header file
(SFMT_wrap.h). When you compile via C and crank up the optimisation it's
quite possible for C calls to be inlined from the package in which
they're defined into your code and hence you code ends up needing the
headers too.

You can get the above problem if a package uses a private header file
and does not install it.

Do you recognise SFMT_wrap.h? What package do you think it is that uses
it?

Duncan



More information about the Haskell-Cafe mailing list