Build Information
Failed to build AlecrimAsyncKit with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Alecrim/AlecrimAsyncKit.git
Reference: master
Cloned https://github.com/Alecrim/AlecrimAsyncKit.git into spi-builder-workspace
SUCCESS checkout https://github.com/Alecrim/AlecrimAsyncKit.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/7] Compiling AlecrimAsyncKit Error+Extensions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/7] Compiling AlecrimAsyncKit Async.swift
[3/7] 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()
^~~~~~~~~~~~~~~~
[4/7] 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()
^~~~~~~~~~~~~~~~
[5/7] 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/7] 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) }
^~~~~~~~~~~~~~~~~~~~~
[7/7] 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) }
^~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 1