Build Information
Failed to build USearch, reference main (33d3ab), with Swift 6.3 for Wasm on 4 Nov 2026 13:29:25 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 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.3
Building package at path: $PWD
https://github.com/unum-cloud/usearch.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:3045625b85c7b3a40ef7c4e596cfe3f6119a575d9bb01341bbf4a893a5aa001c
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/ashvardanian/NumKong
[1/37163] Fetching numkong
Fetched https://github.com/ashvardanian/NumKong from cache (2.38s)
Computing version for https://github.com/ashvardanian/NumKong
Computed https://github.com/ashvardanian/NumKong at 7.8.7 (2.53s)
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-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/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: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: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: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: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:43: error: no member named 'mutex' in namespace 'std'
5087 | std::unique_lock<std::mutex> push_lock(free_men_mutex);
| ^~~~~
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:12:
/host/spi-builder-workspace/include/usearch/index_plugins.hpp:1358:14: error: no type named 'thread' in namespace 'std'
1358 | std::thread native_;
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index_plugins.hpp:1378:63: error: no member named 'thread' in namespace 'std'
1378 | : threads_count_(threads_count ? threads_count : std::thread::hardware_concurrency()) {}
| ~~~~~^
/host/spi-builder-workspace/include/usearch/index_plugins.hpp:1631:48: error: use of undeclared identifier 'PROT_WRITE'
1631 | auto* result = mmap(NULL, count_bytes, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
| ^~~~~~~~~~
/host/spi-builder-workspace/include/usearch/index_plugins.hpp:1631:61: error: use of undeclared identifier 'PROT_READ'
1631 | auto* result = mmap(NULL, count_bytes, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
| ^~~~~~~~~
/host/spi-builder-workspace/include/usearch/index_plugins.hpp:1631:72: error: use of undeclared identifier 'MAP_PRIVATE'
1631 | auto* result = mmap(NULL, count_bytes, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
| ^~~~~~~~~~~
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
BUILD FAILURE 6.3 wasm