Build Information
Failed to build DBThreadSafe, reference 3.1.0 (054827), with Swift 6.1 for Wasm on 25 Jun 2026 13:23:05 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4071e0796c748d991a0123890d2f0ecadc8fcc8c
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dodobrands/DBThreadSafe-ios.git
Reference: 3.1.0
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/dodobrands/DBThreadSafe-ios
* tag 3.1.0 -> FETCH_HEAD
HEAD is now at 0548278 feat: add thread-safe weak container (#29)
Cloned https://github.com/dodobrands/DBThreadSafe-ios.git
Revision (git rev-parse @):
0548278893bb62afab333d697aaf0c80931401c7
SUCCESS checkout https://github.com/dodobrands/DBThreadSafe-ios.git at 3.1.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/dodobrands/DBThreadSafe-ios.git
https://github.com/dodobrands/DBThreadSafe-ios.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-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.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:87277f180438764e0763769462b4e00642129a1e8364b1cdaa91f88fde66785b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling DBThreadSafe ThreadSafe.swift
[4/8] Compiling DBThreadSafe Lock.swift
/host/spi-builder-workspace/Sources/DBThreadSafe/Lock.swift:112:22: error: cannot find 'pthread_rwlock_init' in scope
110 |
111 | init() {
112 | precondition(pthread_rwlock_init(lock, nil) == 0, "Failed to initialize the lock")
| `- error: cannot find 'pthread_rwlock_init' in scope
113 | }
114 |
/host/spi-builder-workspace/Sources/DBThreadSafe/Lock.swift:112:48: error: 'nil' requires a contextual type
110 |
111 | init() {
112 | precondition(pthread_rwlock_init(lock, nil) == 0, "Failed to initialize the lock")
| `- error: 'nil' requires a contextual type
113 | }
114 |
/host/spi-builder-workspace/Sources/DBThreadSafe/Lock.swift:116:9: error: cannot find 'pthread_rwlock_rdlock' in scope
114 |
115 | func readLock() {
116 | pthread_rwlock_rdlock(lock)
| `- error: cannot find 'pthread_rwlock_rdlock' in scope
117 | }
118 |
/host/spi-builder-workspace/Sources/DBThreadSafe/Lock.swift:120:9: error: cannot find 'pthread_rwlock_wrlock' in scope
118 |
119 | func writeLock() {
120 | pthread_rwlock_wrlock(lock)
| `- error: cannot find 'pthread_rwlock_wrlock' in scope
121 | }
122 |
/host/spi-builder-workspace/Sources/DBThreadSafe/Lock.swift:124:9: error: cannot find 'pthread_rwlock_unlock' in scope
122 |
123 | func unlock() {
124 | pthread_rwlock_unlock(lock)
| `- error: cannot find 'pthread_rwlock_unlock' in scope
125 | }
126 |
/host/spi-builder-workspace/Sources/DBThreadSafe/Lock.swift:128:22: error: cannot find 'pthread_rwlock_destroy' in scope
126 |
127 | deinit {
128 | precondition(pthread_rwlock_destroy(lock) == 0, "Failed to destroy the lock")
| `- error: cannot find 'pthread_rwlock_destroy' in scope
129 |
130 | lock.deallocate()
[5/8] Emitting module DBThreadSafe
[6/8] Compiling DBThreadSafe DBThreadSafeLock.swift
[7/8] Compiling DBThreadSafe DBThreadSafeWeakContainer.swift
[8/8] Compiling DBThreadSafe DBThreadSafeContainer.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:87277f180438764e0763769462b4e00642129a1e8364b1cdaa91f88fde66785b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Compiling DBThreadSafe DBThreadSafeWeakContainer.swift
[3/7] Emitting module DBThreadSafe
[4/7] Compiling DBThreadSafe ThreadSafe.swift
[5/7] Compiling DBThreadSafe DBThreadSafeContainer.swift
[6/7] Compiling DBThreadSafe Lock.swift
/host/spi-builder-workspace/Sources/DBThreadSafe/Lock.swift:112:22: error: cannot find 'pthread_rwlock_init' in scope
110 |
111 | init() {
112 | precondition(pthread_rwlock_init(lock, nil) == 0, "Failed to initialize the lock")
| `- error: cannot find 'pthread_rwlock_init' in scope
113 | }
114 |
/host/spi-builder-workspace/Sources/DBThreadSafe/Lock.swift:112:48: error: 'nil' requires a contextual type
110 |
111 | init() {
112 | precondition(pthread_rwlock_init(lock, nil) == 0, "Failed to initialize the lock")
| `- error: 'nil' requires a contextual type
113 | }
114 |
/host/spi-builder-workspace/Sources/DBThreadSafe/Lock.swift:116:9: error: cannot find 'pthread_rwlock_rdlock' in scope
114 |
115 | func readLock() {
116 | pthread_rwlock_rdlock(lock)
| `- error: cannot find 'pthread_rwlock_rdlock' in scope
117 | }
118 |
/host/spi-builder-workspace/Sources/DBThreadSafe/Lock.swift:120:9: error: cannot find 'pthread_rwlock_wrlock' in scope
118 |
119 | func writeLock() {
120 | pthread_rwlock_wrlock(lock)
| `- error: cannot find 'pthread_rwlock_wrlock' in scope
121 | }
122 |
/host/spi-builder-workspace/Sources/DBThreadSafe/Lock.swift:124:9: error: cannot find 'pthread_rwlock_unlock' in scope
122 |
123 | func unlock() {
124 | pthread_rwlock_unlock(lock)
| `- error: cannot find 'pthread_rwlock_unlock' in scope
125 | }
126 |
/host/spi-builder-workspace/Sources/DBThreadSafe/Lock.swift:128:22: error: cannot find 'pthread_rwlock_destroy' in scope
126 |
127 | deinit {
128 | precondition(pthread_rwlock_destroy(lock) == 0, "Failed to destroy the lock")
| `- error: cannot find 'pthread_rwlock_destroy' in scope
129 |
130 | lock.deallocate()
[7/7] Compiling DBThreadSafe DBThreadSafeLock.swift
BUILD FAILURE 6.1 wasm