The Swift Package Index logo.Swift Package Index

Build Information

Failed to build StockFishKit_iOS, reference main (de7bb4), with Swift 6.1 for Wasm on 21 Mar 2026 01:03:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SoumitSaha/StockFishKit_iOS.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/SoumitSaha/StockFishKit_iOS
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at de7bb4f total core / 1.5 thread to gain more speed
Updating files:  98% (73/74)
Updating files: 100% (74/74)
Updating files: 100% (74/74), done.
Cloned https://github.com/SoumitSaha/StockFishKit_iOS.git
Revision (git rev-parse @):
de7bb4f4615b7faf775be148e7a28c8b5e87011a
SUCCESS checkout https://github.com/SoumitSaha/StockFishKit_iOS.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/SoumitSaha/StockFishKit_iOS.git
https://github.com/SoumitSaha/StockFishKit_iOS.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "cxx_language_standard" : "c++17",
  "dependencies" : [
  ],
  "manifest_display_name" : "StockFishKit_iOS",
  "name" : "StockFishKit_iOS",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "StockFishKit_iOS",
      "targets" : [
        "StockFishKit_iOS"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StockFishKit_iOS",
      "module_type" : "SwiftTarget",
      "name" : "StockFishKit_iOS",
      "path" : "Sources/StockFishKit_iOS",
      "product_memberships" : [
        "StockFishKit_iOS"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/StockFishKit_iOS/Resources/nn-47fc8b7fff06.nnue",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Sources/StockFishKit_iOS/Resources/nn-9a0cc2a62c52.nnue",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "StockFish_iOS.swift",
        "StockFish_iOSDelegate.swift"
      ],
      "target_dependencies" : [
        "StockFishKitCXX"
      ],
      "type" : "library"
    },
    {
      "c99name" : "StockFishKitCXX",
      "module_type" : "ClangTarget",
      "name" : "StockFishKitCXX",
      "path" : "Sources/StockFishKitCXX",
      "product_memberships" : [
        "StockFishKit_iOS"
      ],
      "sources" : [
        "StockFish_src/benchmark.cpp",
        "StockFish_src/bitboard.cpp",
        "StockFish_src/engine.cpp",
        "StockFish_src/evaluate.cpp",
        "StockFish_src/memory.cpp",
        "StockFish_src/misc.cpp",
        "StockFish_src/movegen.cpp",
        "StockFish_src/movepick.cpp",
        "StockFish_src/nnue/features/full_threats.cpp",
        "StockFish_src/nnue/features/half_ka_v2_hm.cpp",
        "StockFish_src/nnue/network.cpp",
        "StockFish_src/nnue/nnue_accumulator.cpp",
        "StockFish_src/nnue/nnue_misc.cpp",
        "StockFish_src/position.cpp",
        "StockFish_src/score.cpp",
        "StockFish_src/search.cpp",
        "StockFish_src/syzygy/tbprobe.cpp",
        "StockFish_src/thread.cpp",
        "StockFish_src/timeman.cpp",
        "StockFish_src/tt.cpp",
        "StockFish_src/tune.cpp",
        "StockFish_src/uci.cpp",
        "StockFish_src/ucioption.cpp",
        "Wrappers/StockfishWrapper.cpp"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7b4552feb759c014e60bb7d16019351f72ce4b9f19dbbaa081e1f5551c90672
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Building for debugging...
[0/28] Compiling memory.cpp
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/misc.cpp:82:19: error: implicit instantiation of undefined template 'std::basic_ofstream<char>'
   82 |     std::ofstream file;
      |                   ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__fwd/fstream.h:26:28: note: template is declared here
   26 | class _LIBCPP_TEMPLATE_VIS basic_ofstream;
      |                            ^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/misc.cpp:99:37: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
   99 |             l.file.open(fname, std::ifstream::out);
      |                                     ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
   24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
      |                            ^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/misc.cpp:417:17: error: no type named 'mutex' in namespace 'std'
  417 |     static std::mutex m;
      |            ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/misc.cpp:490:19: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
  490 |     std::ifstream f(path, std::ios_base::binary);
      |                   ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
   24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
      |                            ^
4 errors generated.
[1/28] Compiling misc.cpp
[1/28] Compiling score.cpp
[1/28] Compiling evaluate.cpp
[1/28] Compiling engine.cpp
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/benchmark.cpp:20:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:84:33: error: no member named 'thread' in namespace 'std'
   84 |     CpuIndex concurrency = std::thread::hardware_concurrency();
      |                            ~~~~~^
[1/28] Compiling benchmark.cpp
[1/28] Compiling bitboard.cpp
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/position.cpp:40:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.h:27:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/engine.h:35:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:84:33: error: no member named 'thread' in namespace 'std'
   84 |     CpuIndex concurrency = std::thread::hardware_concurrency();
      |                            ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:955:20: error: expected ';' after expression
  955 |         std::thread th([this, &f, n]() {
      |                    ^
      |                    ;
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:955:14: error: no member named 'thread' in namespace 'std'; did you mean 'fread'?
  955 |         std::thread th([this, &f, n]() {
      |         ~~~~~^~~~~~
      |              fread
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/cstdio:141:9: note: 'fread' declared here
  141 | using ::fread _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/position.cpp:40:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.h:27:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/engine.h:35:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:960:9: error: use of undeclared identifier 'th'
  960 |         th.join();
      |         ^
[1/28] Compiling position.cpp
[1/28] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7b4552feb759c014e60bb7d16019351f72ce4b9f19dbbaa081e1f5551c90672
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/27] Write sources
[0/28] Copying nn-47fc8b7fff06.nnue
[2/27] Copying nn-9a0cc2a62c52.nnue
[3/27] Compiling tune.cpp
[4/27] Compiling ucioption.cpp
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/Wrappers/StockfishWrapper.cpp:9:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.h:27:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/engine.h:35:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:84:33: error: no member named 'thread' in namespace 'std'
   84 |     CpuIndex concurrency = std::thread::hardware_concurrency();
      |                            ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:955:20: error: expected ';' after expression
  955 |         std::thread th([this, &f, n]() {
      |                    ^
      |                    ;
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:955:14: error: no member named 'thread' in namespace 'std'; did you mean 'fread'?
  955 |         std::thread th([this, &f, n]() {
      |         ~~~~~^~~~~~
      |              fread
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/cstdio:141:9: note: 'fread' declared here
  141 | using ::fread _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/Wrappers/StockfishWrapper.cpp:9:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.h:27:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/engine.h:35:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:960:9: error: use of undeclared identifier 'th'
  960 |         th.join();
      |         ^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1456:18: error: no type named 'mutex' in namespace 'std'
 1456 |     mutable std::mutex                      mutex;
      |             ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1466:14: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
 1466 |         std::unique_lock<std::mutex> lock(mutex);
      |         ~~~~~^~~~~~~~~~~
      |              unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
  102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
      | ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/Wrappers/StockfishWrapper.cpp:9:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.h:27:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/engine.h:35:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1466:31: error: no member named 'mutex' in namespace 'std'
 1466 |         std::unique_lock<std::mutex> lock(mutex);
      |                          ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1580:18: error: no type named 'mutex' in namespace 'std'
 1580 |     mutable std::mutex                               mutex;
      |             ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1600:14: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
 1600 |         std::unique_lock<std::mutex> lock(mutex);
      |         ~~~~~^~~~~~~~~~~
      |              unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
  102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
      | ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/Wrappers/StockfishWrapper.cpp:9:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.h:27:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/engine.h:35:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1600:31: error: no member named 'mutex' in namespace 'std'
 1600 |         std::unique_lock<std::mutex> lock(mutex);
      |                          ~~~~~^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/Wrappers/StockfishWrapper.cpp:9:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.h:27:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/engine.h:39:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:35:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread_win32_osx.h:72:27: error: no type named 'thread' in namespace 'std'
   72 | using NativeThread = std::thread;
      |                      ~~~~~^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/Wrappers/StockfishWrapper.cpp:9:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.h:27:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/engine.h:39:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:103:10: error: no type named 'mutex' in namespace 'std'
  103 |     std::mutex                mutex;
      |     ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:104:10: error: no type named 'condition_variable' in namespace 'std'
  104 |     std::condition_variable   cv;
      |     ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:107:5: error: unknown type name 'NativeThread'
  107 |     NativeThread              stdThread;
      |     ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/Wrappers/StockfishWrapper.cpp:9:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.h:55:11: error: cannot deduce return type 'auto &' for function with no return statements
   55 |     auto& engine_options() { return engine.get_options(); }
      |           ^
/host/spi-builder-workspace/Sources/StockFishKitCXX/Wrappers/StockfishWrapper.cpp:31:10: error: no type named 'mutex' in namespace 'std'
   31 |     std::mutex              m;
      |     ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/Wrappers/StockfishWrapper.cpp:32:10: error: no type named 'condition_variable' in namespace 'std'
   32 |     std::condition_variable cv;
      |     ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/Wrappers/StockfishWrapper.cpp:37:34: error: no member named 'mutex' in namespace 'std'
   37 |             std::lock_guard<std::mutex> l(m);
      |                             ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/Wrappers/StockfishWrapper.cpp:46:34: error: no member named 'mutex' in namespace 'std'
   46 |             std::lock_guard<std::mutex> l(m);
      |                             ~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[5/27] Compiling StockfishWrapper.cpp
[5/27] Compiling tbprobe.cpp
[5/27] Compiling search.cpp
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.cpp:19:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:32:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:84:33: error: no member named 'thread' in namespace 'std'
   84 |     CpuIndex concurrency = std::thread::hardware_concurrency();
      |                            ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:955:20: error: expected ';' after expression
  955 |         std::thread th([this, &f, n]() {
      |                    ^
      |                    ;
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:955:14: error: no member named 'thread' in namespace 'std'; did you mean 'fread'?
  955 |         std::thread th([this, &f, n]() {
      |         ~~~~~^~~~~~
      |              fread
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/cstdio:141:9: note: 'fread' declared here
  141 | using ::fread _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.cpp:19:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:32:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:960:9: error: use of undeclared identifier 'th'
  960 |         th.join();
      |         ^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1456:18: error: no type named 'mutex' in namespace 'std'
 1456 |     mutable std::mutex                      mutex;
      |             ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1466:14: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
 1466 |         std::unique_lock<std::mutex> lock(mutex);
      |         ~~~~~^~~~~~~~~~~
      |              unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
  102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
      | ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.cpp:19:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:32:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1466:31: error: no member named 'mutex' in namespace 'std'
 1466 |         std::unique_lock<std::mutex> lock(mutex);
      |                          ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1580:18: error: no type named 'mutex' in namespace 'std'
 1580 |     mutable std::mutex                               mutex;
      |             ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1600:14: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
 1600 |         std::unique_lock<std::mutex> lock(mutex);
      |         ~~~~~^~~~~~~~~~~
      |              unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
  102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
      | ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.cpp:19:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:32:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1600:31: error: no member named 'mutex' in namespace 'std'
 1600 |         std::unique_lock<std::mutex> lock(mutex);
      |                          ~~~~~^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.cpp:19:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:35:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread_win32_osx.h:72:27: error: no type named 'thread' in namespace 'std'
   72 | using NativeThread = std::thread;
      |                      ~~~~~^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.cpp:19:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:103:10: error: no type named 'mutex' in namespace 'std'
  103 |     std::mutex                mutex;
      |     ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:104:10: error: no type named 'condition_variable' in namespace 'std'
  104 |     std::condition_variable   cv;
      |     ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:107:5: error: unknown type name 'NativeThread'
  107 |     NativeThread              stdThread;
      |     ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.cpp:38:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.h:55:11: error: cannot deduce return type 'auto &' for function with no return statements
   55 |     auto& engine_options() { return engine.get_options(); }
      |           ^
[5/27] Compiling thread.cpp
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.cpp:19:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.h:27:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/engine.h:35:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:84:33: error: no member named 'thread' in namespace 'std'
   84 |     CpuIndex concurrency = std::thread::hardware_concurrency();
      |                            ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:955:20: error: expected ';' after expression
  955 |         std::thread th([this, &f, n]() {
      |                    ^
      |                    ;
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:955:14: error: no member named 'thread' in namespace 'std'; did you mean 'fread'?
  955 |         std::thread th([this, &f, n]() {
      |         ~~~~~^~~~~~
      |              fread
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/cstdio:141:9: note: 'fread' declared here
  141 | using ::fread _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.cpp:19:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.h:27:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/engine.h:35:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:960:9: error: use of undeclared identifier 'th'
  960 |         th.join();
      |         ^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1456:18: error: no type named 'mutex' in namespace 'std'
 1456 |     mutable std::mutex                      mutex;
      |             ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1466:14: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
 1466 |         std::unique_lock<std::mutex> lock(mutex);
      |         ~~~~~^~~~~~~~~~~
      |              unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
  102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
      | ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.cpp:19:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.h:27:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/engine.h:35:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1466:31: error: no member named 'mutex' in namespace 'std'
 1466 |         std::unique_lock<std::mutex> lock(mutex);
      |                          ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1580:18: error: no type named 'mutex' in namespace 'std'
 1580 |     mutable std::mutex                               mutex;
      |             ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1600:14: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
 1600 |         std::unique_lock<std::mutex> lock(mutex);
      |         ~~~~~^~~~~~~~~~~
      |              unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
  102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
      | ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.cpp:19:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.h:27:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/engine.h:35:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1600:31: error: no member named 'mutex' in namespace 'std'
 1600 |         std::unique_lock<std::mutex> lock(mutex);
      |                          ~~~~~^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.cpp:19:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.h:27:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/engine.h:39:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:35:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread_win32_osx.h:72:27: error: no type named 'thread' in namespace 'std'
   72 | using NativeThread = std::thread;
      |                      ~~~~~^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.cpp:19:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.h:27:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/engine.h:39:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:103:10: error: no type named 'mutex' in namespace 'std'
  103 |     std::mutex                mutex;
      |     ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:104:10: error: no type named 'condition_variable' in namespace 'std'
  104 |     std::condition_variable   cv;
      |     ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:107:5: error: unknown type name 'NativeThread'
  107 |     NativeThread              stdThread;
      |     ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.cpp:19:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/uci.h:55:11: error: cannot deduce return type 'auto &' for function with no return statements
   55 |     auto& engine_options() { return engine.get_options(); }
      |           ^
[5/27] Compiling uci.cpp
[5/27] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/timeman.cpp:26:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/search.h:39:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:84:33: error: no member named 'thread' in namespace 'std'
   84 |     CpuIndex concurrency = std::thread::hardware_concurrency();
      |                            ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:955:20: error: expected ';' after expression
  955 |         std::thread th([this, &f, n]() {
      |                    ^
      |                    ;
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:955:14: error: no member named 'thread' in namespace 'std'; did you mean 'fread'?
  955 |         std::thread th([this, &f, n]() {
      |         ~~~~~^~~~~~
      |              fread
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/cstdio:141:9: note: 'fread' declared here
  141 | using ::fread _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/timeman.cpp:26:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/search.h:39:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:960:9: error: use of undeclared identifier 'th'
  960 |         th.join();
      |         ^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1456:18: error: no type named 'mutex' in namespace 'std'
 1456 |     mutable std::mutex                      mutex;
      |             ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1466:14: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
 1466 |         std::unique_lock<std::mutex> lock(mutex);
      |         ~~~~~^~~~~~~~~~~
      |              unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
  102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
      | ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/timeman.cpp:26:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/search.h:39:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1466:31: error: no member named 'mutex' in namespace 'std'
 1466 |         std::unique_lock<std::mutex> lock(mutex);
      |                          ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1580:18: error: no type named 'mutex' in namespace 'std'
 1580 |     mutable std::mutex                               mutex;
      |             ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1600:14: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
 1600 |         std::unique_lock<std::mutex> lock(mutex);
      |         ~~~~~^~~~~~~~~~~
      |              unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
  102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
      | ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/timeman.cpp:26:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/search.h:39:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1600:31: error: no member named 'mutex' in namespace 'std'
 1600 |         std::unique_lock<std::mutex> lock(mutex);
      |                          ~~~~~^
[5/27] Compiling timeman.cpp
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/tt.cpp:30:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:32:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:84:33: error: no member named 'thread' in namespace 'std'
   84 |     CpuIndex concurrency = std::thread::hardware_concurrency();
      |                            ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:955:20: error: expected ';' after expression
  955 |         std::thread th([this, &f, n]() {
      |                    ^
      |                    ;
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:955:14: error: no member named 'thread' in namespace 'std'; did you mean 'fread'?
  955 |         std::thread th([this, &f, n]() {
      |         ~~~~~^~~~~~
      |              fread
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/cstdio:141:9: note: 'fread' declared here
  141 | using ::fread _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/tt.cpp:30:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:32:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:960:9: error: use of undeclared identifier 'th'
  960 |         th.join();
      |         ^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1456:18: error: no type named 'mutex' in namespace 'std'
 1456 |     mutable std::mutex                      mutex;
      |             ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1466:14: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
 1466 |         std::unique_lock<std::mutex> lock(mutex);
      |         ~~~~~^~~~~~~~~~~
      |              unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
  102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
      | ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/tt.cpp:30:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:32:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1466:31: error: no member named 'mutex' in namespace 'std'
 1466 |         std::unique_lock<std::mutex> lock(mutex);
      |                          ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1580:18: error: no type named 'mutex' in namespace 'std'
 1580 |     mutable std::mutex                               mutex;
      |             ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1600:14: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
 1600 |         std::unique_lock<std::mutex> lock(mutex);
      |         ~~~~~^~~~~~~~~~~
      |              unique_copy
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
  102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
      | ^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/tt.cpp:30:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:32:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1600:31: error: no member named 'mutex' in namespace 'std'
 1600 |         std::unique_lock<std::mutex> lock(mutex);
      |                          ~~~~~^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/tt.cpp:30:
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:35:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread_win32_osx.h:72:27: error: no type named 'thread' in namespace 'std'
   72 | using NativeThread = std::thread;
      |                      ~~~~~^
In file included from /host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/tt.cpp:30:
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:103:10: error: no type named 'mutex' in namespace 'std'
  103 |     std::mutex                mutex;
      |     ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:104:10: error: no type named 'condition_variable' in namespace 'std'
  104 |     std::condition_variable   cv;
      |     ~~~~~^
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/thread.h:107:5: error: unknown type name 'NativeThread'
  107 |     NativeThread              stdThread;
      |     ^
[5/27] Compiling tt.cpp
BUILD FAILURE 6.1 wasm