Open pupbrained opened 1 month ago
That PR enables static builds with a flag and such but it doesn't mention lipo
anywhere. I think this is just a missing nativeBuildInput.
That PR enables static builds with a flag and such but it doesn't mention
lipo
anywhere. I think this is just a missing nativeBuildInput.
That was my guess too. I seem to get that same error whether I'm using a version of nixpkgs with the PR merged or not. I tried just overriding the package on my end to add bintools but it led to infinite recursion errors.
Meson expects to invoke lipo
instead of ${targetPrefix}lipo
. This should be fixed on my ld64 branch, which provides a couple of tools unprefixed that build systems expect to call that way even when cross-compiling.
Meson expects to invoke
lipo
instead of${targetPrefix}lipo
. This should be fixed on my ld64 branch, which provides a couple of tools unprefixed that build systems expect to call that way even when cross-compiling.
Do you have a link to that branch so I can test it? All good if not.
Meson expects to invoke
lipo
instead of${targetPrefix}lipo
. This should be fixed on my ld64 branch, which provides a couple of tools unprefixed that build systems expect to call that way even when cross-compiling.Do you have a link to that branch so I can test it? All good if not.
I’m pretty sure it’s been pushed publicly to https://github.com/NixOS/nixpkgs/pull/307880.
This should be fixed by https://github.com/NixOS/nixpkgs/pull/322388.
Also requires https://github.com/NixOS/nixpkgs/pull/322497.
i tried staging-next, it seems to fail in installCheckPhase
with a bunch of failing tests. also looks like staging-next is already in master. the command i tried nix-shell -p pkgsStatic.libiconv --pure -I nixpkgs=https://github.com/nixos/nixpkgs/archive/master.tar.gz
Ok: 2
Expected Fail: 0
Fail: 33
Unexpected Pass: 0
Skipped: 0
Timeout: 0
It also depends on https://github.com/NixOS/nixpkgs/pull/322497, which hasn’t hit master yet.
As #322497 has landed in master (https://github.com/NixOS/nixpkgs/blob/12044caded73d743a15f046af5d2967bf8f3192f/pkgs/by-name/me/meson/setup-hook.sh#L28), I tried building pkgsStatic.libiconv
. It fails while building ld64-951.9
:
@nix { "action": "setPhase", "phase": "installCheckPhase" }
Running phase: installCheckPhase
The Meson build system
Version: 1.4.1
Source dir: /private/tmp/nix-build-ld64-951.9.drv-0/source
Build dir: /private/tmp/nix-build-ld64-951.9.drv-0/source/build-install-check
Build type: native build
Project name: ld64
Project version: 951.9
C compiler for the host machine: clang (clang 16.0.6 "clang version 16.0.6")
C linker for the host machine: clang ld64 951.9
C++ compiler for the host machine: clang++ (clang 16.0.6 "clang version 16.0.6")
C++ linker for the host machine: clang++ ld64 951.9
Host machine cpu family: aarch64
Host machine cpu: aarch64
Program python3 found: YES (/nix/store/1sgajx2r3bkriyxzwsahhva63p08pmac-python3-3.12.4/bin/python3)
Library tapi found: YES
Found pkg-config: YES (/nix/store/hb6wmiz0yrwi0rnhf4xvz6lx616m43xb-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2
Run-time dependency openssl found: YES 3.0.14
Library xar found: YES
Checking if "supports DISPATCH_APPLY_AUTO" compiles: YES
Checking if "supports dispatch_queue_global_t" compiles: YES
Build targets in project: 9
ld64 951.9
User defined options
buildtype: release
b_lto : true
Found ninja-1.12.1 at /nix/store/9vzvg3xc0nwm8dmmn18fnw784d9h8d9v-ninja-1.12.1/bin/ninja
ninja: error: unknown target 'aarch64-apple-darwin-ld'
Thanks for the report. That ld64 failure should be fixed by https://github.com/NixOS/nixpkgs/pull/330949.
Steps To Reproduce
Steps to reproduce the behavior:
Build log
Additional context
From what I can tell, https://github.com/NixOS/nixpkgs/pull/315180 is supposed to fix this issue but it doesn't seem to have changed anything (I have ensured my flake is using the latest version of nixpkgs-unstable, which has this PR merged).
Notify maintainers
@NixOS/darwin-maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result."aarch64-darwin"
Darwin 24.0.0, macOS 15.0
yes
no
nix-env (Nix) 2.18.2
/Users/marshall/.nix-defexpr/channels/nixpkgs
Add a :+1: reaction to issues you find important.