Build Information
Failed to build StockFishKit_iOS, reference main (de7bb4), with Swift 6.2 for Wasm on 21 Mar 2026 01:01:17 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build 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.2
Building package at path: $PWD
https://github.com/SoumitSaha/StockFishKit_iOS.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:33aba1b4ee401c56e0fd7ee42e05ab1ffc0b6f44277ad19cffda5d456eb09500
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift-sdk.json
Building for debugging...
[0/28] Write sources
[1/28] Copying nn-47fc8b7fff06.nnue
[2/28] Copying nn-9a0cc2a62c52.nnue
[3/28] Compiling tune.cpp
[4/28] 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-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/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-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/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-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/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/28] Compiling StockfishWrapper.cpp
[5/28] Compiling tbprobe.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-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/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-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/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-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/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/28] Compiling tt.cpp
[5/28] Write swift-version-24593BA9C3E375BF.txt
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-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/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-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/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-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/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/28] Compiling uci.cpp
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-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/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-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/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-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/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/28] Compiling timeman.cpp
[5/28] 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-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/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();
| ^
[5/28] Compiling thread.cpp
BUILD FAILURE 6.2 wasm