The Swift Package Index logo.Swift Package Index

Build Information

Failed to build StockFishKit_iOS, reference 2.0.2 (de7bb4), with Swift 6.3 for Wasm on 22 Apr 2026 17:06:23 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SoumitSaha/StockFishKit_iOS.git
Reference: 2.0.2
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
 * tag               2.0.2      -> FETCH_HEAD
HEAD is now at de7bb4f total core / 1.5 thread to gain more speed
Cloned https://github.com/SoumitSaha/StockFishKit_iOS.git
Revision (git rev-parse @):
de7bb4f4615b7faf775be148e7a28c8b5e87011a
SUCCESS checkout https://github.com/SoumitSaha/StockFishKit_iOS.git at 2.0.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/SoumitSaha/StockFishKit_iOS.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/28] Compiling memory.cpp
[1/28] Compiling bitboard.cpp
[2/28] Compiling half_ka_v2_hm.cpp
[3/28] Write swift-version-24593BA9C3E375BF.txt
[4/28] Copying nn-47fc8b7fff06.nnue
[5/28] Copying nn-9a0cc2a62c52.nnue
[6/28] Write sources
/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;
      |            ~~~~~^
1 error generated.
[7/28] Compiling misc.cpp
[7/28] Compiling ucioption.cpp
[7/28] Compiling uci.cpp
[7/28] Compiling StockfishWrapper.cpp
[7/28] Compiling network.cpp
[7/28] Compiling engine.cpp
[7/28] Compiling evaluate.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();
      |                            ~~~~~^
/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-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cstdio:144:9: note: 'fread' declared here
  144 | using ::fread _LIBCPP_USING_IF_EXISTS;
      |         ^
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:955:20: error: expected ';' after expression
  955 |         std::thread th([this, &f, n]() {
      |                    ^
      |                    ;
/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:955:9: warning: expression result unused [-Wunused-value]
  955 |         std::thread th([this, &f, n]() {
      |         ^~~~~~~~~~~
/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:26: error: no member named 'mutex' in namespace 'std'; did you mean simply 'mutex'?
 1466 |         std::unique_lock<std::mutex> lock(mutex);
      |                          ^~~~~~~~~~
      |                          mutex
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1456:45: note: 'mutex' declared here
 1456 |     mutable std::mutex                      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:26: error: no member named 'mutex' in namespace 'std'; did you mean simply 'mutex'?
 1600 |         std::unique_lock<std::mutex> lock(mutex);
      |                          ^~~~~~~~~~
      |                          mutex
/host/spi-builder-workspace/Sources/StockFishKitCXX/StockFish_src/numa.h:1580:54: note: 'mutex' declared here
 1580 |     mutable std::mutex                               mutex;
      |                                                      ^
[7/28] Compiling benchmark.cpp
BUILD FAILURE 6.3 wasm