[Haskell-cafe] Hint causes GHCi linker error under Windows

Martin Hofmann martin.hofmann at uni-bamberg.de
Fri Dec 11 05:04:14 EST 2009

The following hint code causes GHCi to crash under Windows:

>  runInterpreter $ loadModules ["SomeModule.hs"]

The error message is: 

GHCi runtime linker: fatal error: I found a duplicate definition for
symbol _hs_gtWord64 whilst processing object file
   C:\Programme\Haskell Platform\2009.2.0.2\ghc-prim-
This could be caused by:
   * Loading two different object files which export the same symbol
   * Specifying the same object file twice on the GHCi command line
   * An incorrect `package.conf' entry, causing some object to be
     loaded twice.
GHCi cannot safely continue in this situation.  Exiting now.  Sorry.

The problem does not occur under Unix or with a compiled program. IMHO
hint tries to start a second instance of GHCi which is not
allowed/possible under Windows. If this is the case a more telling error
message would be helpful.

I used the Haskell Platform, version 2009.2.0.2 under Windows XP. My
package.conf is:

C:/Programme/Haskell Platform/2009.2.0.2\package.conf:
    Cabal-, GHood-0.0.3, GLUT-, HTTP-4000.0.6,
    HUnit-, MonadCatchIO-mtl-, OpenGL-,
    QuickCheck-, Win32-, ansi-terminal-0.5.0,
    ansi-wl-pprint-0.5.1, array-, base-, base-,
    bimap-0.2.4, bytestring-, cgi-3001.1.7.1,
    containers-, cpphs-1.9, directory-, (dph-base-0.3),
    (dph-par-0.3), (dph-prim-interface-0.3), (dph-prim-par-0.3),
    (dph-prim-seq-0.3), (dph-seq-0.3), extensible-exceptions-,
    fgl-, filepath-, (ghc-6.10.4), ghc-mtl-,
    ghc-paths-, ghc-prim-, haddock-2.4.2,
    haskeline-, haskell-src-, haskell-src-exts-1.3.4,
    haskell98-, hint-, hpc-, html-,
    integer-, mtl-, network-, old-locale-,
    old-time-, packedstring-, parallel-,
    parsec-, pointless-haskell-0.0.1, pretty-,
    process-, random-, regex-base-,
    regex-compat-, regex-posix-, rts-1.0, stm-,
    syb-, template-haskell-, time-,
    utf8-string-0.3.6, xhtml-3000.2.0.1, zlib-



More information about the Haskell-Cafe mailing list