#7030: GHCi tries to load the text package twice, leading to linking failure
------------------------+---------------------------------------------------
 Reporter:  tibbe       |          Owner:      
     Type:  bug         |         Status:  new 
 Priority:  normal      |      Component:  GHCi
  Version:  7.4.1       |       Keywords:      
       Os:  MacOS X     |   Architecture:  x86 
  Failure:  GHCi crash  |       Testcase:      
Blockedby:              |       Blocking:      
  Related:              |  
------------------------+---------------------------------------------------
 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.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7030>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to