Build Information
Failed to build USearch, reference main (33d3ab), with Swift 6.1 for Wasm on 4 Nov 2026 13:24:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/unum-cloud/usearch.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/unum-cloud/usearch
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 33d3ab6 Make: Stop publishing Docker images, Maven artifacts and Vercel docs
Submodule path 'numkong': checked out '254198d3cc1e9fbbfc194484d20cc9767dd8a676'
Submodule path 'stringzilla': checked out '30d3e2129654d8269b3f66726414f9694c834e25'
Submodule 'numkong' (https://github.com/ashvardanian/NumKong) registered for path 'numkong'
Submodule 'stringzilla' (https://github.com/ashvardanian/stringzilla) registered for path 'stringzilla'
Cloning into '/host/spi-builder-workspace/numkong'...
Cloning into '/host/spi-builder-workspace/stringzilla'...
Cloned https://github.com/unum-cloud/usearch.git
Revision (git rev-parse @):
33d3ab6416f87581fe0bc6cc833bac9f516a0c82
SUCCESS checkout https://github.com/unum-cloud/usearch.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/unum-cloud/usearch.git
https://github.com/unum-cloud/usearch.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/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 saguaro1/spi-images
Digest: sha256:c39884094bf9874b7a6bb32559a257cc0b80a9b15eb9e58adaa15f5bda5e4fb5
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Fetching https://github.com/ashvardanian/NumKong
[1/37163] Fetching numkong
Fetched https://github.com/ashvardanian/NumKong from cache (2.69s)
Computing version for https://github.com/ashvardanian/NumKong
Computed https://github.com/ashvardanian/NumKong at 7.8.7 (2.93s)
Creating working copy for https://github.com/ashvardanian/NumKong
Working copy of https://github.com/ashvardanian/NumKong resolved at 7.8.7
Building for debugging...
[0/3] Write sources
In file included from /host/spi-builder-workspace/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/include/usearch/index_dense.hpp:8:
In file included from /host/spi-builder-workspace/include/usearch/index.hpp:85:
/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/wasm32-wasi/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
| ^
In file included from /host/spi-builder-workspace/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/include/usearch/index_dense.hpp:8:
/host/spi-builder-workspace/include/usearch/index.hpp:788:18: error: no member named 'this_thread' in namespace 'std'
788 | std::this_thread::yield();
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:1698:61: error: no member named 'thread' in namespace 'std'
1698 | : index_limits_t(n, (std::max<std::size_t>)(1, std::thread::hardware_concurrency())) {}
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:2126:63: error: use of undeclared identifier 'PROT_READ'
2126 | byte_t* file = (byte_t*)mmap(NULL, file_stat.st_size, PROT_READ, MAP_SHARED, descriptor, 0);
| ^
/host/spi-builder-workspace/include/usearch/index.hpp:2126:74: error: use of undeclared identifier 'MAP_SHARED'
2126 | byte_t* file = (byte_t*)mmap(NULL, file_stat.st_size, PROT_READ, MAP_SHARED, descriptor, 0);
| ^
/host/spi-builder-workspace/include/usearch/index.hpp:2127:21: error: use of undeclared identifier 'MAP_FAILED'
2127 | if (file == MAP_FAILED) {
| ^
/host/spi-builder-workspace/include/usearch/index.hpp:2151:9: error: use of undeclared identifier 'munmap'
2151 | munmap(ptr_, length_);
| ^
/host/spi-builder-workspace/include/usearch/index.hpp:2574:10: error: no type named 'mutex' in namespace 'std'
2574 | std::mutex global_mutex_{};
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:3256:14: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
3256 | std::unique_lock<std::mutex> new_level_lock(global_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/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/include/usearch/index_dense.hpp:8:
/host/spi-builder-workspace/include/usearch/index.hpp:3256:31: error: no member named 'mutex' in namespace 'std'
3256 | std::unique_lock<std::mutex> new_level_lock(global_mutex_);
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:3275:13: error: use of undeclared identifier 'new_level_lock'
3275 | new_level_lock.unlock();
| ^
/host/spi-builder-workspace/include/usearch/index.hpp:3402:18: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
3402 | std::unique_lock<std::mutex> new_level_lock(global_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/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/include/usearch/index_dense.hpp:8:
/host/spi-builder-workspace/include/usearch/index.hpp:3402:35: error: no member named 'mutex' in namespace 'std'
3402 | std::unique_lock<std::mutex> new_level_lock(global_mutex_);
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:4985:10: error: no type named 'mutex' in namespace 'std'
4985 | std::mutex free_men_mutex{};
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:5028:22: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
5028 | std::unique_lock<std::mutex> pop_lock(free_men_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/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/include/usearch/index_dense.hpp:8:
/host/spi-builder-workspace/include/usearch/index.hpp:5028:39: error: no member named 'mutex' in namespace 'std'
5028 | std::unique_lock<std::mutex> pop_lock(free_men_mutex);
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:5084:26: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
5084 | std::unique_lock<std::mutex> push_lock(free_men_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/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/include/usearch/index_dense.hpp:8:
/host/spi-builder-workspace/include/usearch/index.hpp:5084:43: error: no member named 'mutex' in namespace 'std'
5084 | std::unique_lock<std::mutex> push_lock(free_men_mutex);
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:5087:26: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
5087 | std::unique_lock<std::mutex> push_lock(free_men_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) {
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[1/3] Compiling USearchC lib.cpp
[1/3] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:c39884094bf9874b7a6bb32559a257cc0b80a9b15eb9e58adaa15f5bda5e4fb5
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': found 4 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/swift/README.md
/host/spi-builder-workspace/swift/USearchIndex+Sugar.swift
/host/spi-builder-workspace/swift/USearchIndex.swift
/host/spi-builder-workspace/swift/Util.swift
[0/1] Planning build
Building for debugging...
[0/2] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/include/usearch/index_dense.hpp:8:
In file included from /host/spi-builder-workspace/include/usearch/index.hpp:85:
/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/wasm32-wasi/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
| ^
In file included from /host/spi-builder-workspace/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/include/usearch/index_dense.hpp:8:
/host/spi-builder-workspace/include/usearch/index.hpp:788:18: error: no member named 'this_thread' in namespace 'std'
788 | std::this_thread::yield();
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:1698:61: error: no member named 'thread' in namespace 'std'
1698 | : index_limits_t(n, (std::max<std::size_t>)(1, std::thread::hardware_concurrency())) {}
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:2126:63: error: use of undeclared identifier 'PROT_READ'
2126 | byte_t* file = (byte_t*)mmap(NULL, file_stat.st_size, PROT_READ, MAP_SHARED, descriptor, 0);
| ^
/host/spi-builder-workspace/include/usearch/index.hpp:2126:74: error: use of undeclared identifier 'MAP_SHARED'
2126 | byte_t* file = (byte_t*)mmap(NULL, file_stat.st_size, PROT_READ, MAP_SHARED, descriptor, 0);
| ^
/host/spi-builder-workspace/include/usearch/index.hpp:2127:21: error: use of undeclared identifier 'MAP_FAILED'
2127 | if (file == MAP_FAILED) {
| ^
/host/spi-builder-workspace/include/usearch/index.hpp:2151:9: error: use of undeclared identifier 'munmap'
2151 | munmap(ptr_, length_);
| ^
/host/spi-builder-workspace/include/usearch/index.hpp:2574:10: error: no type named 'mutex' in namespace 'std'
2574 | std::mutex global_mutex_{};
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:3256:14: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
3256 | std::unique_lock<std::mutex> new_level_lock(global_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/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/include/usearch/index_dense.hpp:8:
/host/spi-builder-workspace/include/usearch/index.hpp:3256:31: error: no member named 'mutex' in namespace 'std'
3256 | std::unique_lock<std::mutex> new_level_lock(global_mutex_);
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:3275:13: error: use of undeclared identifier 'new_level_lock'
3275 | new_level_lock.unlock();
| ^
/host/spi-builder-workspace/include/usearch/index.hpp:3402:18: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
3402 | std::unique_lock<std::mutex> new_level_lock(global_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/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/include/usearch/index_dense.hpp:8:
/host/spi-builder-workspace/include/usearch/index.hpp:3402:35: error: no member named 'mutex' in namespace 'std'
3402 | std::unique_lock<std::mutex> new_level_lock(global_mutex_);
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:4985:10: error: no type named 'mutex' in namespace 'std'
4985 | std::mutex free_men_mutex{};
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:5028:22: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
5028 | std::unique_lock<std::mutex> pop_lock(free_men_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/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/include/usearch/index_dense.hpp:8:
/host/spi-builder-workspace/include/usearch/index.hpp:5028:39: error: no member named 'mutex' in namespace 'std'
5028 | std::unique_lock<std::mutex> pop_lock(free_men_mutex);
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:5084:26: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
5084 | std::unique_lock<std::mutex> push_lock(free_men_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/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/include/usearch/index_dense.hpp:8:
/host/spi-builder-workspace/include/usearch/index.hpp:5084:43: error: no member named 'mutex' in namespace 'std'
5084 | std::unique_lock<std::mutex> push_lock(free_men_mutex);
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:5087:26: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
5087 | std::unique_lock<std::mutex> push_lock(free_men_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) {
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[1/2] Compiling USearchC lib.cpp
BUILD FAILURE 6.1 wasm