GPF WinXP GHCi 6.4

Simon Marlow simonmar at microsoft.com
Tue Mar 15 05:47:07 EST 2005


This is caused by a clash between the new Win32 package and the old
win32 package.  The Windows installer contains both, but unfortunately
they clash on the name of the libraries.
 
I think the new Win32 library is ready to replace the old one (Ross?).
If that's the case, Sigbjorn, would you mind re-rolling the installer
without hslibs/win32?  Thanks.
 
Simon


________________________________

From: glasgow-haskell-bugs-bounces at haskell.org
[mailto:glasgow-haskell-bugs-bounces at haskell.org] On Behalf Of Nick Main
Sent: 12 March 2005 20:04
To: glasgow-haskell-bugs at haskell.org
Subject: Bug: GPF WinXP GHCi 6.4 


GHC 6.4 Final Release - tried the sample code for Graphics.HGL, i.e.

module Main where {

    import Graphics.HGL;

    main :: IO ();
    main = runGraphics $
        withWindow_ "Hello World Window" (300, 200) $ \ w -> do
        drawInWindow w $ text (100, 100) "Hello World"
        drawInWindow w $ ellipse (100, 80) (200, 180)
        getKey w;
}

WindowsXP Home.  
First attempt in GHCi is as below.  Retrying main causes a GPF error
box.

c:\temp>ghci Main
   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version 6.4, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package base-1.0 ... linking ... done.
Compiling Main             ( Main.hs, interpreted )
Ok, modules loaded: Main.
*Main> main
Loading package Win32-1.0 ... <interactive>: Not x86 PEi386
ghc.exe: panic! (the `impossible' happened, GHC version 6.4):
        loadObj: failed

Please report it as a compiler bug to glasgow-haskell-bugs at haskell.org,
or http://sourceforge.net/projects/ghc/.


*Main> main
Loading package Win32-1.0 ... linking ...
c:\temp>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20050315/7d33ed04/attachment.htm


More information about the Glasgow-haskell-bugs mailing list