Build Information
Failed to build FutureResult, reference 1.0.0 (04e845), with Swift 6.1 for Wasm on 29 May 2025 06:19:13 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tapsandswipes/FutureResult.git
Reference: 1.0.0
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/tapsandswipes/FutureResult
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 04e8452 Update dependency
Cloned https://github.com/tapsandswipes/FutureResult.git
Revision (git rev-parse @):
04e8452df265ee7b0c89707d1b2e12a91d212b1a
SUCCESS checkout https://github.com/tapsandswipes/FutureResult.git at 1.0.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/tapsandswipes/FutureResult.git
https://github.com/tapsandswipes/FutureResult.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "chainable",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/tapsandswipes/Chainable.git"
}
],
"manifest_display_name" : "FutureResult",
"name" : "FutureResult",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "FutureResult",
"targets" : [
"FutureResult"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "FunctionComposition",
"targets" : [
"FunctionComposition"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "ResultExtras",
"targets" : [
"ResultExtras"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ResultExtras",
"module_type" : "SwiftTarget",
"name" : "ResultExtras",
"path" : "Sources/ResultExtras",
"product_dependencies" : [
"Chainable"
],
"product_memberships" : [
"FutureResult",
"ResultExtras"
],
"sources" : [
"Result+Accessors.swift",
"Result+Chainable.swift",
"Result+Composition.swift",
"Result+Initializers.swift",
"Result+Transforms.swift",
"Result+Utils.swift"
],
"target_dependencies" : [
"FunctionComposition"
],
"type" : "library"
},
{
"c99name" : "FutureResultTests",
"module_type" : "SwiftTarget",
"name" : "FutureResultTests",
"path" : "Tests/FutureResultTests",
"sources" : [
"FunctionCompositionTests.swift",
"FutureResult+AsyncTests.swift",
"FutureResult+ChainableTests.swift",
"FutureResultTests.swift",
"TestHelpers.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"FutureResult",
"ResultExtras",
"FunctionComposition"
],
"type" : "test"
},
{
"c99name" : "FutureResult",
"module_type" : "SwiftTarget",
"name" : "FutureResult",
"path" : "Sources/FutureResult",
"product_dependencies" : [
"Chainable"
],
"product_memberships" : [
"FutureResult"
],
"sources" : [
"Atomic.swift",
"FutureResult+Async.swift",
"FutureResult+Chainable.swift",
"FutureResult+Composition.swift",
"FutureResult+Debug.swift",
"FutureResult+Functor.swift",
"FutureResult+Initializers.swift",
"FutureResult+Monoid.swift",
"FutureResult+Scheduling.swift",
"FutureResult+Transforms.swift",
"FutureResult+Utils.swift",
"FutureResult.swift"
],
"target_dependencies" : [
"FunctionComposition",
"ResultExtras"
],
"type" : "library"
},
{
"c99name" : "FunctionComposition",
"module_type" : "SwiftTarget",
"name" : "FunctionComposition",
"path" : "Sources/FunctionComposition",
"product_memberships" : [
"FutureResult",
"FunctionComposition",
"ResultExtras"
],
"sources" : [
"FunctionComposition.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/tapsandswipes/Chainable.git
[1/48] Fetching chainable
Fetched https://github.com/tapsandswipes/Chainable.git from cache (0.49s)
Computing version for https://github.com/tapsandswipes/Chainable.git
Computed https://github.com/tapsandswipes/Chainable.git at 1.0.0 (1.98s)
Creating working copy for https://github.com/tapsandswipes/Chainable.git
Working copy of https://github.com/tapsandswipes/Chainable.git resolved at 1.0.0
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/9] Emitting module Chainable
[7/9] Emitting module FunctionComposition
[8/9] Compiling Chainable Chainable.swift
[9/9] Compiling FunctionComposition FunctionComposition.swift
[12/18] Compiling ResultExtras Result+Utils.swift
[13/18] Compiling ResultExtras Result+Initializers.swift
[14/18] Compiling ResultExtras Result+Transforms.swift
[15/18] Compiling ResultExtras Result+Chainable.swift
/host/spi-builder-workspace/Sources/ResultExtras/Result+Chainable.swift:4:1: warning: extension declares a conformance of imported type 'Result' to imported protocol 'Chainable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
2 | import Chainable
3 |
4 | extension Result: Chainable {}
| |- warning: extension declares a conformance of imported type 'Result' to imported protocol 'Chainable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
5 |
6 | public
[16/18] Compiling ResultExtras Result+Accessors.swift
[17/18] Emitting module ResultExtras
/host/spi-builder-workspace/Sources/ResultExtras/Result+Chainable.swift:4:1: warning: extension declares a conformance of imported type 'Result' to imported protocol 'Chainable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
2 | import Chainable
3 |
4 | extension Result: Chainable {}
| |- warning: extension declares a conformance of imported type 'Result' to imported protocol 'Chainable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
5 |
6 | public
[18/18] Compiling ResultExtras Result+Composition.swift
[20/31] Compiling FutureResult Atomic.swift
/host/spi-builder-workspace/Sources/FutureResult/Atomic.swift:4:25: error: cannot find 'DispatchQueue' in scope
2 |
3 | final class Atomic<A> {
4 | private let queue = DispatchQueue(label: "Atomic serial queue")
| `- error: cannot find 'DispatchQueue' in scope
5 | private var _value: A
6 | init(_ value: A) {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Async.swift:9:65: warning: converting a value of type '@Sendable (__shared sending Result<R, E>) -> ()' to type '(Result<R, E>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
7 | extension FutureResult {
8 | func run() async throws -> R {
9 | try await withCheckedThrowingContinuation { self.run($0.resume) }
| |- warning: converting a value of type '@Sendable (__shared sending Result<R, E>) -> ()' to type '(Result<R, E>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
10 | }
11 | }
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Async.swift:17:69: warning: converting a value of type '@Sendable (__shared sending Result<(), E>) -> ()' to type '(Result<(), E>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
15 | extension FutureResult where R == Void {
16 | func run() async throws {
17 | _ = try await withCheckedThrowingContinuation { self.run($0.resume(with:)) }
| |- warning: converting a value of type '@Sendable (__shared sending Result<(), E>) -> ()' to type '(Result<(), E>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
18 | }
19 | }
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Async.swift:25:53: warning: converting a value of type '@Sendable (__shared sending Result<R, Never>) -> ()' to type '(Result<R, Never>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
23 | extension FutureResult where E == Never {
24 | func run() async -> R {
25 | await withCheckedContinuation { self.run($0.resume) }
| |- warning: converting a value of type '@Sendable (__shared sending Result<R, Never>) -> ()' to type '(Result<R, Never>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
26 | }
27 | }
[21/31] Compiling FutureResult FutureResult+Async.swift
/host/spi-builder-workspace/Sources/FutureResult/Atomic.swift:4:25: error: cannot find 'DispatchQueue' in scope
2 |
3 | final class Atomic<A> {
4 | private let queue = DispatchQueue(label: "Atomic serial queue")
| `- error: cannot find 'DispatchQueue' in scope
5 | private var _value: A
6 | init(_ value: A) {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Async.swift:9:65: warning: converting a value of type '@Sendable (__shared sending Result<R, E>) -> ()' to type '(Result<R, E>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
7 | extension FutureResult {
8 | func run() async throws -> R {
9 | try await withCheckedThrowingContinuation { self.run($0.resume) }
| |- warning: converting a value of type '@Sendable (__shared sending Result<R, E>) -> ()' to type '(Result<R, E>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
10 | }
11 | }
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Async.swift:17:69: warning: converting a value of type '@Sendable (__shared sending Result<(), E>) -> ()' to type '(Result<(), E>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
15 | extension FutureResult where R == Void {
16 | func run() async throws {
17 | _ = try await withCheckedThrowingContinuation { self.run($0.resume(with:)) }
| |- warning: converting a value of type '@Sendable (__shared sending Result<(), E>) -> ()' to type '(Result<(), E>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
18 | }
19 | }
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Async.swift:25:53: warning: converting a value of type '@Sendable (__shared sending Result<R, Never>) -> ()' to type '(Result<R, Never>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
23 | extension FutureResult where E == Never {
24 | func run() async -> R {
25 | await withCheckedContinuation { self.run($0.resume) }
| |- warning: converting a value of type '@Sendable (__shared sending Result<R, Never>) -> ()' to type '(Result<R, Never>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
26 | }
27 | }
[22/32] Compiling FutureResult FutureResult+Utils.swift
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Utils.swift:52:19: error: cannot find type 'Progress' in scope
50 | public
51 | protocol ProgressReporter {
52 | var progress: Progress { get }
| `- error: cannot find type 'Progress' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Utils.swift:58:26: error: cannot find type 'Progress' in scope
56 | struct FutureResultProgress<R, E: Error>: ProgressReporter {
57 | public let future: FutureResult<R, E>
58 | public let progress: Progress
| `- error: cannot find type 'Progress' in scope
59 |
60 | public init(future: FutureResult<R, E>, progress: Progress) {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Utils.swift:60:55: error: cannot find type 'Progress' in scope
58 | public let progress: Progress
59 |
60 | public init(future: FutureResult<R, E>, progress: Progress) {
| `- error: cannot find type 'Progress' in scope
61 | self.future = future
62 | self.progress = progress
[23/32] Compiling FutureResult FutureResult+Chainable.swift
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Composition.swift:14:29: error: cannot find 'DispatchGroup' in scope
12 | FutureResult<[Result<U, UE>], E> { cb in
13 | let results: Atomic<[Result<U, UE>]> = Atomic([])
14 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
15 | r.forEach {
16 | group.enter()
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Composition.swift:48:21: error: cannot find 'DispatchGroup' in scope
46 | var f2r: Result<B, E>!
47 |
48 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
49 |
50 | group.enter(); f1.run { f1r = $0; group.leave() }
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Composition.swift:70:21: error: cannot find 'DispatchGroup' in scope
68 | var f3r: Result<C, E>!
69 |
70 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
71 |
72 | group.enter(); f1.run { f1r = $0; group.leave() }
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Composition.swift:95:21: error: cannot find 'DispatchGroup' in scope
93 | var f4r: Result<D, E>!
94 |
95 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
96 |
97 | group.enter(); f1.run { f1r = $0; group.leave() }
[24/32] Compiling FutureResult FutureResult+Composition.swift
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Composition.swift:14:29: error: cannot find 'DispatchGroup' in scope
12 | FutureResult<[Result<U, UE>], E> { cb in
13 | let results: Atomic<[Result<U, UE>]> = Atomic([])
14 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
15 | r.forEach {
16 | group.enter()
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Composition.swift:48:21: error: cannot find 'DispatchGroup' in scope
46 | var f2r: Result<B, E>!
47 |
48 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
49 |
50 | group.enter(); f1.run { f1r = $0; group.leave() }
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Composition.swift:70:21: error: cannot find 'DispatchGroup' in scope
68 | var f3r: Result<C, E>!
69 |
70 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
71 |
72 | group.enter(); f1.run { f1r = $0; group.leave() }
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Composition.swift:95:21: error: cannot find 'DispatchGroup' in scope
93 | var f4r: Result<D, E>!
94 |
95 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
96 |
97 | group.enter(); f1.run { f1r = $0; group.leave() }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[25/32] Emitting module FutureResult
/host/spi-builder-workspace/Sources/FutureResult/Atomic.swift:4:25: error: cannot find 'DispatchQueue' in scope
2 |
3 | final class Atomic<A> {
4 | private let queue = DispatchQueue(label: "Atomic serial queue")
| `- error: cannot find 'DispatchQueue' in scope
5 | private var _value: A
6 | init(_ value: A) {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:10:28: error: cannot find type 'DispatchQueue' in scope
8 | /// - Parameter queue: the queue whwere the calback should be called
9 | /// - Returns: a new future properly configured
10 | func deliver(on queue: DispatchQueue) -> Self {
| `- error: cannot find type 'DispatchQueue' in scope
11 | Self { cb in
12 | self.run { r in
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:23:28: error: cannot find type 'DispatchQueue' in scope
21 | /// - Parameter queue: the queue where the future will run
22 | /// - Returns: a new future properly configured
23 | func perform(in queue: DispatchQueue) -> Self {
| `- error: cannot find type 'DispatchQueue' in scope
24 | Self { cb in
25 | queue.async {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:34:25: error: cannot find type 'DispatchQueue' in scope
32 | /// - Parameter queue: the queue where the future will run
33 | /// - Returns: a new future properly configured
34 | func sync(on queue: DispatchQueue? = nil) -> Self {
| `- error: cannot find type 'DispatchQueue' in scope
35 | FutureResult { cb in
36 | if let queue = queue {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:49:32: error: cannot find type 'DispatchSemaphore' in scope
47 | /// - Parameter semaphore: the semaphore to use for synchronization
48 | /// - Returns: a new future properly configured
49 | func sync(using semaphore: DispatchSemaphore) -> Self {
| `- error: cannot find type 'DispatchSemaphore' in scope
50 | FutureResult { cb in
51 | waitQueue.async {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:91:25: error: cannot find 'DispatchQueue' in scope
89 | }
90 |
91 | private let waitQueue = DispatchQueue(label: "com.tas.future.wait-queue", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
92 |
93 |
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:91:88: error: cannot infer contextual base in reference to member 'concurrent'
89 | }
90 |
91 | private let waitQueue = DispatchQueue(label: "com.tas.future.wait-queue", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
92 |
93 |
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Utils.swift:52:19: error: cannot find type 'Progress' in scope
50 | public
51 | protocol ProgressReporter {
52 | var progress: Progress { get }
| `- error: cannot find type 'Progress' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Utils.swift:58:26: error: cannot find type 'Progress' in scope
56 | struct FutureResultProgress<R, E: Error>: ProgressReporter {
57 | public let future: FutureResult<R, E>
58 | public let progress: Progress
| `- error: cannot find type 'Progress' in scope
59 |
60 | public init(future: FutureResult<R, E>, progress: Progress) {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Utils.swift:60:55: error: cannot find type 'Progress' in scope
58 | public let progress: Progress
59 |
60 | public init(future: FutureResult<R, E>, progress: Progress) {
| `- error: cannot find type 'Progress' in scope
61 | self.future = future
62 | self.progress = progress
[26/32] Compiling FutureResult FutureResult+Transforms.swift
[27/32] Compiling FutureResult FutureResult+Initializers.swift
[28/32] Compiling FutureResult FutureResult+Monoid.swift
[29/32] Compiling FutureResult FutureResult+Scheduling.swift
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:10:28: error: cannot find type 'DispatchQueue' in scope
8 | /// - Parameter queue: the queue whwere the calback should be called
9 | /// - Returns: a new future properly configured
10 | func deliver(on queue: DispatchQueue) -> Self {
| `- error: cannot find type 'DispatchQueue' in scope
11 | Self { cb in
12 | self.run { r in
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:23:28: error: cannot find type 'DispatchQueue' in scope
21 | /// - Parameter queue: the queue where the future will run
22 | /// - Returns: a new future properly configured
23 | func perform(in queue: DispatchQueue) -> Self {
| `- error: cannot find type 'DispatchQueue' in scope
24 | Self { cb in
25 | queue.async {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:34:25: error: cannot find type 'DispatchQueue' in scope
32 | /// - Parameter queue: the queue where the future will run
33 | /// - Returns: a new future properly configured
34 | func sync(on queue: DispatchQueue? = nil) -> Self {
| `- error: cannot find type 'DispatchQueue' in scope
35 | FutureResult { cb in
36 | if let queue = queue {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:49:32: error: cannot find type 'DispatchSemaphore' in scope
47 | /// - Parameter semaphore: the semaphore to use for synchronization
48 | /// - Returns: a new future properly configured
49 | func sync(using semaphore: DispatchSemaphore) -> Self {
| `- error: cannot find type 'DispatchSemaphore' in scope
50 | FutureResult { cb in
51 | waitQueue.async {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:91:25: error: cannot find 'DispatchQueue' in scope
89 | }
90 |
91 | private let waitQueue = DispatchQueue(label: "com.tas.future.wait-queue", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
92 |
93 |
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:91:88: error: cannot infer contextual base in reference to member 'concurrent'
89 | }
90 |
91 | private let waitQueue = DispatchQueue(label: "com.tas.future.wait-queue", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
92 |
93 |
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:65:25: error: cannot find 'DispatchSemaphore' in scope
63 | func runSync() -> Result<R, E> {
64 | var r: Result<R, E>!
65 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
66 | waitQueue.async {
67 | run {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:82:49: error: cannot call value of non-function type 'Date'
80 | return Self { callback in
81 | self.run { r in
82 | waitQueue.asyncAfter(deadline: .now() + interval) {
| `- error: cannot call value of non-function type 'Date'
83 | callback(r)
84 | }
[30/32] Compiling FutureResult FutureResult.swift
[31/32] Compiling FutureResult FutureResult+Debug.swift
[32/32] Compiling FutureResult FutureResult+Functor.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Emitting module FunctionComposition
[3/5] Compiling FunctionComposition FunctionComposition.swift
[5/6] Emitting module Chainable
[6/6] Compiling Chainable Chainable.swift
[8/14] Compiling ResultExtras Result+Initializers.swift
[9/14] Compiling ResultExtras Result+Chainable.swift
/host/spi-builder-workspace/Sources/ResultExtras/Result+Chainable.swift:4:1: warning: extension declares a conformance of imported type 'Result' to imported protocol 'Chainable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
2 | import Chainable
3 |
4 | extension Result: Chainable {}
| |- warning: extension declares a conformance of imported type 'Result' to imported protocol 'Chainable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
5 |
6 | public
[10/14] Compiling ResultExtras Result+Accessors.swift
[11/14] Emitting module ResultExtras
/host/spi-builder-workspace/Sources/ResultExtras/Result+Chainable.swift:4:1: warning: extension declares a conformance of imported type 'Result' to imported protocol 'Chainable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
2 | import Chainable
3 |
4 | extension Result: Chainable {}
| |- warning: extension declares a conformance of imported type 'Result' to imported protocol 'Chainable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
5 |
6 | public
[12/14] Compiling ResultExtras Result+Composition.swift
[13/14] Compiling ResultExtras Result+Transforms.swift
[14/14] Compiling ResultExtras Result+Utils.swift
[16/27] Compiling FutureResult FutureResult+Scheduling.swift
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:10:28: error: cannot find type 'DispatchQueue' in scope
8 | /// - Parameter queue: the queue whwere the calback should be called
9 | /// - Returns: a new future properly configured
10 | func deliver(on queue: DispatchQueue) -> Self {
| `- error: cannot find type 'DispatchQueue' in scope
11 | Self { cb in
12 | self.run { r in
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:23:28: error: cannot find type 'DispatchQueue' in scope
21 | /// - Parameter queue: the queue where the future will run
22 | /// - Returns: a new future properly configured
23 | func perform(in queue: DispatchQueue) -> Self {
| `- error: cannot find type 'DispatchQueue' in scope
24 | Self { cb in
25 | queue.async {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:34:25: error: cannot find type 'DispatchQueue' in scope
32 | /// - Parameter queue: the queue where the future will run
33 | /// - Returns: a new future properly configured
34 | func sync(on queue: DispatchQueue? = nil) -> Self {
| `- error: cannot find type 'DispatchQueue' in scope
35 | FutureResult { cb in
36 | if let queue = queue {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:49:32: error: cannot find type 'DispatchSemaphore' in scope
47 | /// - Parameter semaphore: the semaphore to use for synchronization
48 | /// - Returns: a new future properly configured
49 | func sync(using semaphore: DispatchSemaphore) -> Self {
| `- error: cannot find type 'DispatchSemaphore' in scope
50 | FutureResult { cb in
51 | waitQueue.async {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:91:25: error: cannot find 'DispatchQueue' in scope
89 | }
90 |
91 | private let waitQueue = DispatchQueue(label: "com.tas.future.wait-queue", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
92 |
93 |
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:91:88: error: cannot infer contextual base in reference to member 'concurrent'
89 | }
90 |
91 | private let waitQueue = DispatchQueue(label: "com.tas.future.wait-queue", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
92 |
93 |
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:65:25: error: cannot find 'DispatchSemaphore' in scope
63 | func runSync() -> Result<R, E> {
64 | var r: Result<R, E>!
65 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
66 | waitQueue.async {
67 | run {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:82:49: error: cannot call value of non-function type 'Date'
80 | return Self { callback in
81 | self.run { r in
82 | waitQueue.asyncAfter(deadline: .now() + interval) {
| `- error: cannot call value of non-function type 'Date'
83 | callback(r)
84 | }
[17/27] Compiling FutureResult FutureResult+Utils.swift
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Utils.swift:52:19: error: cannot find type 'Progress' in scope
50 | public
51 | protocol ProgressReporter {
52 | var progress: Progress { get }
| `- error: cannot find type 'Progress' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Utils.swift:58:26: error: cannot find type 'Progress' in scope
56 | struct FutureResultProgress<R, E: Error>: ProgressReporter {
57 | public let future: FutureResult<R, E>
58 | public let progress: Progress
| `- error: cannot find type 'Progress' in scope
59 |
60 | public init(future: FutureResult<R, E>, progress: Progress) {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Utils.swift:60:55: error: cannot find type 'Progress' in scope
58 | public let progress: Progress
59 |
60 | public init(future: FutureResult<R, E>, progress: Progress) {
| `- error: cannot find type 'Progress' in scope
61 | self.future = future
62 | self.progress = progress
[18/28] Compiling FutureResult FutureResult+Transforms.swift
[19/28] Compiling FutureResult FutureResult+Initializers.swift
[20/28] Compiling FutureResult FutureResult+Monoid.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[21/28] Compiling FutureResult FutureResult+Debug.swift
[22/28] Compiling FutureResult FutureResult+Functor.swift
[23/28] Emitting module FutureResult
/host/spi-builder-workspace/Sources/FutureResult/Atomic.swift:4:25: error: cannot find 'DispatchQueue' in scope
2 |
3 | final class Atomic<A> {
4 | private let queue = DispatchQueue(label: "Atomic serial queue")
| `- error: cannot find 'DispatchQueue' in scope
5 | private var _value: A
6 | init(_ value: A) {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:10:28: error: cannot find type 'DispatchQueue' in scope
8 | /// - Parameter queue: the queue whwere the calback should be called
9 | /// - Returns: a new future properly configured
10 | func deliver(on queue: DispatchQueue) -> Self {
| `- error: cannot find type 'DispatchQueue' in scope
11 | Self { cb in
12 | self.run { r in
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:23:28: error: cannot find type 'DispatchQueue' in scope
21 | /// - Parameter queue: the queue where the future will run
22 | /// - Returns: a new future properly configured
23 | func perform(in queue: DispatchQueue) -> Self {
| `- error: cannot find type 'DispatchQueue' in scope
24 | Self { cb in
25 | queue.async {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:34:25: error: cannot find type 'DispatchQueue' in scope
32 | /// - Parameter queue: the queue where the future will run
33 | /// - Returns: a new future properly configured
34 | func sync(on queue: DispatchQueue? = nil) -> Self {
| `- error: cannot find type 'DispatchQueue' in scope
35 | FutureResult { cb in
36 | if let queue = queue {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:49:32: error: cannot find type 'DispatchSemaphore' in scope
47 | /// - Parameter semaphore: the semaphore to use for synchronization
48 | /// - Returns: a new future properly configured
49 | func sync(using semaphore: DispatchSemaphore) -> Self {
| `- error: cannot find type 'DispatchSemaphore' in scope
50 | FutureResult { cb in
51 | waitQueue.async {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:91:25: error: cannot find 'DispatchQueue' in scope
89 | }
90 |
91 | private let waitQueue = DispatchQueue(label: "com.tas.future.wait-queue", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
92 |
93 |
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Scheduling.swift:91:88: error: cannot infer contextual base in reference to member 'concurrent'
89 | }
90 |
91 | private let waitQueue = DispatchQueue(label: "com.tas.future.wait-queue", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
92 |
93 |
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Utils.swift:52:19: error: cannot find type 'Progress' in scope
50 | public
51 | protocol ProgressReporter {
52 | var progress: Progress { get }
| `- error: cannot find type 'Progress' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Utils.swift:58:26: error: cannot find type 'Progress' in scope
56 | struct FutureResultProgress<R, E: Error>: ProgressReporter {
57 | public let future: FutureResult<R, E>
58 | public let progress: Progress
| `- error: cannot find type 'Progress' in scope
59 |
60 | public init(future: FutureResult<R, E>, progress: Progress) {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Utils.swift:60:55: error: cannot find type 'Progress' in scope
58 | public let progress: Progress
59 |
60 | public init(future: FutureResult<R, E>, progress: Progress) {
| `- error: cannot find type 'Progress' in scope
61 | self.future = future
62 | self.progress = progress
[24/28] Compiling FutureResult FutureResult+Chainable.swift
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Composition.swift:14:29: error: cannot find 'DispatchGroup' in scope
12 | FutureResult<[Result<U, UE>], E> { cb in
13 | let results: Atomic<[Result<U, UE>]> = Atomic([])
14 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
15 | r.forEach {
16 | group.enter()
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Composition.swift:48:21: error: cannot find 'DispatchGroup' in scope
46 | var f2r: Result<B, E>!
47 |
48 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
49 |
50 | group.enter(); f1.run { f1r = $0; group.leave() }
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Composition.swift:70:21: error: cannot find 'DispatchGroup' in scope
68 | var f3r: Result<C, E>!
69 |
70 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
71 |
72 | group.enter(); f1.run { f1r = $0; group.leave() }
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Composition.swift:95:21: error: cannot find 'DispatchGroup' in scope
93 | var f4r: Result<D, E>!
94 |
95 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
96 |
97 | group.enter(); f1.run { f1r = $0; group.leave() }
[25/28] Compiling FutureResult FutureResult+Composition.swift
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Composition.swift:14:29: error: cannot find 'DispatchGroup' in scope
12 | FutureResult<[Result<U, UE>], E> { cb in
13 | let results: Atomic<[Result<U, UE>]> = Atomic([])
14 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
15 | r.forEach {
16 | group.enter()
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Composition.swift:48:21: error: cannot find 'DispatchGroup' in scope
46 | var f2r: Result<B, E>!
47 |
48 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
49 |
50 | group.enter(); f1.run { f1r = $0; group.leave() }
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Composition.swift:70:21: error: cannot find 'DispatchGroup' in scope
68 | var f3r: Result<C, E>!
69 |
70 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
71 |
72 | group.enter(); f1.run { f1r = $0; group.leave() }
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Composition.swift:95:21: error: cannot find 'DispatchGroup' in scope
93 | var f4r: Result<D, E>!
94 |
95 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
96 |
97 | group.enter(); f1.run { f1r = $0; group.leave() }
[26/28] Compiling FutureResult Atomic.swift
/host/spi-builder-workspace/Sources/FutureResult/Atomic.swift:4:25: error: cannot find 'DispatchQueue' in scope
2 |
3 | final class Atomic<A> {
4 | private let queue = DispatchQueue(label: "Atomic serial queue")
| `- error: cannot find 'DispatchQueue' in scope
5 | private var _value: A
6 | init(_ value: A) {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Async.swift:9:65: warning: converting a value of type '(__shared sending Result<R, E>) -> ()' to type '(Result<R, E>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
7 | extension FutureResult {
8 | func run() async throws -> R {
9 | try await withCheckedThrowingContinuation { self.run($0.resume) }
| |- warning: converting a value of type '(__shared sending Result<R, E>) -> ()' to type '(Result<R, E>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
10 | }
11 | }
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Async.swift:17:69: warning: converting a value of type '(__shared sending Result<(), E>) -> ()' to type '(Result<(), E>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
15 | extension FutureResult where R == Void {
16 | func run() async throws {
17 | _ = try await withCheckedThrowingContinuation { self.run($0.resume(with:)) }
| |- warning: converting a value of type '(__shared sending Result<(), E>) -> ()' to type '(Result<(), E>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
18 | }
19 | }
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Async.swift:25:53: warning: converting a value of type '(__shared sending Result<R, Never>) -> ()' to type '(Result<R, Never>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
23 | extension FutureResult where E == Never {
24 | func run() async -> R {
25 | await withCheckedContinuation { self.run($0.resume) }
| |- warning: converting a value of type '(__shared sending Result<R, Never>) -> ()' to type '(Result<R, Never>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
26 | }
27 | }
[27/28] Compiling FutureResult FutureResult+Async.swift
/host/spi-builder-workspace/Sources/FutureResult/Atomic.swift:4:25: error: cannot find 'DispatchQueue' in scope
2 |
3 | final class Atomic<A> {
4 | private let queue = DispatchQueue(label: "Atomic serial queue")
| `- error: cannot find 'DispatchQueue' in scope
5 | private var _value: A
6 | init(_ value: A) {
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Async.swift:9:65: warning: converting a value of type '(__shared sending Result<R, E>) -> ()' to type '(Result<R, E>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
7 | extension FutureResult {
8 | func run() async throws -> R {
9 | try await withCheckedThrowingContinuation { self.run($0.resume) }
| |- warning: converting a value of type '(__shared sending Result<R, E>) -> ()' to type '(Result<R, E>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
10 | }
11 | }
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Async.swift:17:69: warning: converting a value of type '(__shared sending Result<(), E>) -> ()' to type '(Result<(), E>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
15 | extension FutureResult where R == Void {
16 | func run() async throws {
17 | _ = try await withCheckedThrowingContinuation { self.run($0.resume(with:)) }
| |- warning: converting a value of type '(__shared sending Result<(), E>) -> ()' to type '(Result<(), E>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
18 | }
19 | }
/host/spi-builder-workspace/Sources/FutureResult/FutureResult+Async.swift:25:53: warning: converting a value of type '(__shared sending Result<R, Never>) -> ()' to type '(Result<R, Never>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
23 | extension FutureResult where E == Never {
24 | func run() async -> R {
25 | await withCheckedContinuation { self.run($0.resume) }
| |- warning: converting a value of type '(__shared sending Result<R, Never>) -> ()' to type '(Result<R, Never>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
26 | }
27 | }
[28/28] Compiling FutureResult FutureResult.swift
BUILD FAILURE 6.1 wasm