The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Promise, reference 2.0.1 (d85a51), with Swift 6.2 for Android on 12 Jul 2025 13:45:53 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ObuchiYuki/Promise.git
Reference: 2.0.1
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/ObuchiYuki/Promise
 * tag               2.0.1      -> FETCH_HEAD
HEAD is now at d85a515 fix concurrency error
Cloned https://github.com/ObuchiYuki/Promise.git
Revision (git rev-parse @):
d85a515d6e662f8c47d8f480f092d9bd1a945c2e
SUCCESS checkout https://github.com/ObuchiYuki/Promise.git at 2.0.1
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ObuchiYuki/Promise.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/17] Compiling Promise Promise+Wait.swift
[4/17] Compiling Promise Promise+Combine.swift
[5/17] Emitting module Promise
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:51:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
49 |     public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
50 |         let promise = Promise<Output, Failure>()
51 |         queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
   |               `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
52 |         return promise
53 |     }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:58:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
56 |     public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
57 |         let promise = Promise<Output, Failure>()
58 |         queue.asyncUnsafe { promise.resolve(output()) }
   |               `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
59 |         return promise
60 |     }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:65:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
63 |     public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
64 |         let promise = Promise<Output, Failure>()
65 |         queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
   |               `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
66 |         return promise
67 |     }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:72:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
70 |     public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
71 |         let promise = Promise<Output, Failure>()
72 |         queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
   |               `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
73 |         return promise
74 |     }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:78:40: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
76 |     @inlinable
77 |     public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
78 |         self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
   |                                        `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
79 |     }
80 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 9 | import Foundation
10 |
11 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
12 |     @inlinable public func data(for url: URL) -> Promise<Data, Error> {
13 |         self.fetch(url).map { $0.1 }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:46:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | extension Data {
45 |     @inlinable public static func async(contentsOf url: URL) -> Promise<Data, Error> {
46 |         URLSession.shared.data(for: url)
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 |     }
48 | }
/host/spi-builder-workspace/Sources/Promise/Lock.swift:30:62: error: cannot convert value of type 'Int' to expected argument type 'Int32'
 28 |         _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
 29 |         #if DEBUG
 30 |         _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
    |                                                              `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
 31 |         #endif
 32 |         return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:64:62: error: cannot convert value of type 'Int' to expected argument type 'Int32'
 62 |         let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
 63 |         _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
 64 |         _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
    |                                                              `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
 65 |         #if DEBUG
 66 |         _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[6/17] Compiling Promise Promise+GCD.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:51:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
49 |     public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
50 |         let promise = Promise<Output, Failure>()
51 |         queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
   |               `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
52 |         return promise
53 |     }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:58:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
56 |     public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
57 |         let promise = Promise<Output, Failure>()
58 |         queue.asyncUnsafe { promise.resolve(output()) }
   |               `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
59 |         return promise
60 |     }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:65:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
63 |     public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
64 |         let promise = Promise<Output, Failure>()
65 |         queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
   |               `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
66 |         return promise
67 |     }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:72:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
70 |     public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
71 |         let promise = Promise<Output, Failure>()
72 |         queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
   |               `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
73 |         return promise
74 |     }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:78:40: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
76 |     @inlinable
77 |     public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
78 |         self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
   |                                        `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
79 |     }
80 | }
[7/17] Compiling Promise Promise+MeasureInterval.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:51:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
49 |     public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
50 |         let promise = Promise<Output, Failure>()
51 |         queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
   |               `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
52 |         return promise
53 |     }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:58:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
56 |     public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
57 |         let promise = Promise<Output, Failure>()
58 |         queue.asyncUnsafe { promise.resolve(output()) }
   |               `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
59 |         return promise
60 |     }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:65:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
63 |     public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
64 |         let promise = Promise<Output, Failure>()
65 |         queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
   |               `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
66 |         return promise
67 |     }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:72:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
70 |     public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
71 |         let promise = Promise<Output, Failure>()
72 |         queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
   |               `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
73 |         return promise
74 |     }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:78:40: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
76 |     @inlinable
77 |     public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
78 |         self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
   |                                        `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
79 |     }
80 | }
[8/17] Compiling Promise Promise+Timeout.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 9 | import Foundation
10 |
11 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
12 |     @inlinable public func data(for url: URL) -> Promise<Data, Error> {
13 |         self.fetch(url).map { $0.1 }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:46:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | extension Data {
45 |     @inlinable public static func async(contentsOf url: URL) -> Promise<Data, Error> {
46 |         URLSession.shared.data(for: url)
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 |     }
48 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:16:46: error: cannot find type 'URLRequest' in scope
14 |     }
15 |
16 |     @inlinable public func data(for request: URLRequest) -> Promise<Data, Error> {
   |                                              `- error: cannot find type 'URLRequest' in scope
17 |         self.fetch(request).map { $0.1 }
18 |     }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:24:45: error: cannot find type 'URLRequest' in scope
22 |     }
23 |
24 |     @inlinable public func fetch(_ request: URLRequest) -> Promise<(URLResponse, Data), Error> {
   |                                             `- error: cannot find type 'URLRequest' in scope
25 |         let promise = Promise<(URLResponse, Data), Error>()
26 |
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[9/17] Compiling Promise Promise+URLSession.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 9 | import Foundation
10 |
11 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
12 |     @inlinable public func data(for url: URL) -> Promise<Data, Error> {
13 |         self.fetch(url).map { $0.1 }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:46:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | extension Data {
45 |     @inlinable public static func async(contentsOf url: URL) -> Promise<Data, Error> {
46 |         URLSession.shared.data(for: url)
   |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 |     }
48 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:16:46: error: cannot find type 'URLRequest' in scope
14 |     }
15 |
16 |     @inlinable public func data(for request: URLRequest) -> Promise<Data, Error> {
   |                                              `- error: cannot find type 'URLRequest' in scope
17 |         self.fetch(request).map { $0.1 }
18 |     }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:24:45: error: cannot find type 'URLRequest' in scope
22 |     }
23 |
24 |     @inlinable public func fetch(_ request: URLRequest) -> Promise<(URLResponse, Data), Error> {
   |                                             `- error: cannot find type 'URLRequest' in scope
25 |         let promise = Promise<(URLResponse, Data), Error>()
26 |
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[10/19] Compiling Promise Promise+Debug.swift
[11/19] Compiling Promise Promise+Init.swift
[12/19] Compiling Promise Promise+Operators.swift
[13/19] Compiling Promise Promise+OptionalResolve.swift
[14/19] Compiling Promise Promise+Cancel.swift
[15/19] Compiling Promise Promise+Combination.swift
[16/19] Compiling Promise Promise+Concurrency.swift
/host/spi-builder-workspace/Sources/Promise/Lock.swift:30:62: error: cannot convert value of type 'Int' to expected argument type 'Int32'
 28 |         _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
 29 |         #if DEBUG
 30 |         _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
    |                                                              `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
 31 |         #endif
 32 |         return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:64:62: error: cannot convert value of type 'Int' to expected argument type 'Int32'
 62 |         let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
 63 |         _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
 64 |         _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
    |                                                              `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
 65 |         #if DEBUG
 66 |         _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
[17/19] Compiling Promise Lock.swift
/host/spi-builder-workspace/Sources/Promise/Lock.swift:30:62: error: cannot convert value of type 'Int' to expected argument type 'Int32'
 28 |         _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
 29 |         #if DEBUG
 30 |         _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
    |                                                              `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
 31 |         #endif
 32 |         return UnsafePointer(attr)
/host/spi-builder-workspace/Sources/Promise/Lock.swift:64:62: error: cannot convert value of type 'Int' to expected argument type 'Int32'
 62 |         let attr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
 63 |         _HANDLE_PTHREAD_CALL(pthread_mutexattr_init(attr), "pthread_mutexattr_init")
 64 |         _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE), "pthread_mutexattr_settype")
    |                                                              `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
 65 |         #if DEBUG
 66 |         _HANDLE_PTHREAD_CALL(pthread_mutexattr_settype(attr, PTHREAD_MUTEX_ERRORCHECK), "pthread_mutexattr_settype")
[18/19] Compiling Promise Promise+Util.swift
[19/19] Compiling Promise Promise.swift
BUILD FAILURE 6.2 android