[GHC] #10458: GHCi fails to load shared object (the 'impossible' happened)

GHC ghc-devs at haskell.org
Thu Oct 1 17:40:48 UTC 2015


#10458: GHCi fails to load shared object (the 'impossible' happened)
---------------------------------+--------------------------------------
        Reporter:  rleslie       |                Owner:  trommler
            Type:  bug           |               Status:  new
        Priority:  high          |            Milestone:  7.10.3
       Component:  GHCi          |              Version:  7.10.1
      Resolution:                |             Keywords:
Operating System:  Linux         |         Architecture:  x86_64 (amd64)
 Type of failure:  None/Unknown  |            Test Case:
      Blocked By:                |             Blocking:
 Related Tickets:                |  Differential Rev(s):
---------------------------------+--------------------------------------
Changes (by trommler):

 * owner:   => trommler


Comment:

 Replying to [comment:5 rwbarton]:
 > I'm a little worried about whether the obvious fix for this (adding
 `-lfoo` to the gcc command line for building the temporary shared objects
 for each library `-lfoo` specified on the ghci command line) might cause
 #8935 to occur again in some configurations.
 The right way to build a shared library would be to add `-lfoo`. Haskell
 libraries are linked with `-Bsymbolic` and I wonder if that would indeed
 make #8935 come back.

 Perhaps it is better to go for option one in my comment:12 and load C
 Libraries with `RTLD_GLOBAL` after all.

 I'll take a look.

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


More information about the ghc-tickets mailing list