this derivation will be built: /nix/store/z4fxh1brwgr0qpnch8aqgd1cgmfjhblf-wrap-buddy-clang-tidy.drv these 4 paths will be fetched (2.9 MiB download, 19.3 MiB unpacked): /nix/store/g2ccbhni5cic5y2qw8flzlbcxz68xmma-clang-wrapper-21.1.8 /nix/store/f9zcrrcfmmyv5zi5c9psczrrain7z5dk-libcxx-21.1.8 /nix/store/b9i2gs5jvxp0zq5bl9gqxwy5pqfi5cbk-libcxx-21.1.8-dev /nix/store/lcy678zn05kx8i8y0xj6wq8dbd803wcf-stdenv-linux Failed to find a machine for remote build! derivation: z4fxh1brwgr0qpnch8aqgd1cgmfjhblf-wrap-buddy-clang-tidy.drv required (system, features): (aarch64-linux, []) 1 available machines: (systems, maxjobs, supportedFeatures, mandatoryFeatures) ([aarch64-darwin, x86_64-darwin], 8, [big-parallel, recursive-nix], []) building '/nix/store/z4fxh1brwgr0qpnch8aqgd1cgmfjhblf-wrap-buddy-clang-tidy.drv' wrap-buddy-clang-tidy> tribuchet: building on eliza wrap-buddy-clang-tidy> Running phase: unpackPhase wrap-buddy-clang-tidy> unpacking source archive /nix/store/4zznh878gcxdzzfan3cbl03ky2xz5y8a-source wrap-buddy-clang-tidy> source root is source wrap-buddy-clang-tidy> Running phase: patchPhase wrap-buddy-clang-tidy> Running phase: updateAutotoolsGnuConfigScriptsPhase wrap-buddy-clang-tidy> Running phase: configurePhase wrap-buddy-clang-tidy> no configure script, doing nothing wrap-buddy-clang-tidy> Running phase: buildPhase wrap-buddy-clang-tidy> { jq -n --arg d "/build/source" --arg f src/patcher/main.cc '{directory: $d, file: $f, arguments: $ARGS.positional + [$f]}' --args -- c++ -std=c++23 -Wall -Wextra -O2 -Iinclude -DRELOCATABLE_LOADER_PATH_PLACEHOLDER='"880031aabab70d51f1ff08762ad3c457bdaa2bf2687f4e864a33f63889a5ed1b571bebc01e6d248e9e4ac63c86b696712f07a701983375bd95910df9afa9a636"' -DLIBDIR='"/usr/local/lib/wrap-buddy"' \ wrap-buddy-clang-tidy> '-DDEFAULT_INTERP="/nix/store/dummy/ld.so"' \ wrap-buddy-clang-tidy> '-DDEFAULT_LIBC_LIB="/nix/store/dummy/lib"' -Isrc/patcher; \ wrap-buddy-clang-tidy> jq -n --arg d "/build/source" --arg f src/loader/loader.c '{directory: $d, file: $f, arguments: $ARGS.positional + [$f]}' --args -- clang -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -mcmodel=tiny -Iinclude; \ wrap-buddy-clang-tidy> jq -n --arg d "/build/source" --arg f src/stub/stub.c '{directory: $d, file: $f, arguments: $ARGS.positional + [$f]}' --args -- clang -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -mcmodel=tiny \ wrap-buddy-clang-tidy> '-DLOADER_PATH="/usr/local/lib/wrap-buddy/loader.bin"' -Iinclude; \ wrap-buddy-clang-tidy> } | jq -s . > compile_commands.json wrap-buddy-clang-tidy> clang -DRELOCATABLE_MODE=0 -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -mcmodel=tiny -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -Iinclude -DLOADER_PATH='"/usr/local/lib/wrap-buddy/loader.bin"' -o stub.elf src/stub/stub.c wrap-buddy-clang-tidy> clang: warning: argument unused during compilation: '-nostdlibinc' [-Wunused-command-line-argument] wrap-buddy-clang-tidy> /nix/store/havg05vfa2g9ksbcsnk0hx9z1mlgfbhi-binutils-2.46/bin/ld.bfd: warning: stub.elf has a LOAD segment with RWX permissions wrap-buddy-clang-tidy> objcopy -O binary --only-section=.all stub.elf stub.bin wrap-buddy-clang-tidy> xxd -i stub.bin > src/patcher/stub_64.h wrap-buddy-clang-tidy> clang -DRELOCATABLE_MODE=1 -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -mcmodel=tiny -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -Iinclude -DLOADER_PATH='"880031aabab70d51f1ff08762ad3c457bdaa2bf2687f4e864a33f63889a5ed1b571bebc01e6d248e9e4ac63c86b696712f07a701983375bd95910df9afa9a636"' -o stub_reloc.elf src/stub/stub.c wrap-buddy-clang-tidy> clang: warning: argument unused during compilation: '-nostdlibinc' [-Wunused-command-line-argument] wrap-buddy-clang-tidy> /nix/store/havg05vfa2g9ksbcsnk0hx9z1mlgfbhi-binutils-2.46/bin/ld.bfd: warning: stub_reloc.elf has a LOAD segment with RWX permissions wrap-buddy-clang-tidy> objcopy -O binary --only-section=.all stub_reloc.elf stub_reloc.bin wrap-buddy-clang-tidy> xxd -i stub_reloc.bin > src/patcher/stub_64_reloc.h wrap-buddy-clang-tidy> clang-tidy -p . src/loader/loader.c src/stub/stub.c src/patcher/main.cc wrap-buddy-clang-tidy> /nix/store/g32c4l9gjwwd7b8nwzyamhj72rif7ww5-clang-tools-21.1.8/bin/clang-tidy: line 5: 19: not found wrap-buddy-clang-tidy> /nix/store/g32c4l9gjwwd7b8nwzyamhj72rif7ww5-clang-tools-21.1.8/bin/clang-tidy: line 23: 19: not found wrap-buddy-clang-tidy> [1/3] Processing file /build/source/src/loader/loader.c. wrap-buddy-clang-tidy> 153 warnings generated. wrap-buddy-clang-tidy> [2/3] Processing file /build/source/src/stub/stub.c. wrap-buddy-clang-tidy> 206 warnings generated. wrap-buddy-clang-tidy> [3/3] Processing file /build/source/src/patcher/main.cc. wrap-buddy-clang-tidy> 3379 warnings and 1 error generated. wrap-buddy-clang-tidy> Error while processing /build/source/src/patcher/main.cc. wrap-buddy-clang-tidy> src/patcher/args.h:7:10: error: 'expected' file not found [clang-diagnostic-error] wrap-buddy-clang-tidy> 7 | #include wrap-buddy-clang-tidy> | ^~~~~~~~~~ wrap-buddy-clang-tidy> src/patcher/main.cc:58:36: error: forwarding reference parameter 'callback' is never forwarded inside the function body [cppcoreguidelines-missing-std-forward,-warnings-as-errors] wrap-buddy-clang-tidy> 58 | Callback &&callback) -> void { wrap-buddy-clang-tidy> | ^ wrap-buddy-clang-tidy> src/patcher/main.cc:228:5: error: if with identical then and else branches [bugprone-branch-clone,-warnings-as-errors] wrap-buddy-clang-tidy> 228 | if (!stub_64.empty()) { wrap-buddy-clang-tidy> | ^ wrap-buddy-clang-tidy> src/patcher/main.cc:230:7: note: else branch starts here wrap-buddy-clang-tidy> 230 | } else { wrap-buddy-clang-tidy> | ^ wrap-buddy-clang-tidy> src/patcher/main.cc:235:5: error: if with identical then and else branches [bugprone-branch-clone,-warnings-as-errors] wrap-buddy-clang-tidy> 235 | if (!stub_32.empty()) { wrap-buddy-clang-tidy> | ^ wrap-buddy-clang-tidy> src/patcher/main.cc:237:7: note: else branch starts here wrap-buddy-clang-tidy> 237 | } else { wrap-buddy-clang-tidy> | ^ wrap-buddy-clang-tidy> Suppressed 3381 warnings (3376 in non-user code, 5 NOLINT). wrap-buddy-clang-tidy> Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. wrap-buddy-clang-tidy> 3 warnings treated as errors wrap-buddy-clang-tidy> make: *** [Makefile:164: clang-tidy] Error 1 error: Cannot build '/nix/store/z4fxh1brwgr0qpnch8aqgd1cgmfjhblf-wrap-buddy-clang-tidy.drv'. Reason: builder failed with exit code 2. Output paths: /nix/store/hkvj6nr4hck9lz43jb37klxkfkwsxg5w-wrap-buddy-clang-tidy Last 25 log lines: > [3/3] Processing file /build/source/src/patcher/main.cc. > 3379 warnings and 1 error generated. > Error while processing /build/source/src/patcher/main.cc. > src/patcher/args.h:7:10: error: 'expected' file not found [clang-diagnostic-error] > 7 | #include > | ^~~~~~~~~~ > src/patcher/main.cc:58:36: error: forwarding reference parameter 'callback' is never forwarded inside the function body [cppcoreguidelines-missing-std-forward,-warnings-as-errors] > 58 | Callback &&callback) -> void { > | ^ > src/patcher/main.cc:228:5: error: if with identical then and else branches [bugprone-branch-clone,-warnings-as-errors] > 228 | if (!stub_64.empty()) { > | ^ > src/patcher/main.cc:230:7: note: else branch starts here > 230 | } else { > | ^ > src/patcher/main.cc:235:5: error: if with identical then and else branches [bugprone-branch-clone,-warnings-as-errors] > 235 | if (!stub_32.empty()) { > | ^ > src/patcher/main.cc:237:7: note: else branch starts here > 237 | } else { > | ^ > Suppressed 3381 warnings (3376 in non-user code, 5 NOLINT). > Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. > 3 warnings treated as errors > make: *** [Makefile:164: clang-tidy] Error 1 For full logs, run: nix log /nix/store/z4fxh1brwgr0qpnch8aqgd1cgmfjhblf-wrap-buddy-clang-tidy.drv