The Swift Package Index logo.Swift Package Index

Build Information

Failed to build USearch, reference main (22d59b), with Swift 6.3 for Wasm on 20 Apr 2026 12:12:54 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/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 22d59bb Release: v2.25.1 [skip ci] ### Patch
Submodule path 'numkong': checked out '14daf40059045660775ec39d161f2b51e0a0f2dc'
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 @):
22d59bb3ebaa3d566ff45652ce4b0d0711abb779
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-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
Fetching https://github.com/ashvardanian/NumKong
[1/24753] Fetching numkong
Fetched https://github.com/ashvardanian/NumKong from cache (2.11s)
Computing version for https://github.com/ashvardanian/NumKong
Computed https://github.com/ashvardanian/NumKong at 7.6.0 (2.45s)
Creating working copy for https://github.com/ashvardanian/NumKong
Working copy of https://github.com/ashvardanian/NumKong resolved at 7.6.0
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-RELEASE_wasm.artifactbundle/swift-6.3-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:713:18: error: no member named 'this_thread' in namespace 'std'
  713 |             std::this_thread::yield();
      |             ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:1532:36: error: no member named 'thread' in namespace 'std'
 1532 |     std::size_t threads_add = std::thread::hardware_concurrency();
      |                               ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:1534:39: error: no member named 'thread' in namespace 'std'
 1534 |     std::size_t threads_search = std::thread::hardware_concurrency();
      |                                  ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:1537:80: error: no member named 'thread' in namespace 'std'
 1537 |     inline index_limits_t(std::size_t n = 0) noexcept : index_limits_t(n, std::thread::hardware_concurrency()) {}
      |                                                                           ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:1948:63: error: use of undeclared identifier 'PROT_READ'
 1948 |         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:1948:74: error: use of undeclared identifier 'MAP_SHARED'
 1948 |         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:1949:21: error: use of undeclared identifier 'MAP_FAILED'
 1949 |         if (file == MAP_FAILED) {
      |                     ^~~~~~~~~~
/host/spi-builder-workspace/include/usearch/index.hpp:1973:9: error: use of undeclared identifier 'munmap'
 1973 |         munmap(ptr_, length_);
      |         ^~~~~~
/host/spi-builder-workspace/include/usearch/index.hpp:2396:10: error: no type named 'mutex' in namespace 'std'
 2396 |     std::mutex global_mutex_{};
      |     ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:2938:31: error: no member named 'mutex' in namespace 'std'
 2938 |         std::unique_lock<std::mutex> new_level_lock(global_mutex_);
      |                               ^~~~~
/host/spi-builder-workspace/include/usearch/index.hpp:3082:35: error: no member named 'mutex' in namespace 'std'
 3082 |             std::unique_lock<std::mutex> new_level_lock(global_mutex_);
      |                                   ^~~~~
/host/spi-builder-workspace/include/usearch/index.hpp:4613:10: error: no type named 'mutex' in namespace 'std'
 4613 |     std::mutex free_men_mutex{};
      |     ~~~~~^
/host/spi-builder-workspace/include/usearch/index.hpp:4656:39: error: no member named 'mutex' in namespace 'std'
 4656 |                 std::unique_lock<std::mutex> pop_lock(free_men_mutex);
      |                                       ^~~~~
/host/spi-builder-workspace/include/usearch/index.hpp:4712:43: error: no member named 'mutex' in namespace 'std'
 4712 |                     std::unique_lock<std::mutex> push_lock(free_men_mutex);
      |                                           ^~~~~
/host/spi-builder-workspace/include/usearch/index.hpp:4715:43: error: no member named 'mutex' in namespace 'std'
 4715 |                     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:1355:14: error: no type named 'thread' in namespace 'std'
 1355 |         std::thread native_;
      |         ~~~~~^
/host/spi-builder-workspace/include/usearch/index_plugins.hpp:1375:63: error: no member named 'thread' in namespace 'std'
 1375 |         : threads_count_(threads_count ? threads_count : std::thread::hardware_concurrency()) {}
      |                                                          ~~~~~^
/host/spi-builder-workspace/include/usearch/index_plugins.hpp:1622:48: error: use of undeclared identifier 'PROT_WRITE'
 1622 |         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