#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):

 bos: I'm looking at this and I'm not sure I agree with your original
 suggestion, that we should record the full path name to the versioned
 `.so` because the user may not have installed the appropriate `-devel`
 package.

 If the user has not installed the appropriate `-devel` package, then they
 cannot link anything with GHC, so it seems reasonable that they would also
 not be able to link anything with GHCi either.  I don't think of GHCi as
 doing "runtime linking", it's just doing ordinary linking, but storing the
 result in memory for immediate execution instead of on disk.

 So unless anyone persuades me otherwise, I'm going to implement the simple
 fix I described above, which is to use `gcc --print-file-name` as another
 strategy for mapping library names to file names in GHCi.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to