The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-hnsw, reference main (4b50f7), with Swift 6.2 for Wasm on 19 Jan 2026 21:18:54 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jkrukowski/swift-hnsw.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/jkrukowski/swift-hnsw
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4b50f7d format
Cloned https://github.com/jkrukowski/swift-hnsw.git
Revision (git rev-parse @):
4b50f7db11bf33e42d8b6be69f7326a6d5a62091
SUCCESS checkout https://github.com/jkrukowski/swift-hnsw.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/jkrukowski/swift-hnsw.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:e45aebddbd3fb4404abe9276e0d450e6fc2ef4836b534e79623bcca11b80d266
Status: Image is up to date for registry.gitlab.com/finestructure/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/swift-sdk.json
Fetching https://github.com/apple/swift-numerics.git
[1/6390] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.43s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.83s)
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Building for debugging...
[0/8] Write sources
[2/8] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling CHNSW hnsw.c
[5/18] Compiling HNSW SearchResult.swift
[6/19] Compiling HNSW Quantization.swift
[7/19] Compiling HNSW NodeIterator.swift
[8/19] Compiling HNSW NodeSequence.swift
[9/19] Compiling HNSW Constants.swift
[10/19] Compiling HNSW Index.swift
[11/19] Compiling HNSW IndexError.swift
[12/19] Compiling HNSW InsertContext.swift
[13/19] Emitting module HNSW
[14/19] Compiling HNSW Node.swift
[15/19] Compiling HNSW SerializedNode.swift
[16/20] Wrapping AST for HNSW for debugging
[18/22] Emitting module HNSWCLI
[19/22] Compiling HNSWCLI CLI.swift
[20/23] Wrapping AST for HNSWCLI for debugging
[21/23] Write Objects.LinkFileList
error: link command failed with exit code 1 (use -v to see invocation)
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_init
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_mutex_init
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_mutex_destroy
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_destroy
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_destroy
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_mutex_destroy
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_wrlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_unlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_mutex_trylock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_rdlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_mutex_unlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_mutex_lock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_rdlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_mutex_unlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_unlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_mutex_unlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_wrlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_unlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_unlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_wrlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_unlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_unlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_wrlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_unlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_unlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_wrlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_unlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_rdlock
wasm-ld: error: /host/spi-builder-workspace/.build/wasm32-unknown-wasip1/debug/CHNSW.build/hnsw.c.o: undefined symbol: pthread_rwlock_unlock
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[22/23] Linking HNSWCLI.wasm
BUILD FAILURE 6.2 wasm