[GHC] #5289: Can't use ghci with a library linked against libstdc++
GHC
cvs-ghc at haskell.org
Fri Jul 22 08:47:53 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
---------------------------------+------------------------------------------
Changes (by hgolden):
* cc: howard_b_golden@… (added)
Comment:
I'm unfamiliar with OS X, but I tried this under Linux with GHCi 7.0.4.
Here's what I get:
{{{
$ ghci
GHCi, version 7.0.4: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> :m +Data.Double.Conversion.Text Data.Text
Prelude Data.Double.Conversion.Text Data.Text> toShortest 1
Loading package bytestring-0.9.1.10 ... linking ... done.
Loading package array-0.3.0.2 ... linking ... done.
Loading package containers-0.4.0.0 ... linking ... done.
Loading package deepseq-1.1.0.2 ... linking ... done.
Loading package text-0.11.1.1 ... linking ... done.
Loading package double-conversion-0.2.0.0 ... linking ... done.
"Floating point exception (core dumped)
}}}
Possibly this error comes from ticket #3333 (which I should work on!).
The "can't load..." on OS X possibly can be fixed by code similar to what
I put in ticket #2615, since it looks like the linker scripts on OS X are
similar. In fact, I was thinking of proposing a patch to dlopen upstream
so all languages can benefit from this (but that's another story).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5289#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list