Skip to content

SOE samples crash when running from ghci rather than compiling and running with ghc

When running the SOE samples from http://haskell.org/soe/software1.htm I can compile and run at the command line fine, but if I use ghci instead of ghc I always get this error...

C:\cygwin\home\Justin\haskell\SOE\src>ghci
GHCi, version 6.8.2: http://www.haskell.org/ghc/  :? for help
Loading package base ... linking ... done.
Prelude> :load test.hs
Ok, modules loaded: Snowflake, Main, SOE.
Prelude Main> main
Loading package old-locale-1.0.0.0 ... linking ... done.
Loading package old-time-1.0.0.0 ... linking ... done.
Loading package OpenGL-2.2.1.1 ... linking ... done.
Loading package GLFW-0.1 ... <interactive>: Unknown PEi386 section name `.reloc'
 (while processing: C:\Program Files\Haskell\GLFW-0.1\ghc-6.8.2/HSGLFW-0.1.o)
: panic! (the 'impossible' happened)
  (GHC version 6.8.2 for i386-unknown-mingw32):
        loadObj: failed

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
Trac metadata
Trac field Value
Version 6.8.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information