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

compilation under emulation produces broken executables #101

Open
mschwaig opened this issue Jul 10, 2023 · 0 comments
Open

compilation under emulation produces broken executables #101

mschwaig opened this issue Jul 10, 2023 · 0 comments

Comments

@mschwaig
Copy link

Like #45 I am interested in producing binaries for a different architecture.

I'm using the nix bundle command. I hope this is the right place to file issues for nix bundle and I can see that the README.md file here points out some limitations:

This is a standalone file that is completely portable! As long as you are running the same architecture Linux kernel and have a shell interpreter available it will run.

This makes me think that what I'm trying to do is not supposed to work yet.

On my x86_64 Linux machine running

$ nix bundle nixpkgs#legacyPackages.aarch64-linux.hello

succeeds, but produces a binary which fails to launch

$ ./hello
execvp(/nix/store/1ncnl3siyp20h6rwvpjb756mp7347nwb-hello-2.12.1/bin/hello): No such file or directory

It would of course be great if this was working, but I think it would already be an improvement if it wasn't failing silently.

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

1 participant