[Haskell-cafe] ghc 6.8.1 bug?
SevenThunders
mattcbro at earthlink.net
Thu Nov 15 13:58:26 EST 2007
Alberto Ruiz-2 wrote:
>
> Hello,
>
> I have had exactly the same problem with my bindings to GSL, BLAS and
> LAPACK.
> The foreign functions (!) randomly (but very frequently) produced NaN with
> ghc-6.8.1 -O. As usual, I first thought that I had a subtle bug related to
> the foreign pointers, but after a lot of refactoring, experiments, and
> tracing everything, I'm reasonably sure that memory is safely used. What I
> have found is that the same errors can be reproduced on ghc-6.6.1
> with -O -fasm. So I tried -O -fvia-C on ghc-6.8.1 (which now it is not the
> default) and apparently everything works well. So it seems that now the
> ffi
> requires and additional and explicit -fvia-C. In any case I don't know
> why -fasm produces those strange NaN in precompiled foreign functions...
>
> Alberto
>
>
>
Arrgh, the fix of using -fvia-C doesn't seem to be working for me.
You got my hopes up for a moment :).
I also am calling BLAS via C bindings.
I am going to try to distill my case down to the bare minimum if possible
and then provide an example. It may take a while.
--
View this message in context: http://www.nabble.com/ghc-6.8.1-bug--tf4810375.html#a13779349
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
More information about the Haskell-Cafe
mailing list