Running phase: unpackPhase unpacking source archive /nix/store/yqs19g7ifm5pc3fkg6rl45sxn7bdlb53-source source root is source Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase mesonConfigurePhase flags: --prefix=/nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0 --libdir=/nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0/lib --libexecdir=/nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0/libexec --bindir=/nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0/bin --sbindir=/nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0/sbin --includedir=/nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0/include --mandir=/nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0/share/man --infodir=/nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0/share/info --localedir=/nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0/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-4353-3138551491/source Build dir: /nix/var/nix/builds/nix-4353-3138551491/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 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/y3kq99w9rf07m43pggj5g596yy1qkvps-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 35.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.3 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 jemalloc found: YES 5.3.1_0 Run-time dependency nix-store found: YES 2.36.0pre20260914_920f6956 Run-time dependency nix-util found: YES 2.36.0pre20260914_920f6956 Run-time dependency libcurl found: YES 8.21.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/wylvda2p4ab62dzzsgppbclpmh4j2f8r-protobuf-35.1/bin/protoc) Program grpc_cpp_plugin found: YES (/nix/store/y1545dr7vy81bimhbk824p01rvzvj987-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-4353-3138551491/source/tests/farm-client-test.sh) Program tests/oidc-test.sh found: YES (/nix/var/nix/builds/nix-4353-3138551491/source/tests/oidc-test.sh) Build targets in project: 11 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 User defined options auto_features: enabled b_pch : false bindir : /nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0/bin buildtype : plain includedir : /nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0/include infodir : /nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0/share/info libdir : /nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0/lib libexecdir : /nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0/libexec localedir : /nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0/share/locale mandir : /nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0/share/man prefix : /nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0 sbindir : /nix/store/da332g16z5dc0wd50y1vbx3grmwbmwa5-nix-grpc-store-clang-tidy-0.1.0/sbin wrap_mode : nodownload Found ninja-1.13.2 at /nix/store/qqid6lbkgb6ihf048ypbc2na5s97hy1d-ninja-1.13.2/bin/ninja mesonConfigurePhase: enabled\ parallel\ building Running phase: buildPhase [1/1] Generating nix_remote_proto with a custom command [0/1] /nix/store/735yy09gy9j1wzwrsd1v1xrgf6izyr5d-meson-1.10.2/bin/meson --internal clangtidy /nix/var/nix/builds/nix-4353-3138551491/source /nix/var/nix/builds/nix-4353-3138551491/source/build --color always >>> /nix/store/d8f8g6pnqn4rn18ma7341afkdk0hbj07-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /nix/var/nix/builds/nix-4353-3138551491/source/build /nix/var/nix/builds/nix-4353-3138551491/source/tests/farm-client-test.cc Error while processing /nix/var/nix/builds/nix-4353-3138551491/source/tests/farm-client-test.cc. ../src/daemon/token-file.hh:44:67: error: no member named 'st_mtim' in 'stat' [clang-diagnostic-error] 44 | if (cur->token.empty() || info.st_ino != cur->ino || info.st_mtim.tv_sec != cur->mtime.tv_sec | ~~~~ ^ ../src/daemon/token-file.hh:45:21: error: no member named 'st_mtim' in 'stat' [clang-diagnostic-error] 45 | || info.st_mtim.tv_nsec != cur->mtime.tv_nsec) { | ~~~~ ^ ../src/daemon/token-file.hh:50:62: error: no member named 'st_mtim' in 'stat' [clang-diagnostic-error] 50 | *cur = {.token = std::move(token), .mtime = info.st_mtim, .ino = info.st_ino}; | ~~~~ ^ >>> /nix/store/d8f8g6pnqn4rn18ma7341afkdk0hbj07-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /nix/var/nix/builds/nix-4353-3138551491/source/build /nix/var/nix/builds/nix-4353-3138551491/source/src/daemon/main.cc Error while processing /nix/var/nix/builds/nix-4353-3138551491/source/src/daemon/main.cc. ../src/daemon/token-file.hh:44:67: error: no member named 'st_mtim' in 'stat' [clang-diagnostic-error] 44 | if (cur->token.empty() || info.st_ino != cur->ino || info.st_mtim.tv_sec != cur->mtime.tv_sec | ~~~~ ^ ../src/daemon/token-file.hh:45:21: error: no member named 'st_mtim' in 'stat' [clang-diagnostic-error] 45 | || info.st_mtim.tv_nsec != cur->mtime.tv_nsec) { | ~~~~ ^ ../src/daemon/token-file.hh:50:62: error: no member named 'st_mtim' in 'stat' [clang-diagnostic-error] 50 | *cur = {.token = std::move(token), .mtime = info.st_mtim, .ino = info.st_ino}; | ~~~~ ^ >>> /nix/store/d8f8g6pnqn4rn18ma7341afkdk0hbj07-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /nix/var/nix/builds/nix-4353-3138551491/source/build /nix/var/nix/builds/nix-4353-3138551491/source/src/daemon/options.cc Error while processing /nix/var/nix/builds/nix-4353-3138551491/source/src/daemon/options.cc. ../src/daemon/token-file.hh:44:67: error: no member named 'st_mtim' in 'stat' [clang-diagnostic-error] 44 | if (cur->token.empty() || info.st_ino != cur->ino || info.st_mtim.tv_sec != cur->mtime.tv_sec | ~~~~ ^ ../src/daemon/token-file.hh:45:21: error: no member named 'st_mtim' in 'stat' [clang-diagnostic-error] 45 | || info.st_mtim.tv_nsec != cur->mtime.tv_nsec) { | ~~~~ ^ ../src/daemon/token-file.hh:50:62: error: no member named 'st_mtim' in 'stat' [clang-diagnostic-error] 50 | *cur = {.token = std::move(token), .mtime = info.st_mtim, .ino = info.st_ino}; | ~~~~ ^ >>> /nix/store/d8f8g6pnqn4rn18ma7341afkdk0hbj07-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /nix/var/nix/builds/nix-4353-3138551491/source/build /nix/var/nix/builds/nix-4353-3138551491/source/src/daemon/coordinator.cc Error while processing /nix/var/nix/builds/nix-4353-3138551491/source/src/daemon/coordinator.cc. ../src/daemon/coordinator.cc:353:19: error: function 'runRemoteSession' has cognitive complexity of 28 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors] 353 | void Coordinator::runRemoteSession(Builder & bld, const std::stop_token & stop) | ^ ../src/daemon/coordinator.cc:358:5: note: +1, including nesting penalty of 0, nesting level increased to 1 358 | if (options.schedulerCA.empty()) { | ^ ../src/daemon/coordinator.cc:360:7: note: +1, nesting level increased to 1 360 | } else { | ^ ../src/daemon/coordinator.cc:363:9: note: +2, including nesting penalty of 1, nesting level increased to 2 363 | if (!options.tlsCert.empty()) { | ^ ../src/daemon/coordinator.cc:374:5: note: +1, including nesting penalty of 0, nesting level increased to 1 374 | while (!stop.stop_requested()) { | ^ ../src/daemon/coordinator.cc:381:21: note: nesting level increased to 2 381 | bld.setSend([raw, writeMutex, live](const WorkerMsg & msg) -> bool { | ^ ../src/daemon/coordinator.cc:385:26: note: +1 385 | return *live && raw->Write(one); | ^ ../src/daemon/coordinator.cc:388:9: note: +2, including nesting penalty of 1, nesting level increased to 2 388 | if (helloed) { | ^ ../src/daemon/coordinator.cc:392:47: note: nesting level increased to 2 392 | const std::stop_callback onStop(stop, [&ctx]() -> void { ctx.TryCancel(); }); | ^ ../src/daemon/coordinator.cc:395:9: note: +2, including nesting penalty of 1, nesting level increased to 2 395 | while (helloed && stream->Read(&cmds)) { | ^ ../src/daemon/coordinator.cc:395:24: note: +1 395 | while (helloed && stream->Read(&cmds)) { | ^ ../src/daemon/coordinator.cc:396:13: note: +3, including nesting penalty of 2, nesting level increased to 3 396 | for (const auto & cmd : cmds.msgs()) { | ^ ../src/daemon/coordinator.cc:397:17: note: +4, including nesting penalty of 3, nesting level increased to 4 397 | if (cmd.has_expect()) { | ^ ../src/daemon/coordinator.cc:399:24: note: +1, nesting level increased to 4 399 | } else if (cmd.has_revoke()) { | ^ ../src/daemon/coordinator.cc:401:24: note: +1, nesting level increased to 4 401 | } else if (cmd.has_restarting()) { | ^ ../src/daemon/coordinator.cc:405:13: note: +3, including nesting penalty of 2, nesting level increased to 3 405 | if (restarting) { | ^ ../src/daemon/coordinator.cc:412:9: note: +2, including nesting penalty of 1, nesting level increased to 2 412 | if (stop.stop_requested()) { | ^ ../src/daemon/coordinator.cc:415:9: note: +2, including nesting penalty of 1, nesting level increased to 2 415 | if (restarting) { | ^ ../src/daemon/coordinator.cc:419:11: note: +1, nesting level increased to 2 419 | } else { | ^ ../src/daemon/token-file.hh:44:67: error: no member named 'st_mtim' in 'stat' [clang-diagnostic-error] 44 | if (cur->token.empty() || info.st_ino != cur->ino || info.st_mtim.tv_sec != cur->mtime.tv_sec | ~~~~ ^ ../src/daemon/token-file.hh:45:21: error: no member named 'st_mtim' in 'stat' [clang-diagnostic-error] 45 | || info.st_mtim.tv_nsec != cur->mtime.tv_nsec) { | ~~~~ ^ ../src/daemon/token-file.hh:50:62: error: no member named 'st_mtim' in 'stat' [clang-diagnostic-error] 50 | *cur = {.token = std::move(token), .mtime = info.st_mtim, .ino = info.st_ino}; | ~~~~ ^ >>> /nix/store/d8f8g6pnqn4rn18ma7341afkdk0hbj07-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /nix/var/nix/builds/nix-4353-3138551491/source/build /nix/var/nix/builds/nix-4353-3138551491/source/src/daemon/dispatcher.cc Errors encountered while running clang-tidy ../src/daemon/dispatcher.cc:85:19: error: an exception may be thrown in function '~Lock' which should not throw exceptions [bugprone-exception-escape,-warnings-as-errors] 85 | Dispatcher::Lock::~Lock() | ^ /nix/store/klydx0x6ay8islhglaxarjg4c6j2m8y3-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/__functional/function.h:74:3: note: frame #0: unhandled exception of type 'bad_function_call' may be thrown in function '__throw_bad_function_call' here 74 | throw bad_function_call(); | ^ /nix/store/klydx0x6ay8islhglaxarjg4c6j2m8y3-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/__functional/function.h:273:7: note: frame #1: function 'operator()' calls function '__throw_bad_function_call' here 273 | std::__throw_bad_function_call(); | ^ /nix/store/klydx0x6ay8islhglaxarjg4c6j2m8y3-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/__functional/function.h:772:10: note: frame #2: function 'operator()' calls function 'operator()' here 772 | return __f_(std::forward<_ArgTypes>(__arg)...); | ^ ../src/daemon/dispatcher.cc:91:13: note: frame #3: function '~Lock' calls function 'operator()' here 91 | func(); | ^ FAILED: [code=1] meson-internal__clang-tidy /nix/store/735yy09gy9j1wzwrsd1v1xrgf6izyr5d-meson-1.10.2/bin/meson --internal clangtidy /nix/var/nix/builds/nix-4353-3138551491/source /nix/var/nix/builds/nix-4353-3138551491/source/build --color always ninja: build stopped: subcommand failed.