wrap-buddy-clang-tidy
checks.x86_64-linux.clang-tidy
· build #35
· raw
1tribuchet: building on jamie
unpackPhase
2unpacking source archive /nix/store/4zznh878gcxdzzfan3cbl03ky2xz5y8a-source3source root is sourceconfigurePhase
4no configure script, doing nothingbuildPhase
5{ 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"' \6 -DHAVE_STUB_32 '-DDEFAULT_INTERP="/nix/store/dummy/ld.so"' \7 '-DDEFAULT_LIBC_LIB="/nix/store/dummy/lib"' -Isrc/patcher; \8 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 -Iinclude; \9 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 \10 '-DLOADER_PATH="/usr/local/lib/wrap-buddy/loader.bin"' -Iinclude; \11} | jq -s . > compile_commands.json12clang -DRELOCATABLE_MODE=0 -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -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.c13clang: warning: argument unused during compilation: '-nostdlibinc' [-Wunused-command-line-argument]14/nix/store/31gnwsgag5qa14hfblqi5hyn71pyx7py-binutils-2.46/bin/ld.bfd: warning: stub.elf has a LOAD segment with RWX permissions15objcopy -O binary --only-section=.all stub.elf stub.bin16xxd -i stub.bin > src/patcher/stub_64.h17clang -DRELOCATABLE_MODE=0 -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -m32 -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -DLOADER_PATH='"/usr/local/lib/wrap-buddy/loader32.bin"' -o stub32.elf src/stub/stub.c18clang: warning: argument unused during compilation: '-nostdlibinc' [-Wunused-command-line-argument]19/nix/store/31gnwsgag5qa14hfblqi5hyn71pyx7py-binutils-2.46/bin/ld.bfd: warning: stub32.elf has a LOAD segment with RWX permissions20objcopy -O binary --only-section=.all stub32.elf stub32.bin21xxd -i stub32.bin > src/patcher/stub_32.h22clang -DRELOCATABLE_MODE=1 -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -Iinclude -DLOADER_PATH='"880031aabab70d51f1ff08762ad3c457bdaa2bf2687f4e864a33f63889a5ed1b571bebc01e6d248e9e4ac63c86b696712f07a701983375bd95910df9afa9a636"' -o stub_reloc.elf src/stub/stub.c23clang: warning: argument unused during compilation: '-nostdlibinc' [-Wunused-command-line-argument]24/nix/store/31gnwsgag5qa14hfblqi5hyn71pyx7py-binutils-2.46/bin/ld.bfd: warning: stub_reloc.elf has a LOAD segment with RWX permissions25objcopy -O binary --only-section=.all stub_reloc.elf stub_reloc.bin26xxd -i stub_reloc.bin > src/patcher/stub_64_reloc.h27clang -DRELOCATABLE_MODE=1 -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -m32 -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -DLOADER_PATH='"880031aabab70d51f1ff08762ad3c457bdaa2bf2687f4e864a33f63889a5ed1b571bebc01e6d248e9e4ac63c86b696712f07a701983375bd95910df9afa9a636"' -o stub32_reloc.elf src/stub/stub.c28clang: warning: argument unused during compilation: '-nostdlibinc' [-Wunused-command-line-argument]29/nix/store/31gnwsgag5qa14hfblqi5hyn71pyx7py-binutils-2.46/bin/ld.bfd: warning: stub32_reloc.elf has a LOAD segment with RWX permissions30objcopy -O binary --only-section=.all stub32_reloc.elf stub32_reloc.bin31xxd -i stub32_reloc.bin > src/patcher/stub_32_reloc.h32clang-tidy -p . src/loader/loader.c src/stub/stub.c src/patcher/main.cc33/nix/store/gf6qdh329rc8lbby710r9rzhwqkkgv3h-clang-tools-21.1.8/bin/clang-tidy: line 5: 19: not found34/nix/store/gf6qdh329rc8lbby710r9rzhwqkkgv3h-clang-tools-21.1.8/bin/clang-tidy: line 23: 19: not found35[1/3] Processing file /build/source/src/loader/loader.c.36136 warnings generated.37[2/3] Processing file /build/source/src/stub/stub.c.38172 warnings generated.39[3/3] Processing file /build/source/src/patcher/main.cc.406532 warnings and 1 error generated.41Error while processing /build/source/src/patcher/main.cc.42src/patcher/args.h:7:10: error: 'expected' file not found [clang-diagnostic-error]43 7 | #include <expected>44 | ^~~~~~~~~~45src/patcher/main.cc:58:36: error: forwarding reference parameter 'callback' is never forwarded inside the function body [cppcoreguidelines-missing-std-forward,-warnings-as-errors]46 58 | Callback &&callback) -> void {47 | ^48src/patcher/main.cc:228:5: error: if with identical then and else branches [bugprone-branch-clone,-warnings-as-errors]49 228 | if (!stub_64.empty()) {50 | ^51src/patcher/main.cc:230:7: note: else branch starts here52 230 | } else {53 | ^54src/patcher/main.cc:235:5: error: if with identical then and else branches [bugprone-branch-clone,-warnings-as-errors]55 235 | if (!stub_32.empty()) {56 | ^57src/patcher/main.cc:237:7: note: else branch starts here58 237 | } else {59 | ^60Suppressed 6534 warnings (6529 in non-user code, 5 NOLINT).61Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.623 warnings treated as errors63make: *** [Makefile:164: clang-tidy] Error 1