ghc.exe: panic! (the 'impossible' happened)

Peter Hercek phercek at
Sat Jul 12 16:34:08 EDT 2008


I was advised to report it here ... and
  maybe somebody who knows ghc better can
  reproduce it or knows what is the problem.

I uninstalled all ghc, gtk, and gtk2hs
  packages then installed ghc 6.8.3 and
  then gtk2hs 0.9.13 on Windows XP 32bit.
This should not be because of some stalled
  files from previous ghc as it was suggested
  to me. And I was told there is nothing
  strange in gtk2hs 0.9.13 to cause this.
A version of gtk2hs I compiled
  myself works with ghc 6.8.3. I did not
  try to compile 0.9.13.
Any ideas?


status:0 peter at dwarf [764] /c/tools/Gtk2Hs/demos/hello
% ls
Makefile  World.hs
status:0 peter at dwarf [765] /c/tools/Gtk2Hs/demos/hello
% World.hs
GHCi, version 6.8.3:  :? for help
Loading package base ... linking ... done.
[1 of 1] Compiling Main             ( World.hs, interpreted )
Ok, modules loaded: Main.
*Main> main
Loading package array- ... linking ... done.
Loading package bytestring- ... linking ... done.
Loading package mtl- ... linking ... done.
Loading package glib-0.9.13 ... <interactive>: Unknown PEi386 section name
  `.reloc' (while processing: C:/tools/Gtk2Hs/HSglib.o)
ghc.exe: panic! (the 'impossible' happened)
   (GHC version 6.8.3 for i386-unknown-mingw32):
         loadObj: failed

Please report this as a GHC bug:

*Main> :quit
Leaving GHCi.
status:0 peter at dwarf [766] /c/tools/Gtk2Hs/demos/hello

More information about the Glasgow-haskell-users mailing list