The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Pooling, reference master (a242c7), with Swift 6.1 for Wasm on 27 May 2025 09:03:30 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" 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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gitvalue/Pooling.git
Reference: master
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/gitvalue/Pooling
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at a242c7e Released version 1.0.1
Cloned https://github.com/gitvalue/Pooling.git
Revision (git rev-parse @):
a242c7e708f7e82c4f299e8f63218773f60c53d7
SUCCESS checkout https://github.com/gitvalue/Pooling.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/gitvalue/Pooling.git
https://github.com/gitvalue/Pooling.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Pooling",
  "name" : "Pooling",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Pooling",
      "targets" : [
        "Pooling"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PoolingTests",
      "module_type" : "SwiftTarget",
      "name" : "PoolingTests",
      "path" : "Tests/PoolingTests",
      "sources" : [
        "PoolingTests.swift"
      ],
      "target_dependencies" : [
        "Pooling"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Pooling",
      "module_type" : "SwiftTarget",
      "name" : "Pooling",
      "path" : "Sources/Pooling",
      "product_memberships" : [
        "Pooling"
      ],
      "sources" : [
        "PThreadMutex.swift",
        "Pool.swift",
        "Pooling.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" 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 -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 finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Compiling Pooling Pool.swift
[4/6] Compiling Pooling Pooling.swift
[5/6] Emitting module Pooling
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:123:39: error: cannot find type 'os_unfair_lock' in scope
121 | @available(OSX 10.12, iOS 10, *)
122 | public final class UnfairLock: RawMutex {
123 |     public typealias MutexPrimitive = os_unfair_lock
    |                                       `- error: cannot find type 'os_unfair_lock' in scope
124 |
125 |     public init() {
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:129:30: error: cannot find 'os_unfair_lock' in scope
127 |
128 |     /// Exposed as an "unsafe" public property so non-scoped patterns can be implemented, if required.
129 |     public var unsafeMutex = os_unfair_lock()
    |                              `- error: cannot find 'os_unfair_lock' in scope
130 |
131 |     public func unbalancedLock() {
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:122:20: error: type 'UnfairLock' does not conform to protocol 'RawMutex'
 30 | /// A more specific kind of mutex that assume an underlying primitive and unbalanced lock/trylock/unlock operators
 31 | public protocol RawMutex: ScopedMutex {
 32 |     associatedtype MutexPrimitive
    |                    `- note: protocol requires nested type 'MutexPrimitive'
 33 |
 34 |     /// The raw primitive is exposed as an "unsafe" public property for faster access in some cases
    :
120 | /// NOTE: due to the behavior of the lock (non-FIFO) a single thread might drop and reacquire the lock without giving waiting threads a chance to resume (leading to potential starvation of waiters). For this reason, it is only recommended in situations where contention is expected to be rare or the interaction between contenders is otherwise known.
121 | @available(OSX 10.12, iOS 10, *)
122 | public final class UnfairLock: RawMutex {
    |                    |- error: type 'UnfairLock' does not conform to protocol 'RawMutex'
    |                    `- note: add stubs for conformance
123 |     public typealias MutexPrimitive = os_unfair_lock
124 |
[6/6] Compiling Pooling PThreadMutex.swift
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:123:39: error: cannot find type 'os_unfair_lock' in scope
121 | @available(OSX 10.12, iOS 10, *)
122 | public final class UnfairLock: RawMutex {
123 |     public typealias MutexPrimitive = os_unfair_lock
    |                                       `- error: cannot find type 'os_unfair_lock' in scope
124 |
125 |     public init() {
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:129:30: error: cannot find 'os_unfair_lock' in scope
127 |
128 |     /// Exposed as an "unsafe" public property so non-scoped patterns can be implemented, if required.
129 |     public var unsafeMutex = os_unfair_lock()
    |                              `- error: cannot find 'os_unfair_lock' in scope
130 |
131 |     public func unbalancedLock() {
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:122:20: error: type 'UnfairLock' does not conform to protocol 'RawMutex'
 30 | /// A more specific kind of mutex that assume an underlying primitive and unbalanced lock/trylock/unlock operators
 31 | public protocol RawMutex: ScopedMutex {
 32 |     associatedtype MutexPrimitive
    |                    `- note: protocol requires nested type 'MutexPrimitive'
 33 |
 34 |     /// The raw primitive is exposed as an "unsafe" public property for faster access in some cases
    :
120 | /// NOTE: due to the behavior of the lock (non-FIFO) a single thread might drop and reacquire the lock without giving waiting threads a chance to resume (leading to potential starvation of waiters). For this reason, it is only recommended in situations where contention is expected to be rare or the interaction between contenders is otherwise known.
121 | @available(OSX 10.12, iOS 10, *)
122 | public final class UnfairLock: RawMutex {
    |                    |- error: type 'UnfairLock' does not conform to protocol 'RawMutex'
    |                    `- note: add stubs for conformance
123 |     public typealias MutexPrimitive = os_unfair_lock
124 |
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:88:15: error: cannot find 'pthread_mutexattr_init' in scope
 86 |     public init(type: PThreadMutexType = .normal) {
 87 |         var attr = pthread_mutexattr_t()
 88 |         guard pthread_mutexattr_init(&attr) == 0 else {
    |               `- error: cannot find 'pthread_mutexattr_init' in scope
 89 |             preconditionFailure()
 90 |         }
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:93:13: error: cannot find 'pthread_mutexattr_settype' in scope
 91 |         switch type {
 92 |         case .normal:
 93 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL)
    |             `- error: cannot find 'pthread_mutexattr_settype' in scope
 94 |         case .recursive:
 95 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:93:46: error: cannot find 'PTHREAD_MUTEX_NORMAL' in scope
 91 |         switch type {
 92 |         case .normal:
 93 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL)
    |                                              `- error: cannot find 'PTHREAD_MUTEX_NORMAL' in scope
 94 |         case .recursive:
 95 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:95:13: error: cannot find 'pthread_mutexattr_settype' in scope
 93 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL)
 94 |         case .recursive:
 95 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
    |             `- error: cannot find 'pthread_mutexattr_settype' in scope
 96 |         }
 97 |         guard pthread_mutex_init(&unsafeMutex, &attr) == 0 else {
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:95:46: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
 93 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL)
 94 |         case .recursive:
 95 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
    |                                              `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
 96 |         }
 97 |         guard pthread_mutex_init(&unsafeMutex, &attr) == 0 else {
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:97:15: error: cannot find 'pthread_mutex_init' in scope
 95 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
 96 |         }
 97 |         guard pthread_mutex_init(&unsafeMutex, &attr) == 0 else {
    |               `- error: cannot find 'pthread_mutex_init' in scope
 98 |             preconditionFailure()
 99 |         }
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:103:9: error: cannot find 'pthread_mutex_destroy' in scope
101 |
102 |     deinit {
103 |         pthread_mutex_destroy(&unsafeMutex)
    |         `- error: cannot find 'pthread_mutex_destroy' in scope
104 |     }
105 |
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:107:9: error: cannot find 'pthread_mutex_lock' in scope
105 |
106 |     public func unbalancedLock() {
107 |         pthread_mutex_lock(&unsafeMutex)
    |         `- error: cannot find 'pthread_mutex_lock' in scope
108 |     }
109 |
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:111:16: error: cannot find 'pthread_mutex_trylock' in scope
109 |
110 |     public func unbalancedTryLock() -> Bool {
111 |         return pthread_mutex_trylock(&unsafeMutex) == 0
    |                `- error: cannot find 'pthread_mutex_trylock' in scope
112 |     }
113 |
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:115:9: error: cannot find 'pthread_mutex_unlock' in scope
113 |
114 |     public func unbalancedUnlock() {
115 |         pthread_mutex_unlock(&unsafeMutex)
    |         `- error: cannot find 'pthread_mutex_unlock' in scope
116 |     }
117 | }
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:132:9: error: cannot find 'os_unfair_lock_lock' in scope
130 |
131 |     public func unbalancedLock() {
132 |         os_unfair_lock_lock(&unsafeMutex)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
133 |     }
134 |
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:136:16: error: cannot find 'os_unfair_lock_trylock' in scope
134 |
135 |     public func unbalancedTryLock() -> Bool {
136 |         return os_unfair_lock_trylock(&unsafeMutex)
    |                `- error: cannot find 'os_unfair_lock_trylock' in scope
137 |     }
138 |
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:140:9: error: cannot find 'os_unfair_lock_unlock' in scope
138 |
139 |     public func unbalancedUnlock() {
140 |         os_unfair_lock_unlock(&unsafeMutex)
    |         `- error: cannot find 'os_unfair_lock_unlock' in scope
141 |     }
142 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" 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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
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/5] Compiling Pooling Pooling.swift
[3/5] Compiling Pooling Pool.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module Pooling
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:123:39: error: cannot find type 'os_unfair_lock' in scope
121 | @available(OSX 10.12, iOS 10, *)
122 | public final class UnfairLock: RawMutex {
123 |     public typealias MutexPrimitive = os_unfair_lock
    |                                       `- error: cannot find type 'os_unfair_lock' in scope
124 |
125 |     public init() {
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:129:30: error: cannot find 'os_unfair_lock' in scope
127 |
128 |     /// Exposed as an "unsafe" public property so non-scoped patterns can be implemented, if required.
129 |     public var unsafeMutex = os_unfair_lock()
    |                              `- error: cannot find 'os_unfair_lock' in scope
130 |
131 |     public func unbalancedLock() {
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:122:20: error: type 'UnfairLock' does not conform to protocol 'RawMutex'
 30 | /// A more specific kind of mutex that assume an underlying primitive and unbalanced lock/trylock/unlock operators
 31 | public protocol RawMutex: ScopedMutex {
 32 |     associatedtype MutexPrimitive
    |                    `- note: protocol requires nested type 'MutexPrimitive'
 33 |
 34 |     /// The raw primitive is exposed as an "unsafe" public property for faster access in some cases
    :
120 | /// NOTE: due to the behavior of the lock (non-FIFO) a single thread might drop and reacquire the lock without giving waiting threads a chance to resume (leading to potential starvation of waiters). For this reason, it is only recommended in situations where contention is expected to be rare or the interaction between contenders is otherwise known.
121 | @available(OSX 10.12, iOS 10, *)
122 | public final class UnfairLock: RawMutex {
    |                    |- error: type 'UnfairLock' does not conform to protocol 'RawMutex'
    |                    `- note: add stubs for conformance
123 |     public typealias MutexPrimitive = os_unfair_lock
124 |
[5/5] Compiling Pooling PThreadMutex.swift
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:123:39: error: cannot find type 'os_unfair_lock' in scope
121 | @available(OSX 10.12, iOS 10, *)
122 | public final class UnfairLock: RawMutex {
123 |     public typealias MutexPrimitive = os_unfair_lock
    |                                       `- error: cannot find type 'os_unfair_lock' in scope
124 |
125 |     public init() {
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:129:30: error: cannot find 'os_unfair_lock' in scope
127 |
128 |     /// Exposed as an "unsafe" public property so non-scoped patterns can be implemented, if required.
129 |     public var unsafeMutex = os_unfair_lock()
    |                              `- error: cannot find 'os_unfair_lock' in scope
130 |
131 |     public func unbalancedLock() {
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:122:20: error: type 'UnfairLock' does not conform to protocol 'RawMutex'
 30 | /// A more specific kind of mutex that assume an underlying primitive and unbalanced lock/trylock/unlock operators
 31 | public protocol RawMutex: ScopedMutex {
 32 |     associatedtype MutexPrimitive
    |                    `- note: protocol requires nested type 'MutexPrimitive'
 33 |
 34 |     /// The raw primitive is exposed as an "unsafe" public property for faster access in some cases
    :
120 | /// NOTE: due to the behavior of the lock (non-FIFO) a single thread might drop and reacquire the lock without giving waiting threads a chance to resume (leading to potential starvation of waiters). For this reason, it is only recommended in situations where contention is expected to be rare or the interaction between contenders is otherwise known.
121 | @available(OSX 10.12, iOS 10, *)
122 | public final class UnfairLock: RawMutex {
    |                    |- error: type 'UnfairLock' does not conform to protocol 'RawMutex'
    |                    `- note: add stubs for conformance
123 |     public typealias MutexPrimitive = os_unfair_lock
124 |
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:88:15: error: cannot find 'pthread_mutexattr_init' in scope
 86 |     public init(type: PThreadMutexType = .normal) {
 87 |         var attr = pthread_mutexattr_t()
 88 |         guard pthread_mutexattr_init(&attr) == 0 else {
    |               `- error: cannot find 'pthread_mutexattr_init' in scope
 89 |             preconditionFailure()
 90 |         }
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:93:13: error: cannot find 'pthread_mutexattr_settype' in scope
 91 |         switch type {
 92 |         case .normal:
 93 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL)
    |             `- error: cannot find 'pthread_mutexattr_settype' in scope
 94 |         case .recursive:
 95 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:93:46: error: cannot find 'PTHREAD_MUTEX_NORMAL' in scope
 91 |         switch type {
 92 |         case .normal:
 93 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL)
    |                                              `- error: cannot find 'PTHREAD_MUTEX_NORMAL' in scope
 94 |         case .recursive:
 95 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:95:13: error: cannot find 'pthread_mutexattr_settype' in scope
 93 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL)
 94 |         case .recursive:
 95 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
    |             `- error: cannot find 'pthread_mutexattr_settype' in scope
 96 |         }
 97 |         guard pthread_mutex_init(&unsafeMutex, &attr) == 0 else {
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:95:46: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
 93 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL)
 94 |         case .recursive:
 95 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
    |                                              `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
 96 |         }
 97 |         guard pthread_mutex_init(&unsafeMutex, &attr) == 0 else {
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:97:15: error: cannot find 'pthread_mutex_init' in scope
 95 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
 96 |         }
 97 |         guard pthread_mutex_init(&unsafeMutex, &attr) == 0 else {
    |               `- error: cannot find 'pthread_mutex_init' in scope
 98 |             preconditionFailure()
 99 |         }
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:103:9: error: cannot find 'pthread_mutex_destroy' in scope
101 |
102 |     deinit {
103 |         pthread_mutex_destroy(&unsafeMutex)
    |         `- error: cannot find 'pthread_mutex_destroy' in scope
104 |     }
105 |
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:107:9: error: cannot find 'pthread_mutex_lock' in scope
105 |
106 |     public func unbalancedLock() {
107 |         pthread_mutex_lock(&unsafeMutex)
    |         `- error: cannot find 'pthread_mutex_lock' in scope
108 |     }
109 |
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:111:16: error: cannot find 'pthread_mutex_trylock' in scope
109 |
110 |     public func unbalancedTryLock() -> Bool {
111 |         return pthread_mutex_trylock(&unsafeMutex) == 0
    |                `- error: cannot find 'pthread_mutex_trylock' in scope
112 |     }
113 |
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:115:9: error: cannot find 'pthread_mutex_unlock' in scope
113 |
114 |     public func unbalancedUnlock() {
115 |         pthread_mutex_unlock(&unsafeMutex)
    |         `- error: cannot find 'pthread_mutex_unlock' in scope
116 |     }
117 | }
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:132:9: error: cannot find 'os_unfair_lock_lock' in scope
130 |
131 |     public func unbalancedLock() {
132 |         os_unfair_lock_lock(&unsafeMutex)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
133 |     }
134 |
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:136:16: error: cannot find 'os_unfair_lock_trylock' in scope
134 |
135 |     public func unbalancedTryLock() -> Bool {
136 |         return os_unfair_lock_trylock(&unsafeMutex)
    |                `- error: cannot find 'os_unfair_lock_trylock' in scope
137 |     }
138 |
/host/spi-builder-workspace/Sources/Pooling/PThreadMutex.swift:140:9: error: cannot find 'os_unfair_lock_unlock' in scope
138 |
139 |     public func unbalancedUnlock() {
140 |         os_unfair_lock_unlock(&unsafeMutex)
    |         `- error: cannot find 'os_unfair_lock_unlock' in scope
141 |     }
142 | }
BUILD FAILURE 6.1 wasm