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

Build failure: jsonnet on darwin-aarch64 #239912

Closed
carletes opened this issue Jun 26, 2023 · 4 comments · Fixed by #242641 or #245563
Closed

Build failure: jsonnet on darwin-aarch64 #239912

carletes opened this issue Jun 26, 2023 · 4 comments · Fixed by #242641 or #245563

Comments

@carletes
Copy link

I cannot install jsonnet on my Apple M1 PowerBook any more (potentially due to #236510?)

I'm tracking github:nixos/nixpkgs/nixos-unstable (commit 1c9db97)

Steps To Reproduce

Steps to reproduce the behavior:

  1. Build jsonnet

Build log

Here's the output of nix log /nix/store/irgdrximyp1lzsxwkadiqzwzq40l0ffr-jsonnet-0.20.0.drv

Notify maintainers

@benley @copumpkin

Metadata

[user@system:~]$ nix run nixpkgs#nix-info -- -m
 - system: `"aarch64-darwin"`
 - host os: `Darwin 22.5.0, macOS 13.4.1`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - nixpkgs: `not found`
@benley
Copy link
Member

benley commented Jun 26, 2023

I'm afraid I don't have a Mac around to test with, but from glancing at the build log it appears the problem may go away if you remove "-DBUILD_STATIC_LIBS=ON" from cmakeFlags in the jsonnet derivation, or make it conditional on stdenv.hostPlatform.isStatic as @SuperSandro2000 suggested in #236510.

@johannes-gehrs
Copy link

I can confirm this issue. We worked around this in our own overlay by reverting to the last known (to us) NixPkgs version 0cb867999eec4085e1c9ca61c09b72261fa63bb4 for the Jsonnet package only (i.e. we overlayed the derivation with one that is basically this file. No idea what exactly causes the problem, though.

@flokli
Copy link
Contributor

flokli commented Jul 26, 2023

#242641 didn't fix this, I still can't build jsonnet on Darwin.

@flokli flokli reopened this Jul 26, 2023
@flokli
Copy link
Contributor

flokli commented Jul 26, 2023

This is fixed in #245563, PTAL.

flokli added a commit that referenced this issue Jul 26, 2023
Not setting -DBUILD_SHARED_BINARIES seems to fix the build on aarch64-
darwin and x86_64-darwin.

Fixes #239912.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants