Skip to content

bitwarden-desktop: can't build compiler-rt-libc-18.1.8 #527724

Description

@karldelandsheere

Nixpkgs version

  • Unstable (26.11)

Describe the bug

When trying to darwin-rebuild switch while including pkgs.bitwarden-desktop, the build fails with this error message:

error: Cannot build '/nix/store/y1hdj0swwfvql64c3ygbs4g3qar8c709-compiler-rt-libc-18.1.8.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/2vi8y2szm2gkhvvfd1wpl395cscb5bxw-compiler-rt-libc-18.1.8-dev
         /nix/store/fmxvrh2bjdy29bba3qkkp5zcf40cwv51-compiler-rt-libc-18.1.8
       Last 25 log lines:
       > /nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__bit/bit_log2.h:28:44: error: no matching function for call to '__countl_zero'
       >    28 |   return numeric_limits<_Tp>::digits - 1 - std::__countl_zero(__t);
       >       |                                            ^~~~~~~~~~~~~~~~~~
       > /nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__algorithm/sort.h:867:44: note: in instantiation of function template specialization 'std::__bit_log2<unsigned long>' requested here
       >   867 |   difference_type __depth_limit = 2 * std::__bit_log2(std::__to_unsigned_like(__last - __first));
       >       |                                            ^
       > /nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__algorithm/sort.h:937:10: note: in instantiation of function template specialization 'std::__sort_dispatch<std::_ClassicAlgPolicy, fuzzer::SizedFile *, std::__less<void, void>>' requested here
       >   937 |     std::__sort_dispatch<_AlgPolicy>(std::__unwrap_iter(__first), std::__unwrap_iter(__last), __comp);
       >       |          ^
       > /nix/store/i37q3dpd0wqclijpx1wspig9nf8waj4x-libcxx-21.1.6+apple-sdk-26.4/include/c++/v1/__algorithm/sort.h:945:8: note: in instantiation of function template specialization 'std::__sort_impl<std::_ClassicAlgPolicy, std::__wrap_iter<fuzzer::SizedFile *>, std::__less<void, void>>' requested here
       >   945 |   std::__sort_impl<_ClassicAlgPolicy>(std::move(__first), std::move(__last), __comp);
       >       |        ^
       > /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<fuzzer::SizedFile *>, std::__less<void, void>>' requested here
       >   951 |   std::sort(__first, __last, __less<>());
       >       |        ^
       > /nix/var/nix/builds/nix-77347-836433067/compiler-rt-src-18.1.8/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:521:8: note: in instantiation of function template specialization 'std::sort<std::__wrap_iter<fuzzer::SizedFile *>>' requested here
       >   521 |   std::sort(OldCorpus.begin(), OldCorpus.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 {
       >       |                                                         ^
       > 11 errors generated.
       > [892/1115] Building CXX object lib/asan/CMakeFiles/RTAsan_dynamic.osx.dir/asan_interceptors.cpp.o
       > Warning: supplying the --target arm64-apple-macos != arm64-apple-darwin argument to a nix-wrapped compiler may not work correctly - cc-wrapper is currently not designed with multi-target compilers in mind. You may want to use an un-wrapped compiler instead.
       > ninja: build stopped: subcommand failed.
       For full logs, run:
         nix log /nix/store/y1hdj0swwfvql64c3ygbs4g3qar8c709-compiler-rt-libc-18.1.8.drv
error: Cannot build '/nix/store/jfbzva88lky5c6i1sk5f9xbgrcsd7cws-clang-wrapper-18.1.8.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/jx319rrs5rzyvp6fiddpyq6wybhiahnj-clang-wrapper-18.1.8
error: Build failed due to failed dependency
error: Cannot build '/nix/store/qpvna3jybhig7xj996n0bmiln33gcmjh-stdenv-darwin.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/qzs2gxh5xs7c9773xv85yrmamp36757p-stdenv-darwin
error: Build failed due to failed dependency
error: Cannot build '/nix/store/09kd5prx69x0zfiw4hfy3bn3hacqxl5c-bitwarden-desktop-2026.5.0.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/7qpji9lhxy7s6nmp1jmpzqa8iwx306y7-bitwarden-desktop-2026.5.0
error: Build failed due to failed dependency
error: Cannot build '/nix/store/ly3z474kkims6rxfqiydq4gw6x5150xs-bitwarden-desktop-2026.5.0.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/09ksqr5vgzmvqpw2cs7c68ga5c2sj7al-bitwarden-desktop-2026.5.0
error: Build failed due to failed dependency
error: Cannot build '/nix/store/dc9ckhs8zll3n3aqg71f3mrddwbzxnzx-system-applications.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/fg3596y3ijv976b5nxvwh4v7b2qci9mh-system-applications
error: Cannot build '/nix/store/j5v4l3gn5i6xgx5xm9384ncm02fpqg4a-system-path.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/5b5ab6w2v9jyxyga8r3vc1zb2msj3h6n-system-path
error: Build failed due to failed dependency
error: Build failed due to failed dependency
error: Cannot build '/nix/store/xwjsf0h2di91ajlxa0irkydqybw3w0h8-darwin-system-26.05.56c666e.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/5isfx2p3a082dzyfdc21i48b2zlpgwn2-darwin-system-26.05.56c666e
error: Cannot build '/nix/store/ywhxcx0mkfsw8bmzm4nnbyhm9jfrms1z-etc.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/4lr9b54hjqwwj96i7xl0ghn23vncirfi-etc
error: Build failed due to failed dependency

Without pkgs.bitwarden-desktop, it builds without any problem.

Steps to reproduce

When using this flake (https://codeberg.org/karldelandsheere/dotfiles) on a aarch64-darwin host, be sure to add pkgs.bitwarden-desktop to your systemPackages, and darwin-rebuild your system.

Expected behaviour

It should rebuild successfuly.

Screenshots

compiler-rt-libc-18.1.8.drv.log

Relevant log output

## Log was too long, so I added it in the file above

Additional context

No response

System metadata

  • system: "aarch64-darwin"
  • host os: Darwin 25.5.0, macOS 26.5
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 2.34.7+1
  • channels(root): "nixpkgs"
  • nixpkgs: /nix/store/3a2vdn5i7vd2wl654xs8nb52jf1v6cbh-source

Are you using nix-darwin?

Yes, I am using nix-darwin.

Notify maintainers

@RossComputerGuy @alyssais @Ericson2314 @emilazy @rrbutani @sternenseemann @balsoft @infinisil @pyrox0


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

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: darwinRunning or building packages on Darwin

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions