relocatable.nix
relocatable.nix copied to clipboard
Unable to bundle busybox
So I tried to bundle a busybox then run it on linux server.
This is what I did on Mac OS:
nix bundle --bundler github:Ninlives/relocatable.nix nixpkgs#pkgsCross.gnu64.busybox
After copying file on linux:
$ mkdir deployment
$ ./busybox-x86_64-unknown-linux-gnu-1.35.0-deploy/bin/busybox-x86_64-unknown-linux-gnu-1.35.0.deploy -d deployment
$ cd deployment
$ root/bin/busybox
Inconsistency detected by ld.so: ./get-dynamic-info.h: 118: elf_get_dynamic_info: Assertion `info[DT_RUNPATH] == NULL' failed!
Can you confirm that the un-bundled version work? I don't think this problem is caused by relocatable.nix, others also encounter similar issues, see https://github.com/NixOS/nixpkgs/issues/137877.
I'm not sure how I can reproduce it without relocatable.nix. The machine where I'm running it, doesn't have Nix installed.