Running phase: unpackPhase unpacking source archive /nix/store/vnkc960dmlbydfi89ayhwlnil34s14hb-source source root is source Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase mesonConfigurePhase flags: --prefix=/nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4 --libdir=/nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4/lib --libexecdir=/nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4/libexec --bindir=/nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4/bin --sbindir=/nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4/sbin --includedir=/nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4/include --mandir=/nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4/share/man --infodir=/nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4/share/info --localedir=/nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --buildtype=plain -Db_pch=false The Meson build system Version: 1.10.2 Source dir: /nix/var/nix/builds/nix-33170-698824128/source Build dir: /nix/var/nix/builds/nix-33170-698824128/source/build Build type: native build WARNING: Project does not target a minimum version but uses feature introduced in '1.1': meson.options file. Use meson_options.txt instead Project name: nix-grpc-store Project version: 0.1.0-beta.4 C++ compiler for the host machine: clang++ (clang 22.1.8 "clang version 22.1.8") C++ linker for the host machine: clang++ ld64 956.6 Host machine cpu family: aarch64 Host machine cpu: aarch64 Found pkg-config: YES (/nix/store/kd2x1bj3gwfh2hb69fk5ym043h2qavxc-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2 Run-time dependency grpc++ found: YES 1.83.0 Run-time dependency protobuf found: YES 36.1.0 Run-time dependency libzstd found: YES 1.5.7 Run-time dependency threads found: YES Run-time dependency libcrypto found: YES 3.6.4 Run-time dependency prometheus-cpp-core found: YES 1.3.0 Run-time dependency prometheus-cpp-pull found: YES 1.3.0 Run-time dependency absl_flat_hash_map found: YES 20260107 Run-time dependency absl_hash found: YES 20260107 Run-time dependency absl_synchronization found: YES 20260107 Compiler for C++ supports arguments -Werror=thread-safety: YES Run-time dependency jemalloc found: YES 5.3.1_0 Run-time dependency nix-store found: YES 2.36.0pre20260920_5711f8fe Run-time dependency nix-util found: YES 2.36.0pre20260920_5711f8fe Run-time dependency libcurl found: YES 8.22.0 Run-time dependency nlohmann_json found: YES 3.12.0 Check usable header "jwt-cpp/traits/nlohmann-json/defaults.h" : YES Program protoc found: YES (/nix/store/r1npr0vx8d17c0fhh9gvg9mpaiphn62a-protobuf-36.1/bin/protoc) Program grpc_cpp_plugin found: YES (/nix/store/0mm81ldgq4ssz7gnh8589gx9zfcxpdhq-grpc-1.83.0/bin/grpc_cpp_plugin) Run-time dependency dl found: YES Program tests/farm-client-test.sh found: YES (/nix/var/nix/builds/nix-33170-698824128/source/tests/farm-client-test.sh) Program tests/oidc-test.sh found: YES (/nix/var/nix/builds/nix-33170-698824128/source/tests/oidc-test.sh) Build targets in project: 14 WARNING: Project specifies no minimum version but uses features which were added in versions: * 1.1: {'meson.options file'} nix-grpc-store 0.1.0-beta.4 User defined options auto_features: enabled b_pch : false bindir : /nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4/bin buildtype : plain includedir : /nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4/include infodir : /nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4/share/info libdir : /nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4/lib libexecdir : /nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4/libexec localedir : /nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4/share/locale mandir : /nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4/share/man prefix : /nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4 sbindir : /nix/store/6h9y6ggag04q0cf9rybm8b1drx26h1d0-nix-grpc-store-clang-tidy-0.1.0-beta.4/sbin wrap_mode : nodownload Found ninja-1.13.2 at /nix/store/kalf64hrn0zrxlacfvgymwbck77qvsr9-ninja-1.13.2/bin/ninja mesonConfigurePhase: enabled\ parallel\ building Running phase: buildPhase [2/2] Generating eds_proto with a custom command [0/1] /nix/store/j2s018h6gc2q0z3sw002br2zas3m1l9d-meson-1.10.2/bin/meson --internal clangtidy /nix/var/nix/builds/nix-33170-698824128/source /nix/var/nix/builds/nix-33170-698824128/source/build --color always >>> /nix/store/l8sbl3yky84xqxj3a5hazrjdx52avnf2-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /nix/var/nix/builds/nix-33170-698824128/source/build /nix/var/nix/builds/nix-33170-698824128/source/tests/upload-claims-test.cc ../src/daemon/upload-claims.hh:30:9: error: an exception may be thrown in function '~Claim' which should not throw exceptions [bugprone-exception-escape,-warnings-as-errors] 30 | ~Claim() | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/stdexcept:256:3: note: frame #0: unhandled exception of type 'out_of_range' may be thrown in function '__throw_out_of_range' here 256 | throw out_of_range(__msg); | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/map:1447:5: note: frame #1: function 'at' calls function '__throw_out_of_range' here 1447 | std::__throw_out_of_range("map::at: key not found"); | ^ ../src/daemon/upload-claims.hh:98:13: note: frame #2: function 'finish' calls function 'at' here 98 | active_.at(path) = outcome; | ^ ../src/daemon/upload-claims.hh:33:17: note: frame #3: function '~Claim' calls function 'finish' here 33 | table_->finish(path_, Outcome::failed); | ^ ../src/daemon/upload-claims.hh:60:9: error: an exception may be thrown in function '~Waiter' which should not throw exceptions [bugprone-exception-escape,-warnings-as-errors] 60 | ~Waiter() | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/stdexcept:256:3: note: frame #0: unhandled exception of type 'out_of_range' may be thrown in function '__throw_out_of_range' here 256 | throw out_of_range(__msg); | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/map:1447:5: note: frame #1: function 'at' calls function '__throw_out_of_range' here 1447 | std::__throw_out_of_range("map::at: key not found"); | ^ ../src/daemon/upload-claims.hh:115:15: note: frame #2: function 'leave' calls function 'at' here 115 | if (--waiters_.at(path) == 0) { | ^ ../src/daemon/upload-claims.hh:63:17: note: frame #3: function '~Waiter' calls function 'leave' here 63 | table_->leave(path_); | ^ ../src/daemon/upload-claims.hh:68:9: error: function 'wait' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors] 68 | auto wait() const -> Outcome { return table_->await(path_); } | ^ | [[nodiscard]] ../tests/upload-claims-test.cc:26:23: error: no header providing "std::make_optional" is directly included [misc-include-cleaner,-warnings-as-errors] 3 | auto owner = std::make_optional(claims.enter("p")); | ^ ../tests/upload-claims-test.cc:29:12: error: unchecked access to optional value [bugprone-unchecked-optional-access,-warnings-as-errors] 29 | assert(other.waiter->wait() == Outcome::failed); | ^ /nix/store/rq88pmfxfl98jhzfhb46jvl0rl8nyd6g-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:99:25: note: expanded from macro 'assert' 99 | (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __ASSERT_FILE_NAME, __LINE__, #e) : (void)0) | ^ ../tests/upload-claims-test.cc:38:9: error: unchecked access to optional value [bugprone-unchecked-optional-access,-warnings-as-errors] 38 | owner.owner->done(); | ^~~~~~~~~~~ ../tests/upload-claims-test.cc:51:24: error: use a trailing return type for this lambda [modernize-use-trailing-return-type,-warnings-as-errors] 51 | std::thread thread([&] { seen = other.waiter->wait(); }); | ^ | -> void ../tests/upload-claims-test.cc:52:59: error: 100 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers,-warnings-as-errors] 52 | std::this_thread::sleep_for(std::chrono::milliseconds(100)); | ^ ../tests/upload-claims-test.cc:54:5: error: unchecked access to optional value [bugprone-unchecked-optional-access,-warnings-as-errors] 54 | owner.owner->done(); | ^~~~~~~~~~~ ../tests/upload-claims-test.cc:62:10: error: variable name 'a' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors] 62 | auto a = claims.enter("a"); | ^ ../tests/upload-claims-test.cc:63:10: error: variable name 'b' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors] 63 | auto b = claims.enter("b"); | ^ ../tests/upload-claims-test.cc:71:6: error: an exception may be thrown in function 'main' which should not throw exceptions [bugprone-exception-escape,-warnings-as-errors] 71 | auto main() -> int | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/__new/exceptions.h:67:3: note: frame #0: unhandled exception of type 'bad_array_new_length' may be thrown in function '__throw_bad_array_new_length' here 67 | throw bad_array_new_length(); | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/__memory/allocator.h:101:7: note: frame #1: function 'allocate' calls function '__throw_bad_array_new_length' here 101 | std::__throw_bad_array_new_length(); | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/__memory/allocator.h:112:13: note: frame #2: function 'allocate_at_least' calls function 'allocate' here 112 | return {allocate(__n), __n}; | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/__memory/allocator_traits.h:280:14: note: frame #3: function 'allocate_at_least>' calls function 'allocate_at_least' here 280 | return __alloc.allocate_at_least(__n); | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/__memory/allocate_at_least.h:26:10: note: frame #4: function '__allocate_at_least>' calls function 'allocate_at_least>' here 26 | return std::allocator_traits<_Alloc>::allocate_at_least(__alloc, __n); | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/string:2555:25: note: frame #5: function '__init' calls function '__allocate_at_least>' here 2555 | auto __allocation = std::__allocate_at_least(__alloc_, __recommend(__sz) + 1); | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/string:1063:5: note: frame #6: function 'basic_string<0>' calls function '__init' here 1063 | __init(__s, traits_type::length(__s)); | ^ ../tests/upload-claims-test.cc:15:31: note: frame #7: function 'firstEntrantOwnsAndTheRestWait' calls function 'basic_string<0>' here 15 | auto first = claims.enter("p"); | ^ ../tests/upload-claims-test.cc:73:5: note: frame #8: function 'main' calls function 'firstEntrantOwnsAndTheRestWait' here 73 | firstEntrantOwnsAndTheRestWait(); | ^ >>> /nix/store/l8sbl3yky84xqxj3a5hazrjdx52avnf2-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /nix/var/nix/builds/nix-33170-698824128/source/build /nix/var/nix/builds/nix-33170-698824128/source/src/client/channel.cc [1/1] (1/2) Processing file /nix/var/nix/builds/nix-33170-698824128/source/src/client/channel.cc. [1/1] (2/2) Processing file /nix/var/nix/builds/nix-33170-698824128/source/src/client/channel.cc. >>> /nix/store/l8sbl3yky84xqxj3a5hazrjdx52avnf2-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /nix/var/nix/builds/nix-33170-698824128/source/build /nix/var/nix/builds/nix-33170-698824128/source/src/daemon/main.cc Errors encountered while running clang-tidy ../src/daemon/main.cc:363:20: error: an exception may be thrown in function 'Received' which should not throw exceptions [bugprone-exception-escape,-warnings-as-errors] 363 | struct Received | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/__new/exceptions.h:67:3: note: frame #0: unhandled exception of type 'bad_array_new_length' may be thrown in function '__throw_bad_array_new_length' here 67 | throw bad_array_new_length(); | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/__memory/allocator.h:101:7: note: frame #1: function 'allocate' calls function '__throw_bad_array_new_length' here 101 | std::__throw_bad_array_new_length(); | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/__memory/allocator.h:112:13: note: frame #2: function 'allocate_at_least' calls function 'allocate' here 112 | return {allocate(__n), __n}; | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/__memory/allocator_traits.h:280:14: note: frame #3: function 'allocate_at_least>' calls function 'allocate_at_least' here 280 | return __alloc.allocate_at_least(__n); | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/__memory/allocate_at_least.h:26:10: note: frame #4: function '__allocate_at_least>' calls function 'allocate_at_least>' here 26 | return std::allocator_traits<_Alloc>::allocate_at_least(__alloc, __n); | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/string:2580:25: note: frame #5: function '__init_copy_ctor_external' calls function '__allocate_at_least>' here 2580 | auto __allocation = std::__allocate_at_least(__alloc_, __recommend(__sz) + 1); | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/string:1007:7: note: frame #6: function 'basic_string' calls function '__init_copy_ctor_external' here 1007 | __init_copy_ctor_external(std::__to_address(__str.__get_long_pointer()), __str.__get_long_size()); | ^ /nix/store/a8sc8chx2c5cn0agywqg29p7g65yfbs6-nix-store-2.36.0pre20260920_5711f8fe-dev/include/nix/store/path-info.hh:120:5: note: frame #7: function 'UnkeyedValidPathInfo' calls function 'basic_string' here 120 | UnkeyedValidPathInfo(const UnkeyedValidPathInfo & other) = default; | ^ /nix/store/a8sc8chx2c5cn0agywqg29p7g65yfbs6-nix-store-2.36.0pre20260920_5711f8fe-dev/include/nix/store/path-info.hh:158:8: note: frame #8: function 'ValidPathInfo' calls function 'UnkeyedValidPathInfo' here 158 | struct ValidPathInfo : virtual UnkeyedValidPathInfo | ^ ../src/daemon/main.cc:363:20: note: frame #9: function 'Received' calls function 'ValidPathInfo' here 363 | struct Received | ^ ../src/daemon/main.cc:376:29: error: use designated initializer list to initialize 'value_type' (aka 'Received') [modernize-use-designated-initializers,-warnings-as-errors] 376 | {info, std::move(ticket.owner), std::nullopt, nixgrpc::SpooledNar::spool(nar, info.narSize)}); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | .info=.owner= .waiter= .nar= ../src/daemon/main.cc:363:13: note: aggregate type is defined here 363 | struct Received | ^ ../src/daemon/main.cc:379:44: error: use designated initializer list to initialize 'value_type' (aka 'Received') [modernize-use-designated-initializers,-warnings-as-errors] 379 | received.push_back({info, std::nullopt, std::move(ticket.waiter), std::nullopt}); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | .info=.owner= .waiter= .nar= ../src/daemon/main.cc:363:13: note: aggregate type is defined here 363 | struct Received | ^ ../src/daemon/upload-claims.hh:30:9: error: an exception may be thrown in function '~Claim' which should not throw exceptions [bugprone-exception-escape,-warnings-as-errors] 30 | ~Claim() | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/stdexcept:256:3: note: frame #0: unhandled exception of type 'out_of_range' may be thrown in function '__throw_out_of_range' here 256 | throw out_of_range(__msg); | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/map:1447:5: note: frame #1: function 'at' calls function '__throw_out_of_range' here 1447 | std::__throw_out_of_range("map::at: key not found"); | ^ ../src/daemon/upload-claims.hh:98:13: note: frame #2: function 'finish' calls function 'at' here 98 | active_.at(path) = outcome; | ^ ../src/daemon/upload-claims.hh:33:17: note: frame #3: function '~Claim' calls function 'finish' here 33 | table_->finish(path_, Outcome::failed); | ^ ../src/daemon/upload-claims.hh:60:9: error: an exception may be thrown in function '~Waiter' which should not throw exceptions [bugprone-exception-escape,-warnings-as-errors] 60 | ~Waiter() | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/stdexcept:256:3: note: frame #0: unhandled exception of type 'out_of_range' may be thrown in function '__throw_out_of_range' here 256 | throw out_of_range(__msg); | ^ /nix/store/9z187ss3liak3pngakax2ip7nb1dc7z5-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/map:1447:5: note: frame #1: function 'at' calls function '__throw_out_of_range' here 1447 | std::__throw_out_of_range("map::at: key not found"); | ^ ../src/daemon/upload-claims.hh:115:15: note: frame #2: function 'leave' calls function 'at' here 115 | if (--waiters_.at(path) == 0) { | ^ ../src/daemon/upload-claims.hh:63:17: note: frame #3: function '~Waiter' calls function 'leave' here 63 | table_->leave(path_); | ^ ../src/daemon/upload-claims.hh:68:9: error: function 'wait' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors] 68 | auto wait() const -> Outcome { return table_->await(path_); } | ^ | [[nodiscard]] ../src/daemon/upload-spool.hh:53:65: error: function is not thread safe [concurrency-mt-unsafe,-warnings-as-errors] 53 | throw nix::Error("cannot write the spool file: %s", std::strerror(writeErrno)); | ^ ../src/daemon/upload-spool.hh:55:16: error: avoid repeating the return type from the declaration; use a braced initializer list instead [modernize-return-braced-init-list,-warnings-as-errors] 55 | return SpooledNar(std::move(file), size); | ^~~~~~~~~~~ ~ | { } ../src/daemon/upload-spool.hh:85:100: error: function is not thread safe [concurrency-mt-unsafe,-warnings-as-errors] 85 | throw nix::Error("cannot read the spool file: %s", count == 0 ? "short file" : std::strerror(errno)); | ^ ../src/daemon/upload-spool.hh:106:30: error: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors] 106 | static auto writeAll(int fd, std::span data, std::uint64_t offset) -> bool | ^ FAILED: [code=1] meson-internal__clang-tidy /nix/store/j2s018h6gc2q0z3sw002br2zas3m1l9d-meson-1.10.2/bin/meson --internal clangtidy /nix/var/nix/builds/nix-33170-698824128/source /nix/var/nix/builds/nix-33170-698824128/source/build --color always ninja: build stopped: subcommand failed.