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

GHC cvs-ghc at haskell.org
Wed Jun 29 21:00:11 CEST 2011


#5289: Can't use ghci with a library linked against libstdc++
---------------------------------+------------------------------------------
    Reporter:  bos               |        Owner:            
        Type:  bug               |       Status:  new       
    Priority:  normal            |    Milestone:  7.2.1     
   Component:  GHCi              |      Version:  7.0.3     
    Keywords:                    |     Testcase:            
   Blockedby:                    |   Difficulty:            
          Os:  Unknown/Multiple  |     Blocking:            
Architecture:  Unknown/Multiple  |      Failure:  GHCi crash
---------------------------------+------------------------------------------

Comment(by simonmar):

 Replying to [comment:4 bos]:

 > I believe the real problem is that `ghc` records the plain name of the
 library that is depended upon at build time, when instead it should be
 either following the symlink or interpreting the ld script, and storing
 the complete path to that, just like the normal system linker does.

 Hmm, I'm not sure I follow.  When we build a package we don't normally do
 a link step, we just record the library dependencies in the package.  I
 guess you're suggesting that we should resolve the libraries at that
 point, and that sounds reasonable, but how would we find them without
 using `gcc -print-search-dirs`?

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



More information about the Glasgow-haskell-bugs mailing list