Different behavior in ghci 7.8.3 vs 7.10.1?

Sergei Trofimovich slyich at gmail.com
Sat Jun 27 10:01:48 UTC 2015

On Fri, 26 Jun 2015 23:05:55 -0400
Dominick Samperi <djsamperi at gmail.com> wrote:

> Hello,
> I'm trying to run code that works with ghci 7.8.3 under ghci 7.10.1
> but this fails.
> Under 7.8.3, when I run from the shell:
> export LD_LIBRARY_PATH=thepath
> ghci -lmylib -fno-ghci-sandbox mydriver.hs
> I see the usual startup diagnostics along with
> Loading object (dynamic) mylib ... done
> final link ... done
> [1 of 1] Compiling Main
> Main>
> But under 7.10.1, when I do the same, there is no indication that
> linking happens, and when I try to run the program there are
> undefined references.
> I probably missed the post that explains this behavior. Can somebody
> provide a pointer to a work-around?

There is two separate issues:

1. ghc-7.10 became less chatty when loads libraries.
  'ghci -v2' gets it back with a bit of noise

2. looks more like actual problem. is your mylib
    fully linked against it's depends?
    LD_LIBRARY_PATH=/the/path ldd -u /path/to/mylib.so
    LD_LIBRARY_PATH=/the/path ldd /path/to/mylib.so
    you can also try to inspect LD_DEBUG=help ghci ...


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20150627/c7b52700/attachment.sig>

More information about the ghc-devs mailing list