FPU initialization required again
I think that the bug 2724, fixed in ghc-6.10.x, has reappeared in ghc-7.0.1. When I run hmatrix tests I get the same kind of random errors, which disappear if I insert the asm finit call. I don't have a small test case without dependencies, but I hope that this problem can be easily reproduced as follows:
$ cabal update
$ cabal unpack hmatrix
$ cd hmatrix-0.11.0.0
$ cabal install [-f-vector] [-f-binary]
(these flags can be given to minimize dependencies)
$ cabal test
All tests must pass. Now we will try to produce the error:
Comment out line 172 of hmatrix.cabal to remove the workaround for ghc-7.0.1:
- cpp-options: -DFINIT
+ -- cpp-options: -DFINIT
$ cabal clean
$ cabal install [-f-vector] [-f-binary]
$ cabal test
Now we will probably get several errors.
Please let me know if you need more information. I hope I have not made some big mistake.
Trac metadata
Trac field | Value |
---|---|
Version | 7.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler (NCG) |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |