The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MiniFuture, reference master (894ed0), with Swift 6.3 for Android on 10 Apr 2026 15:12:45 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tkareine/MiniFuture.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/tkareine/MiniFuture
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 894ed0c Update readme
Cloned https://github.com/tkareine/MiniFuture.git
Revision (git rev-parse @):
894ed0cf7c1bb8aeafe0a8fa5fa48a9a403ecdf6
SUCCESS checkout https://github.com/tkareine/MiniFuture.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/tkareine/MiniFuture.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version--4F562202D5529B1.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/11] Compiling MiniFuture Try.swift
[5/11] Emitting module MiniFuture
/host/spi-builder-workspace/Source/Condition.swift:6:43: error: cannot find type 'pthread_mutex_t' in scope
 4 |   public typealias WaitCallback = () -> Void
 5 |
 6 |   private let mutex: UnsafeMutablePointer<pthread_mutex_t>
   |                                           `- error: cannot find type 'pthread_mutex_t' in scope
 7 |   private let condition: UnsafeMutablePointer<pthread_cond_t>
 8 |
/host/spi-builder-workspace/Source/Condition.swift:7:47: error: cannot find type 'pthread_cond_t' in scope
 5 |
 6 |   private let mutex: UnsafeMutablePointer<pthread_mutex_t>
 7 |   private let condition: UnsafeMutablePointer<pthread_cond_t>
   |                                               `- error: cannot find type 'pthread_cond_t' in scope
 8 |
 9 |   private lazy var waitCallback: WaitCallback = { [unowned self] in self.wait() }
[6/11] Compiling MiniFuture Future.swift
/host/spi-builder-workspace/Source/Future.swift:13:32: warning: passing non-Sendable parameter 'block' to function expecting a '@Sendable' closure
 10 |   }
 11 |
 12 |   static func async(_ block: @escaping () -> Void) {
    |                       `- note: parameter 'block' is implicitly non-Sendable
 13 |     sharedQueue.async(execute: block)
    |                                `- warning: passing non-Sendable parameter 'block' to function expecting a '@Sendable' closure
 14 |   }
 15 |
/host/spi-builder-workspace/Source/Future.swift:17:46: warning: passing non-Sendable parameter 'block' to function expecting a '@Sendable' closure
 14 |   }
 15 |
 16 |   static func async(_ group: Group, block: @escaping () -> Void) {
    |                                     `- note: parameter 'block' is implicitly non-Sendable
 17 |     sharedQueue.async(group: group, execute: block)
    |                                              `- warning: passing non-Sendable parameter 'block' to function expecting a '@Sendable' closure
 18 |   }
 19 |
/host/spi-builder-workspace/Source/Future.swift:222:60: warning: string interpolation produces a debug description for a function value; did you mean to make this explicit?
220 |     let callbacks: [CompletionCallback] = condition.synchronized { _ in
221 |       if result != nil {
222 |         fatalError("Tried to complete PromiseFuture with \(value.value), but " +
    |                                                            |     `- note: use 'String(describing:)' to silence this warning
    |                                                            `- warning: string interpolation produces a debug description for a function value; did you mean to make this explicit?
223 |           "the future is already completed with \(result!)")
224 |       }
/host/spi-builder-workspace/Source/Condition.swift:6:43: error: cannot find type 'pthread_mutex_t' in scope
 4 |   public typealias WaitCallback = () -> Void
 5 |
 6 |   private let mutex: UnsafeMutablePointer<pthread_mutex_t>
   |                                           `- error: cannot find type 'pthread_mutex_t' in scope
 7 |   private let condition: UnsafeMutablePointer<pthread_cond_t>
 8 |
/host/spi-builder-workspace/Source/Condition.swift:7:47: error: cannot find type 'pthread_cond_t' in scope
 5 |
 6 |   private let mutex: UnsafeMutablePointer<pthread_mutex_t>
 7 |   private let condition: UnsafeMutablePointer<pthread_cond_t>
   |                                               `- error: cannot find type 'pthread_cond_t' in scope
 8 |
 9 |   private lazy var waitCallback: WaitCallback = { [unowned self] in self.wait() }
[7/11] Compiling MiniFuture Condition.swift
/host/spi-builder-workspace/Source/Condition.swift:6:43: error: cannot find type 'pthread_mutex_t' in scope
 4 |   public typealias WaitCallback = () -> Void
 5 |
 6 |   private let mutex: UnsafeMutablePointer<pthread_mutex_t>
   |                                           `- error: cannot find type 'pthread_mutex_t' in scope
 7 |   private let condition: UnsafeMutablePointer<pthread_cond_t>
 8 |
/host/spi-builder-workspace/Source/Condition.swift:7:47: error: cannot find type 'pthread_cond_t' in scope
 5 |
 6 |   private let mutex: UnsafeMutablePointer<pthread_mutex_t>
 7 |   private let condition: UnsafeMutablePointer<pthread_cond_t>
   |                                               `- error: cannot find type 'pthread_cond_t' in scope
 8 |
 9 |   private lazy var waitCallback: WaitCallback = { [unowned self] in self.wait() }
/host/spi-builder-workspace/Source/Condition.swift:12:13: error: generic parameter 'Pointee' could not be inferred
10 |
11 |   init() {
12 |     mutex = UnsafeMutablePointer.allocate(capacity: 1)
   |             |- error: generic parameter 'Pointee' could not be inferred
   |             `- note: explicitly specify the generic arguments to fix this issue
13 |     let mutexRes = pthread_mutex_init(mutex, nil)
14 |     assert(mutexRes == 0)
/host/spi-builder-workspace/Source/Condition.swift:13:20: error: cannot find 'pthread_mutex_init' in scope
11 |   init() {
12 |     mutex = UnsafeMutablePointer.allocate(capacity: 1)
13 |     let mutexRes = pthread_mutex_init(mutex, nil)
   |                    `- error: cannot find 'pthread_mutex_init' in scope
14 |     assert(mutexRes == 0)
15 |     condition = UnsafeMutablePointer.allocate(capacity: 1)
/host/spi-builder-workspace/Source/Condition.swift:13:46: error: 'nil' requires a contextual type
11 |   init() {
12 |     mutex = UnsafeMutablePointer.allocate(capacity: 1)
13 |     let mutexRes = pthread_mutex_init(mutex, nil)
   |                                              `- error: 'nil' requires a contextual type
14 |     assert(mutexRes == 0)
15 |     condition = UnsafeMutablePointer.allocate(capacity: 1)
/host/spi-builder-workspace/Source/Condition.swift:15:17: error: generic parameter 'Pointee' could not be inferred
13 |     let mutexRes = pthread_mutex_init(mutex, nil)
14 |     assert(mutexRes == 0)
15 |     condition = UnsafeMutablePointer.allocate(capacity: 1)
   |                 |- error: generic parameter 'Pointee' could not be inferred
   |                 `- note: explicitly specify the generic arguments to fix this issue
16 |     let condRes = pthread_cond_init(condition, nil)
17 |     assert(condRes == 0)
/host/spi-builder-workspace/Source/Condition.swift:16:19: error: cannot find 'pthread_cond_init' in scope
14 |     assert(mutexRes == 0)
15 |     condition = UnsafeMutablePointer.allocate(capacity: 1)
16 |     let condRes = pthread_cond_init(condition, nil)
   |                   `- error: cannot find 'pthread_cond_init' in scope
17 |     assert(condRes == 0)
18 |   }
/host/spi-builder-workspace/Source/Condition.swift:16:48: error: 'nil' requires a contextual type
14 |     assert(mutexRes == 0)
15 |     condition = UnsafeMutablePointer.allocate(capacity: 1)
16 |     let condRes = pthread_cond_init(condition, nil)
   |                                                `- error: 'nil' requires a contextual type
17 |     assert(condRes == 0)
18 |   }
/host/spi-builder-workspace/Source/Condition.swift:21:19: error: cannot find 'pthread_cond_destroy' in scope
19 |
20 |   deinit {
21 |     let condRes = pthread_cond_destroy(condition)
   |                   `- error: cannot find 'pthread_cond_destroy' in scope
22 |     assert(condRes == 0)
23 |     condition.deallocate(capacity: 1)
/host/spi-builder-workspace/Source/Condition.swift:24:20: error: cannot find 'pthread_mutex_destroy' in scope
22 |     assert(condRes == 0)
23 |     condition.deallocate(capacity: 1)
24 |     let mutexRes = pthread_mutex_destroy(mutex)
   |                    `- error: cannot find 'pthread_mutex_destroy' in scope
25 |     assert(mutexRes == 0)
26 |     mutex.deallocate(capacity: 1)
/host/spi-builder-workspace/Source/Condition.swift:37:15: error: cannot find 'pthread_cond_signal' in scope
35 |
36 |   public func signal() {
37 |     let res = pthread_cond_signal(condition)
   |               `- error: cannot find 'pthread_cond_signal' in scope
38 |     assert(res == 0)
39 |   }
/host/spi-builder-workspace/Source/Condition.swift:42:15: error: cannot find 'pthread_mutex_lock' in scope
40 |
41 |   private func lock() {
42 |     let res = pthread_mutex_lock(mutex)
   |               `- error: cannot find 'pthread_mutex_lock' in scope
43 |     assert(res == 0)
44 |   }
/host/spi-builder-workspace/Source/Condition.swift:47:15: error: cannot find 'pthread_mutex_unlock' in scope
45 |
46 |   private func unlock() {
47 |     let res = pthread_mutex_unlock(mutex)
   |               `- error: cannot find 'pthread_mutex_unlock' in scope
48 |     assert(res == 0)
49 |   }
/host/spi-builder-workspace/Source/Condition.swift:52:15: error: cannot find 'pthread_cond_wait' in scope
50 |
51 |   private func wait() {
52 |     let res = pthread_cond_wait(condition, mutex)
   |               `- error: cannot find 'pthread_cond_wait' in scope
53 |     assert(res == 0)
54 |   }
BUILD FAILURE 6.3 android