-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User-specified static library could not be loaded (.../_solib_k8/.../libz.so) #9
Comments
Thanks for the report. Would if work we just changed rules_haskell (in |
That wouldn't work on other platforms, e.g. on Darwin, nixpkgs or system provided libraries would end on
|
@aherrmann I've just been bitten by this with rules_haskell on macOS trying to link against postgresql-libpq. There it has a static library
|
hrepl
fails to load targets that depend on certain types of dynamic libraries.This can be reproduced on the rules_haskell repository with the following command:
Using the
--show-commands
flag shows that GHCi is passed the following flags:This seems to be the source of the issue and seems to be caused by the following line in hrepl:
hrepl/hrepl/Repl.hs
Line 239 in 33f879e
That logic to obtain the library name from a file name fails on versioned libraries like
libz.so.1.2.11
, or on system libraries outside of Linux, e.g.libz.dylib
.The target
//tests/binary-with-indirect-sysdeps:hs-lib
depends on alibz
that is provided by nixpkgs and comes in three shapes:libz.so libz.so.1 libz.so.1.2.11
.hrepl revision 33f879e
rules_haskell revision b41234677c9381982aae98098fb473a5b733c945
The text was updated successfully, but these errors were encountered: