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

Cross-Compilation example doesn't work on Darwin #1092

Open
dwt opened this issue Dec 12, 2024 · 0 comments
Open

Cross-Compilation example doesn't work on Darwin #1092

dwt opened this issue Dec 12, 2024 · 0 comments

Comments

@dwt
Copy link

dwt commented Dec 12, 2024

## Real-world cross compiling of a Hello World example

I'm not quite sure what the exact reason is, but in this example both paths do not work on Darwin.

Running them gives these two error messages:

❯  nix-build -A windows
error:
       … while evaluating 'strict' to select 'drvPath' on it
         at /builtin/derivation.nix:1:552:
       … while calling the 'derivationStrict' builtin
         at /builtin/derivation.nix:1:208:
       (stack trace truncated; use '--show-trace' to show the full trace)

       error: i686 Linux package set can only be used with the x86 family.

~/C/P/nix/tutorial/cross-compilation  ⛵️ mkk-itsc-dev (default)
❯  nix-build -A rpi
error:
       … while evaluating 'strict' to select 'drvPath' on it
         at /builtin/derivation.nix:1:552:
       … while calling the 'derivationStrict' builtin
         at /builtin/derivation.nix:1:208:
       (stack trace truncated; use '--show-trace' to show the full trace)

       error: Don't know how to run armv6l-unknown-linux-gnueabihf executables.

Is this something that is entirely not possible on Darwin, or is there just some additional configuration needed?

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