wrap-buddy-clang-tidy
checks.aarch64-linux.clang-tidy
· build #35
· raw
1tribuchet: building on eliza
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 '-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 -mcmodel=tiny -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 -mcmodel=tiny \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 -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.c13clang: warning: argument unused during compilation: '-nostdlibinc' [-Wunused-command-line-argument]14/nix/store/havg05vfa2g9ksbcsnk0hx9z1mlgfbhi-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=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.c18clang: warning: argument unused during compilation: '-nostdlibinc' [-Wunused-command-line-argument]19/nix/store/havg05vfa2g9ksbcsnk0hx9z1mlgfbhi-binutils-2.46/bin/ld.bfd: warning: stub_reloc.elf has a LOAD segment with RWX permissions20objcopy -O binary --only-section=.all stub_reloc.elf stub_reloc.bin21xxd -i stub_reloc.bin > src/patcher/stub_64_reloc.h22clang-tidy -p . src/loader/loader.c src/stub/stub.c src/patcher/main.cc23/nix/store/g32c4l9gjwwd7b8nwzyamhj72rif7ww5-clang-tools-21.1.8/bin/clang-tidy: line 5: 19: not found24/nix/store/g32c4l9gjwwd7b8nwzyamhj72rif7ww5-clang-tools-21.1.8/bin/clang-tidy: line 23: 19: not found25[1/3] Processing file /build/source/src/loader/loader.c.26153 warnings generated.27[2/3] Processing file /build/source/src/stub/stub.c.28206 warnings generated.29[3/3] Processing file /build/source/src/patcher/main.cc.303379 warnings and 1 error generated.31Error while processing /build/source/src/patcher/main.cc.32src/patcher/args.h:7:10: error: 'expected' file not found [clang-diagnostic-error]33 7 | #include <expected>34 | ^~~~~~~~~~35src/patcher/main.cc:58:36: error: forwarding reference parameter 'callback' is never forwarded inside the function body [cppcoreguidelines-missing-std-forward,-warnings-as-errors]36 58 | Callback &&callback) -> void {37 | ^38src/patcher/main.cc:228:5: error: if with identical then and else branches [bugprone-branch-clone,-warnings-as-errors]39 228 | if (!stub_64.empty()) {40 | ^41src/patcher/main.cc:230:7: note: else branch starts here42 230 | } else {43 | ^44src/patcher/main.cc:235:5: error: if with identical then and else branches [bugprone-branch-clone,-warnings-as-errors]45 235 | if (!stub_32.empty()) {46 | ^47src/patcher/main.cc:237:7: note: else branch starts here48 237 | } else {49 | ^50Suppressed 3381 warnings (3376 in non-user code, 5 NOLINT).51Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.523 warnings treated as errors53make: *** [Makefile:164: clang-tidy] Error 1