Skip to content

llvmPackages_18.compiler-rt: fix Darwin build#523142

Open
samestep wants to merge 1 commit into
NixOS:masterfrom
samestep:darwin-fix-llvmPackages_18.compiler-rt
Open

llvmPackages_18.compiler-rt: fix Darwin build#523142
samestep wants to merge 1 commit into
NixOS:masterfrom
samestep:darwin-fix-llvmPackages_18.compiler-rt

Conversation

@samestep

@samestep samestep commented May 22, 2026

Copy link
Copy Markdown
Contributor

ZHF: #516381

This PR fixes the Darwin build for llvmPackages_18.compiler-rt after it was broken by the Apple SDK update #511399 via the staging-next merge #517946. Specifically, llvm/llvm-project#133920 broke the ability to build Clang 18 with libc++ 21, so we add lib.versions.major release_version == "18" && stdenv.hostPlatform.isDarwin to the set of conditions to disable things that require libc++.

Things done

@samestep samestep added the 0.kind: ZHF Fixes Fixes during the Zero Hydra Failures (ZHF) campaign label May 22, 2026
@nixpkgs-ci nixpkgs-ci Bot requested review from a team and balsoft and removed request for a team May 22, 2026 20:39
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 6.topic: llvm/clang Issues related to llvmPackages, clangStdenv and related labels May 22, 2026
@samestep samestep force-pushed the darwin-fix-llvmPackages_18.compiler-rt branch from ce390ac to db55912 Compare May 22, 2026 20:44
@nixpkgs-ci nixpkgs-ci Bot requested a review from a team May 22, 2026 20:44
@samestep

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 523142
Commit: ce390acfb805df819c32e3913e5758e5b7a033e8 (subsequent changes)
Merge: d52bbb313ac0872a255bcdbd2cb3651cf6b8bd85

Logs: https://github.com/samestep/nixpkgs-review-gha/actions/runs/26310643146


x86_64-linux

No rebuilds


aarch64-linux

No rebuilds


x86_64-darwin (sandbox = relaxed)

❌ 10 packages failed to build:
  • c2ffi
  • cpp-netlib
  • postgresql14Packages.omnigres
  • postgresql15Packages.omnigres
  • postgresql16Packages.omnigres
  • postgresqlPackages.omnigres (postgresql17Packages.omnigres)
  • postgresql18Packages.omnigres
  • tests.cc-wrapper.llvmTests.llvmPackages_18.clang
  • tests.cc-wrapper.llvmTests.llvmPackages_18.libcxx
  • tests.cc-wrapper.supported
✅ 12 packages built:
  • ante
  • bitwarden-desktop
  • clang_18 (llvmPackages_18.clang, llvmPackages_18.systemLibcxxClang)
  • llvmPackages_18.clang-tools
  • llvmPackages_18.clangUseLLVM
  • llvmPackages_18.compiler-rt (llvmPackages_18.compiler-rt-libc)
  • llvmPackages_18.libcxxClang
  • llvmPackages_18.libcxxStdenv
  • llvmPackages_18.libstdcxxClang
  • llvmPackages_18.stdenv
  • odin
  • ols

Error logs: `x86_64-darwin`
c2ffi
      |        ^
/nix/store/h28z2rfy0mq7szq17sdw2asxzhhbs9bz-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__algorithm/sort.h:951:8: note: in instantiation of function template specialization 'std::sort<std::__wrap_iter<llvm::StringLiteral *>, std::__less<void, void>>' requested here
  951 |   std::sort(__first, __last, __less<>());
      |        ^
/nix/store/rkf5vndvmwsjl0lyp7x0xvrqcwabhqg8-llvm-18.1.8-dev/include/llvm/ADT/STLExtras.h:1665:10: note: in instantiation of function template specialization 'std::sort<std::__wrap_iter<llvm::StringLiteral *>>' requested here
 1665 |     std::sort(Start, End);
      |          ^
/nix/store/rkf5vndvmwsjl0lyp7x0xvrqcwabhqg8-llvm-18.1.8-dev/include/llvm/ADT/STLExtras.h:1670:9: note: in instantiation of function template specialization 'llvm::sort<std::__wrap_iter<llvm::StringLiteral *>>' requested here
 1670 |   llvm::sort(adl_begin(C), adl_end(C));
      |         ^
/nix/store/hzxrxbck26y3k4zq6x68laclgzq83vsv-clang-18.1.8-dev/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h:279:13: note: in instantiation of function template specialization 'llvm::sort<std::vector<llvm::StringLiteral> &>' requested here
  279 |       llvm::sort(AnalyzerConfigCmdFlags);
      |             ^
/nix/store/h28z2rfy0mq7szq17sdw2asxzhhbs9bz-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__bit/countl.h:26:57: note: candidate template ignored: substitution failure [with _Tp = unsigned long]
   26 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 int __countl_zero(_Tp __t) _NOEXCEPT {
      |                                                         ^
1 warning and 11 errors generated.
make[2]: *** [CMakeFiles/c2ffi.dir/build.make:79: CMakeFiles/c2ffi.dir/src/AST.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:252: CMakeFiles/c2ffi.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
cpp-netlib
      |                                          ^
/nix/build/nix-7183-3567135972/source/boost/network/protocol/http/server/impl/parsers.ipp:63:3: note: in instantiation of function template specialization 'boost::spirit::qi::parse<boost::u8_to_u32_iterator<std::__wrap_iter<const char *>>, boost::proto::exprns_::expr<boost::proto::tagns_::tag::shift_right, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::dereference, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::shift_right, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::shift_right, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::shift_right, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::unary_plus, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::minus, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::bitwise_or, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::tag::char_code<boost::spirit::tag::alnum, boost::spirit::char_encoding::standard>>, 0> &, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::tag::char_code<boost::spirit::tag::punct, boost::spirit::char_encoding::standard>>, 0> &>, 2> &, boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<const char &>, 0>>, 2> &>, 1> &, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::terminal_ex<boost::spirit::tag::lit, boost::fusion::vector<const char (&)[3]>>>, 0> &>, 2> &, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::subscript, boost::proto::argsns_::list2<boost::spirit::terminal<boost::spirit::tag::stateful_tag<std::basic_string<unsigned int>, boost::spirit::tag::as>> &, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::unary_plus, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::minus, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::minus, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::bitwise_or, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::bitwise_or, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::tag::char_code<boost::spirit::tag::alnum, boost::spirit::char_encoding::unicode>>, 0> &, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::tag::char_code<boost::spirit::tag::space, boost::spirit::char_encoding::standard>>, 0> &>, 2> &, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::tag::char_code<boost::spirit::tag::punct, boost::spirit::char_encoding::standard>>, 0> &>, 2> &, boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<const char &>, 0>>, 2> &, boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<const char &>, 0>>, 2> &>, 1> &>, 2> &>, 2> &, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::terminal_ex<boost::spirit::tag::lit, boost::fusion::vector<const char (&)[3]>>>, 0> &>, 2> &>, 1> &, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::terminal_ex<boost::spirit::tag::lit, boost::fusion::vector<const char (&)[3]>>>, 0> &>, 2>, std::vector<boost::network::http::request_header_narrow>>' requested here
   63 |   parse(begin, end,
      |   ^
/nix/store/h28z2rfy0mq7szq17sdw2asxzhhbs9bz-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__fwd/string.h:24:8: note: 'char_traits<unsigned int>' has been explicitly marked deprecated here
   24 | struct _LIBCPP_DEPRECATED_(
      |        ^
/nix/store/h28z2rfy0mq7szq17sdw2asxzhhbs9bz-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__config:555:53: note: expanded from macro '_LIBCPP_DEPRECATED_'
  555 | #      define _LIBCPP_DEPRECATED_(m) __attribute__((__deprecated__(m)))
      |                                                     ^
2 warnings and 6 errors generated.
make[2]: *** [libs/network/src/CMakeFiles/cppnetlib-server-parsers.dir/build.make:82: libs/network/src/CMakeFiles/cppnetlib-server-parsers.dir/server_request_parsers_impl.cpp.o] Error 1
make[2]: Leaving directory '/nix/build/nix-7183-3567135972/source/build'
make[1]: *** [CMakeFiles/Makefile2:147: libs/network/src/CMakeFiles/cppnetlib-server-parsers.dir/all] Error 2
6 errors generated.
make[2]: *** [libs/network/src/CMakeFiles/cppnetlib-uri.dir/build.make:82: libs/network/src/CMakeFiles/cppnetlib-uri.dir/uri/uri.cpp.o] Error 1
make[2]: Leaving directory '/nix/build/nix-7183-3567135972/source/build'
make[1]: *** [CMakeFiles/Makefile2:115: libs/network/src/CMakeFiles/cppnetlib-uri.dir/all] Error 2
make[1]: Leaving directory '/nix/build/nix-7183-3567135972/source/build'
make: *** [Makefile:149: all] Error 2
postgresql14Packages.omnigres
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-path.c.o
/nix/build/nix-7183-3567135963/source/deps/libfyaml/src/lib/fy-parse.c:3170:30: warning: variable 'trailing_ws' set but not used [-Wunused-but-set-variable]
 3170 |         size_t length, line_length, trailing_ws, trailing_breaks_length;
      |                                     ^
/nix/build/nix-7183-3567135963/source/deps/libfyaml/src/lib/fy-parse.c:3171:9: warning: variable 'leading_ws' set but not used [-Wunused-but-set-variable]
 3171 |         size_t leading_ws;
      |                ^
16 errors generated.
make[2]: *** [misc/inja/CMakeFiles/inja.dir/build.make:79: misc/inja/CMakeFiles/inja.dir/inja.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1820: misc/inja/CMakeFiles/inja.dir/all] Error 2
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-token.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-types.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utf8.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utils.c.o
2 warnings generated.
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-walk.c.o
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/xxhash/xxhash.c.o
[  5%] Linking C static library libfyaml.a
[  5%] Built target fyaml
make: *** [Makefile:146: all] Error 2
postgresql15Packages.omnigres
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-path.c.o
/nix/build/nix-7183-3567135964/source/deps/libfyaml/src/lib/fy-parse.c:3170:30: warning: variable 'trailing_ws' set but not used [-Wunused-but-set-variable]
 3170 |         size_t length, line_length, trailing_ws, trailing_breaks_length;
      |                                     ^
/nix/build/nix-7183-3567135964/source/deps/libfyaml/src/lib/fy-parse.c:3171:9: warning: variable 'leading_ws' set but not used [-Wunused-but-set-variable]
 3171 |         size_t leading_ws;
      |                ^
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-token.c.o
16 errors generated.
make[2]: *** [misc/inja/CMakeFiles/inja.dir/build.make:79: misc/inja/CMakeFiles/inja.dir/inja.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1820: misc/inja/CMakeFiles/inja.dir/all] Error 2
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-types.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utf8.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utils.c.o
2 warnings generated.
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-walk.c.o
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/xxhash/xxhash.c.o
[  5%] Linking C static library libfyaml.a
[  5%] Built target fyaml
make: *** [Makefile:146: all] Error 2
postgresql16Packages.omnigres
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-path.c.o
/nix/build/nix-7183-3567135967/source/deps/libfyaml/src/lib/fy-parse.c:3170:30: warning: variable 'trailing_ws' set but not used [-Wunused-but-set-variable]
 3170 |         size_t length, line_length, trailing_ws, trailing_breaks_length;
      |                                     ^
/nix/build/nix-7183-3567135967/source/deps/libfyaml/src/lib/fy-parse.c:3171:9: warning: variable 'leading_ws' set but not used [-Wunused-but-set-variable]
 3171 |         size_t leading_ws;
      |                ^
16 errors generated.
make[2]: *** [misc/inja/CMakeFiles/inja.dir/build.make:79: misc/inja/CMakeFiles/inja.dir/inja.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1820: misc/inja/CMakeFiles/inja.dir/all] Error 2
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-token.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-types.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utf8.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utils.c.o
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-walk.c.o
2 warnings generated.
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/xxhash/xxhash.c.o
[  5%] Linking C static library libfyaml.a
[  5%] Built target fyaml
make: *** [Makefile:146: all] Error 2
postgresqlPackages.omnigres
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-path.c.o
16 errors generated.
make[2]: *** [misc/inja/CMakeFiles/inja.dir/build.make:79: misc/inja/CMakeFiles/inja.dir/inja.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1820: misc/inja/CMakeFiles/inja.dir/all] Error 2
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-token.c.o
/nix/build/nix-7183-3567135966/source/deps/libfyaml/src/lib/fy-parse.c:3170:30: warning: variable 'trailing_ws' set but not used [-Wunused-but-set-variable]
 3170 |         size_t length, line_length, trailing_ws, trailing_breaks_length;
      |                                     ^
/nix/build/nix-7183-3567135966/source/deps/libfyaml/src/lib/fy-parse.c:3171:9: warning: variable 'leading_ws' set but not used [-Wunused-but-set-variable]
 3171 |         size_t leading_ws;
      |                ^
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-types.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utf8.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utils.c.o
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-walk.c.o
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/xxhash/xxhash.c.o
2 warnings generated.
[  5%] Linking C static library libfyaml.a
[  5%] Built target fyaml
make: *** [Makefile:146: all] Error 2
postgresql18Packages.omnigres
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-path.c.o
16 errors generated.
make[2]: *** [misc/inja/CMakeFiles/inja.dir/build.make:79: misc/inja/CMakeFiles/inja.dir/inja.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1820: misc/inja/CMakeFiles/inja.dir/all] Error 2
/nix/build/nix-7183-3567135965/source/deps/libfyaml/src/lib/fy-parse.c:3170:30: warning: variable 'trailing_ws' set but not used [-Wunused-but-set-variable]
 3170 |         size_t length, line_length, trailing_ws, trailing_breaks_length;
      |                                     ^
/nix/build/nix-7183-3567135965/source/deps/libfyaml/src/lib/fy-parse.c:3171:9: warning: variable 'leading_ws' set but not used [-Wunused-but-set-variable]
 3171 |         size_t leading_ws;
      |                ^
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-token.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-types.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utf8.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utils.c.o
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-walk.c.o
2 warnings generated.
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/xxhash/xxhash.c.o
[  5%] Linking C static library libfyaml.a
[  5%] Built target fyaml
make: *** [Makefile:146: all] Error 2
tests.cc-wrapper.llvmTests.llvmPackages_18.clang
/nix/store/h28z2rfy0mq7szq17sdw2asxzhhbs9bz-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__bit/countr.h:26:63: note: candidate template ignored: substitution failure [with _Tp = __storage_type]
   26 | [[__nodiscard__]] _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR int __countr_zero(_Tp __t) _NOEXCEPT {
      |                                                               ^
In file included from /nix/store/lm7bpsys535kxfljlkpw23l9k3rvbsgl-cxx-main.cc:1:
In file included from /nix/store/h28z2rfy0mq7szq17sdw2asxzhhbs9bz-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/iostream:45:
In file included from /nix/store/h28z2rfy0mq7szq17sdw2asxzhhbs9bz-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/ios:228:
In file included from /nix/store/h28z2rfy0mq7szq17sdw2asxzhhbs9bz-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__locale:28:
In file included from /nix/store/h28z2rfy0mq7szq17sdw2asxzhhbs9bz-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/string:654:
In file included from /nix/store/h28z2rfy0mq7szq17sdw2asxzhhbs9bz-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/string_view:951:
In file included from /nix/store/h28z2rfy0mq7szq17sdw2asxzhhbs9bz-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/algorithm:1873:
In file included from /nix/store/h28z2rfy0mq7szq17sdw2asxzhhbs9bz-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__algorithm/lexicographical_compare.h:14:
In file included from /nix/store/h28z2rfy0mq7szq17sdw2asxzhhbs9bz-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__algorithm/mismatch.h:15:
In file included from /nix/store/h28z2rfy0mq7szq17sdw2asxzhhbs9bz-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__algorithm/simd_utils.h:14:
/nix/store/h28z2rfy0mq7szq17sdw2asxzhhbs9bz-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__bit/countl.h:28:10: error: use of undeclared identifier '__builtin_clzg'
   28 |   return __builtin_clzg(__t, numeric_limits<_Tp>::digits);
      |          ^
/nix/store/h28z2rfy0mq7szq17sdw2asxzhhbs9bz-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__hash_table:166:79: note: in instantiation of function template specialization 'std::__countl_zero<unsigned long>' requested here
  166 |   return __n < 2 ? __n : (size_t(1) << (numeric_limits<size_t>::digits - std::__countl_zero(__n - 1)));
      |                                                                               ^
10 errors generated.
tests.cc-wrapper.llvmTests.llvmPackages_18.libcxx
  -L/nix/store/pspb88jhff838h6dadfr5415cavazc3m-libresolv-93/lib
  -L/nix/store/hz8fj3ghpwifpwb3qif5bwqcilynh7vw-libsbuf-14.1.0/lib
  -L/nix/store/r95vfr4pv5aik7i0x3wxknki4xg6npkm-libutil-73/lib
  -L/nix/store/lln9zwnjsz71fhsdba05q5p2cz1kxdxi-libcxx-18.1.8/lib
  -L/nix/store/f4w5qy87hh7yj33i4lbcd9fy9113nibq-compiler-rt-libc-18.1.8/lib
  -L/nix/store/jk7dsfjs2i6d1jgchzxlv8083dhl20rh-libiconv-113/lib
  -L/nix/store/pspb88jhff838h6dadfr5415cavazc3m-libresolv-93/lib
  -L/nix/store/hz8fj3ghpwifpwb3qif5bwqcilynh7vw-libsbuf-14.1.0/lib
  -L/nix/store/r95vfr4pv5aik7i0x3wxknki4xg6npkm-libutil-73/lib
  -L/nix/store/5xn9pq7m5wkjgr7ml9n6pyw8jrh7g57g-libSystem-B/lib
  -L/nix/store/bmpqw1lbhhv15alvmbvvr0v0v1mr6yg2-clang-18.1.8-lib/lib
  -L/nix/store/lln9zwnjsz71fhsdba05q5p2cz1kxdxi-libcxx-18.1.8/lib
  cxx-main.o
  /nix/store/lln9zwnjsz71fhsdba05q5p2cz1kxdxi-libcxx-18.1.8/lib/libc++.a
  -lSystem
  /nix/store/y843qsafms1gahnjym0mzv44vsg2jmqd-clang-wrapper-18.1.8/resource-root/lib/darwin/libclang_rt.osx.a
extra flags after to /nix/store/waa07y3kxzy5wvn5xs5ylib1w0w2f92s-cctools-binutils-darwin-1010.6/bin/ld:
  ''
ok
/nix/store/4swa26bj0914al771z43c0xb4y8a2zbj-stdenv-darwin/setup: line 1848: 79382 Segmentation fault: 11     /nix/store/w5nrqj6ryqqxgrxflsr6v3z6ms3qn85h-exec/bin/exec ./cxx-main-static

aarch64-darwin (sandbox = relaxed)

❌ 10 packages failed to build:
  • c2ffi
  • cpp-netlib
  • postgresql14Packages.omnigres
  • postgresql15Packages.omnigres
  • postgresql16Packages.omnigres
  • postgresqlPackages.omnigres (postgresql17Packages.omnigres)
  • postgresql18Packages.omnigres
  • tests.cc-wrapper.llvmTests.llvmPackages_18.clang
  • tests.cc-wrapper.llvmTests.llvmPackages_18.libcxx
  • tests.cc-wrapper.supported
✅ 12 packages built:
  • ante
  • bitwarden-desktop
  • clang_18 (llvmPackages_18.clang, llvmPackages_18.systemLibcxxClang)
  • llvmPackages_18.clang-tools
  • llvmPackages_18.clangUseLLVM
  • llvmPackages_18.compiler-rt (llvmPackages_18.compiler-rt-libc)
  • llvmPackages_18.libcxxClang
  • llvmPackages_18.libcxxStdenv
  • llvmPackages_18.libstdcxxClang
  • llvmPackages_18.stdenv
  • odin
  • ols

Error logs: `aarch64-darwin`
c2ffi
      |        ^
/nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__algorithm/sort.h:951:8: note: in instantiation of function template specialization 'std::sort<std::__wrap_iter<llvm::StringLiteral *>, std::__less<void, void>>' requested here
  951 |   std::sort(__first, __last, __less<>());
      |        ^
/nix/store/qi60qhvwvrxy3ws5kb7q1wwvr6jn7klq-llvm-18.1.8-dev/include/llvm/ADT/STLExtras.h:1665:10: note: in instantiation of function template specialization 'std::sort<std::__wrap_iter<llvm::StringLiteral *>>' requested here
 1665 |     std::sort(Start, End);
      |          ^
/nix/store/qi60qhvwvrxy3ws5kb7q1wwvr6jn7klq-llvm-18.1.8-dev/include/llvm/ADT/STLExtras.h:1670:9: note: in instantiation of function template specialization 'llvm::sort<std::__wrap_iter<llvm::StringLiteral *>>' requested here
 1670 |   llvm::sort(adl_begin(C), adl_end(C));
      |         ^
/nix/store/037rp8lxji2icmn0wfpc72ms0iynv90x-clang-18.1.8-dev/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h:279:13: note: in instantiation of function template specialization 'llvm::sort<std::vector<llvm::StringLiteral> &>' requested here
  279 |       llvm::sort(AnalyzerConfigCmdFlags);
      |             ^
/nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__bit/countl.h:26:57: note: candidate template ignored: substitution failure [with _Tp = unsigned long]
   26 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 int __countl_zero(_Tp __t) _NOEXCEPT {
      |                                                         ^
1 warning and 11 errors generated.
make[2]: *** [CMakeFiles/c2ffi.dir/build.make:79: CMakeFiles/c2ffi.dir/src/AST.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:252: CMakeFiles/c2ffi.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
cpp-netlib
      |                                          ^
/nix/build/nix-10750-4038225961/source/boost/network/protocol/http/server/impl/parsers.ipp:63:3: note: in instantiation of function template specialization 'boost::spirit::qi::parse<boost::u8_to_u32_iterator<std::__wrap_iter<const char *>>, boost::proto::exprns_::expr<boost::proto::tagns_::tag::shift_right, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::dereference, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::shift_right, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::shift_right, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::shift_right, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::unary_plus, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::minus, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::bitwise_or, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::tag::char_code<boost::spirit::tag::alnum, boost::spirit::char_encoding::standard>>, 0> &, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::tag::char_code<boost::spirit::tag::punct, boost::spirit::char_encoding::standard>>, 0> &>, 2> &, boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<const char &>, 0>>, 2> &>, 1> &, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::terminal_ex<boost::spirit::tag::lit, boost::fusion::vector<const char (&)[3]>>>, 0> &>, 2> &, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::subscript, boost::proto::argsns_::list2<boost::spirit::terminal<boost::spirit::tag::stateful_tag<std::basic_string<unsigned int>, boost::spirit::tag::as>> &, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::unary_plus, boost::proto::argsns_::list1<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::minus, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::minus, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::bitwise_or, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::bitwise_or, boost::proto::argsns_::list2<const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::tag::char_code<boost::spirit::tag::alnum, boost::spirit::char_encoding::unicode>>, 0> &, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::tag::char_code<boost::spirit::tag::space, boost::spirit::char_encoding::standard>>, 0> &>, 2> &, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::tag::char_code<boost::spirit::tag::punct, boost::spirit::char_encoding::standard>>, 0> &>, 2> &, boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<const char &>, 0>>, 2> &, boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<const char &>, 0>>, 2> &>, 1> &>, 2> &>, 2> &, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::terminal_ex<boost::spirit::tag::lit, boost::fusion::vector<const char (&)[3]>>>, 0> &>, 2> &>, 1> &, const boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::terminal_ex<boost::spirit::tag::lit, boost::fusion::vector<const char (&)[3]>>>, 0> &>, 2>, std::vector<boost::network::http::request_header_narrow>>' requested here
   63 |   parse(begin, end,
      |   ^
/nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__fwd/string.h:24:8: note: 'char_traits<unsigned int>' has been explicitly marked deprecated here
   24 | struct _LIBCPP_DEPRECATED_(
      |        ^
/nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__config:555:53: note: expanded from macro '_LIBCPP_DEPRECATED_'
  555 | #      define _LIBCPP_DEPRECATED_(m) __attribute__((__deprecated__(m)))
      |                                                     ^
2 warnings and 6 errors generated.
make[2]: *** [libs/network/src/CMakeFiles/cppnetlib-server-parsers.dir/build.make:82: libs/network/src/CMakeFiles/cppnetlib-server-parsers.dir/server_request_parsers_impl.cpp.o] Error 1
make[2]: Leaving directory '/nix/build/nix-10750-4038225961/source/build'
make[1]: *** [CMakeFiles/Makefile2:147: libs/network/src/CMakeFiles/cppnetlib-server-parsers.dir/all] Error 2
6 errors generated.
make[2]: *** [libs/network/src/CMakeFiles/cppnetlib-uri.dir/build.make:82: libs/network/src/CMakeFiles/cppnetlib-uri.dir/uri/uri.cpp.o] Error 1
make[2]: Leaving directory '/nix/build/nix-10750-4038225961/source/build'
make[1]: *** [CMakeFiles/Makefile2:115: libs/network/src/CMakeFiles/cppnetlib-uri.dir/all] Error 2
make[1]: Leaving directory '/nix/build/nix-10750-4038225961/source/build'
make: *** [Makefile:149: all] Error 2
postgresql14Packages.omnigres
      |        ^
/nix/build/nix-10750-4038225942/source/misc/inja/inja.hpp:2457:12: note: in instantiation of function template specialization 'std::sort<nlohmann::detail::iter_impl<nlohmann::basic_json<>>>' requested here
 2457 |       std::sort(result_ptr->begin(), result_ptr->end());
      |            ^
/nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__bit/countl.h:26:57: note: candidate template ignored: substitution failure [with _Tp = unsigned long]
   26 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 int __countl_zero(_Tp __t) _NOEXCEPT {
      |                                                         ^
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-token.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-types.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utf8.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utils.c.o
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-walk.c.o
2 warnings generated.
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/xxhash/xxhash.c.o
[  5%] Linking C static library libfyaml.a
[  5%] Built target fyaml
16 errors generated.
make[2]: *** [misc/inja/CMakeFiles/inja.dir/build.make:79: misc/inja/CMakeFiles/inja.dir/inja.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1820: misc/inja/CMakeFiles/inja.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
postgresql15Packages.omnigres
  951 |   std::sort(__first, __last, __less<>());
      |        ^
/nix/build/nix-10750-4038225945/source/misc/inja/inja.hpp:2457:12: note: in instantiation of function template specialization 'std::sort<nlohmann::detail::iter_impl<nlohmann::basic_json<>>>' requested here
 2457 |       std::sort(result_ptr->begin(), result_ptr->end());
      |            ^
/nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__bit/countl.h:26:57: note: candidate template ignored: substitution failure [with _Tp = unsigned long]
   26 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 int __countl_zero(_Tp __t) _NOEXCEPT {
      |                                                         ^
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-types.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utf8.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utils.c.o
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-walk.c.o
2 warnings generated.
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/xxhash/xxhash.c.o
[  5%] Linking C static library libfyaml.a
[  5%] Built target fyaml
16 errors generated.
make[2]: *** [misc/inja/CMakeFiles/inja.dir/build.make:79: misc/inja/CMakeFiles/inja.dir/inja.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1820: misc/inja/CMakeFiles/inja.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
postgresql16Packages.omnigres
  951 |   std::sort(__first, __last, __less<>());
      |        ^
/nix/build/nix-10750-4038225946/source/misc/inja/inja.hpp:2457:12: note: in instantiation of function template specialization 'std::sort<nlohmann::detail::iter_impl<nlohmann::basic_json<>>>' requested here
 2457 |       std::sort(result_ptr->begin(), result_ptr->end());
      |            ^
/nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__bit/countl.h:26:57: note: candidate template ignored: substitution failure [with _Tp = unsigned long]
   26 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 int __countl_zero(_Tp __t) _NOEXCEPT {
      |                                                         ^
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-types.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utf8.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utils.c.o
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-walk.c.o
2 warnings generated.
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/xxhash/xxhash.c.o
[  5%] Linking C static library libfyaml.a
[  5%] Built target fyaml
16 errors generated.
make[2]: *** [misc/inja/CMakeFiles/inja.dir/build.make:79: misc/inja/CMakeFiles/inja.dir/inja.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1820: misc/inja/CMakeFiles/inja.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
postgresqlPackages.omnigres
  951 |   std::sort(__first, __last, __less<>());
      |        ^
/nix/build/nix-10750-4038225953/source/misc/inja/inja.hpp:2457:12: note: in instantiation of function template specialization 'std::sort<nlohmann::detail::iter_impl<nlohmann::basic_json<>>>' requested here
 2457 |       std::sort(result_ptr->begin(), result_ptr->end());
      |            ^
/nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__bit/countl.h:26:57: note: candidate template ignored: substitution failure [with _Tp = unsigned long]
   26 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 int __countl_zero(_Tp __t) _NOEXCEPT {
      |                                                         ^
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-types.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utf8.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utils.c.o
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-walk.c.o
2 warnings generated.
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/xxhash/xxhash.c.o
[  5%] Linking C static library libfyaml.a
[  5%] Built target fyaml
16 errors generated.
make[2]: *** [misc/inja/CMakeFiles/inja.dir/build.make:79: misc/inja/CMakeFiles/inja.dir/inja.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1820: misc/inja/CMakeFiles/inja.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
postgresql18Packages.omnigres
  951 |   std::sort(__first, __last, __less<>());
      |        ^
/nix/build/nix-10750-4038225954/source/misc/inja/inja.hpp:2457:12: note: in instantiation of function template specialization 'std::sort<nlohmann::detail::iter_impl<nlohmann::basic_json<>>>' requested here
 2457 |       std::sort(result_ptr->begin(), result_ptr->end());
      |            ^
/nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__bit/countl.h:26:57: note: candidate template ignored: substitution failure [with _Tp = unsigned long]
   26 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 int __countl_zero(_Tp __t) _NOEXCEPT {
      |                                                         ^
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-types.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utf8.c.o
[  3%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-utils.c.o
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/lib/fy-walk.c.o
[  5%] Building C object _deps/libfyaml-build/CMakeFiles/fyaml.dir/src/xxhash/xxhash.c.o
2 warnings generated.
[  5%] Linking C static library libfyaml.a
[  5%] Built target fyaml
16 errors generated.
make[2]: *** [misc/inja/CMakeFiles/inja.dir/build.make:79: misc/inja/CMakeFiles/inja.dir/inja.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1820: misc/inja/CMakeFiles/inja.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
tests.cc-wrapper.llvmTests.llvmPackages_18.clang
/nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__bit/countr.h:26:63: note: candidate template ignored: substitution failure [with _Tp = __storage_type]
   26 | [[__nodiscard__]] _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR int __countr_zero(_Tp __t) _NOEXCEPT {
      |                                                               ^
In file included from /nix/store/lm7bpsys535kxfljlkpw23l9k3rvbsgl-cxx-main.cc:1:
In file included from /nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/iostream:45:
In file included from /nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/ios:228:
In file included from /nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__locale:28:
In file included from /nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/string:654:
In file included from /nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/string_view:951:
In file included from /nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/algorithm:1873:
In file included from /nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__algorithm/lexicographical_compare.h:14:
In file included from /nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__algorithm/mismatch.h:15:
In file included from /nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__algorithm/simd_utils.h:14:
/nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__bit/countl.h:28:10: error: use of undeclared identifier '__builtin_clzg'
   28 |   return __builtin_clzg(__t, numeric_limits<_Tp>::digits);
      |          ^
/nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__hash_table:166:79: note: in instantiation of function template specialization 'std::__countl_zero<unsigned long>' requested here
  166 |   return __n < 2 ? __n : (size_t(1) << (numeric_limits<size_t>::digits - std::__countl_zero(__n - 1)));
      |                                                                               ^
10 errors generated.
tests.cc-wrapper.llvmTests.llvmPackages_18.libcxx
  -L/nix/store/p4lp3xq4imd1qzqh08x8vcq2zfhi7rca-libresolv-93/lib
  -L/nix/store/3r9in20wx4a44zsl9w4zrj0bvhbaylk8-libsbuf-14.1.0/lib
  -L/nix/store/rc9xga34lhavrc95lfbpmcvln61z2s7v-libutil-73/lib
  -L/nix/store/pcldbz1r919ba8lvkv4wklia6lqxpv9j-libcxx-18.1.8/lib
  -L/nix/store/7240ba6rm6iakavgc6a3cl3wi2hxynnb-compiler-rt-libc-18.1.8/lib
  -L/nix/store/wjb6smwmv8cynnr776j01kjjzdks1863-libiconv-113/lib
  -L/nix/store/p4lp3xq4imd1qzqh08x8vcq2zfhi7rca-libresolv-93/lib
  -L/nix/store/3r9in20wx4a44zsl9w4zrj0bvhbaylk8-libsbuf-14.1.0/lib
  -L/nix/store/rc9xga34lhavrc95lfbpmcvln61z2s7v-libutil-73/lib
  -L/nix/store/y7k7r9xlbp370zxvrybafsp5j2y03b7s-libSystem-B/lib
  -L/nix/store/51gjpkjd25amz31hz1z7da1crayk10n7-clang-18.1.8-lib/lib
  -L/nix/store/pcldbz1r919ba8lvkv4wklia6lqxpv9j-libcxx-18.1.8/lib
  cxx-main.o
  /nix/store/pcldbz1r919ba8lvkv4wklia6lqxpv9j-libcxx-18.1.8/lib/libc++.a
  -lSystem
  /nix/store/q82vihgk8yjvzpm03vvr3rc155swxplq-clang-wrapper-18.1.8/resource-root/lib/darwin/libclang_rt.osx.a
extra flags after to /nix/store/z61v8rpy6ammvikrpcihn3ij8rrqk0bz-cctools-binutils-darwin-1010.6/bin/ld:
  ''
ok
/nix/store/ykmz1d94rsxmp39iyvwlccx571i58sfv-stdenv-darwin/setup: line 1848: 41834 Segmentation fault: 11     /nix/store/ci1m3hqskbfqcjv9h740ax3baksm2gsq-exec/bin/exec ./cxx-main-static

@ofborg ofborg Bot added the 6.topic: darwin Running or building packages on Darwin label May 23, 2026
@emilazy

emilazy commented May 25, 2026

Copy link
Copy Markdown
Member

Given that libc++ 21 doesn't support Clang 18, won't we still expect LLVM 18 to be broken at least for things involving C++ after this?

(TBH LLVM 18 is overdue for removal and should be dropped. I'd be okay with just marking it broken on Darwin.)

@samestep

Copy link
Copy Markdown
Contributor Author

Given that libc++ 21 doesn't support Clang 18, won't we still expect LLVM 18 to be broken at least for things involving C++ after this?

Yeah I would assume so.

(TBH LLVM 18 is overdue for removal and should be dropped. I'd be okay with just marking it broken on Darwin.)

Makes sense to me. Just to clarify, it sounds like you're saying we still want to keep LLVM 18 for the 26.05 release?

@emilazy

emilazy commented May 25, 2026

Copy link
Copy Markdown
Member

Right, dropping is not on the cards since we’re post‐branch‐off. But we could mark it broken on Darwin for 26.05 and drop it for 26.11; thankfully there’s little left using it.

@mdaniels5757 mdaniels5757 added the backport release-26.05 Backport PR automatically label May 25, 2026
etrobert added a commit to etrobert/setup that referenced this pull request May 29, 2026
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
etrobert added a commit to etrobert/setup that referenced this pull request May 29, 2026
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

Co-authored-by: Etienne Robert <etiennerobert33@gmail.com>
GDR added a commit to GDR/dot that referenced this pull request May 29, 2026
…ld failure

nixpkgs unstable 64c08a7 ships libcxx 21 + apple-sdk 26.4 which uses
__builtin_ctzg (Clang 19+ only). bitwarden-desktop pulls compiler-rt 18
that doesn't know the builtin -> build fails.

Switch macOS to homebrew cask (same pattern as vivaldi/virtualbox).
Linux keeps pkgs.bitwarden-desktop unchanged.

Tracking: NixOS/nixpkgs#523142
@phibkro

phibkro commented May 30, 2026

Copy link
Copy Markdown
Contributor

Built successfully on x86_64-darwin (nix-build -A llvmPackages_18.compiler-rt) — full compile and install complete, producing compiler-rt-libc-18.1.8. The only build output was -Wdeprecated-declarations warnings for deprecated OSAtomic* / os_trace Apple SDK APIs; no errors. Confirms the Darwin build fix.

Disclosure: build verification performed with an AI agent (Claude Code, claude-opus-4-8) on x86_64-darwin; results reviewed by me.

@balsoft balsoft moved this from Needs Review to Reviewed in Nixpkgs security review Jun 1, 2026
@tpansino

tpansino commented Jun 16, 2026

Copy link
Copy Markdown

What work remains on getting this merged? Is there any help needed?

As referenced in the linked issue above, bitwarden-desktop is currently broken on Darwin 26.05. I can get it to build with this patch, but then it fails to sign properly. I'm guessing an official build once this is merged would fix that.

@tpansino

Copy link
Copy Markdown

I found that using the current version from unstable fixes the issue thanks to #530348.

No backport to 26.05 as of yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.kind: ZHF Fixes Fixes during the Zero Hydra Failures (ZHF) campaign 6.topic: darwin Running or building packages on Darwin 6.topic: llvm/clang Issues related to llvmPackages, clangStdenv and related 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. backport release-26.05 Backport PR automatically

Projects

Status: Reviewed

Development

Successfully merging this pull request may close these issues.

6 participants