The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build RollView, reference 1.0.0 (884fcd), with Swift 6.0 for Linux on 31 Oct 2024 08:21:32 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gitvalue/RollView.git
Reference: 1.0.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/gitvalue/RollView
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 884fcd0 adjusted pod version
Cloned https://github.com/gitvalue/RollView.git
Revision (git rev-parse @):
884fcd0fcb336b72b421594f0137ee8d68f96656
SUCCESS checkout https://github.com/gitvalue/RollView.git at 1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/gitvalue/RollView.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/gitvalue/Pooling.git
[1/148] Fetching pooling
Fetched https://github.com/gitvalue/Pooling.git from cache (0.19s)
Computing version for https://github.com/gitvalue/Pooling.git
Computed https://github.com/gitvalue/Pooling.git at 1.0.1 (0.50s)
Creating working copy for https://github.com/gitvalue/Pooling.git
Working copy of https://github.com/gitvalue/Pooling.git resolved at 1.0.1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/7] Compiling Pooling Pooling.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/7] Compiling Pooling Pool.swift
[6/7] Emitting module Pooling
/host/spi-builder-workspace/.build/checkouts/Pooling/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/.build/checkouts/Pooling/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/.build/checkouts/Pooling/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'; add nested type 'MutexPrimitive' for conformance
 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'
123 |     public typealias MutexPrimitive = os_unfair_lock
124 |
[7/7] Compiling Pooling PThreadMutex.swift
/host/spi-builder-workspace/.build/checkouts/Pooling/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/.build/checkouts/Pooling/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/.build/checkouts/Pooling/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'; add nested type 'MutexPrimitive' for conformance
 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'
123 |     public typealias MutexPrimitive = os_unfair_lock
124 |
/host/spi-builder-workspace/.build/checkouts/Pooling/Sources/Pooling/PThreadMutex.swift:93:46: error: cannot convert value of type 'Int' to expected argument type 'Int32'
 91 |         switch type {
 92 |         case .normal:
 93 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL)
    |                                              `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
 94 |         case .recursive:
 95 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
/host/spi-builder-workspace/.build/checkouts/Pooling/Sources/Pooling/PThreadMutex.swift:95:46: error: cannot convert value of type 'Int' to expected argument type 'Int32'
 93 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL)
 94 |         case .recursive:
 95 |             pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
    |                                              `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
 96 |         }
 97 |         guard pthread_mutex_init(&unsafeMutex, &attr) == 0 else {
/host/spi-builder-workspace/.build/checkouts/Pooling/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/.build/checkouts/Pooling/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/.build/checkouts/Pooling/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.0 linux