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 from Linux to Darwin fails with "infinite recursion encountered" #2313

Open
thomasjm opened this issue Feb 1, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@thomasjm
Copy link
Contributor

thomasjm commented Feb 1, 2025

Describe the bug

I can't get any cross-compilation from Linux to aarch64-darwin to work, even for the simplest examples.

For example, I tried adding a Darwin output to this project: input-output-hk/haskell-nix-example@cf52d30.

On this and all other examples I've tried, I get an error like the following. I'm not sure if this is even supposed to work, feel free to close if it's not supported.

error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:34:12:
           33|
           34|   strict = derivationStrict drvAttrs;
             |            ^
           35|

       … while evaluating derivation 'hello-exe-hello-aarch64-apple-darwin-1.0.0.2'
         whose name attribute is located at /nix/store/y8pbnccb8bc1p8fchx7zkb0874yblrg3-source/pkgs/stdenv/generic/make-derivation.nix:336:7

       … while evaluating attribute 'configurePhase' of derivation 'hello-exe-hello-aarch64-apple-darwin-1.0.0.2'
         at /nix/store/2cbmj95wf5zcx48872n73qsijhihb5am-source/builder/comp-builder.nix:452:5:
          451|
          452|     configurePhase =
             |     ^
          453|       (

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: infinite recursion encountered
@thomasjm thomasjm added the bug Something isn't working label Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant