Skip to content

compilation under emulation produces broken executables #101

@mschwaig

Description

@mschwaig

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions