[GHC] #5289: Can't use ghci with a library linked against libstdc++

GHC ghc-devs at haskell.org
Fri Jul 26 14:40:54 CEST 2013


#5289: Can't use ghci with a library linked against libstdc++
-------------------------------------+------------------------------------
        Reporter:  bos               |            Owner:
            Type:  bug               |           Status:  new
        Priority:  normal            |        Milestone:  7.6.2
       Component:  GHCi              |          Version:  7.0.3
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  GHCi crash        |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------
Changes (by svenpanne):

 * difficulty:   => Unknown


Comment:

 Asking 'gcc --print-file-name' might solve some of the C++ troubles
 mentioned above, but in general I feel that it is the wrong thing to do:
 GHCi is not mirroring what would happen at runtime for a compiled program,
 see e.g. https://github.com/haskell-opengl/OpenGL/issues/42 where the
 problem is described in length for libGL.so. In that special case it could
 be argued  that the Ubuntu setup is a bit strange, but the C++ stuff above
 looks equally weird to me, too.

 IMHO, if dlopen(foo, RTLD_LAZY) succeeds when looking for foo, one should
 not ask GCC and leave the path to foo as it is. GHCi will use the same
 mechanism later when loading/resolving symbols, anyway.

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




More information about the ghc-tickets mailing list