-
Notifications
You must be signed in to change notification settings - Fork 80
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
Java toolchain: remote java tools don't work on NixOS #278
Comments
This sounds like the classical NixOS dynamic loader issue, NixOS/nixpkgs#107375. |
Yeah, I've been trying to Patchelf it, but I don't think I have the args right! |
+1 to this issue. I get this error:
I can manually execute it like this:
I can manually patchelf it like this:
After which it works fine. |
On NixOS we cannot use the pre-built `ijar` and `singlejar` tools as they are not statically build and fail to find the dynamic linker. Fixes #278
Describe the bug
Java toolchain: //tests:java-runtime fails on NixOS. This is because all of the tools installed by the java toolchain (defined in
toolchains/java/defautl_java_toolchain.bzl
To Reproduce
On NixOS:
Expected behavior
All binaries installed by the java toolchain should work on NixOS.
The java-test target should run correctly and pass on NixOS.
Environment
Additional context
I was looking into an issue causing this test to fail on MacOS for #273, and I found that that test doesn't work on NixOS on master either, for unrelated reasons.
The tools affected are defined in
toolchains/java/default_java_toolchain.bzl
: ijar and singlejar have the same issue.It's possible to set LDPATH as a shellHook in flake.nix:
This causes ldd to resolve
libstdc++.so.6 => /nix/store/8mhaj6yvvb7rq0kl5xmg6wl9myxvs804-gcc-11.3.0-lib/lib/libstdc++.so.6 (0x00007f10b2336000)
, but the executable still fails.The text was updated successfully, but these errors were encountered: