Running phase: unpackPhase unpacking source archive /nix/store/8m9j3wcjzz2zn9dqq5767w5fvyiq1vnd-source source root is source Running phase: patchPhase applying patch /nix/store/3r3fxhwa27nclkf1g9jhq402p5cz6314-target-fps-cvar.patch patching file port/port.cpp Hunk #1 succeeded at 891 (offset 278 lines). applying patch /nix/store/pg0darbw2nmbyw1cc4j67cr11lfb8k89-dont-fetch-stb.patch patching file libultraship/cmake/dependencies/common.cmake applying patch /nix/store/4w08c89n7flx27lbr0am8ql60b30cx68-torch-deps.patch patching file CMakeLists.txt Hunk #1 succeeded at 237 (offset 85 lines). Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase cmake flags: -GNinja -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/4r16whbh3bhi2s8jj5ka2dcc1fvqmhy8-battleship-1.6/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/4r16whbh3bhi2s8jj5ka2dcc1fvqmhy8-battleship-1.6/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/4r16whbh3bhi2s8jj5ka2dcc1fvqmhy8-battleship-1.6/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/4r16whbh3bhi2s8jj5ka2dcc1fvqmhy8-battleship-1.6/share/doc/ssb64 -DCMAKE_INSTALL_INFODIR=/nix/store/4r16whbh3bhi2s8jj5ka2dcc1fvqmhy8-battleship-1.6/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/4r16whbh3bhi2s8jj5ka2dcc1fvqmhy8-battleship-1.6/share/man -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/4r16whbh3bhi2s8jj5ka2dcc1fvqmhy8-battleship-1.6/include -DCMAKE_INSTALL_SBINDIR=/nix/store/4r16whbh3bhi2s8jj5ka2dcc1fvqmhy8-battleship-1.6/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/4r16whbh3bhi2s8jj5ka2dcc1fvqmhy8-battleship-1.6/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/4r16whbh3bhi2s8jj5ka2dcc1fvqmhy8-battleship-1.6/lib -DCMAKE_STRIP=/nix/store/7v2w6x6h13zzswz6agxxcrx73vqdd0px-clang-wrapper-21.1.8/bin/strip -DCMAKE_RANLIB=/nix/store/7v2w6x6h13zzswz6agxxcrx73vqdd0px-clang-wrapper-21.1.8/bin/ranlib -DCMAKE_AR=/nix/store/7v2w6x6h13zzswz6agxxcrx73vqdd0px-clang-wrapper-21.1.8/bin/ar -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=/nix/store/4r16whbh3bhi2s8jj5ka2dcc1fvqmhy8-battleship-1.6 -DCMAKE_BUILD_TYPE:STRING=Release -DNON_MATCHING:BOOL=TRUE -DNON_EQUIVALENT:BOOL=TRUE -DNON_PORTABLE:BOOL=TRUE -DDISABLE_SCRIPTING:BOOL=TRUE -DCLANG_FORMAT_SUFFIX:STRING=-disabled -DFETCHCONTENT_SOURCE_DIR_IMGUI:STRING=/nix/store/jhnzq46yrdww8wp3cqyznwp8yin8mqia-source-patched -DFETCHCONTENT_SOURCE_DIR_THREADPOOL:STRING=/nix/store/pz15ij0nfdfbqb0rj8v58ajqzlp3laaa-source -DFETCHCONTENT_SOURCE_DIR_PRISM:STRING=/nix/store/92624h2bsyh0nrslawy1n9k1rqs339jp-source -DFETCHCONTENT_SOURCE_DIR_GLSLANG:STRING=/nix/store/v8ld9rw5ps3b28v9kjafxqxh337brik1-source -DFETCHCONTENT_SOURCE_DIR_SPIRV_CROSS:STRING=/nix/store/sbpjmmg7ghm10r659plvanrc0rgfs6al-source -DFETCHCONTENT_SOURCE_DIR_HIDAPI:STRING=/nix/store/r0kg6wgbpxcrrlyhd74lpv2przg1xpa9-source -DFETCHCONTENT_SOURCE_DIR_DISCORD_RPC:STRING=/nix/store/9na9v8104rmy032fki47i3lmc3dysjs6-source -- The C compiler identification is Clang 21.1.8 -- The CXX compiler identification is Clang 21.1.8 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /nix/store/7v2w6x6h13zzswz6agxxcrx73vqdd0px-clang-wrapper-21.1.8/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/7v2w6x6h13zzswz6agxxcrx73vqdd0px-clang-wrapper-21.1.8/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- BattleShip updater version: dev -- SSB64 ROM version: us -- Found Python3: /nix/store/dk1d6yr4gb7h8cpi4q4hg4ic52n5mv74-python3-3.14.7-env/bin/python3.14 (found version "3.14.7") found components: Interpreter CMake Warning (deprecated) at /nix/store/v8ld9rw5ps3b28v9kjafxqxh337brik1-source/CMakeLists.txt:111 (message): ENABLE_HLSL is deprecated. The HLSL front-end will be removed in a future major release of glslang. See https://github.com/KhronosGroup/glslang/issues/4210 for details. This warning is for project developers. Use -Wno-author or -Wno-deprecated to suppress it. -- spirv-tools not linked - illegal SPIRV may be generated for HLSL -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- SPIRV-Cross: Finding Git version for SPIRV-Cross. -- Could NOT find Git (missing: GIT_EXECUTABLE) -- SPIRV-Cross: Git not found, using unknown build version. CMake Warning (deprecated) at /nix/store/92624h2bsyh0nrslawy1n9k1rqs339jp-source/CMakeLists.txt:2 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value. Or, use the ... syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier. This warning is for project developers. Use -Wno-author or -Wno-deprecated to suppress it. -- Found PkgConfig: /nix/store/96rqsbg8z242724qy85sbld7dbf4hipr-pkg-config-wrapper-0.29.2/bin/pkg-config (found version "0.29.2") -- Checking for module 'libudev' -- Found libudev, version 261 -- Found nlohmann_json: /nix/store/di43ny2idx5kmh6zaig6g3h0wnb3fqyd-nlohmann_json-3.12.0/share/cmake/nlohmann_json/nlohmann_jsonConfig.cmake (found version "3.12.0") -- SSB64 app identity: BattleShip -- SSB64 asset recipe hash: a9f508341e85bf7f4f8f8bb4a821f3ee0d7b750e CMake Warning (deprecated) at /nix/store/9na9v8104rmy032fki47i3lmc3dysjs6-source/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value. Or, use the ... syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier. This warning is for project developers. Use -Wno-author or -Wno-deprecated to suppress it. -- BattleShip.o2r: baserom absent — ExtractAssets stub installed -- CSS stage assets: baserom absent — DeriveStageAssets stub installed -- Configuring done (1.0s) -- Generating done (0.1s) CMake Warning (unused-cli): Manually-specified variables were not used by the project: BUILD_TESTING CMAKE_EXPORT_NO_PACKAGE_REGISTRY NON_EQUIVALENT NON_MATCHING -- Build files have been written to: /build/source/build cmake: enabled parallel building cmake: enabled parallel installing Running phase: buildPhase build flags: -j4 [1/813] Creating directories for 'TorchExternal' [2/813] No download step for 'TorchExternal' [3/813] No update step for 'TorchExternal' [4/813] No patch step for 'TorchExternal' [5/813] Building CXX object _deps/spirv_cross-build/CMakeFiles/spirv-cross-core.dir/spirv_cfg.cpp.o [6/813] Building CXX object _deps/spirv_cross-build/CMakeFiles/spirv-cross-core.dir/spirv_cross_parsed_ir.cpp.o [7/813] Building CXX object _deps/spirv_cross-build/CMakeFiles/spirv-cross-core.dir/spirv_parser.cpp.o [8/813] Performing configure step for 'TorchExternal' -- The C compiler identification is Clang 21.1.8 -- The CXX compiler identification is Clang 21.1.8 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /nix/store/7v2w6x6h13zzswz6agxxcrx73vqdd0px-clang-wrapper-21.1.8/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/7v2w6x6h13zzswz6agxxcrx73vqdd0px-clang-wrapper-21.1.8/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Build spdlog: 1.17.0 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Build type: -- Looking for fwrite_unlocked -- Looking for fwrite_unlocked - found -- Configuring done (1.6s) -- Generating done (0.0s) -- Build files have been written to: /build/source/build/TorchExternal/src/TorchExternal-build [9/813] Performing build step for 'TorchExternal' FAILED: [code=1] TorchExternal/src/TorchExternal-stamp/TorchExternal-build /build/source/build/TorchExternal/src/TorchExternal-stamp/TorchExternal-build cd /build/source/build/TorchExternal/src/TorchExternal-build && /nix/store/xi9gp9n1j1kv208bn3a5zgsgfcqx8lf0-cmake-4.4.2/bin/cmake --build . && /nix/store/xi9gp9n1j1kv208bn3a5zgsgfcqx8lf0-cmake-4.4.2/bin/cmake -E touch /build/source/build/TorchExternal/src/TorchExternal-stamp/TorchExternal-build [0/2] Re-checking globbed directories... [1/147] Scanning /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/contrib/graphbuilder.cpp for CXX dependencies FAILED: [code=1] _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilder.cpp.o.ddi "/nix/store/laxggi64hw3kbfq3rnyfig6wxg6wh6m6-clang-21.1.8/bin/clang-scan-deps" -format=p1689 -- /nix/store/7v2w6x6h13zzswz6agxxcrx73vqdd0px-clang-wrapper-21.1.8/bin/clang++ -DNAUDIO_SUPPORT -DSSB64_SUPPORT -DSTANDALONE -DYAML_CPP_STATIC_DEFINE -I/nix/store/a4j8lk4bv8dw185c7ps7j0z16gb9vw3x-source -I/build/source/torch -I/build/source/torch/lib -I/build/source/torch/src -I/nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/include -I/nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src -Wno-narrowing -std=c++20 -fPIC -x c++ /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/contrib/graphbuilder.cpp -c -o _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilder.cpp.o -resource-dir "/nix/store/7v2w6x6h13zzswz6agxxcrx73vqdd0px-clang-wrapper-21.1.8/resource-root" -MT _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilder.cpp.o.ddi -MD -MF _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilder.cpp.o.ddi.d > _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilder.cpp.o.ddi.tmp && mv _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilder.cpp.o.ddi.tmp _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilder.cpp.o.ddi Error while scanning dependencies for /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/contrib/graphbuilder.cpp: In file included from /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/contrib/graphbuilder.cpp:1: /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/contrib/graphbuilderadapter.h:10:10: fatal error: 'cstdlib' file not found [2/147] Scanning /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/contrib/graphbuilderadapter.cpp for CXX dependencies FAILED: [code=1] _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilderadapter.cpp.o.ddi "/nix/store/laxggi64hw3kbfq3rnyfig6wxg6wh6m6-clang-21.1.8/bin/clang-scan-deps" -format=p1689 -- /nix/store/7v2w6x6h13zzswz6agxxcrx73vqdd0px-clang-wrapper-21.1.8/bin/clang++ -DNAUDIO_SUPPORT -DSSB64_SUPPORT -DSTANDALONE -DYAML_CPP_STATIC_DEFINE -I/nix/store/a4j8lk4bv8dw185c7ps7j0z16gb9vw3x-source -I/build/source/torch -I/build/source/torch/lib -I/build/source/torch/src -I/nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/include -I/nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src -Wno-narrowing -std=c++20 -fPIC -x c++ /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/contrib/graphbuilderadapter.cpp -c -o _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilderadapter.cpp.o -resource-dir "/nix/store/7v2w6x6h13zzswz6agxxcrx73vqdd0px-clang-wrapper-21.1.8/resource-root" -MT _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilderadapter.cpp.o.ddi -MD -MF _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilderadapter.cpp.o.ddi.d > _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilderadapter.cpp.o.ddi.tmp && mv _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilderadapter.cpp.o.ddi.tmp _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilderadapter.cpp.o.ddi Error while scanning dependencies for /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/contrib/graphbuilderadapter.cpp: In file included from /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/contrib/graphbuilderadapter.cpp:1: /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/contrib/graphbuilderadapter.h:10:10: fatal error: 'cstdlib' file not found [3/147] Scanning /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/binary.cpp for CXX dependencies FAILED: [code=1] _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/binary.cpp.o.ddi "/nix/store/laxggi64hw3kbfq3rnyfig6wxg6wh6m6-clang-21.1.8/bin/clang-scan-deps" -format=p1689 -- /nix/store/7v2w6x6h13zzswz6agxxcrx73vqdd0px-clang-wrapper-21.1.8/bin/clang++ -DNAUDIO_SUPPORT -DSSB64_SUPPORT -DSTANDALONE -DYAML_CPP_STATIC_DEFINE -I/nix/store/a4j8lk4bv8dw185c7ps7j0z16gb9vw3x-source -I/build/source/torch -I/build/source/torch/lib -I/build/source/torch/src -I/nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/include -I/nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src -Wno-narrowing -std=c++20 -fPIC -x c++ /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/binary.cpp -c -o _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/binary.cpp.o -resource-dir "/nix/store/7v2w6x6h13zzswz6agxxcrx73vqdd0px-clang-wrapper-21.1.8/resource-root" -MT _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/binary.cpp.o.ddi -MD -MF _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/binary.cpp.o.ddi.d > _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/binary.cpp.o.ddi.tmp && mv _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/binary.cpp.o.ddi.tmp _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/binary.cpp.o.ddi Error while scanning dependencies for /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/binary.cpp: In file included from /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/binary.cpp:1: /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/include/yaml-cpp/binary.h:10:10: fatal error: 'string' file not found [4/147] Scanning /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/convert.cpp for CXX dependencies FAILED: [code=1] _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/convert.cpp.o.ddi "/nix/store/laxggi64hw3kbfq3rnyfig6wxg6wh6m6-clang-21.1.8/bin/clang-scan-deps" -format=p1689 -- /nix/store/7v2w6x6h13zzswz6agxxcrx73vqdd0px-clang-wrapper-21.1.8/bin/clang++ -DNAUDIO_SUPPORT -DSSB64_SUPPORT -DSTANDALONE -DYAML_CPP_STATIC_DEFINE -I/nix/store/a4j8lk4bv8dw185c7ps7j0z16gb9vw3x-source -I/build/source/torch -I/build/source/torch/lib -I/build/source/torch/src -I/nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/include -I/nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src -Wno-narrowing -std=c++20 -fPIC -x c++ /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/convert.cpp -c -o _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/convert.cpp.o -resource-dir "/nix/store/7v2w6x6h13zzswz6agxxcrx73vqdd0px-clang-wrapper-21.1.8/resource-root" -MT _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/convert.cpp.o.ddi -MD -MF _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/convert.cpp.o.ddi.d > _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/convert.cpp.o.ddi.tmp && mv _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/convert.cpp.o.ddi.tmp _deps/yaml-cpp-build/CMakeFiles/yaml-cpp.dir/src/convert.cpp.o.ddi Error while scanning dependencies for /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/convert.cpp: /nix/store/m68gghss2bfh4zp1r47l405fq7r8ynns-yaml-cpp-0.9.0-source/src/convert.cpp:1:10: fatal error: 'algorithm' file not found ninja: build stopped: subcommand failed. [10/813] Building CXX object _deps/glslang-build/glslang/CMakeFiles/glslang.dir/cmake_pch.hxx.pch [11/813] Building CXX object _deps/spirv_cross-build/CMakeFiles/spirv-cross-core.dir/spirv_cross.cpp.o [12/813] Building CXX object _deps/spirv_cross-build/CMakeFiles/spirv-cross-glsl.dir/spirv_glsl.cpp.o ninja: build stopped: subcommand failed.