[GHC] #10799: "I found a duplicate definition for symbol: __x86.get_pc_thunk.bx" in package network

GHC ghc-devs at haskell.org
Fri Aug 28 03:52:58 UTC 2015


#10799: "I found a duplicate definition for symbol: __x86.get_pc_thunk.bx" in
package network
-------------------------------------+-------------------------------------
        Reporter:  blueonyx          |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  GHC API           |                 Version:  7.10.2
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Runtime crash     |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:  #9657             |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 A log file provided by the reporter on IRC showed Cabal building cbits
 with `ghc -fPIC`. I guess Cabal should really build cbits twice when it is
 building both a static and a dynamic library, ugh.

 It might also be worth implementing in the ghci linker whatever linker
 magic makes the system linker not complain about multiple copies of this
 symbol.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10799#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list