-
-
Notifications
You must be signed in to change notification settings - Fork 13.4k
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
haskell-updates: ld.gold error with unreadable /lib on aarch64-linux aka nix-on-droid #155722
Comments
Applying the workaround described in linked nmattia/niv#332 didn't help either in this case: cd ~/src/test && cabal2nix . > myproject.nix # default.nix
{ pkgs ? import <nixpkgs> {} }:
let
workaround140774 = hpkg: with pkgs.haskell.lib;
overrideCabal hpkg (drv: {
enableSeparateBinOutput = false;
});
in workaround140774 (pkgs.haskell.packages.ghc8107.callPackage ./myproject.nix { }) |
Asked for help here: https://discourse.nixos.org/t/linker-error-on-aarch64-linux/17296 And here: For a reproduction of this see https://github.com/573/aarch64-linux-ld-issue155722-reproduce as well (Actions, nix-build section). Workaround: I still can start |
Is there an update on this? I'm hitting this issue for multiple packages. |
@hmih some person suggested using a more recent ghc (902+ afar). |
The unreadable "/lib" issue is ingrained to how nix-on-droid (linked nix-community/nix-on-droid#170 above) works, hence I emulated the behaviour https://github.com/573/aarch64-linux-ld-issue155722-reproduce/blob/8a54fd8/.github/workflows/test.yml#L24. There doesn't seem to be means to handle such circumstance using the linker so I close this for now. A follow up issue (this time using a remote builder as suggested in nix-community/nix-on-droid#170) is here at haskell/cabal#7950. Feel free to follow the other ticket or re-open here in case of new findings. |
Describe the bug
Linking of sample project fails:
Steps To Reproduce
Steps to reproduce the behavior:
nix-build
orcabal build
, in fact github-actions do thatExpected behavior
Sample project builds.
The linker should be called with a fallback instead of
/lib
when/lib
exists but is not readable.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Similar issue nmattia/niv#332.
https://github.com/t184256/nix-on-droid/, the system on which this error occurs has no read permissions on
/lib
.Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: