The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AlecrimAsyncKit with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.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:             5.10
Building package at path:  $workDir
https://github.com/Alecrim/AlecrimAsyncKit.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling AlecrimAsyncKit Cancellation.swift
/host/spi-builder-workspace/Sources/Cancellation.swift:22:45: error: cannot find 'os_unfair_lock_s' in scope
    private var _cancellationHandlersLock = os_unfair_lock_s()
                                            ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Cancellation.swift:30:9: error: cannot find 'os_unfair_lock_lock' in scope
        os_unfair_lock_lock(&self._cancellationHandlersLock); defer { os_unfair_lock_unlock(&self._cancellationHandlersLock) }
        ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Cancellation.swift:30:71: error: cannot find 'os_unfair_lock_unlock' in scope
        os_unfair_lock_lock(&self._cancellationHandlersLock); defer { os_unfair_lock_unlock(&self._cancellationHandlersLock) }
                                                                      ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Cancellation.swift:44:13: error: cannot find 'os_unfair_lock_lock' in scope
            os_unfair_lock_lock(&self._cancellationHandlersLock); defer { os_unfair_lock_unlock(&self._cancellationHandlersLock) }
            ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Cancellation.swift:44:75: error: cannot find 'os_unfair_lock_unlock' in scope
            os_unfair_lock_lock(&self._cancellationHandlersLock); defer { os_unfair_lock_unlock(&self._cancellationHandlersLock) }
                                                                          ^~~~~~~~~~~~~~~~~~~~~
[4/9] Compiling AlecrimAsyncKit Await.swift
/host/spi-builder-workspace/Sources/Task.swift:43:25: error: cannot find 'os_unfair_lock_s' in scope
    private var _lock = os_unfair_lock_s()
                        ^~~~~~~~~~~~~~~~
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
    private var _cancellationHandlersLock = os_unfair_lock_s()
                                            ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Task.swift:43:25: error: cannot find 'os_unfair_lock_s' in scope
    private var _lock = os_unfair_lock_s()
                        ^~~~~~~~~~~~~~~~
[7/9] Compiling AlecrimAsyncKit Error+Extensions.swift
[8/9] Compiling AlecrimAsyncKit TaskAwaiter.swift
/host/spi-builder-workspace/Sources/TaskAwaiter.swift:79:26: error: cannot pass function of type '() async -> Void' to parameter expecting synchronous function type
        self.queue.async {
                         ^
/host/spi-builder-workspace/Sources/TaskAwaiter.swift:91:33: note: 'async' inferred from asynchronous operation used here
                let value = try await(self.task)
                                ^
/host/spi-builder-workspace/Sources/TaskAwaiter.swift:95:37: error: cannot convert value of type 'Task<V, any Error>' to expected argument type 'V'
                        thenClosure(value)
                                    ^
                                          as! V
/host/spi-builder-workspace/Sources/TaskAwaiter.swift:126:26: error: cannot pass function of type '() async -> Void' to parameter expecting synchronous function type
        self.queue.async {
                         ^
/host/spi-builder-workspace/Sources/TaskAwaiter.swift:127:25: note: 'async' inferred from asynchronous operation used here
            let value = await(self.task)
                        ^
/host/spi-builder-workspace/Sources/TaskAwaiter.swift:131:33: error: cannot convert value of type 'Task<V, Never>' to expected argument type 'V'
                    thenClosure(value)
                                ^
                                      as! V
[9/9] Compiling AlecrimAsyncKit Task.swift
/host/spi-builder-workspace/Sources/Task.swift:43:25: error: cannot find 'os_unfair_lock_s' in scope
    private var _lock = os_unfair_lock_s()
                        ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Task.swift:44:27: error: cannot find 'os_unfair_lock_lock' in scope
    private func lock() { os_unfair_lock_lock(&self._lock) }
                          ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Task.swift:45:29: error: cannot find 'os_unfair_lock_unlock' in scope
    private func unlock() { os_unfair_lock_unlock(&self._lock) }
                            ^~~~~~~~~~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/6] Emitting module AlecrimAsyncKit
/host/spi-builder-workspace/Sources/Cancellation.swift:22:45: error: cannot find 'os_unfair_lock_s' in scope
    private var _cancellationHandlersLock = os_unfair_lock_s()
                                            ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Task.swift:43:25: error: cannot find 'os_unfair_lock_s' in scope
    private var _lock = os_unfair_lock_s()
                        ^~~~~~~~~~~~~~~~
[3/6] Compiling AlecrimAsyncKit Cancellation.swift
/host/spi-builder-workspace/Sources/Cancellation.swift:22:45: error: cannot find 'os_unfair_lock_s' in scope
    private var _cancellationHandlersLock = os_unfair_lock_s()
                                            ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Cancellation.swift:30:9: error: cannot find 'os_unfair_lock_lock' in scope
        os_unfair_lock_lock(&self._cancellationHandlersLock); defer { os_unfair_lock_unlock(&self._cancellationHandlersLock) }
        ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Cancellation.swift:30:71: error: cannot find 'os_unfair_lock_unlock' in scope
        os_unfair_lock_lock(&self._cancellationHandlersLock); defer { os_unfair_lock_unlock(&self._cancellationHandlersLock) }
                                                                      ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Cancellation.swift:44:13: error: cannot find 'os_unfair_lock_lock' in scope
            os_unfair_lock_lock(&self._cancellationHandlersLock); defer { os_unfair_lock_unlock(&self._cancellationHandlersLock) }
            ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Cancellation.swift:44:75: error: cannot find 'os_unfair_lock_unlock' in scope
            os_unfair_lock_lock(&self._cancellationHandlersLock); defer { os_unfair_lock_unlock(&self._cancellationHandlersLock) }
                                                                          ^~~~~~~~~~~~~~~~~~~~~
[4/6] Compiling AlecrimAsyncKit Task.swift
/host/spi-builder-workspace/Sources/Task.swift:43:25: error: cannot find 'os_unfair_lock_s' in scope
    private var _lock = os_unfair_lock_s()
                        ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Task.swift:44:27: error: cannot find 'os_unfair_lock_lock' in scope
    private func lock() { os_unfair_lock_lock(&self._lock) }
                          ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Task.swift:45:29: error: cannot find 'os_unfair_lock_unlock' in scope
    private func unlock() { os_unfair_lock_unlock(&self._lock) }
                            ^~~~~~~~~~~~~~~~~~~~~
[5/6] Compiling AlecrimAsyncKit TaskAwaiter.swift
/host/spi-builder-workspace/Sources/TaskAwaiter.swift:79:26: error: cannot pass function of type '() async -> Void' to parameter expecting synchronous function type
        self.queue.async {
                         ^
/host/spi-builder-workspace/Sources/TaskAwaiter.swift:91:33: note: 'async' inferred from asynchronous operation used here
                let value = try await(self.task)
                                ^
/host/spi-builder-workspace/Sources/TaskAwaiter.swift:95:37: error: cannot convert value of type 'Task<V, any Error>' to expected argument type 'V'
                        thenClosure(value)
                                    ^
                                          as! V
/host/spi-builder-workspace/Sources/TaskAwaiter.swift:126:26: error: cannot pass function of type '() async -> Void' to parameter expecting synchronous function type
        self.queue.async {
                         ^
/host/spi-builder-workspace/Sources/TaskAwaiter.swift:127:25: note: 'async' inferred from asynchronous operation used here
            let value = await(self.task)
                        ^
/host/spi-builder-workspace/Sources/TaskAwaiter.swift:131:33: error: cannot convert value of type 'Task<V, Never>' to expected argument type 'V'
                    thenClosure(value)
                                ^
                                      as! V
[6/6] Compiling AlecrimAsyncKit Await.swift
/host/spi-builder-workspace/Sources/Task.swift:43:25: error: cannot find 'os_unfair_lock_s' in scope
    private var _lock = os_unfair_lock_s()
                        ^~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2