#1944: round function causes cblas NaNs
---------------------------+------------------------------------------------
 Reporter:  SevenThunders  |          Owner:         
     Type:  bug            |         Status:  new    
 Priority:  normal         |      Milestone:  6.8.3  
Component:  Compiler       |        Version:  6.8.1  
 Severity:  critical       |     Resolution:         
 Keywords:                 |     Difficulty:  Unknown
 Testcase:                 |   Architecture:  x86    
       Os:  Windows        |  
---------------------------+------------------------------------------------
Comment (by simonmar):

 Presumably something in the floating-point unit state is changing in a way
 that upsets the code in the cblas library.  I don't know of anything that
 could cause this; the native code generator does in one place generate
 code that saves and restores the FPU control word, but that was added in
 6.8.2 (see #1910).

 To proceed we really need to know what is changing in the FPU state, so
 that we can trace it back to the point at which it changed.  At the very
 least, we need a reproducible test case.  I downloaded your files and
 tried it, but it looks like I have a DLL missing:

 {{{
 c:\builds\atlas\Test2>maketest

 c:\builds\atlas\Test2>set CLIB=atlas

 c:\builds\atlas\Test2>set TopFile=Test2

 c:\builds\atlas\Test2>set csrc=ctest2.c

 c:\builds\atlas\Test2>set OutFile=Test2.exe

 c:\builds\atlas\Test2>dlltool.exe -D atlas.dll -l atlas.lib

 c:\builds\atlas\Test2>set XFLAGS=-threaded -O -XForeignFunctionInterface

 c:\builds\atlas\Test2>rem set XFLAGS=-threaded -O -fffi

 c:\builds\atlas\Test2>ghc -threaded -O -XForeignFunctionInterface -I.
 -I..\matri
 xstack --make Test2.hs ctest2.c -o Test2.exe -optl-latlas -optl-L"."
 [1 of 1] Compiling Main             ( Test2.hs, Test2.o )
 Linking Test2.exe ...

 c:\builds\atlas\Test2>Test2

 c:\builds\atlas\Test2>dir
  Volume in drive C has no label.
  Volume Serial Number is 6041-4C23

  Directory of c:\builds\atlas\Test2

 03/01/2008  10:38    <DIR>          .
 03/01/2008  10:38    <DIR>          ..
 29/11/2007  02:28         5,485,456 atlas.dll
 03/01/2008  10:38             1,490 atlas.lib
 29/11/2007  02:28               547 ctest2.c
 29/11/2007  02:28               721 ctest2.h
 03/01/2008  10:38               849 ctest2.o
 03/01/2008  10:37               433 index.html
 29/11/2007  02:28               309 maketest.bat
 03/01/2008  10:38           687,370 Test2.exe
 03/01/2008  10:38               502 Test2.exe.manifest
 03/01/2008  10:38             1,913 Test2.hi
 29/11/2007  02:28               178 Test2.hs
 03/01/2008  10:38             4,920 Test2.o
               12 File(s)      6,184,688 bytes
                2 Dir(s)  47,145,406,464 bytes free

 c:\builds\atlas\Test2>Test2.exe

 c:\builds\atlas\Test2>
 }}}

 Using dependency walker it looks like I don't have "MSJAVA.DLL".  Although
 why I need that, I have no idea.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1944#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to