Repository navigation
ld64: disable hardening again - #536365
Merged
Merged
Conversation
emilazy
force-pushed
the
push-woovtrnymyyu
branch
from
June 28, 2026 16:55
a14b650 to
cd8d047
Compare
reckenrode
reviewed
Jun 28, 2026
Comment on lines
+141
to
+143
| # ld built with this fails to link glib's gio | ||
| hardeningDisable = [ "libcxxhardeningfast" ]; | ||
|
|
Contributor
There was a problem hiding this comment.
I can confirm this allows ld to link Glib and my Swift work again.
Contributor
There was a problem hiding this comment.
Once this is ready, LGTM.
3 of 13 tasks
2 of 13 tasks
Member
Author
|
(Reopening just to make the commits view less confusing, will do all the new reverts once things settle down.) |
nixpkgs-branch-check
Bot
dismissed
their stale review
July 3, 2026 16:53
Review dismissed automatically
Contributor
5 of 13 tasks
mnixry
added a commit
to mnixry/nixpkgs
that referenced
this pull request
Jul 11, 2026
Work around the Darwin ld64 libc++ hardening issue by linking starship with LLVM lld on Darwin. This follows the temporary mitigation pattern used by other affected Darwin packages while NixOS#536365 is pending. This keeps the default notify feature enabled; only the Darwin linker is changed. Assisted-by: OpenAI Codex (GPT-5.5)
eclairevoyant
pushed a commit
to feel-co/fp
that referenced
this pull request
Jul 11, 2026
Work around the Darwin ld64 libc++ hardening issue by linking starship with LLVM lld on Darwin. This follows the temporary mitigation pattern used by other affected Darwin packages while NixOS#536365 is pending. This keeps the default notify feature enabled; only the Darwin linker is changed. Assisted-by: OpenAI Codex (GPT-5.5)
4 tasks done
This comment was marked as resolved.
This comment was marked as resolved.
kriswill
added a commit
to kriswill/dotfiles
that referenced
this pull request
Jul 11, 2026
The pinned nixpkgs' cctools ld64 1010.6 crashes (Trace/BPT trap: 5) linking kitty 0.47.4, vfkit 0.6.3, and starship 1.26.0 on aarch64-darwin; hydra has no cache entries for them, so every darwin rebuild fails. The root fix is on staging (NixOS/nixpkgs#536365); this replicates master's per-package -fuse-ld=lld workarounds (83cc719d53, 559ebc0633, 883e799eb2) byte-identically, so kitty and vfkit hash-match hydra's builds and come from cache instead of compiling. Inert on Linux (empty overlay set); nebula cross-eval verified. DELETE the overlay and its modules/overlays.nix line at the first flake.lock bump that builds all three without it.
reckenrode
approved these changes
Jul 15, 2026
reckenrode
left a comment
Contributor
There was a problem hiding this comment.
Let’s merge this thing.
Merged
via the queue into
NixOS:staging-next
with commit Jul 15, 2026
24de2af
40 of 41 checks passed
2 of 13 tasks
zhaofengli
pushed a commit
to zhaofengli/nixpkgs
that referenced
this pull request
Jul 16, 2026
Work around the Darwin ld64 libc++ hardening issue by linking starship with LLVM lld on Darwin. This follows the temporary mitigation pattern used by other affected Darwin packages while NixOS#536365 is pending. This keeps the default notify feature enabled; only the Darwin linker is changed. Assisted-by: OpenAI Codex (GPT-5.5)
5 of 13 tasks
This was referenced Jul 18, 2026
Closed
This was referenced Jul 18, 2026
MacroPower
added a commit
to MacroPower/dotfiles
that referenced
this pull request
Jul 20, 2026
nixpkgs' classic open-source ld64 (cctools 1010.6) crashes with Trace/BPT trap: 5 in its stubs pass when linking the mac-notification-sys Objective-C object that notify-rust pulls in. Both workmux and czkawka's GUI binaries link that crate. Use LLVM ld64.lld on darwin instead, mirroring nixpkgs' starship workaround (NixOS/nixpkgs#540463). Drop once the cctools fix (NixOS/nixpkgs#536365) reaches our pin.
3 of 13 tasks
Contributor
4 tasks done
eveeifyeve
added a commit
to eveeifyeve/nix-config
that referenced
this pull request
Jul 22, 2026
This is probably related to NixOS/nixpkgs#536365. Error: /nix/store/pnd38c1w69ajjfmpsajbz7i72jd2i62v-cctools-binutils-darwin-wrapper-1010.6/bin/ld: line 292: 84648 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)
This was referenced Jul 23, 2026
Mic92
added a commit
to numtide/llm-agents.nix
that referenced
this pull request
Jul 26, 2026
nixpkgs-unstable now ships a gtk4 4.22.4 that builds on darwin and an ld64 with hardening disabled again (NixOS/nixpkgs#536365), so the gitbutler broken marker and the lld linker workaround for mac-notification-sys (NixOS/nixpkgs#540450) are no longer needed. Verified aarch64-darwin builds of all three packages. Fixes #6713 Partially addresses #6712 (bernstein otel test workaround still needed with opentelemetry-exporter-otlp-proto-grpc 1.43.0).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Following up on #536363.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.