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 Locks, reference main (e5c133), with Swift 6.1 for Linux on 27 Apr 2025 07:16:23 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.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/adamwulf/Locks.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/adamwulf/Locks
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e5c1338 Add method to atomically toggle a boolean
Cloned https://github.com/adamwulf/Locks.git
Revision (git rev-parse @):
e5c133845f3ad1a890a8823374c2694f969884e2
SUCCESS checkout https://github.com/adamwulf/Locks.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/adamwulf/Locks.git
https://github.com/adamwulf/Locks.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "branch" : [
          "add-extended-types-flag"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/themomax/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "Locks",
  "name" : "Locks",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "Locks",
      "targets" : [
        "Locks"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LocksTests",
      "module_type" : "SwiftTarget",
      "name" : "LocksTests",
      "path" : "Tests/LocksTests",
      "sources" : [
        "LocksTests.swift"
      ],
      "target_dependencies" : [
        "Locks"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Locks",
      "module_type" : "SwiftTarget",
      "name" : "Locks",
      "path" : "Sources/Locks",
      "product_memberships" : [
        "Locks"
      ],
      "sources" : [
        "AtomicDictionary.swift",
        "AtomicSet.swift",
        "AtomicWrapper+Extensions.swift",
        "AtomicWrapper.swift",
        "Mutex.swift",
        "NSLocking+Extensions.swift",
        "ReadWriteLock.swift",
        "RecursiveMutex.swift",
        "ThreadLocal.swift",
        "UnfairLock.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/themomax/swift-docc-plugin
[1/647] Fetching swift-docc-plugin
Fetched https://github.com/themomax/swift-docc-plugin from cache (0.32s)
Fetching https://github.com/apple/swift-docc-symbolkit
[1/3375] Fetching swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit from cache (0.38s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.99s)
Creating working copy for https://github.com/themomax/swift-docc-plugin
Working copy of https://github.com/themomax/swift-docc-plugin resolved at add-extended-types-flag (c234e51)
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
 29 |         func addTargetDependencies(_ target: Target) {
 30 |             for dependency in target.dependencies {
 31 |                 switch dependency {
    |                 |- warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
    |                 `- note: handle unknown values using "@unknown default"
 32 |                 case .product(let product):
 33 |                     addTargets(product.targets)
[1/1] Compiling plugin Swift-DocC Preview
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
 29 |         func addTargetDependencies(_ target: Target) {
 30 |             for dependency in target.dependencies {
 31 |                 switch dependency {
    |                 |- warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
    |                 `- note: handle unknown values using "@unknown default"
 32 |                 case .product(let product):
 33 |                     addTargets(product.targets)
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/14] Compiling Locks AtomicDictionary.swift
[6/14] Compiling Locks AtomicSet.swift
[7/14] Emitting module Locks
/host/spi-builder-workspace/Sources/Locks/ThreadLocal.swift:48:13: error: setter for property 'threadDictionary' is private and cannot be referenced from an '@inlinable' function
46 |                 return v
47 |             }
48 |             Thread.current.threadDictionary[key] = initialValue
   |             `- error: setter for property 'threadDictionary' is private and cannot be referenced from an '@inlinable' function
49 |             return initialValue
50 |         }
Foundation.Thread._:2:1: note: setter for property 'threadDictionary' is not '@usableFromInline' or public
1 | class Thread {
2 | set(value)}
  | `- note: setter for property 'threadDictionary' is not '@usableFromInline' or public
3 |
/host/spi-builder-workspace/Sources/Locks/ThreadLocal.swift:52:13: error: setter for property 'threadDictionary' is private and cannot be referenced from an '@inlinable' function
50 |         }
51 |         set {
52 |             Thread.current.threadDictionary[key] = newValue
   |             `- error: setter for property 'threadDictionary' is private and cannot be referenced from an '@inlinable' function
53 |         }
54 |     }
Foundation.Thread._:2:1: note: setter for property 'threadDictionary' is not '@usableFromInline' or public
1 | class Thread {
2 | set(value)}
  | `- note: setter for property 'threadDictionary' is not '@usableFromInline' or public
3 |
/host/spi-builder-workspace/Sources/Locks/UnfairLock.swift:14:29: error: cannot find type 'os_unfair_lock_t' in scope
12 | public class UnfairLock: NSLocking {
13 |     /// The underlying os_unfair_lock_t used to provide the lock.
14 |     private let unfairLock: os_unfair_lock_t
   |                             `- error: cannot find type 'os_unfair_lock_t' in scope
15 |     /// A flag to indicate if the lock is currently locked.
16 |     private var locked = false
[8/15] Compiling Locks ReadWriteLock.swift
[9/15] Compiling Locks Mutex.swift
[10/15] Compiling Locks AtomicWrapper+Extensions.swift
[11/15] Compiling Locks AtomicWrapper.swift
[12/15] Compiling Locks NSLocking+Extensions.swift
[13/15] Compiling Locks ThreadLocal.swift
/host/spi-builder-workspace/Sources/Locks/ThreadLocal.swift:48:13: error: setter for property 'threadDictionary' is private and cannot be referenced from an '@inlinable' function
46 |                 return v
47 |             }
48 |             Thread.current.threadDictionary[key] = initialValue
   |             `- error: setter for property 'threadDictionary' is private and cannot be referenced from an '@inlinable' function
49 |             return initialValue
50 |         }
Foundation.Thread._:2:1: note: setter for property 'threadDictionary' is not '@usableFromInline' or public
1 | class Thread {
2 | set(value)}
  | `- note: setter for property 'threadDictionary' is not '@usableFromInline' or public
3 |
/host/spi-builder-workspace/Sources/Locks/ThreadLocal.swift:52:13: error: setter for property 'threadDictionary' is private and cannot be referenced from an '@inlinable' function
50 |         }
51 |         set {
52 |             Thread.current.threadDictionary[key] = newValue
   |             `- error: setter for property 'threadDictionary' is private and cannot be referenced from an '@inlinable' function
53 |         }
54 |     }
Foundation.Thread._:2:1: note: setter for property 'threadDictionary' is not '@usableFromInline' or public
1 | class Thread {
2 | set(value)}
  | `- note: setter for property 'threadDictionary' is not '@usableFromInline' or public
3 |
[14/15] Compiling Locks RecursiveMutex.swift
/host/spi-builder-workspace/Sources/Locks/RecursiveMutex.swift:38:45: error: cannot convert value of type 'Int' to expected argument type 'Int32'
 36 |         withUnsafeMutablePointer(to: &attr) { attr in
 37 |             pthread_mutexattr_init(attr)
 38 |             pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE)
    |                                             `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
 39 |             let err = pthread_mutex_init(mutex, attr)
 40 |             pthread_mutexattr_destroy(attr)
[15/15] Compiling Locks UnfairLock.swift
/host/spi-builder-workspace/Sources/Locks/UnfairLock.swift:14:29: error: cannot find type 'os_unfair_lock_t' in scope
12 | public class UnfairLock: NSLocking {
13 |     /// The underlying os_unfair_lock_t used to provide the lock.
14 |     private let unfairLock: os_unfair_lock_t
   |                             `- error: cannot find type 'os_unfair_lock_t' in scope
15 |     /// A flag to indicate if the lock is currently locked.
16 |     private var locked = false
/host/spi-builder-workspace/Sources/Locks/UnfairLock.swift:20:12: error: cannot find 'os_unfair_lock_trylock' in scope
18 |     /// Returns true if the lock is locked, false otherwise.
19 |     public var isLocked: Bool {
20 |         if os_unfair_lock_trylock(unfairLock) {
   |            `- error: cannot find 'os_unfair_lock_trylock' in scope
21 |             os_unfair_lock_unlock(unfairLock)
22 |             // if we were able to lock with the try(), then it wasn't locked when this method was called
/host/spi-builder-workspace/Sources/Locks/UnfairLock.swift:21:13: error: cannot find 'os_unfair_lock_unlock' in scope
19 |     public var isLocked: Bool {
20 |         if os_unfair_lock_trylock(unfairLock) {
21 |             os_unfair_lock_unlock(unfairLock)
   |             `- error: cannot find 'os_unfair_lock_unlock' in scope
22 |             // if we were able to lock with the try(), then it wasn't locked when this method was called
23 |             return false
/host/spi-builder-workspace/Sources/Locks/UnfairLock.swift:31:23: error: cannot infer contextual base in reference to member 'allocate'
29 |     /// Initializes the UnfairLock.
30 |     public init() {
31 |         unfairLock = .allocate(capacity: 1)
   |                       `- error: cannot infer contextual base in reference to member 'allocate'
32 |         unfairLock.initialize(to: os_unfair_lock())
33 |     }
/host/spi-builder-workspace/Sources/Locks/UnfairLock.swift:32:35: error: cannot find 'os_unfair_lock' in scope
30 |     public init() {
31 |         unfairLock = .allocate(capacity: 1)
32 |         unfairLock.initialize(to: os_unfair_lock())
   |                                   `- error: cannot find 'os_unfair_lock' in scope
33 |     }
34 |
/host/spi-builder-workspace/Sources/Locks/UnfairLock.swift:37:9: error: cannot find 'os_unfair_lock_lock' in scope
35 |     /// Locks the UnfairLock.
36 |     public func lock() {
37 |         os_unfair_lock_lock(unfairLock)
   |         `- error: cannot find 'os_unfair_lock_lock' in scope
38 |         locked = true
39 |     }
/host/spi-builder-workspace/Sources/Locks/UnfairLock.swift:44:9: error: cannot find 'os_unfair_lock_unlock' in scope
42 |     public func unlock() {
43 |         locked = false
44 |         os_unfair_lock_unlock(unfairLock)
   |         `- error: cannot find 'os_unfair_lock_unlock' in scope
45 |     }
46 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
 29 |         func addTargetDependencies(_ target: Target) {
 30 |             for dependency in target.dependencies {
 31 |                 switch dependency {
    |                 |- warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
    |                 `- note: handle unknown values using "@unknown default"
 32 |                 case .product(let product):
 33 |                     addTargets(product.targets)
[1/1] Compiling plugin Swift-DocC Preview
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
 29 |         func addTargetDependencies(_ target: Target) {
 30 |             for dependency in target.dependencies {
 31 |                 switch dependency {
    |                 |- warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
    |                 `- note: handle unknown values using "@unknown default"
 32 |                 case .product(let product):
 33 |                     addTargets(product.targets)
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/13] Compiling Locks ThreadLocal.swift
/host/spi-builder-workspace/Sources/Locks/ThreadLocal.swift:48:13: error: setter for property 'threadDictionary' is private and cannot be referenced from an '@inlinable' function
46 |                 return v
47 |             }
48 |             Thread.current.threadDictionary[key] = initialValue
   |             `- error: setter for property 'threadDictionary' is private and cannot be referenced from an '@inlinable' function
49 |             return initialValue
50 |         }
Foundation.Thread._:2:1: note: setter for property 'threadDictionary' is not '@usableFromInline' or public
1 | class Thread {
2 | set(value)}
  | `- note: setter for property 'threadDictionary' is not '@usableFromInline' or public
3 |
/host/spi-builder-workspace/Sources/Locks/ThreadLocal.swift:52:13: error: setter for property 'threadDictionary' is private and cannot be referenced from an '@inlinable' function
50 |         }
51 |         set {
52 |             Thread.current.threadDictionary[key] = newValue
   |             `- error: setter for property 'threadDictionary' is private and cannot be referenced from an '@inlinable' function
53 |         }
54 |     }
Foundation.Thread._:2:1: note: setter for property 'threadDictionary' is not '@usableFromInline' or public
1 | class Thread {
2 | set(value)}
  | `- note: setter for property 'threadDictionary' is not '@usableFromInline' or public
3 |
[5/13] Compiling Locks RecursiveMutex.swift
/host/spi-builder-workspace/Sources/Locks/RecursiveMutex.swift:38:45: error: cannot convert value of type 'Int' to expected argument type 'Int32'
 36 |         withUnsafeMutablePointer(to: &attr) { attr in
 37 |             pthread_mutexattr_init(attr)
 38 |             pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE)
    |                                             `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
 39 |             let err = pthread_mutex_init(mutex, attr)
 40 |             pthread_mutexattr_destroy(attr)
[6/14] Compiling Locks NSLocking+Extensions.swift
[7/14] Compiling Locks ReadWriteLock.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/14] Compiling Locks Mutex.swift
[9/14] Compiling Locks AtomicWrapper+Extensions.swift
[10/14] Compiling Locks AtomicWrapper.swift
[11/14] Emitting module Locks
/host/spi-builder-workspace/Sources/Locks/ThreadLocal.swift:48:13: error: setter for property 'threadDictionary' is private and cannot be referenced from an '@inlinable' function
46 |                 return v
47 |             }
48 |             Thread.current.threadDictionary[key] = initialValue
   |             `- error: setter for property 'threadDictionary' is private and cannot be referenced from an '@inlinable' function
49 |             return initialValue
50 |         }
Foundation.Thread._:2:1: note: setter for property 'threadDictionary' is not '@usableFromInline' or public
1 | class Thread {
2 | set(value)}
  | `- note: setter for property 'threadDictionary' is not '@usableFromInline' or public
3 |
/host/spi-builder-workspace/Sources/Locks/ThreadLocal.swift:52:13: error: setter for property 'threadDictionary' is private and cannot be referenced from an '@inlinable' function
50 |         }
51 |         set {
52 |             Thread.current.threadDictionary[key] = newValue
   |             `- error: setter for property 'threadDictionary' is private and cannot be referenced from an '@inlinable' function
53 |         }
54 |     }
Foundation.Thread._:2:1: note: setter for property 'threadDictionary' is not '@usableFromInline' or public
1 | class Thread {
2 | set(value)}
  | `- note: setter for property 'threadDictionary' is not '@usableFromInline' or public
3 |
/host/spi-builder-workspace/Sources/Locks/UnfairLock.swift:14:29: error: cannot find type 'os_unfair_lock_t' in scope
12 | public class UnfairLock: NSLocking {
13 |     /// The underlying os_unfair_lock_t used to provide the lock.
14 |     private let unfairLock: os_unfair_lock_t
   |                             `- error: cannot find type 'os_unfair_lock_t' in scope
15 |     /// A flag to indicate if the lock is currently locked.
16 |     private var locked = false
[12/14] Compiling Locks AtomicDictionary.swift
[13/14] Compiling Locks AtomicSet.swift
[14/14] Compiling Locks UnfairLock.swift
/host/spi-builder-workspace/Sources/Locks/UnfairLock.swift:14:29: error: cannot find type 'os_unfair_lock_t' in scope
12 | public class UnfairLock: NSLocking {
13 |     /// The underlying os_unfair_lock_t used to provide the lock.
14 |     private let unfairLock: os_unfair_lock_t
   |                             `- error: cannot find type 'os_unfair_lock_t' in scope
15 |     /// A flag to indicate if the lock is currently locked.
16 |     private var locked = false
/host/spi-builder-workspace/Sources/Locks/UnfairLock.swift:20:12: error: cannot find 'os_unfair_lock_trylock' in scope
18 |     /// Returns true if the lock is locked, false otherwise.
19 |     public var isLocked: Bool {
20 |         if os_unfair_lock_trylock(unfairLock) {
   |            `- error: cannot find 'os_unfair_lock_trylock' in scope
21 |             os_unfair_lock_unlock(unfairLock)
22 |             // if we were able to lock with the try(), then it wasn't locked when this method was called
/host/spi-builder-workspace/Sources/Locks/UnfairLock.swift:21:13: error: cannot find 'os_unfair_lock_unlock' in scope
19 |     public var isLocked: Bool {
20 |         if os_unfair_lock_trylock(unfairLock) {
21 |             os_unfair_lock_unlock(unfairLock)
   |             `- error: cannot find 'os_unfair_lock_unlock' in scope
22 |             // if we were able to lock with the try(), then it wasn't locked when this method was called
23 |             return false
/host/spi-builder-workspace/Sources/Locks/UnfairLock.swift:31:23: error: cannot infer contextual base in reference to member 'allocate'
29 |     /// Initializes the UnfairLock.
30 |     public init() {
31 |         unfairLock = .allocate(capacity: 1)
   |                       `- error: cannot infer contextual base in reference to member 'allocate'
32 |         unfairLock.initialize(to: os_unfair_lock())
33 |     }
/host/spi-builder-workspace/Sources/Locks/UnfairLock.swift:32:35: error: cannot find 'os_unfair_lock' in scope
30 |     public init() {
31 |         unfairLock = .allocate(capacity: 1)
32 |         unfairLock.initialize(to: os_unfair_lock())
   |                                   `- error: cannot find 'os_unfair_lock' in scope
33 |     }
34 |
/host/spi-builder-workspace/Sources/Locks/UnfairLock.swift:37:9: error: cannot find 'os_unfair_lock_lock' in scope
35 |     /// Locks the UnfairLock.
36 |     public func lock() {
37 |         os_unfair_lock_lock(unfairLock)
   |         `- error: cannot find 'os_unfair_lock_lock' in scope
38 |         locked = true
39 |     }
/host/spi-builder-workspace/Sources/Locks/UnfairLock.swift:44:9: error: cannot find 'os_unfair_lock_unlock' in scope
42 |     public func unlock() {
43 |         locked = false
44 |         os_unfair_lock_unlock(unfairLock)
   |         `- error: cannot find 'os_unfair_lock_unlock' in scope
45 |     }
46 |
BUILD FAILURE 6.1 linux