You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have binfmt working on my NixOS installation and it works for cross-compiled NixOS binaries, but not for non-NixOS aarch64 binaries. I think nix-ld should work for this purpose, but I am not sure how?
I get qemu-aarch64: Could not open '/lib/ld-linux-aarch64.so.1': No such file or directory
My try: programs.nix-ld.libraries = with pkgs; [ pkgsCross.aarch64-multiplatform.glibc ];
The text was updated successfully, but these errors were encountered:
The NixOS module in its current form only installs the ld.so for the native architecture:
ls -la /lib64/ld-linux-x86-64.so.2
lrwxrwxrwx root root 68 B 5 days ago /lib64/ld-linux-x86-64.so.2@ ⇒ /nix/store/9bj6838cs8cw4yi4vzgigkwgsv5h1zbd-nix-ld-rs/libexec/nix-ld
You would need to compile nix-ld for aarch64 and than extend the module to also take care of the system link. Cross-compiling nix-ld should be fairly easy. The existing binfmt_misc options could be used to figure out what architecture to compile for.
Hi!
I have binfmt working on my NixOS installation and it works for cross-compiled NixOS binaries, but not for non-NixOS aarch64 binaries. I think nix-ld should work for this purpose, but I am not sure how?
I get
qemu-aarch64: Could not open '/lib/ld-linux-aarch64.so.1': No such file or directory
My try:
programs.nix-ld.libraries = with pkgs; [ pkgsCross.aarch64-multiplatform.glibc ];
The text was updated successfully, but these errors were encountered: