Build Information
Failed to build ThreadSafeDataStructures, reference v1.1.0 (9bfd25), with Swift 6.3 for Wasm on 18 Apr 2026 01:32:39 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pavankumar-n-46/SwiftSafeCollections.git
Reference: v1.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/pavankumar-n-46/SwiftSafeCollections
* tag v1.1.0 -> FETCH_HEAD
HEAD is now at 9bfd254 Docs: Add Sendable requirement documentation to README
Cloned https://github.com/pavankumar-n-46/SwiftSafeCollections.git
Revision (git rev-parse @):
9bfd25466bfb9a100c7111c082af305b524d7fa1
SUCCESS checkout https://github.com/pavankumar-n-46/SwiftSafeCollections.git at v1.1.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/pavankumar-n-46/SwiftSafeCollections.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/apple/swift-testing.git
[1/37263] Fetching swift-testing
Fetched https://github.com/apple/swift-testing.git from cache (1.85s)
Computing version for https://github.com/apple/swift-testing.git
Computed https://github.com/apple/swift-testing.git at 0.99.0 (2.35s)
Fetching https://github.com/swiftlang/swift-syntax.git
[1/74983] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (9.07s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (11.78s)
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
Creating working copy for https://github.com/apple/swift-testing.git
Working copy of https://github.com/apple/swift-testing.git resolved at 0.99.0
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/13] Compiling ThreadSafeDataStructures ThreadSafeSubscriptable.swift
[4/14] Compiling ThreadSafeDataStructures ThreadSafeCollection.swift
[5/14] Compiling ThreadSafeDataStructures ThreadSafeSequence.swift
[6/14] Compiling ThreadSafeDataStructures ThreadSafeDataStructures.swift
[7/14] Compiling ThreadSafeDataStructures LockingStrategy.swift
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:104:22: error: cannot find type 'DispatchQueue' in scope
102 | /// - Available on all Swift platforms
103 | public final class DispatchQueueLock: LockingStrategy, @unchecked Sendable {
104 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
105 |
106 | /// Creates a new DispatchQueue-based lock.
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:37:5: error: cannot find 'pthread_rwlock_init' in scope
35 |
36 | public init() {
37 | pthread_rwlock_init(&lock, nil)
| `- error: cannot find 'pthread_rwlock_init' in scope
38 | }
39 |
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:37:32: error: 'nil' requires a contextual type
35 |
36 | public init() {
37 | pthread_rwlock_init(&lock, nil)
| `- error: 'nil' requires a contextual type
38 | }
39 |
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:41:5: error: cannot find 'pthread_rwlock_destroy' in scope
39 |
40 | deinit {
41 | pthread_rwlock_destroy(&lock)
| `- error: cannot find 'pthread_rwlock_destroy' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:45:5: error: cannot find 'pthread_rwlock_rdlock' in scope
43 |
44 | public func read<T>(_ work: () throws -> T) rethrows -> T {
45 | pthread_rwlock_rdlock(&lock)
| `- error: cannot find 'pthread_rwlock_rdlock' in scope
46 | defer { pthread_rwlock_unlock(&lock) }
47 | return try work()
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:46:13: error: cannot find 'pthread_rwlock_unlock' in scope
44 | public func read<T>(_ work: () throws -> T) rethrows -> T {
45 | pthread_rwlock_rdlock(&lock)
46 | defer { pthread_rwlock_unlock(&lock) }
| `- error: cannot find 'pthread_rwlock_unlock' in scope
47 | return try work()
48 | }
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:51:5: error: cannot find 'pthread_rwlock_wrlock' in scope
49 |
50 | public func write<T>(_ work: () throws -> T) rethrows -> T {
51 | pthread_rwlock_wrlock(&lock)
| `- error: cannot find 'pthread_rwlock_wrlock' in scope
52 | defer { pthread_rwlock_unlock(&lock) }
53 | return try work()
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:52:13: error: cannot find 'pthread_rwlock_unlock' in scope
50 | public func write<T>(_ work: () throws -> T) rethrows -> T {
51 | pthread_rwlock_wrlock(&lock)
52 | defer { pthread_rwlock_unlock(&lock) }
| `- error: cannot find 'pthread_rwlock_unlock' in scope
53 | return try work()
54 | }
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:72:5: error: cannot find 'pthread_mutex_init' in scope
70 |
71 | public init() {
72 | pthread_mutex_init(&mutex, nil)
| `- error: cannot find 'pthread_mutex_init' in scope
73 | }
74 |
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:72:32: error: 'nil' requires a contextual type
70 |
71 | public init() {
72 | pthread_mutex_init(&mutex, nil)
| `- error: 'nil' requires a contextual type
73 | }
74 |
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:76:5: error: cannot find 'pthread_mutex_destroy' in scope
74 |
75 | deinit {
76 | pthread_mutex_destroy(&mutex)
| `- error: cannot find 'pthread_mutex_destroy' in scope
77 | }
78 |
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:80:5: error: cannot find 'pthread_mutex_lock' in scope
78 |
79 | public func read<T>(_ work: () throws -> T) rethrows -> T {
80 | pthread_mutex_lock(&mutex)
| `- error: cannot find 'pthread_mutex_lock' in scope
81 | defer { pthread_mutex_unlock(&mutex) }
82 | return try work()
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:81:13: error: cannot find 'pthread_mutex_unlock' in scope
79 | public func read<T>(_ work: () throws -> T) rethrows -> T {
80 | pthread_mutex_lock(&mutex)
81 | defer { pthread_mutex_unlock(&mutex) }
| `- error: cannot find 'pthread_mutex_unlock' in scope
82 | return try work()
83 | }
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:86:5: error: cannot find 'pthread_mutex_lock' in scope
84 |
85 | public func write<T>(_ work: () throws -> T) rethrows -> T {
86 | pthread_mutex_lock(&mutex)
| `- error: cannot find 'pthread_mutex_lock' in scope
87 | defer { pthread_mutex_unlock(&mutex) }
88 | return try work()
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:87:13: error: cannot find 'pthread_mutex_unlock' in scope
85 | public func write<T>(_ work: () throws -> T) rethrows -> T {
86 | pthread_mutex_lock(&mutex)
87 | defer { pthread_mutex_unlock(&mutex) }
| `- error: cannot find 'pthread_mutex_unlock' in scope
88 | return try work()
89 | }
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:110:18: error: cannot find 'DispatchQueue' in scope
108 | /// - Parameter label: A string label to attach to the queue for debugging.
109 | public init(label: String = "com.threadsafe.dispatchqueue") {
110 | self.queue = DispatchQueue(label: label, attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
111 | }
112 |
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:110:59: error: cannot infer contextual base in reference to member 'concurrent'
108 | /// - Parameter label: A string label to attach to the queue for debugging.
109 | public init(label: String = "com.threadsafe.dispatchqueue") {
110 | self.queue = DispatchQueue(label: label, attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
111 | }
112 |
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:120:28: error: cannot infer contextual base in reference to member 'barrier'
118 |
119 | public func write<T>(_ work: () throws -> T) rethrows -> T {
120 | try queue.sync(flags: .barrier) {
| `- error: cannot infer contextual base in reference to member 'barrier'
121 | try work()
122 | }
[8/14] Compiling ThreadSafeDataStructures ThreadSafeDictionary.swift
[9/14] Compiling ThreadSafeDataStructures ThreadSafeQueue.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/14] Compiling ThreadSafeDataStructures ThreadSafeArray.swift
[11/14] Compiling ThreadSafeDataStructures ThreadSafeDeque.swift
[12/14] Emitting module ThreadSafeDataStructures
/host/spi-builder-workspace/Sources/ThreadSafeDataStructures/Protocols/LockingStrategy.swift:104:22: error: cannot find type 'DispatchQueue' in scope
102 | /// - Available on all Swift platforms
103 | public final class DispatchQueueLock: LockingStrategy, @unchecked Sendable {
104 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
105 |
106 | /// Creates a new DispatchQueue-based lock.
[13/14] Compiling ThreadSafeDataStructures ThreadSafeSet.swift
[14/14] Compiling ThreadSafeDataStructures ThreadSafeStack.swift
BUILD FAILURE 6.3 wasm