#3798: Problem with wxHaskell
---------------------------------+------------------------------------------
Reporter: MNorrish | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.12.2
Component: GHCi | Version: 6.10.4
Keywords: | Difficulty:
Os: Linux | Testcase:
Architecture: Unknown/Multiple | Failure: Other
---------------------------------+------------------------------------------
Changes (by simonmar):
* component: Compiler => GHCi
Comment:
The `Prelude.chr: bad argument` error is caused by GHC finding a `.hi`
file that it didn't understand, perhaps created on a different machine.
This bug is already fixed in GHC 6.12.1 (GHC ignores the unrecognised
`.hi` file, as it should).
On my system, `libstdc++.so` is found in `/usr/lib/gcc/i486-linux-
gnu/4.4.1`, but it is a symlink to to `.so.6` in `/usr/lib`. If you add
that directory to the `extra-libs` of the `wxcore` package, it loads in
GHCi (although there's another missing symbol error later). `dlopen`
doesn't look here by default, as this directory is intended to be searched
at link-time, not load-time. If you want to `dlopen` `libstdc++`, I guess
you're supposed to either `dlopen("libstdc++.so.6")` or use the full path
name.
One possible plan here is to have GHCi call `gcc -print-search-dirs`, and
pick out its library search paths. We could easily add those to the
places we look for `.so`s.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3798#comment:3>
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