fix(aaron): workaround compiler-rt 18 darwin build via overlay#147
Merged
Conversation
Apple SDK 26.4 ships libc++ 21, which dropped the fallbacks for __builtin_ctzg/__builtin_clzg — builtins Clang 18 does not recognize. nixos-unstable has been stuck at 64c08a7 (2026-05-23) ever since, because Hydra cannot advance past this failure. Mirror NixOS/nixpkgs#523142 with a host-scoped overlay that disables the C++ components (XRAY, LIBFUZZER, MEMPROF, ORC) of compiler-rt 18. Built locally on aarch64-darwin; the overlay propagates through the stdenv-darwin bootstrap via overrideScope. Refs: NixOS/nixpkgs#480849, NixOS/nixpkgs#523142
a741648 to
44a9c14
Compare
etrobert
approved these changes
May 29, 2026
This was referenced May 29, 2026
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.
Summary
nixos-unstablehas been stuck at64c08a7(2026-05-23) for almost a week because Apple SDK 26.4 ships libc++ 21, which dropped fallbacks for__builtin_ctzg/__builtin_clzg— builtins Clang 18 does not recognize. This breakscompiler-rt-libc-18.1.8on Darwin and blocks all ournixos-unstableupdates (chore: update flake inputs #141 has been failing aaron since 2026-05-23).overrideScopeso the fix propagates into the darwin stdenv bootstrap.Tracking: NixOS/nixpkgs#480849, NixOS/nixpkgs#523142.
Test plan
nix flake check --no-buildpasses (statix, deadnix, all configurations evaluate)nix build .#darwinConfigurations.aaron.systemsucceeds locally on aaron — the previously-failingcompiler-rt-libc-18.1.8derivation now builds, andclang-wrapper-18.1.8/stdenv-darwin/ full system path all completedarwin-rebuild switchon aaron once merged