The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Membrane, reference main (538bc2), with Swift 6.2 for Wasm on 27 Mar 2026 03:18:42 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
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.2
Building package at path:  $PWD
https://github.com/christopherkarani/Membrane.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:de1420b02d93a9deec3e168cca69275e06e27da7632503e71651af6daad007b1
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/embedded-swift-sdk.json
Fetching https://github.com/christopherkarani/Wax.git
Fetching https://github.com/christopherkarani/Hive
[1/34784] Fetching wax
[2/36663] Fetching wax, hive
Fetched https://github.com/christopherkarani/Hive from cache (1.72s)
[696/34784] Fetching wax
Fetching https://github.com/christopherkarani/Conduit
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/christopherkarani/ContextCore.git
[34785/35469] Fetching wax, contextcore
[35231/38722] Fetching wax, contextcore, conduit
[35599/61692] Fetching wax, contextcore, conduit, swift-collections
Fetched https://github.com/christopherkarani/Wax.git from cache (16.33s)
[2916/26908] Fetching contextcore, conduit, swift-collections
Fetched https://github.com/christopherkarani/ContextCore.git from cache (3.15s)
Fetched https://github.com/christopherkarani/Conduit from cache (3.22s)
Fetched https://github.com/apple/swift-collections.git from cache (3.22s)
Computing version for https://github.com/christopherkarani/Wax.git
Computed https://github.com/christopherkarani/Wax.git at 0.1.19 (19.57s)
Fetching https://github.com/unum-cloud/USearch.git
Fetching https://github.com/groue/GRDB.swift.git
Fetching https://github.com/christopherkarani/MetalANNS.git
[1/1645] Fetching metalanns
[117/18663] Fetching metalanns, usearch
Fetched https://github.com/christopherkarani/MetalANNS.git from cache (0.73s)
[5957/17018] Fetching usearch
[11914/130651] Fetching usearch, grdb.swift
Fetching https://github.com/apple/swift-crypto.git
Fetched https://github.com/unum-cloud/USearch.git from cache (29.45s)
Fetched https://github.com/groue/GRDB.swift.git from cache (29.97s)
[1/17276] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (4.94s)
Computing version for https://github.com/christopherkarani/Conduit
Computed https://github.com/christopherkarani/Conduit at 0.3.10 (35.43s)
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/huggingface/swift-transformers
[1/6232] Fetching swift-transformers
[438/12492] Fetching swift-transformers, swift-log
Fetching https://github.com/swiftlang/swift-syntax.git
Fetched https://github.com/apple/swift-log.git from cache (2.58s)
Fetched https://github.com/huggingface/swift-transformers from cache (2.61s)
[1/74847] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (10.55s)
Computing version for https://github.com/christopherkarani/ContextCore.git
Computed https://github.com/christopherkarani/ContextCore.git at 1.0.0 (12.49s)
Computing version for https://github.com/christopherkarani/Hive
Computed https://github.com/christopherkarani/Hive at 0.1.9 (1.01s)
Computing version for https://github.com/christopherkarani/MetalANNS.git
Computed https://github.com/christopherkarani/MetalANNS.git at 0.1.3 (0.72s)
Computing version for https://github.com/unum-cloud/USearch.git
Computed https://github.com/unum-cloud/USearch.git at 2.24.0 (0.81s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (4.11s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.10.1 (0.79s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.3.0 (0.75s)
Fetching https://github.com/ibireme/yyjson.git
Fetching https://github.com/huggingface/swift-huggingface.git
[1/2329] Fetching swift-huggingface
[2330/6736] Fetching swift-huggingface, yyjson
Fetched https://github.com/huggingface/swift-huggingface.git from cache (0.61s)
[133/4407] Fetching yyjson
Fetching https://github.com/huggingface/swift-jinja.git
Fetched https://github.com/ibireme/yyjson.git from cache (1.74s)
[1/1026] Fetching swift-jinja
Fetched https://github.com/huggingface/swift-jinja.git from cache (0.53s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (5.58s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 0.9.0 (0.73s)
Fetching https://github.com/mattt/EventSource.git
[1/271] Fetching eventsource
Fetched https://github.com/mattt/EventSource.git from cache (0.36s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.4.1 (1.45s)
Fetching https://github.com/apple/swift-nio.git
[1/82947] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (10.32s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (11.47s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.3.3 (0.72s)
Computing version for https://github.com/groue/GRDB.swift.git
Computed https://github.com/groue/GRDB.swift.git at 7.10.0 (1.06s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (1.84s)
Fetching https://github.com/apple/swift-asn1.git
[18/1769] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.53s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.6.0 (1.46s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.97.1 (1.48s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
[1/1820] Fetching swift-atomics
[1330/7421] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.84s)
Fetched https://github.com/apple/swift-system.git from cache (0.84s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.58s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.90s)
Creating working copy for https://github.com/christopherkarani/Conduit
Working copy of https://github.com/christopherkarani/Conduit resolved at 0.3.10
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/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/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/unum-cloud/USearch.git
Working copy of https://github.com/unum-cloud/USearch.git resolved at 2.24.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.3
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.97.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.6.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.10.1
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/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/christopherkarani/MetalANNS.git
Working copy of https://github.com/christopherkarani/MetalANNS.git resolved at 0.1.3
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/christopherkarani/Hive
Working copy of https://github.com/christopherkarani/Hive resolved at 0.1.9
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/ibireme/yyjson.git
Working copy of https://github.com/ibireme/yyjson.git resolved at 0.12.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/huggingface/swift-huggingface.git
Working copy of https://github.com/huggingface/swift-huggingface.git resolved at 0.9.0
Creating working copy for https://github.com/christopherkarani/Wax.git
Working copy of https://github.com/christopherkarani/Wax.git resolved at 0.1.19
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 600.0.1
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/600.0.1/swift-6.2.4-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/600.0.1/swift-6.2.4-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz (0.52s)
Building for debugging...
[0/447] Write sources
[6/447] Copying t5_tokenizer_config.json
[6/447] Copying gpt2_tokenizer_config.json
[6/447] Write sources
[11/447] Copying TopKReduction.metal
[11/447] Copying CosineDistance.metal
[11/447] Copying bert_tokenizer_vocab.txt
[11/447] Write sources
[11/447] Copying cl100k_base.tiktoken
[11/447] Write sources
[23/447] Copying Sort.metal
[23/447] Copying SearchFloat16.metal
[23/447] Copying Search.metal
[23/447] Copying PQDistance.metal
[23/447] Copying NNDescentFloat16.metal
[23/447] Copying NNDescent.metal
[23/447] Copying HammingDistance.metal
[23/447] Copying DistanceFloat16.metal
[23/447] Copying Distance.metal
[23/447] Write sources
[23/447] Copying PrivacyInfo.xcprivacy
[23/447] Copying Info.plist
[23/447] Write sources
[48/447] Copying placeholder.txt
[49/447] Copying Relevance.metal
[50/447] Write sources
[51/447] Copying Recency.metal
[52/447] Copying Compression.metal
[53/447] Copying Consolidation.metal
[54/447] Copying Attention.metal
[55/447] Write sources
[57/447] Copying README.md
[59/447] Write sources
[62/447] Compiling _AtomicsShims.c
[63/447] Compiling CNIOWindows shim.c
[64/447] Compiling CNIOWindows WSAStartup.c
[65/447] Compiling CNIOWASI CNIOWASI.c
[66/447] Copying all-MiniLM-L6-v2.mlmodelc
[67/447] Compiling CNIOLinux shim.c
[67/447] Compiling CNIOOpenBSD shim.c
[69/447] Compiling CNIOLinux liburing_shims.c
[70/447] Compiling CNIODarwin shim.c
[71/447] Write swift-version-24593BA9C3E375BF.txt
[72/447] Compiling fiat_p256_adx_sqr.S
[73/447] Compiling fiat_p256_adx_mul.S
[74/447] Compiling fiat_curve25519_adx_square.S
error: emit-module command failed with exit code 1 (use -v to see invocation)
[76/452] Emitting module _NIODataStructures
<unknown>:0: error: module compiled with Swift 6.2 cannot be imported by the Swift 6.2.4 compiler: /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift/embedded/Swift.swiftmodule/wasm32-unknown-wasip1.swiftmodule
[77/453] Compiling _NIODataStructures Heap.swift
<unknown>:0: error: module compiled with Swift 6.2 cannot be imported by the Swift 6.2.4 compiler: /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift/embedded/Swift.swiftmodule/wasm32-unknown-wasip1.swiftmodule
[77/453] Compiling CCryptoBoringSSLShims shims.c
[77/453] Compiling yyjson.c
[77/453] Compiling c-nioatomics.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[78/453] Emitting module _NIOBase64
<unknown>:0: error: module compiled with Swift 6.2 cannot be imported by the Swift 6.2.4 compiler: /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift/embedded/Swift.swiftmodule/wasm32-unknown-wasip1.swiftmodule
[78/453] Compiling c-atomics.c
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.2-RELEASE_wasm.artifactbundle/swift-6.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, \
      |  ^
[78/453] Compiling USearchC lib.cpp
BUILD FAILURE 6.2 wasm