Build Information
Failed to build Promise, reference main (82e62b), with Swift 6.1 for Linux on 12 Jul 2025 21:08:10 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ObuchiYuki/Promise.git
Reference: main
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
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 82e62be add comments
Cloned https://github.com/ObuchiYuki/Promise.git
Revision (git rev-parse @):
82e62beb54a8d091036c43dbca3d19f992b579b6
SUCCESS checkout https://github.com/ObuchiYuki/Promise.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/ObuchiYuki/Promise.git
https://github.com/ObuchiYuki/Promise.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.5",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "Promise",
"name" : "Promise",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "4.0"
}
],
"products" : [
{
"name" : "Promise",
"targets" : [
"Promise"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PromiseTests",
"module_type" : "SwiftTarget",
"name" : "PromiseTests",
"path" : "Tests/PromiseTests",
"sources" : [
"Promise+Test.swift",
"PromiseCombinationTests.swift",
"PromiseConcurrencyTests.swift",
"PromiseDeinitTests.swift",
"PromiseMultithreadTests.swift",
"PromiseOperatorTests.swift",
"PromisePublisherTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Promise"
],
"type" : "test"
},
{
"c99name" : "Promise",
"module_type" : "SwiftTarget",
"name" : "Promise",
"path" : "Sources/Promise",
"product_memberships" : [
"Promise"
],
"sources" : [
"Ex+Foundation/Promise+GCD.swift",
"Ex+Foundation/Promise+MeasureInterval.swift",
"Ex+Foundation/Promise+Timeout.swift",
"Ex+Foundation/Promise+URLSession.swift",
"Ex+Foundation/Promise+Wait.swift",
"Ex+Swift/Promise+Combine.swift",
"Ex+Swift/Promise+Concurrency.swift",
"Lock.swift",
"Promise+Cancel.swift",
"Promise+Combination.swift",
"Promise+Debug.swift",
"Promise+Init.swift",
"Promise+Operators.swift",
"Promise+OptionalResolve.swift",
"Promise+Util.swift",
"Promise.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2e2b3aca8600f890617c2faa770b70e33c1dfd303d6f92b308423b89ef6bde64
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2094] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.70s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (3.09s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3425] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.49s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.21s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.5
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/19] Compiling Promise Promise+Operators.swift
[6/19] Compiling Promise Promise+OptionalResolve.swift
[7/21] Compiling Promise Promise+Debug.swift
[8/21] Compiling Promise Promise+Init.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/21] Compiling Promise Promise+Cancel.swift
[10/21] Compiling Promise Promise+Combination.swift
[11/21] Compiling Promise Promise+GCD.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:68:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
66 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
67 | let promise = Promise<Output, Failure>()
68 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
69 | return promise
70 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:76:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
74 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
75 | let promise = Promise<Output, Failure>()
76 | queue.asyncUnsafe { promise.resolve(output()) }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
77 | return promise
78 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:84:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
82 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
83 | let promise = Promise<Output, Failure>()
84 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
85 | return promise
86 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:92:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
90 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
91 | let promise = Promise<Output, Failure>()
92 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
93 | return promise
94 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:99:40: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
97 | @inlinable
98 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
99 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
100 | }
101 | }
[12/21] Compiling Promise Promise+MeasureInterval.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:68:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
66 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
67 | let promise = Promise<Output, Failure>()
68 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
69 | return promise
70 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:76:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
74 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
75 | let promise = Promise<Output, Failure>()
76 | queue.asyncUnsafe { promise.resolve(output()) }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
77 | return promise
78 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:84:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
82 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
83 | let promise = Promise<Output, Failure>()
84 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
85 | return promise
86 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:92:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
90 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
91 | let promise = Promise<Output, Failure>()
92 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
93 | return promise
94 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:99:40: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
97 | @inlinable
98 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
99 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
100 | }
101 | }
[13/21] Emitting module Promise
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:68:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
66 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
67 | let promise = Promise<Output, Failure>()
68 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
69 | return promise
70 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:76:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
74 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
75 | let promise = Promise<Output, Failure>()
76 | queue.asyncUnsafe { promise.resolve(output()) }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
77 | return promise
78 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:84:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
82 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
83 | let promise = Promise<Output, Failure>()
84 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
85 | return promise
86 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:92:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
90 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
91 | let promise = Promise<Output, Failure>()
92 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
93 | return promise
94 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:99:40: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
97 | @inlinable
98 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
99 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
100 | }
101 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
9 | import Foundation
10 |
11 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 |
13 | /// Convenience wrapper for `data(for:)` that returns only the raw data.
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:61:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 | @inlinable
60 | public static func async(contentsOf url: URL) -> Promise<Data, Error> {
61 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | }
63 | }
/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")
[14/21] 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
9 | import Foundation
10 |
11 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 |
13 | /// Convenience wrapper for `data(for:)` that returns only the raw data.
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:61:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 | @inlinable
60 | public static func async(contentsOf url: URL) -> Promise<Data, Error> {
61 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | }
63 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:21:35: error: cannot find type 'URLRequest' in scope
19 | /// Same as ``data(for:)`` but for `URLRequest`.
20 | @inlinable
21 | public func data(for request: URLRequest) -> Promise<Data, Error> {
| `- error: cannot find type 'URLRequest' in scope
22 | self.fetch(request).map { $0.1 }
23 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:37:34: error: cannot find type 'URLRequest' in scope
35 | /// * a synthesized `NSError` when no data/error is produced.
36 | @inlinable
37 | public func fetch(_ request: URLRequest) -> Promise<(URLResponse, Data), Error> {
| `- error: cannot find type 'URLRequest' in scope
38 | let promise = Promise<(URLResponse, Data), Error>()
39 |
[15/21] 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
9 | import Foundation
10 |
11 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 |
13 | /// Convenience wrapper for `data(for:)` that returns only the raw data.
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:61:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 | @inlinable
60 | public static func async(contentsOf url: URL) -> Promise<Data, Error> {
61 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | }
63 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:21:35: error: cannot find type 'URLRequest' in scope
19 | /// Same as ``data(for:)`` but for `URLRequest`.
20 | @inlinable
21 | public func data(for request: URLRequest) -> Promise<Data, Error> {
| `- error: cannot find type 'URLRequest' in scope
22 | self.fetch(request).map { $0.1 }
23 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:37:34: error: cannot find type 'URLRequest' in scope
35 | /// * a synthesized `NSError` when no data/error is produced.
36 | @inlinable
37 | public func fetch(_ request: URLRequest) -> Promise<(URLResponse, Data), Error> {
| `- error: cannot find type 'URLRequest' in scope
38 | let promise = Promise<(URLResponse, Data), Error>()
39 |
[16/21] Compiling Promise Promise+Wait.swift
[17/21] Compiling Promise Promise+Combine.swift
[18/21] 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")
[19/21] 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")
[20/21] Compiling Promise Promise+Util.swift
[21/21] Compiling Promise Promise.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2e2b3aca8600f890617c2faa770b70e33c1dfd303d6f92b308423b89ef6bde64
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/18] Compiling Promise Promise+GCD.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:68:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
66 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
67 | let promise = Promise<Output, Failure>()
68 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
69 | return promise
70 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:76:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
74 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
75 | let promise = Promise<Output, Failure>()
76 | queue.asyncUnsafe { promise.resolve(output()) }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
77 | return promise
78 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:84:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
82 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
83 | let promise = Promise<Output, Failure>()
84 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
85 | return promise
86 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:92:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
90 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
91 | let promise = Promise<Output, Failure>()
92 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
93 | return promise
94 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:99:40: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
97 | @inlinable
98 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
99 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
100 | }
101 | }
[5/18] Compiling Promise Promise+MeasureInterval.swift
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:68:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
66 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
67 | let promise = Promise<Output, Failure>()
68 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
69 | return promise
70 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:76:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
74 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
75 | let promise = Promise<Output, Failure>()
76 | queue.asyncUnsafe { promise.resolve(output()) }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
77 | return promise
78 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:84:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
82 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
83 | let promise = Promise<Output, Failure>()
84 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
85 | return promise
86 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:92:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
90 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
91 | let promise = Promise<Output, Failure>()
92 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
93 | return promise
94 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:99:40: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
97 | @inlinable
98 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
99 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
100 | }
101 | }
[6/20] Compiling Promise Promise+Wait.swift
[7/20] Compiling Promise Promise+Combine.swift
[8/20] 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")
[9/20] 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")
[10/20] 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
9 | import Foundation
10 |
11 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 |
13 | /// Convenience wrapper for `data(for:)` that returns only the raw data.
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:61:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 | @inlinable
60 | public static func async(contentsOf url: URL) -> Promise<Data, Error> {
61 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | }
63 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:21:35: error: cannot find type 'URLRequest' in scope
19 | /// Same as ``data(for:)`` but for `URLRequest`.
20 | @inlinable
21 | public func data(for request: URLRequest) -> Promise<Data, Error> {
| `- error: cannot find type 'URLRequest' in scope
22 | self.fetch(request).map { $0.1 }
23 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:37:34: error: cannot find type 'URLRequest' in scope
35 | /// * a synthesized `NSError` when no data/error is produced.
36 | @inlinable
37 | public func fetch(_ request: URLRequest) -> Promise<(URLResponse, Data), Error> {
| `- error: cannot find type 'URLRequest' in scope
38 | let promise = Promise<(URLResponse, Data), Error>()
39 |
[11/20] 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
9 | import Foundation
10 |
11 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 |
13 | /// Convenience wrapper for `data(for:)` that returns only the raw data.
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:61:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 | @inlinable
60 | public static func async(contentsOf url: URL) -> Promise<Data, Error> {
61 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | }
63 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:21:35: error: cannot find type 'URLRequest' in scope
19 | /// Same as ``data(for:)`` but for `URLRequest`.
20 | @inlinable
21 | public func data(for request: URLRequest) -> Promise<Data, Error> {
| `- error: cannot find type 'URLRequest' in scope
22 | self.fetch(request).map { $0.1 }
23 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:37:34: error: cannot find type 'URLRequest' in scope
35 | /// * a synthesized `NSError` when no data/error is produced.
36 | @inlinable
37 | public func fetch(_ request: URLRequest) -> Promise<(URLResponse, Data), Error> {
| `- error: cannot find type 'URLRequest' in scope
38 | let promise = Promise<(URLResponse, Data), Error>()
39 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/20] Emitting module Promise
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:68:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
66 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) -> ()) -> Promise<Output, Failure> {
67 | let promise = Promise<Output, Failure>()
68 | queue.asyncUnsafe { handler(promise.resolve, promise.reject) }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
69 | return promise
70 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:76:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
74 | public static func dispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () -> Output) -> Promise<Output, Failure> where Failure == Never {
75 | let promise = Promise<Output, Failure>()
76 | queue.asyncUnsafe { promise.resolve(output()) }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
77 | return promise
78 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:84:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
82 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ handler: @Sendable @escaping (@escaping (Output) -> (), @escaping (Failure) -> ()) throws -> ()) -> Promise<Output, Failure> where Failure == Error {
83 | let promise = Promise<Output, Failure>()
84 | queue.asyncUnsafe { do { try handler(promise.resolve, promise.reject) } catch { promise.reject(error) } }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
85 | return promise
86 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:92:15: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
90 | public static func tryDispatchUnsafe(on queue: DispatchQueue = .global(), @_implicitSelfCapture _ output: @Sendable @escaping () throws -> Output) -> Promise<Output, Failure> where Failure == Error {
91 | let promise = Promise<Output, Failure>()
92 | queue.asyncUnsafe { do { promise.resolve(try output()) } catch { promise.reject(error) } }
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
93 | return promise
94 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+GCD.swift:99:40: error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
97 | @inlinable
98 | public func receiveUnsafe(on queue: DispatchQueue) -> Promise<Output, Failure> {
99 | self.receiveUnsafe(on: { queue.asyncUnsafe(execute: $0) })
| `- error: value of type 'DispatchQueue' has no member 'asyncUnsafe'
100 | }
101 | }
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
9 | import Foundation
10 |
11 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 |
13 | /// Convenience wrapper for `data(for:)` that returns only the raw data.
/host/spi-builder-workspace/Sources/Promise/Ex+Foundation/Promise+URLSession.swift:61:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 | @inlinable
60 | public static func async(contentsOf url: URL) -> Promise<Data, Error> {
61 | URLSession.shared.data(for: url)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 | }
63 | }
/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")
[13/20] Compiling Promise Promise+Util.swift
[14/20] Compiling Promise Promise.swift
[15/20] Compiling Promise Promise+Debug.swift
[16/20] Compiling Promise Promise+Init.swift
[17/20] Compiling Promise Promise+Operators.swift
[18/20] Compiling Promise Promise+OptionalResolve.swift
[19/20] Compiling Promise Promise+Cancel.swift
[20/20] Compiling Promise Promise+Combination.swift
BUILD FAILURE 6.1 linux