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 AlecrimAsyncKit, reference master (974e49), with Swift 6.0 for Linux on 27 Nov 2024 05:23:00 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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 -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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Alecrim/AlecrimAsyncKit.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/Alecrim/AlecrimAsyncKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 974e49c Merge branch 'release/5.0-beta.2'
Cloned https://github.com/Alecrim/AlecrimAsyncKit.git
Revision (git rev-parse @):
974e49ce5e6ca0543aba4532448e5799e2bba545
SUCCESS checkout https://github.com/Alecrim/AlecrimAsyncKit.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Alecrim/AlecrimAsyncKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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 -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.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling AlecrimAsyncKit Error+Extensions.swift
[4/9] Compiling AlecrimAsyncKit Cancellation.swift
/host/spi-builder-workspace/Sources/Cancellation.swift:22:45: error: cannot find 'os_unfair_lock_s' in scope
20 |
21 | public final class Cancellation {
22 |     private var _cancellationHandlersLock = os_unfair_lock_s()
   |                                             `- error: cannot find 'os_unfair_lock_s' in scope
23 |     private var _cancellationHandlers: [CancellationHandler]?
24 |
/host/spi-builder-workspace/Sources/Cancellation.swift:30:9: error: cannot find 'os_unfair_lock_lock' in scope
28 |
29 |     fileprivate func addCancellationHandler(_ newValue: @escaping CancellationHandler) {
30 |         os_unfair_lock_lock(&self._cancellationHandlersLock); defer { os_unfair_lock_unlock(&self._cancellationHandlersLock) }
   |         `- error: cannot find 'os_unfair_lock_lock' in scope
31 |
32 |         if self._cancellationHandlers == nil {
/host/spi-builder-workspace/Sources/Cancellation.swift:30:71: error: cannot find 'os_unfair_lock_unlock' in scope
28 |
29 |     fileprivate func addCancellationHandler(_ newValue: @escaping CancellationHandler) {
30 |         os_unfair_lock_lock(&self._cancellationHandlersLock); defer { os_unfair_lock_unlock(&self._cancellationHandlersLock) }
   |                                                                       `- error: cannot find 'os_unfair_lock_unlock' in scope
31 |
32 |         if self._cancellationHandlers == nil {
/host/spi-builder-workspace/Sources/Cancellation.swift:44:13: error: cannot find 'os_unfair_lock_lock' in scope
42 |
43 |         do {
44 |             os_unfair_lock_lock(&self._cancellationHandlersLock); defer { os_unfair_lock_unlock(&self._cancellationHandlersLock) }
   |             `- error: cannot find 'os_unfair_lock_lock' in scope
45 |             cancellationHandlers = self._cancellationHandlers
46 |             self._cancellationHandlers = nil
/host/spi-builder-workspace/Sources/Cancellation.swift:44:75: error: cannot find 'os_unfair_lock_unlock' in scope
42 |
43 |         do {
44 |             os_unfair_lock_lock(&self._cancellationHandlersLock); defer { os_unfair_lock_unlock(&self._cancellationHandlersLock) }
   |                                                                           `- error: cannot find 'os_unfair_lock_unlock' in scope
45 |             cancellationHandlers = self._cancellationHandlers
46 |             self._cancellationHandlers = nil
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/9] Compiling AlecrimAsyncKit Async.swift
[6/9] Emitting module AlecrimAsyncKit
/host/spi-builder-workspace/Sources/Cancellation.swift:22:45: error: cannot find 'os_unfair_lock_s' in scope
20 |
21 | public final class Cancellation {
22 |     private var _cancellationHandlersLock = os_unfair_lock_s()
   |                                             `- error: cannot find 'os_unfair_lock_s' in scope
23 |     private var _cancellationHandlers: [CancellationHandler]?
24 |
/host/spi-builder-workspace/Sources/Task.swift:43:25: error: cannot find 'os_unfair_lock_s' in scope
 41 |
 42 |     // Result and Dispatch Group Lock
 43 |     private var _lock = os_unfair_lock_s()
    |                         `- error: cannot find 'os_unfair_lock_s' in scope
 44 |     private func lock() { os_unfair_lock_lock(&self._lock) }
 45 |     private func unlock() { os_unfair_lock_unlock(&self._lock) }
[7/9] Compiling AlecrimAsyncKit Await.swift
/host/spi-builder-workspace/Sources/Task.swift:43:25: error: cannot find 'os_unfair_lock_s' in scope
 41 |
 42 |     // Result and Dispatch Group Lock
 43 |     private var _lock = os_unfair_lock_s()
    |                         `- error: cannot find 'os_unfair_lock_s' in scope
 44 |     private func lock() { os_unfair_lock_lock(&self._lock) }
 45 |     private func unlock() { os_unfair_lock_unlock(&self._lock) }
[8/9] Compiling AlecrimAsyncKit Task.swift
/host/spi-builder-workspace/Sources/Task.swift:43:25: error: cannot find 'os_unfair_lock_s' in scope
 41 |
 42 |     // Result and Dispatch Group Lock
 43 |     private var _lock = os_unfair_lock_s()
    |                         `- error: cannot find 'os_unfair_lock_s' in scope
 44 |     private func lock() { os_unfair_lock_lock(&self._lock) }
 45 |     private func unlock() { os_unfair_lock_unlock(&self._lock) }
/host/spi-builder-workspace/Sources/Task.swift:44:27: error: cannot find 'os_unfair_lock_lock' in scope
 42 |     // Result and Dispatch Group Lock
 43 |     private var _lock = os_unfair_lock_s()
 44 |     private func lock() { os_unfair_lock_lock(&self._lock) }
    |                           `- error: cannot find 'os_unfair_lock_lock' in scope
 45 |     private func unlock() { os_unfair_lock_unlock(&self._lock) }
 46 |
/host/spi-builder-workspace/Sources/Task.swift:45:29: error: cannot find 'os_unfair_lock_unlock' in scope
 43 |     private var _lock = os_unfair_lock_s()
 44 |     private func lock() { os_unfair_lock_lock(&self._lock) }
 45 |     private func unlock() { os_unfair_lock_unlock(&self._lock) }
    |                             `- error: cannot find 'os_unfair_lock_unlock' in scope
 46 |
 47 |     // MARK: Initializers
/host/spi-builder-workspace/Sources/Task.swift:265:20: warning: no calls to throwing functions occur within 'try' expression
263 |     internal func await() -> V {
264 |         if let result = self.result {
265 |             return try! result.get()
    |                    `- warning: no calls to throwing functions occur within 'try' expression
266 |         }
267 |         else if let workItem = self.workItem {
/host/spi-builder-workspace/Sources/Task.swift:275:20: warning: no calls to throwing functions occur within 'try' expression
273 |             }
274 |
275 |             return try! result.get()
    |                    `- warning: no calls to throwing functions occur within 'try' expression
276 |         }
277 |         else {
[9/9] Compiling AlecrimAsyncKit TaskAwaiter.swift
/host/spi-builder-workspace/Sources/TaskAwaiter.swift:79:26: error: cannot pass function of type '@Sendable () async -> Void' to parameter expecting synchronous function type
 77 |
 78 |     fileprivate func enqueue() {
 79 |         self.queue.async {
    |                          `- error: cannot pass function of type '@Sendable () async -> Void' to parameter expecting synchronous function type
 80 |             defer {
 81 |                 if let finallyClosure = self.finallyClosure {
    :
 89 |
 90 |             do {
 91 |                 let value = try await(self.task)
    |                                 `- note: 'async' inferred from asynchronous operation used here
 92 |
 93 |                 if let thenClosure = self.thenClosure {
/host/spi-builder-workspace/Sources/TaskAwaiter.swift:95:37: error: cannot convert value of type 'Task<V, any Error>' to expected argument type 'V'
 93 |                 if let thenClosure = self.thenClosure {
 94 |                     self.callbackQueue.async {
 95 |                         thenClosure(value)
    |                                     `- error: cannot convert value of type 'Task<V, any Error>' to expected argument type 'V'
 96 |                         self.thenClosure = nil
 97 |                     }
/host/spi-builder-workspace/Sources/TaskAwaiter.swift:126:26: error: cannot pass function of type '@Sendable () async -> Void' to parameter expecting synchronous function type
124 |
125 |     fileprivate func enqueue() {
126 |         self.queue.async {
    |                          `- error: cannot pass function of type '@Sendable () async -> Void' to parameter expecting synchronous function type
127 |             let value = await(self.task)
    |                         `- note: 'async' inferred from asynchronous operation used here
128 |
129 |             if let thenClosure = self.thenClosure {
/host/spi-builder-workspace/Sources/TaskAwaiter.swift:131:33: error: cannot convert value of type 'Task<V, Never>' to expected argument type 'V'
129 |             if let thenClosure = self.thenClosure {
130 |                 self.callbackQueue.async {
131 |                     thenClosure(value)
    |                                 `- error: cannot convert value of type 'Task<V, Never>' to expected argument type 'V'
132 |                     self.thenClosure = nil
133 |                 }
BUILD FAILURE 6.0 linux