The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ThreadSafeDataStructures, reference main (9bfd25), with Swift 6.1 for Wasm on 3 Jan 2026 15:56:46 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/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pavankumar-n-46/SwiftSafeCollections.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/pavankumar-n-46/SwiftSafeCollections
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/pavankumar-n-46/SwiftSafeCollections.git
https://github.com/pavankumar-n-46/SwiftSafeCollections.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-testing",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.10.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-testing.git"
    }
  ],
  "manifest_display_name" : "ThreadSafeDataStructures",
  "name" : "ThreadSafeDataStructures",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "ThreadSafeDataStructures",
      "targets" : [
        "ThreadSafeDataStructures"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ThreadSafeDataStructuresTests",
      "module_type" : "SwiftTarget",
      "name" : "ThreadSafeDataStructuresTests",
      "path" : "Tests/ThreadSafeDataStructuresTests",
      "product_dependencies" : [
        "Testing"
      ],
      "sources" : [
        "ThreadSafeArrayTests.swift",
        "ThreadSafeDequeTests.swift",
        "ThreadSafeDictionaryTests.swift",
        "ThreadSafeQueueTests.swift",
        "ThreadSafeSetTests.swift",
        "ThreadSafeStackTests.swift"
      ],
      "target_dependencies" : [
        "ThreadSafeDataStructures"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ThreadSafeDataStructures",
      "module_type" : "SwiftTarget",
      "name" : "ThreadSafeDataStructures",
      "path" : "Sources/ThreadSafeDataStructures",
      "product_memberships" : [
        "ThreadSafeDataStructures"
      ],
      "sources" : [
        "DataStructures/ThreadSafeArray.swift",
        "DataStructures/ThreadSafeDeque.swift",
        "DataStructures/ThreadSafeDictionary.swift",
        "DataStructures/ThreadSafeQueue.swift",
        "DataStructures/ThreadSafeSet.swift",
        "DataStructures/ThreadSafeStack.swift",
        "Protocols/LockingStrategy.swift",
        "Protocols/ThreadSafeCollection.swift",
        "Protocols/ThreadSafeSequence.swift",
        "Protocols/ThreadSafeSubscriptable.swift",
        "ThreadSafeDataStructures.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
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/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:dbcbf45695e2d1afcaee9a5a93239e71a6cc4a5872f338d6e993e9ceefe7df1b
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-testing.git
[1/30949] Fetching swift-testing
Fetched https://github.com/apple/swift-testing.git from cache (1.44s)
Computing version for https://github.com/apple/swift-testing.git
Computed https://github.com/apple/swift-testing.git at 0.99.0 (2.16s)
Fetching https://github.com/swiftlang/swift-syntax.git
[1/73272] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (7.12s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (9.49s)
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 ThreadSafeSet.swift
[4/13] Compiling ThreadSafeDataStructures ThreadSafeStack.swift
[5/13] 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 |     }
[6/14] Compiling ThreadSafeDataStructures ThreadSafeSubscriptable.swift
[7/14] Compiling ThreadSafeDataStructures ThreadSafeCollection.swift
[8/14] Compiling ThreadSafeDataStructures ThreadSafeSequence.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/14] Compiling ThreadSafeDataStructures ThreadSafeDictionary.swift
[10/14] Compiling ThreadSafeDataStructures ThreadSafeQueue.swift
[11/14] Compiling ThreadSafeDataStructures ThreadSafeArray.swift
[12/14] Compiling ThreadSafeDataStructures ThreadSafeDeque.swift
[13/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.
[14/14] Compiling ThreadSafeDataStructures ThreadSafeDataStructures.swift
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/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:dbcbf45695e2d1afcaee9a5a93239e71a6cc4a5872f338d6e993e9ceefe7df1b
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/12] Compiling ThreadSafeDataStructures ThreadSafeSubscriptable.swift
[3/12] Compiling ThreadSafeDataStructures ThreadSafeCollection.swift
[4/12] Compiling ThreadSafeDataStructures ThreadSafeSequence.swift
[5/12] 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 |     }
[6/13] Compiling ThreadSafeDataStructures ThreadSafeDataStructures.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/13] Compiling ThreadSafeDataStructures ThreadSafeArray.swift
[8/13] Compiling ThreadSafeDataStructures ThreadSafeDeque.swift
[9/13] Compiling ThreadSafeDataStructures ThreadSafeSet.swift
[10/13] Compiling ThreadSafeDataStructures ThreadSafeStack.swift
[11/13] Compiling ThreadSafeDataStructures ThreadSafeDictionary.swift
[12/13] Compiling ThreadSafeDataStructures ThreadSafeQueue.swift
[13/13] 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.
BUILD FAILURE 6.1 wasm