The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AlecrimAsyncKit, reference master (974e49), with Swift 6.1 for Android on 27 May 2025 14:26:34 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Alecrim/AlecrimAsyncKit.git
https://github.com/Alecrim/AlecrimAsyncKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "AlecrimAsyncKit",
  "name" : "AlecrimAsyncKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "AlecrimAsyncKit",
      "targets" : [
        "AlecrimAsyncKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AlecrimAsyncKit",
      "module_type" : "SwiftTarget",
      "name" : "AlecrimAsyncKit",
      "path" : "Sources",
      "product_memberships" : [
        "AlecrimAsyncKit"
      ],
      "sources" : [
        "Async.swift",
        "Await.swift",
        "Cancellation.swift",
        "Error+Extensions.swift",
        "Task.swift",
        "TaskAwaiter.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling AlecrimAsyncKit Async.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/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) }
[5/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 |                 }
[6/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 {
[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 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
[9/9] Compiling AlecrimAsyncKit Error+Extensions.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] 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 |                 }
[3/8] Compiling AlecrimAsyncKit Error+Extensions.swift
[4/8] 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
[5/8] 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 {
[6/8] 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) }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/8] Compiling AlecrimAsyncKit Async.swift
[8/8] 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) }
BUILD FAILURE 6.1 android