Build Information
Failed to build Promise, reference main (82e62b), with Swift 6.0 for Linux on 12 Jul 2025 21:07:02 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.0
Building package at path: $PWD
https://github.com/ObuchiYuki/Promise.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:f0ebbd71bee66c692411a61ab9a7ee6edc82316b7a7b4c6173cc06c00f20ed39
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-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.45s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (2.95s)
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.44s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.79s)
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
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
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/19] Compiling Promise Promise+Debug.swift
[6/19] Compiling Promise Promise+Init.swift
[7/21] Compiling Promise Promise+Util.swift
[8/21] Compiling Promise Promise.swift
[9/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")
[10/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")
[11/21] Compiling Promise Promise+Wait.swift
[12/21] Compiling Promise Promise+Combine.swift
[13/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 |
[14/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 |
[15/21] Compiling Promise Promise+Operators.swift
[16/21] Compiling Promise Promise+OptionalResolve.swift
[17/21] Compiling Promise Promise+Cancel.swift
[18/21] Compiling Promise Promise+Combination.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/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")
[20/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 | }
[21/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 | }
BUILD FAILURE 6.0 linux