nix-grpc-store-clang-tidy-0.2.3
checks.x86_64-linux.clang-tidy
· build #959
· raw
unpackPhase
1unpacking source archive /nix/store/a7irn9f0h1q8dnm4812gymlmsf2k61ln-source2source root is sourceconfigurePhase
3mesonConfigurePhase flags: --prefix=/nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.3 --libdir=/nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.3/lib --libexecdir=/nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.3/libexec --bindir=/nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.3/bin --sbindir=/nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.3/sbin --includedir=/nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.3/include --mandir=/nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.3/share/man --infodir=/nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.3/share/info --localedir=/nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.3/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --buildtype=plain -Db_pch=false4The Meson build system5Version: 1.12.16Source dir: /build/source7Build dir: /build/source/build8Build type: native build9WARNING: Project does not target a minimum version but uses feature introduced in '1.1': meson.options file. Use meson_options.txt instead10Project name: nix-grpc-store11Project version: 0.2.312C++ compiler for the host machine: clang++ (clang 22.1.8 "clang version 22.1.8")13C++ linker for the host machine: clang++ ld.bfd 2.4614Host machine cpu family: x86_6415Host machine cpu: x86_6416Found pkg-config: YES (/nix/store/s70gz6bvz74c36xigh5m2ab2cqli08cv-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.217Run-time dependency grpc++ found: YES 1.84.018Run-time dependency protobuf found: YES 36.2.019Run-time dependency libzstd found: YES 1.5.720Run-time dependency threads found: YES21Run-time dependency libcrypto found: YES 3.5.922Run-time dependency libssl found: YES 3.5.923Run-time dependency prometheus-cpp-core found: YES 1.3.024Run-time dependency prometheus-cpp-pull found: YES 1.3.025Run-time dependency absl_flat_hash_map found: YES 2026081726Run-time dependency absl_hash found: YES 2026081727Run-time dependency absl_synchronization found: YES 2026081728Compiler for C++ supports arguments -Werror=thread-safety: YES 29Run-time dependency nix-store found: YES 2.36.0pre20261115_48c45c9e30Run-time dependency nix-util found: YES 2.36.0pre20261115_48c45c9e31Run-time dependency jemalloc found: YES 5.4.0_032Run-time dependency libcurl found: YES 8.22.033Run-time dependency nlohmann_json found: YES 3.12.034Library bz2 found: YES35Check usable header "jwt-cpp/traits/nlohmann-json/defaults.h" : YES 36Checking if "Store::addTempRoots" with dependencies nix-store, nix-util compiles: YES 37Program protoc found: YES (/nix/store/hjz0cvp9c6vi3mpsnhrnh2qjyhwb1db0-protobuf-36.2/bin/protoc)38Program grpc_cpp_plugin found: YES (/nix/store/g10pynzgwpqnf66hi8ynryisg6l616h8-grpc-1.84.0/bin/grpc_cpp_plugin)39Program mold found: YES (/nix/store/1nlnb8sahkixcfy6v3wcmg7yir8a0npr-mold-unwrapped-wrapper-3.0.0/bin/mold)40Run-time dependency dl found: YES41Program tests/farm-client-test.sh found: YES (/build/source/tests/farm-client-test.sh)42Program tests/oidc-test.sh found: YES (/build/source/tests/oidc-test.sh)43Build targets in project: 3244WARNING: Project specifies no minimum version but uses features which were added in versions:45 * 1.1: {'meson.options file'}4647nix-grpc-store 0.2.34849 User defined options50 auto_features: enabled51 b_pch : false52 bindir : /nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.3/bin53 buildtype : plain54 includedir : /nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.3/include55 infodir : /nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.3/share/info56 libdir : /nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.3/lib57 libexecdir : /nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.3/libexec58 localedir : /nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.3/share/locale59 mandir : /nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.3/share/man60 prefix : /nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.361 sbindir : /nix/store/fp5gnwkisvhvpry80w7sdjl6sdqkykvd-nix-grpc-store-clang-tidy-0.2.3/sbin62 wrap_mode : nodownload6364Found ninja-1.13.2 at /nix/store/nyjr5b3ib747yls4n9jq5ijr6wqg6wdc-ninja-1.13.2/bin/ninja65mesonConfigurePhase: enabled\ parallel\ building66configurePhase completed in 30 secondsbuildPhase
67[2/2] Generating nix_remote_proto with a custom command68[0/1] /nix/store/aznm4kx8p4br84x9zdqb5spww7m4bknp-meson-1.12.1/bin/meson --internal clangtidy /build/source /build/source/build --color always69>>> /nix/store/qg4sgs5my0jin1z9frysyc4qr3pw5gm9-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/sandbox-test.cc70../tests/sandbox-test.cc:55:12: error: The 1st argument to 'bind' is -1 but should be >= 0 [clang-analyzer-unix.StdCLibraryFunctions,-warnings-as-errors]71 55 | return ::bind(sock.get(), reinterpret_cast<const sockaddr *>(&addr), sizeof(addr)) == 0;72 | ^73../tests/sandbox-test.cc:96:9: note: Assuming 'pid' is equal to 074 96 | if (pid == 0) {75 | ^~~~~~~~76../tests/sandbox-test.cc:96:5: note: Taking true branch77 96 | if (pid == 0) {78 | ^79../tests/sandbox-test.cc:103:17: note: Calling 'operator()'80 103 | ::_exit(body() ? 0 : 1);81 | ^~~~~~82../tests/sandbox-test.cc:208:17: note: Calling 'canBind'83 208 | return !canBind(deniedPort) && !canBind6(deniedPort) && canBind(allowedPort) && canBind6(0);84 | ^~~~~~~~~~~~~~~~~~~85../tests/sandbox-test.cc:82:33: note: Assuming that 'socket' fails86 82 | nix::AutoCloseFD const sock(::socket(AF_INET, SOCK_STREAM, 0));87 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~88../tests/sandbox-test.cc:82:33: note: Passing value via 1st parameter 'fd'89 82 | nix::AutoCloseFD const sock(::socket(AF_INET, SOCK_STREAM, 0));90 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~91../tests/sandbox-test.cc:82:28: note: Calling constructor for 'AutoCloseFD'92 82 | nix::AutoCloseFD const sock(::socket(AF_INET, SOCK_STREAM, 0));93 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~94/nix/store/y0lrhd9s9cqqjp38xy0w6gfszjy341fs-nix-util-2.36.0pre20261115_48c45c9e-dev/include/nix/util/file-descriptor.hh:274:11: note: The value -1 is assigned to 'sock.fd'95 274 | : fd(fd)96 | ^97../tests/sandbox-test.cc:82:28: note: Returning from constructor for 'AutoCloseFD'98 82 | nix::AutoCloseFD const sock(::socket(AF_INET, SOCK_STREAM, 0));99 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~100../tests/sandbox-test.cc:87:12: note: Calling 'bindTo<sockaddr_in>'101 87 | return bindTo(sock, addr);102 | ^~~~~~~~~~~~~~~~~~103../tests/sandbox-test.cc:55:19: note: Calling 'AutoCloseFD::get'104 55 | return ::bind(sock.get(), reinterpret_cast<const sockaddr *>(&addr), sizeof(addr)) == 0;105 | ^~~~~~~~~~106/nix/store/y0lrhd9s9cqqjp38xy0w6gfszjy341fs-nix-util-2.36.0pre20261115_48c45c9e-dev/include/nix/util/file-descriptor.hh:287:9: note: Returning the value -1107 287 | return fd;108 | ^~~~~~~~~109../tests/sandbox-test.cc:55:19: note: Returning from 'AutoCloseFD::get'110 55 | return ::bind(sock.get(), reinterpret_cast<const sockaddr *>(&addr), sizeof(addr)) == 0;111 | ^~~~~~~~~~112../tests/sandbox-test.cc:55:12: note: The 1st argument to 'bind' is -1 but should be >= 0113 55 | return ::bind(sock.get(), reinterpret_cast<const sockaddr *>(&addr), sizeof(addr)) == 0;114 | ^ ~~~~~~~~~~115>>> /nix/store/qg4sgs5my0jin1z9frysyc4qr3pw5gm9-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/client/channel.cc116[1/1] (1/2) Processing file /build/source/src/client/channel.cc.117[1/1] (2/2) Processing file /build/source/src/client/channel.cc.118>>> /nix/store/qg4sgs5my0jin1z9frysyc4qr3pw5gm9-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/daemon/main.cc119Error while processing /build/source/src/daemon/main.cc.120../src/daemon/main.cc:597:44: error: no member named 'get' in 'boost::outcome_v2::basic_result<nix::AutoCloseFD, int, boost::outcome_v2::policy::all_narrow>' [clang-diagnostic-error]121 597 | nix::FdSource(file.get()).drainInto(sink);122 | ~~~~ ^123../src/daemon/main.cc:598:46: error: no member named 'get' in 'boost::outcome_v2::basic_result<nix::AutoCloseFD, int, boost::outcome_v2::policy::all_narrow>' [clang-diagnostic-error]124 598 | } else if (!bunzip2(file.get(), sink)) {125 | ~~~~ ^126>>> /nix/store/qg4sgs5my0jin1z9frysyc4qr3pw5gm9-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/local-store-test.cc127../tests/local-store-test.cc:25:1: error: included header error.hh is not used directly [misc-include-cleaner,-warnings-as-errors]128 25 | #include <nix/util/error.hh>129 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~130 26 | #include <nix/util/serialise.hh>131>>> /nix/store/qg4sgs5my0jin1z9frysyc4qr3pw5gm9-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/tunnel-test.cc132../tests/tunnel-test.cc:138:13: error: The 1st argument to 'bind' is -1 but should be >= 0 [clang-analyzer-unix.StdCLibraryFunctions,-warnings-as-errors]133 138 | if (bind(sock.get(), reinterpret_cast<sockaddr *>(&addr), len) != 0 || listen(sock.get(), 4) != 0134 | ^135../tests/tunnel-test.cc:558:10: note: Calling implicit default constructor for 'Held'136 558 | Held held;137 | ^~~~138../tests/tunnel-test.cc:558:10: note: Calling default constructor for 'Listener'139 558 | Held held;140 | ^~~~141../tests/tunnel-test.cc:125:16: note: Assuming that 'socket' fails142 125 | : sock(socket(family, SOCK_STREAM, 0))143 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~144../tests/tunnel-test.cc:125:16: note: Passing value via 1st parameter 'fd'145 125 | : sock(socket(family, SOCK_STREAM, 0))146 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~147../tests/tunnel-test.cc:125:11: note: Calling constructor for 'AutoCloseFD'148 125 | : sock(socket(family, SOCK_STREAM, 0))149 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~150/nix/store/y0lrhd9s9cqqjp38xy0w6gfszjy341fs-nix-util-2.36.0pre20261115_48c45c9e-dev/include/nix/util/file-descriptor.hh:274:11: note: The value -1 is assigned to 'held.lis.sock.fd'151 274 | : fd(fd)152 | ^153../tests/tunnel-test.cc:125:11: note: Returning from constructor for 'AutoCloseFD'154 125 | : sock(socket(family, SOCK_STREAM, 0))155 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~156../tests/tunnel-test.cc:132:13: note: 'family' is not equal to AF_INET6157 132 | if (family == AF_INET6) {158 | ^~~~~~159../tests/tunnel-test.cc:132:9: note: Taking false branch160 132 | if (family == AF_INET6) {161 | ^162../tests/tunnel-test.cc:138:18: note: Calling 'AutoCloseFD::get'163 138 | if (bind(sock.get(), reinterpret_cast<sockaddr *>(&addr), len) != 0 || listen(sock.get(), 4) != 0164 | ^~~~~~~~~~165/nix/store/y0lrhd9s9cqqjp38xy0w6gfszjy341fs-nix-util-2.36.0pre20261115_48c45c9e-dev/include/nix/util/file-descriptor.hh:287:9: note: Returning the value -1166 287 | return fd;167 | ^~~~~~~~~168../tests/tunnel-test.cc:138:18: note: Returning from 'AutoCloseFD::get'169 138 | if (bind(sock.get(), reinterpret_cast<sockaddr *>(&addr), len) != 0 || listen(sock.get(), 4) != 0170 | ^~~~~~~~~~171../tests/tunnel-test.cc:138:13: note: The 1st argument to 'bind' is -1 but should be >= 0172 138 | if (bind(sock.get(), reinterpret_cast<sockaddr *>(&addr), len) != 0 || listen(sock.get(), 4) != 0173 | ^ ~~~~~~~~~~174>>> /nix/store/qg4sgs5my0jin1z9frysyc4qr3pw5gm9-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/daemon/tunnel.cc175[1/1] (1/2) Processing file /build/source/src/daemon/tunnel.cc.176[1/1] (2/2) Processing file /build/source/src/daemon/tunnel.cc.177>>> /nix/store/qg4sgs5my0jin1z9frysyc4qr3pw5gm9-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/daemon/tunnels.cc178[1/1] (1/2) Processing file /build/source/src/daemon/tunnels.cc.179[1/1] (2/2) Processing file /build/source/src/daemon/tunnels.cc.180>>> /nix/store/qg4sgs5my0jin1z9frysyc4qr3pw5gm9-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/daemon/sandbox-linux.cc181Errors encountered while running clang-tidy182[1/1] (1/2) Processing file /build/source/src/daemon/sandbox-linux.cc.183[1/1] (2/2) Processing file /build/source/src/daemon/sandbox-linux.cc.184FAILED: [code=1] meson-internal__clang-tidy 185/nix/store/aznm4kx8p4br84x9zdqb5spww7m4bknp-meson-1.12.1/bin/meson --internal clangtidy /build/source /build/source/build --color always186ninja: build stopped: subcommand failed.