Skip to content
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

Unable to bundle busybox #2

Open
takeda opened this issue Sep 14, 2022 · 2 comments
Open

Unable to bundle busybox #2

takeda opened this issue Sep 14, 2022 · 2 comments

Comments

@takeda
Copy link

takeda commented Sep 14, 2022

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!
@Ninlives
Copy link
Owner

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 NixOS/nixpkgs#137877.

@takeda
Copy link
Author

takeda commented Sep 19, 2022

I'm not sure how I can reproduce it without relocatable.nix. The machine where I'm running it, doesn't have Nix installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants