The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Membrane, reference main (538bc2), with Swift 6.3 for Wasm on 19 Apr 2026 11:51:55 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/christopherkarani/Membrane.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/christopherkarani/Membrane
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 538bc25 merge: release Membrane 0.1.3
Cloned https://github.com/christopherkarani/Membrane.git
Revision (git rev-parse @):
538bc256e95b44dc3c87a1fb1e40ce549df07af0
SUCCESS checkout https://github.com/christopherkarani/Membrane.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/christopherkarani/Membrane.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/christopherkarani/Conduit
Fetching https://github.com/christopherkarani/ContextCore.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/christopherkarani/Hive
Fetching https://github.com/christopherkarani/Wax.git
[1/34983] Fetching wax
[351/58552] Fetching wax, swift-collections
[587/61973] Fetching wax, swift-collections, conduit
[1299/62723] Fetching wax, swift-collections, conduit, contextcore
[1793/64604] Fetching wax, swift-collections, conduit, contextcore, hive
Fetched https://github.com/christopherkarani/ContextCore.git from cache (18.71s)
Fetched https://github.com/christopherkarani/Hive from cache (18.76s)
Fetched https://github.com/apple/swift-collections.git from cache (18.85s)
Fetched https://github.com/christopherkarani/Conduit from cache (18.86s)
Fetched https://github.com/christopherkarani/Wax.git from cache (19.35s)
Computing version for https://github.com/christopherkarani/ContextCore.git
Computed https://github.com/christopherkarani/ContextCore.git at 1.0.0 (20.16s)
Fetching https://github.com/christopherkarani/MetalANNS.git
[1/1666] Fetching metalanns
Fetched https://github.com/christopherkarani/MetalANNS.git from cache (0.54s)
Computing version for https://github.com/christopherkarani/Hive
Computed https://github.com/christopherkarani/Hive at 0.1.9 (1.62s)
Computing version for https://github.com/christopherkarani/Wax.git
Computed https://github.com/christopherkarani/Wax.git at 0.1.20 (1.06s)
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/groue/GRDB.swift.git
Fetching https://github.com/unum-cloud/USearch.git
[1/17416] Fetching swift-crypto
[2/35265] Fetching swift-crypto, usearch
[8365/148898] Fetching swift-crypto, usearch, grdb.swift
Fetched https://github.com/unum-cloud/USearch.git from cache (5.26s)
[42416/131049] Fetching swift-crypto, grdb.swift
Fetched https://github.com/apple/swift-crypto.git from cache (34.51s)
Fetched https://github.com/groue/GRDB.swift.git from cache (35.15s)
Computing version for https://github.com/christopherkarani/MetalANNS.git
Computed https://github.com/christopherkarani/MetalANNS.git at 0.1.3 (35.84s)
Computing version for https://github.com/unum-cloud/USearch.git
Computed https://github.com/unum-cloud/USearch.git at 2.25.1 (0.82s)
Fetching https://github.com/ashvardanian/NumKong
[1/24609] Fetching numkong
Fetched https://github.com/ashvardanian/NumKong from cache (4.69s)
Computing version for https://github.com/ashvardanian/NumKong
Computed https://github.com/ashvardanian/NumKong at 7.5.0 (5.57s)
Computing version for https://github.com/christopherkarani/Conduit
Computed https://github.com/christopherkarani/Conduit at 0.3.14 (1.19s)
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/huggingface/swift-transformers
[1/6236] Fetching swift-transformers
[438/12652] Fetching swift-transformers, swift-numerics
[439/19287] Fetching swift-transformers, swift-numerics, swift-log
[4518/94270] Fetching swift-transformers, swift-numerics, swift-log, swift-syntax
Fetched https://github.com/apple/swift-log.git from cache (2.08s)
Fetched https://github.com/huggingface/swift-transformers from cache (2.11s)
[19164/81399] Fetching swift-numerics, swift-syntax
Fetched https://github.com/apple/swift-numerics from cache (9.65s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (9.71s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 602.0.0 (13.73s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.80s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.3.0 (0.86s)
Fetching https://github.com/huggingface/swift-huggingface.git
Fetching https://github.com/ibireme/yyjson.git
Fetching https://github.com/huggingface/swift-jinja.git
[1/2340] Fetching swift-huggingface
[1031/3391] Fetching swift-huggingface, swift-jinja
[3308/7829] Fetching swift-huggingface, swift-jinja, yyjson
Fetched https://github.com/huggingface/swift-jinja.git from cache (0.73s)
[3539/6778] Fetching swift-huggingface, yyjson
Fetched https://github.com/huggingface/swift-huggingface.git from cache (0.74s)
[1243/4438] Fetching yyjson
Fetched https://github.com/ibireme/yyjson.git from cache (1.73s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (2.57s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 0.9.0 (0.79s)
Fetching https://github.com/mattt/EventSource.git
[1/271] Fetching eventsource
Fetched https://github.com/mattt/EventSource.git from cache (0.44s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (1.25s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.4.1 (0.82s)
Fetching https://github.com/apple/swift-nio.git
[1/83172] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (9.23s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (11.14s)
Computing version for https://github.com/groue/GRDB.swift.git
Computed https://github.com/groue/GRDB.swift.git at 7.10.0 (1.15s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.3.5 (6.52s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (0.99s)
Fetching https://github.com/apple/swift-asn1.git
[1/1803] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (1.54s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.0 (3.49s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.98.0 (1.34s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
[1/1820] Fetching swift-atomics
[274/7421] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (1.05s)
Fetched https://github.com/apple/swift-system.git from cache (1.07s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.81s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.98s)
Creating working copy for https://github.com/christopherkarani/Hive
Working copy of https://github.com/christopherkarani/Hive resolved at 0.1.9
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.1
Creating working copy for https://github.com/ashvardanian/NumKong
Working copy of https://github.com/ashvardanian/NumKong resolved at 7.5.0
Creating working copy for https://github.com/christopherkarani/Wax.git
Working copy of https://github.com/christopherkarani/Wax.git resolved at 0.1.20
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.3.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 602.0.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.98.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.4
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.0
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.3.5
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/christopherkarani/ContextCore.git
Working copy of https://github.com/christopherkarani/ContextCore.git resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.12.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/christopherkarani/MetalANNS.git
Working copy of https://github.com/christopherkarani/MetalANNS.git resolved at 0.1.3
Creating working copy for https://github.com/ibireme/yyjson.git
Working copy of https://github.com/ibireme/yyjson.git resolved at 0.12.0
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Creating working copy for https://github.com/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.4.1
Creating working copy for https://github.com/groue/GRDB.swift.git
Working copy of https://github.com/groue/GRDB.swift.git resolved at 7.10.0
Creating working copy for https://github.com/christopherkarani/Conduit
Working copy of https://github.com/christopherkarani/Conduit resolved at 0.3.14
Creating working copy for https://github.com/unum-cloud/USearch.git
Working copy of https://github.com/unum-cloud/USearch.git resolved at 2.25.1
Creating working copy for https://github.com/huggingface/swift-huggingface.git
Working copy of https://github.com/huggingface/swift-huggingface.git resolved at 0.9.0
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz (0.44s)
Building for debugging...
[0/451] Write sources
[7/451] Copying gpt2_tokenizer_config.json
[7/451] Copying t5_tokenizer_config.json
[9/451] Compiling _AtomicsShims.c
[10/451] Copying TopKReduction.metal
[11/451] Copying CosineDistance.metal
[12/451] Copying bert_tokenizer_vocab.txt
[13/451] Compiling _NumericsShims _NumericsShims.c
[14/451] Copying cl100k_base.tiktoken
[15/451] Copying all-MiniLM-L6-v2.mlmodelc
[16/451] Write sources
[18/451] Write swift-version-24593BA9C3E375BF.txt
[23/451] Copying SearchFloat16.metal
[23/451] Copying Sort.metal
[25/451] Write sources
[29/451] Copying Search.metal
[30/451] Copying PQDistance.metal
[30/451] Copying NNDescentFloat16.metal
[30/451] Copying NNDescent.metal
[30/452] Copying HammingDistance.metal
[30/452] Copying DistanceFloat16.metal
[30/453] Copying Distance.metal
[36/453] Write sources
error: emit-module command failed with exit code 1 (use -v to see invocation)
[39/517] Emitting module MetalANNSCore
/host/spi-builder-workspace/.build/checkouts/MetalANNS/Sources/MetalANNSCore/AccelerateBackend.swift:1:8: error: no such module 'Accelerate'
  1 | import Accelerate
    |        `- error: no such module 'Accelerate'
  2 | import Foundation
  3 |
In file included from /host/spi-builder-workspace/.build/checkouts/USearch/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/USearch/include/usearch/index_dense.hpp:8:
In file included from /host/spi-builder-workspace/.build/checkouts/USearch/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/.build/checkouts/USearch/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/USearch/include/usearch/index_dense.hpp:8:
/host/spi-builder-workspace/.build/checkouts/USearch/include/usearch/index.hpp:713:18: error: no member named 'this_thread' in namespace 'std'
  713 |             std::this_thread::yield();
      |             ~~~~~^
/host/spi-builder-workspace/.build/checkouts/USearch/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/.build/checkouts/USearch/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/.build/checkouts/USearch/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/.build/checkouts/USearch/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/.build/checkouts/USearch/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/.build/checkouts/USearch/include/usearch/index.hpp:1949:21: error: use of undeclared identifier 'MAP_FAILED'
 1949 |         if (file == MAP_FAILED) {
      |                     ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/USearch/include/usearch/index.hpp:1973:9: error: use of undeclared identifier 'munmap'
 1973 |         munmap(ptr_, length_);
      |         ^~~~~~
/host/spi-builder-workspace/.build/checkouts/USearch/include/usearch/index.hpp:2396:10: error: no type named 'mutex' in namespace 'std'
 2396 |     std::mutex global_mutex_{};
      |     ~~~~~^
/host/spi-builder-workspace/.build/checkouts/USearch/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/.build/checkouts/USearch/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/.build/checkouts/USearch/include/usearch/index.hpp:4613:10: error: no type named 'mutex' in namespace 'std'
 4613 |     std::mutex free_men_mutex{};
      |     ~~~~~^
/host/spi-builder-workspace/.build/checkouts/USearch/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/.build/checkouts/USearch/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/.build/checkouts/USearch/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/.build/checkouts/USearch/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/USearch/include/usearch/index_dense.hpp:12:
/host/spi-builder-workspace/.build/checkouts/USearch/include/usearch/index_plugins.hpp:1355:14: error: no type named 'thread' in namespace 'std'
 1355 |         std::thread native_;
      |         ~~~~~^
/host/spi-builder-workspace/.build/checkouts/USearch/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/.build/checkouts/USearch/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.
[39/522] Compiling USearchC lib.cpp
[40/522] Emitting module _NIOBase64
[40/522] Compiling yyjson.c
BUILD FAILURE 6.3 wasm