Repository navigation
Closed
Closed
Copy link
Labels
Description
Nixpkgs version
- Unstable (26.11)
Describe the bug
Fails to build on NixOS/nixpkgs commit a62e6edd6d5e1fa0329b8653c801147986f8d446 and nix-darwin commit d5bd9cd77aea4c0a8f49e7fd85545671a208ed15
Steps to reproduce
Using home-manager here.
{ pkgs, ... }: {
home = {
packages = with pkgs; [
colima
];
};
}Expected behaviour
The package should build successfully.
Screenshots
No response
Relevant log output
Using versionCheckHook
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/gdg61w73z5z1vx4bgyrvz9x74f23nhfz-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
rm -rf _output
CGO_ENABLED=1 GOOS="darwin" GOARCH="arm64" CC="cc" go build -ldflags="-s=true -w=true -X github.com/lima-vm/lima/v2/pkg/version.Version=v2.1.4" -tags '' -o _output/bin/limactl ./cmd/limactl
# github.com/lima-vm/lima/v2/cmd/limactl
/nix/store/38idfbqyw3p8xaslv6bnrig62pj7qy6i-go-1.26.4/share/go/pkg/tool/darwin_arm64/link: running cc failed: exit status 1
/nix/store/yn81qpksaxk576qb807fsck5ch7zmj6c-clang-wrapper-21.1.8/bin/cc -arch arm64 -Wl,-S -Wl,-x -o $WORK/b001/exe/a.out -Qunused-arguments /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/go.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000000.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000001.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000002.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000003.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000004.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000005.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000006.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000007.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000008.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000009.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000010.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000011.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000012.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000013.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000014.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000015.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000016.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000017.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000018.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000019.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000020.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000021.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000022.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000023.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000024.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000025.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000026.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000027.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000028.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000029.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000030.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000031.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000032.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000033.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000034.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000035.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000036.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000037.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000038.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000039.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000040.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000041.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000042.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000043.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000044.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000045.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000046.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000047.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000048.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000049.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000050.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000051.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000052.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000053.o /nix/var/nix/builds/nix-16811-3649878900/go-link-882816226/000054.o -O2 -g -framework CoreServices -lresolv -O2 -g -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -lobjc -framework Foundation -framework Virtualization -framework Cocoa -lobjc -framework Foundation -framework Virtualization -lobjc -O2 -g -framework CoreFoundation -O2 -g -lobjc -framework Foundation -framework CoreFoundation -framework Security
/nix/store/pnd38c1w69ajjfmpsajbz7i72jd2i62v-cctools-binutils-darwin-wrapper-1010.6/bin/ld: line 292: 34091 Trace/BPT trap: 5 /nix/store/zhb8xrwn0mp0xk3argfbh8w73c4cipqs-cctools-binutils-darwin-1010.6/bin/ld "@$responseFile"
clang: error: linker command failed with exit code 133 (use -v to see invocation)
make: *** [Makefile:307: _output/bin/limactlAdditional context
No response
System metadata
- system: `"aarch64-darwin"`
- host os: `Darwin 25.2.0, macOS 26.2`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.34.7+1`
- channels(root): `"nixpkgs"`
- nixpkgs: `/nix/store/08x8hbjrxd72wc9vihrcq83lmclbkxn6-source`
Are you using nix-darwin?
Yes, I am using nix-darwin.
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
- I assert that I have read the automation/AI policy and that this issue report complies with it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Reacted by Oscar Vargas Torres, MacDefender, Oleg Shatov, Térence Chateigné, Yu Xiaoqiang, Alexis Hildebrandt, Guilherme Lima and Sam
Activity
dmizelle commentedon Jul 10, 2026
It looks like that these may be related? Similar error message... #540408 #540303
Might be a sandboxing issue? I'm a little too stupid to debug that though.
n8henrie commentedon Jul 11, 2026
In the future please make sure to follow the issue template, which is designed to help our volunteer maintainer team diagnose and resolve issues as efficiently as possible.
In particular, please rename this issue like so:
Build failure: lima(or I often do something likeBuild failure: lima (aarch64-darwin)if it seems likely to be a darwin issue, as is the case here, since the majority of nixpkgs' contributors do not have access to a darwin machine, so hopefully helps save them a click).Additionally, the issue template would have prompted you to include the important context that this failure is reproducible on hydra: https://hydra.nixos.org/build/336935387. This lets others know that it's not just a local configuration problem (a "you" problem). You can find this build by searching the relevant jobs on hydra, e.g. https://hydra.nixos.org/job/nixpkgs/unstable/lima.aarch64-darwin/all.
Agreed.
Thankfully this is very easy to test, particularly if you're using flakes. Above you specify nixpkgs commit
a62e6edd6d5e1fa0329b8653c801147986f8d446, we can try to reproduce the failure with:$ nix build github:nixos/nixpkgs/a62e6edd6d5e1fa0329b8653c801147986f8d446#limaAs expected, this fails with the same error message that you (and hydra) get.
To test for a sandbox issue, we'll turn off the sandbox for this specific build:
$ nix build --option sandbox false github:nixos/nixpkgs/a62e6edd6d5e1fa0329b8653c801147986f8d446#limaIn this case that command instantly succeeds, which suggests that it's a cached build. Because the failure is in the
checkPhase, which isn't re-executed on rebuilds, we'll need to re-run with the--rebuildflag:$ nix build --rebuild --option sandbox false github:nixos/nixpkgs/a62e6edd6d5e1fa0329b8653c801147986f8d446#limaSure enough that fails with the same error, proving that this is not a sandbox issue.
guilherme-n-l commentedon Jul 12, 2026
#536365 may be the general fix and needs validation.
avoids the the ld issue just fine (Tahoe 26.5 (25F71)). But then yields a bin without
LC_UUIDflag, failing to properly build.Maybe using something similar to #540463 would resolve the issue for now.
But further investigation is needed for a proper solution.
samiser commentedon Jul 12, 2026
Yup this is indeed the case, it's been addressed with temp fixes in a few other packages like starship as you referenced. I've opened a PR #541023 replicating the fix used by vfkit (#539768) since it's most similar to lima's setup (not that it really matters that much)
[-]lima: 2.1.4 Fails to Build on Tahoe 26.2 aarch64-darwin[/-][+]Build falure: lima: 2.1.4 (aarch64-darwin) Fails to Build on Tahoe 26.2[/+]dmizelle commentedon Jul 12, 2026
@n8henrie
Apologies, I was a little bit sleepy and I think was in a bit of a rush. I'll pay a bit more attention next time.
Done.
Good to know, I'm a little new at navigating hydra and that very much makes sense. Thanks for the tip.
Also, thanks a ton for the pointers on the sandbox stuff.
[-]Build falure: lima: 2.1.4 (aarch64-darwin) Fails to Build on Tahoe 26.2[/-][+]Build failure: lima: 2.1.4 (aarch64-darwin) Fails to Build on Tahoe 26.2[/+]