[GHC] #9657: I found a duplicate definition for symbol: __x86.get_pc_thunk.bx

GHC ghc-devs at haskell.org
Mon Oct 6 11:20:26 UTC 2014


#9657: I found a duplicate definition for symbol: __x86.get_pc_thunk.bx
-------------------------------------+-------------------------------------
              Reporter:  nomeata     |            Owner:
                  Type:  bug         |           Status:  new
              Priority:  normal      |        Milestone:
             Component:  Compiler    |          Version:  7.6.3
            Resolution:              |         Keywords:
      Operating System:              |     Architecture:  Unknown/Multiple
  Unknown/Multiple                   |       Difficulty:  Unknown
       Type of failure:  Compile-    |       Blocked By:
  time crash                         |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by rzetterberg):

 Replying to [comment:2 nomeata]:
 > Thanks for the investigation. I thought `-fPIC` is required in some
 cases, or for some architectures? But I must admint that I’m still mostly
 ignorant about linker issues.

 That's true! After reading about linking a bit more: You need `-fPIC` on
 x86_64 when building shared libraries. And all static libaries that the
 shared library links against must also be built with `-fPIC`.

 I guess the "solution" I posted is more a non-portable hack. I'm not well
 versed in linking either. Hopefully it will atleast give some clues to the
 problem.

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


More information about the ghc-tickets mailing list