Skip to content

GHCi tries to load the text package twice, leading to linking failure

For some reason GHC tries to load the text package twice:

$ ghci -package text
GHCi, version 7.4.1: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.4.0.0 ... linking ... done.
Loading package bytestring-0.9.2.1 ... linking ... done.
Loading package deepseq-1.3.0.0 ... linking ... done.
Loading package text-0.11.2.0 ... linking ... done.
Loading package text-0.11.2.1 ... 

GHCi runtime linker: fatal error: I found a duplicate definition for symbol
   __hs_text_decode_utf8
whilst processing object file
   /Users/tibbe/.cabal/lib/text-0.11.2.1/ghc-7.4.1/HStext-0.11.2.1.o
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.

__hs_text_decode_utf8 is a C function defined in the text package.

Trac metadata
Trac field Value
Version 7.4.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC johan.tibell@gmail.com
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information