tribuchet: building on mac02 Running phase: unpackPhase unpacking source archive /nix/store/9bz7rsba4nz16yhnmz7xqsg8lp60k1rf-source source root is source Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/zf8ba27cn5rshbl1nwscj5bcry6rk9vy-inspector-clang-tidy-0.1.0/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/zf8ba27cn5rshbl1nwscj5bcry6rk9vy-inspector-clang-tidy-0.1.0/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/zf8ba27cn5rshbl1nwscj5bcry6rk9vy-inspector-clang-tidy-0.1.0/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/zf8ba27cn5rshbl1nwscj5bcry6rk9vy-inspector-clang-tidy-0.1.0/share/doc/inspector-clang-tidy -DCMAKE_INSTALL_INFODIR=/nix/store/zf8ba27cn5rshbl1nwscj5bcry6rk9vy-inspector-clang-tidy-0.1.0/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/zf8ba27cn5rshbl1nwscj5bcry6rk9vy-inspector-clang-tidy-0.1.0/share/man -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/zf8ba27cn5rshbl1nwscj5bcry6rk9vy-inspector-clang-tidy-0.1.0/include -DCMAKE_INSTALL_SBINDIR=/nix/store/zf8ba27cn5rshbl1nwscj5bcry6rk9vy-inspector-clang-tidy-0.1.0/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/zf8ba27cn5rshbl1nwscj5bcry6rk9vy-inspector-clang-tidy-0.1.0/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/zf8ba27cn5rshbl1nwscj5bcry6rk9vy-inspector-clang-tidy-0.1.0/lib -DCMAKE_STRIP=/nix/store/whvnk9kkh8bqc9k2b3j52b3kqxcplvfp-clang-wrapper-23.1.3/bin/strip -DCMAKE_RANLIB=/nix/store/whvnk9kkh8bqc9k2b3j52b3kqxcplvfp-clang-wrapper-23.1.3/bin/ranlib -DCMAKE_AR=/nix/store/whvnk9kkh8bqc9k2b3j52b3kqxcplvfp-clang-wrapper-23.1.3/bin/ar -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=/nix/store/zf8ba27cn5rshbl1nwscj5bcry6rk9vy-inspector-clang-tidy-0.1.0 -DCLANG_RESOURCE_DIR=/nix/store/1hpc5dxrdfl18yd084md6b2kwsh6xa2p-clang-23.1.3-lib/lib/clang/23 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_TESTING=ON -- The C compiler identification is Clang 23.1.3 -- The CXX compiler identification is Clang 23.1.3 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /nix/store/whvnk9kkh8bqc9k2b3j52b3kqxcplvfp-clang-wrapper-23.1.3/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /nix/store/whvnk9kkh8bqc9k2b3j52b3kqxcplvfp-clang-wrapper-23.1.3/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Performing Test HAVE_FFI_CALL -- Performing Test HAVE_FFI_CALL - Success -- Found FFI: /nix/store/2xyjpks2z1i91klny38h789j483fpz4x-libffi-40/lib/libffi.dylib -- Found ZLIB: /nix/store/phb97pafnka8z1qpj12is214rshpql65-zlib-1.3.2/lib/libz.dylib (found version "1.3.2") -- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR) -- Using LLVM 23.1.3 from /nix/store/bqx9zsdd4ljr8jp4nljl2sp0f5k36f4g-llvm-23.1.3-dev/lib/cmake/llvm -- Using Clang from /nix/store/86q2sfs8755f5sij10d58w331bhx9rik-clang-23.1.3-dev/lib/cmake/clang -- Using clang resource dir /nix/store/1hpc5dxrdfl18yd084md6b2kwsh6xa2p-clang-23.1.3-lib/lib/clang/23 -- Found GTest: /nix/store/rlin5x6kw1p30pkjr4l22rag6qp2dmfd-gtest-1.18.0-dev/lib/cmake/GTest/GTestConfig.cmake (found version "1.18.0") -- Configuring done (2.8s) -- Generating done (0.2s) CMake Warning (unused-cli): Manually-specified variables were not used by the project: CMAKE_EXPORT_NO_PACKAGE_REGISTRY -- Build files have been written to: /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/build cmake: enabled parallel building cmake: enabled parallel installing Running phase: buildPhase Running clang-tidy in 10 threads for 20 files out of 31 in compilation database ... [ 1/20][3.4s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/inspector/cxx_main.cpp [ 2/20][4.6s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/prompt.cpp [ 3/20][7.1s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/connection.cpp [ 4/20][7.8s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/test/prelude.cpp [ 5/20][9.7s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/inspector/main.cpp [ 6/20][12.6s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/members.cpp [ 7/20][13.3s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:101:3: error: no header providing "winsize" is directly included [misc-include-cleaner,-warnings-as-errors] 26 | winsize size{}; | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:350:8: error: function 'run' has cognitive complexity of 27 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors] 350 | void run() { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:354:5: note: +1, including nesting penalty of 0, nesting level increased to 1 354 | if (!ready) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:366:5: note: +1, including nesting penalty of 0, nesting level increased to 1 366 | while (true) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:369:7: note: +2, including nesting penalty of 1, nesting level increased to 2 369 | if (raw == nullptr && errno == EAGAIN) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:369:26: note: +1 369 | if (raw == nullptr && errno == EAGAIN) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:372:48: note: +2, including nesting penalty of 1, nesting level increased to 2 372 | const std::string input = raw != nullptr ? raw : ".continue"; | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:374:7: note: +2, including nesting penalty of 1, nesting level increased to 2 374 | if (cmd.empty()) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:379:7: note: +2, including nesting penalty of 1, nesting level increased to 2 379 | if (cmd == ".help") { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:381:14: note: +1, nesting level increased to 2 381 | } else if (cmd == ".locals") { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:383:14: note: +1, nesting level increased to 2 383 | } else if (const auto expr = argument(cmd, ".ls")) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:384:9: note: +3, including nesting penalty of 2, nesting level increased to 3 384 | if (expr->empty()) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:386:11: note: +1, nesting level increased to 3 386 | } else { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:389:14: note: +1, nesting level increased to 2 389 | } else if (cmd == ".where") { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:391:14: note: +1, nesting level increased to 2 391 | } else if (resumes(cmd)) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:394:48: note: +3, including nesting penalty of 2, nesting level increased to 3 394 | llvm::json::Object{{"input", abort ? ".abort" : ".quit"}}); | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:395:29: note: +3, including nesting penalty of 2, nesting level increased to 3 395 | std::cout << (abort ? "program aborted.\n\n" | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:398:14: note: +1, nesting level increased to 2 398 | } else if (const auto reply = | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/main.cpp:401:9: note: +1, nesting level increased to 2 401 | } else { | ^ [ 8/20][10.2s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/compat.cpp [ 9/20][12.5s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/test/history.cpp [10/20][12.9s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/source.cpp [11/20][18.7s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/inspector/driver.cpp [12/20][15.6s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/command.cpp [13/20][29.1s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/inspector/prebuild.cpp [14/20][26.9s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/test/command.cpp [15/20][9.0s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/test/e2e.cpp [16/20][5.9s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/tools/repl/highlight.cpp [17/20][23.9s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/test/repl_tty.cpp [18/20][34.1s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/test/driver.cpp [19/20][36.2s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:518:6: error: function 'runRepl' has cognitive complexity of 30 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors] 518 | void runRepl(Prompt &prompt, const char *path, unsigned lineNumber, | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:533:3: note: +1, including nesting penalty of 0, nesting level increased to 1 533 | for (const char *const *arg = includes; *arg != nullptr; ++arg) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:539:3: note: +1, including nesting penalty of 0, nesting level increased to 1 539 | if (!compiler) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:545:3: note: +1, including nesting penalty of 0, nesting level increased to 1 545 | if (!executor) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:551:3: note: +1, including nesting penalty of 0, nesting level increased to 1 551 | if (!interp) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:562:30: note: nesting level increased to 1 562 | const auto makeCompleter = [&]() -> void { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:563:5: note: +2, including nesting penalty of 1, nesting level increased to 2 563 | if (!completer) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:571:3: note: +1, including nesting penalty of 0, nesting level increased to 1 571 | while (true) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:573:5: note: +2, including nesting penalty of 1, nesting level increased to 2 573 | if (request.kind == Request::Kind::Prepare) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:574:7: note: +3, including nesting penalty of 2, nesting level increased to 3 574 | if (!completer) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:577:26: note: nesting level increased to 4 577 | std::jthread([&completer]() -> void { completer->prepare(); }); | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:581:5: note: +2, including nesting penalty of 1, nesting level increased to 2 581 | if (request.kind == Request::Kind::Complete) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:583:7: note: +3, including nesting penalty of 2, nesting level increased to 3 583 | if (preparing.joinable()) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:591:5: note: +2, including nesting penalty of 1, nesting level increased to 2 591 | if (request.kind == Request::Kind::Ls) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:595:5: note: +2, including nesting penalty of 1, nesting level increased to 2 595 | if (request.kind == Request::Kind::Values) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:597:7: note: +3, including nesting penalty of 2, nesting level increased to 3 597 | for (const auto &code : request.list) { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:605:5: note: +2, including nesting penalty of 1, nesting level increased to 2 605 | if (request.text == ".quit" || request.text == ".abort") { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:605:33: note: +1 605 | if (request.text == ".quit" || request.text == ".abort") { | ^ /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/repl.cpp:607:7: note: +3, including nesting penalty of 2, nesting level increased to 3 607 | if (request.text == ".abort") { | ^ [20/20][25.2s] /nix/store/2kd1jz13ffjvaixlkfdf8ysqc6zmkfmd-clang-tools-23.1.3/bin/clang-tidy -p=. -quiet /private/var/tb/2/scratch/18098fb4f4654b5c/build/source/lib/completer.cpp