
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 I am also passing these options: -O2 -fexcess-precision -funbox-strict-fields -fglasgow-exts -fbang-patterns -lcblas Thanks, Anatoly

aeyakovenko:
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
I am also passing these options:
-O2 -fexcess-precision -funbox-strict-fields -fglasgow-exts -fbang-patterns -lcblas
When compiling something linked against the mersenne random package? -- Don

On Thu, 2008-06-12 at 00:07 -0700, Don Stewart wrote:
aeyakovenko:
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
I am also passing these options:
-O2 -fexcess-precision -funbox-strict-fields -fglasgow-exts -fbang-patterns -lcblas
When compiling something linked against the mersenne random package?
Don, this does not work: includes: SFMT.h SFMT_wrap.h install-includes: SFMT.h You cannot limit the scope of the SFMT_wrap.h to be just this package. You can limit .h scope to one file or global -- nothing in between. You can limit it to just that file by specifying the .h file in the foreign import declaration:
foreign import ccall "private.h foo" foo :: IO ()
Alternatively you can also install SFMT_wrap.h. Duncan

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
participants (4)
-
Anatoly Yakovenko
-
Bertram Felgenhauer
-
Don Stewart
-
Duncan Coutts