
I'm hoping that a GHC honcho will say
"Well of course that happens with 5.02.2 - you should upgrade to 5.03 right away."
or some such.
I'm afraid not :-) But there *is* a bug in the native code generator in 5.02.2, namly in the FFI support for passing floating point arguments to ccalls, which I fixed yesterday and could potentially cause this kind of problem. Make sure the graphics library has been compiled with -fvia-C or -O to work around it (and if this helps, please let us know). Cheers, Simon

That is a shame. I tried both suggestions (specifying position explicitly and recompiling with fvia-c -- i had been using O all along) and neither worked :(. I also tried using 5.03, and got the following warnings: ghc.exe: chasing modules from: HelloWorld.hs Compiling GraphicsFlag ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsFlag.hs , c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsFlag.o ) Compiling GraphicsUtilities ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsUtilit ies.hs, c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsUtilities.o ) Compiling GraphicsTypes ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsTypes.h s, c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsTypes.o ) Compiling GraphicsRegion ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsRegion. hs, c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsRegion.o ) Compiling GraphicsBrush ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsBrush.h s, c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsBrush.o ) Compiling GraphicsFont ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsFont.hs , c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsFont.o ) Compiling GraphicsPen ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsPen.hs, c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsPen.o ) Compiling GraphicsDraw ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsDraw.hs , c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsDraw.o ) C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc: In function `GraphicsDraw_lvl_fast1' : C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc:59: warning: implicit declaration of function `prim_rgb' C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc: In function `sc2l_ret': C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc:1070: warning: implicit declaration o f function `prim_createCompatibleDC' C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc:1070: warning: assignment makes point er from integer without a cast Compiling GraphicsBitmap ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsBitmap. hs, c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsBitmap.o ) C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc: In function `sf06_ret': C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc:652: warning: implicit declaration of function `prim_free' Compiling GraphicsPicture ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsPicture .hs, c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsPicture.o ) Compiling GraphicsText ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsText.hs , c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsText.o ) Compiling GraphicsKey ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsKey.hs, c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsKey.o ) Compiling GraphicsEvent ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsEvent.h s, c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsEvent.o ) Compiling GraphicsEvents ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsEvents. hs, c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsEvents.o ) Compiling GraphicsWND ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsWND.hs, c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsWND.o ) C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc: In function `suYv_ret': C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc:881: warning: implicit declaration of function `prim_dispatchMessage' C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc: In function `suYu_ret': C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc:918: warning: implicit declaration of function `prim_translateMessage' C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc: In function `suZz_ret': C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc:2033: warning: implicit declaration o f function `prim_showWindow' C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc: In function `sv08_ret': C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc:2315: warning: implicit declaration o f function `prim_free' C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc: In function `sv06_ret': C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc:2334: warning: implicit declaration o f function `prim_endPaint' C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc: In function `suZv_ret': C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc:4248: warning: implicit declaration o f function `prim_registerClass' Compiling GraphicsWindows ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsWindows .hs, c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsWindows.o ) Compiling GraphicsTime ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsTime.hs , c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsTime.o ) c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsTime.hs:1: Warning: The export item `Time(..)' suggests that `Time' has constructor or class methods but it has none; it is a type synonym or abstract type or class Compiling GraphicsCore ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsCore.hs , c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsCore.o ) C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc: In function `sylv_ret': C:\DOCUME~1\hdaume\LOCALS~1\Temp\ghc920.hc:550: warning: implicit declaration of function `prim_deleteFont' Compiling GraphicsUtils ( c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsUtils.h s, c:\Hugs98\GraphicsLibrary\lib\win32/GraphicsUtils.o ) Compiling Main ( HelloWorld.hs, ./HelloWorld.o ) ghc: linking ... all of which scares me, and now no window even pops up :) sigh. - hal -- Hal Daume III "Computer science is no more about computers | hdaume@isi.edu than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume On Wed, 13 Mar 2002, Simon Marlow wrote:
I'm hoping that a GHC honcho will say
"Well of course that happens with 5.02.2 - you should upgrade to 5.03 right away."
or some such.
I'm afraid not :-) But there *is* a bug in the native code generator in 5.02.2, namly in the FFI support for passing floating point arguments to ccalls, which I fixed yesterday and could potentially cause this kind of problem. Make sure the graphics library has been compiled with -fvia-C or -O to work around it (and if this helps, please let us know).
Cheers, Simon _______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
participants (2)
-
Hal Daume III
-
Simon Marlow