[GHC] #10442: Loading of shared libraries is problematic in ghc 7.10.1
GHC
ghc-devs at haskell.org
Fri Jun 5 08:14:12 UTC 2015
#10442: Loading of shared libraries is problematic in ghc 7.10.1
-------------------------------------+-------------------------------------
Reporter: artella.coding | Owner:
Type: bug | Status: new
Priority: high | Milestone: 7.10.2
Component: Compiler | Version: 7.10.1
Resolution: | Keywords:
Operating System: Linux | Architecture: x86_64
Type of failure: Runtime crash | (amd64)
Blocked By: | Test Case:
Related Tickets: | Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by trommler):
Replying to [comment:7 artella.coding]:
> then `cabal repl` works fine, but `cabal run` gives the following error
:
>
> {{{
> cabal run
> Preprocessing executable 'illustrate' for illustrate-0.1.0.0...
> [1 of 1] Compiling Main ( Main.hs, dist/build/illustrate
/illustrate-tmp/Main.o )
> Linking dist/build/illustrate/illustrate ...
> Running illustrate...
>
/home/linux/Downloads/illustrate_withDir/dist/build/illustrate/illustrate:
error while loading shared libraries: libtest.so: cannot open shared
object file: No such file or directory
>
> }}}
>
> Why is this happening?
The linker line does not contain a `-rpath` argument for `libtest.so`
> Should I close this trac and post the problem above as a new Trac?
Thanks
>
Yes, please create a new ticket. Thanks!
As a workaround you can add the following to `illustrate.cabal`:
{{{
ghc-options: -optl=-Wl,-rpath,./libDir
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10442#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list