Build Information
Failed to build Stream, reference master (36eb90), with Swift 6.1 for Wasm on 27 May 2025 06:20:26 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/cgarciae/stream.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/cgarciae/stream
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 36eb909 slightly update readme
Cloned https://github.com/cgarciae/stream.git
Revision (git rev-parse @):
36eb90967408dcb96a5283cc00b78e62f04a1b11
SUCCESS checkout https://github.com/cgarciae/stream.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/cgarciae/stream.git
https://github.com/cgarciae/stream.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "Stream",
"name" : "Stream",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Stream",
"targets" : [
"Stream"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "StreamTests",
"module_type" : "SwiftTarget",
"name" : "StreamTests",
"path" : "Tests/StreamTests",
"sources" : [
"OrderedStreamTests.swift",
"StreamTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Stream"
],
"type" : "test"
},
{
"c99name" : "Stream",
"module_type" : "SwiftTarget",
"name" : "Stream",
"path" : "Sources/Stream",
"product_memberships" : [
"Stream"
],
"sources" : [
"ConcurrentQueue.swift",
"Lock.swift",
"OrderedStream.swift",
"Queue.swift",
"Stream.swift",
"Utils.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling Stream Utils.swift
/host/spi-builder-workspace/Sources/Stream/Utils.swift:3:23: error: cannot find 'DispatchQueue' in scope
1 | import Foundation
2 |
3 | public let DISPATCH = DispatchQueue(label: "Stream", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
4 | public let CPU_COUNT = ProcessInfo.processInfo.activeProcessorCount
/host/spi-builder-workspace/Sources/Stream/Utils.swift:3:67: error: cannot infer contextual base in reference to member 'concurrent'
1 | import Foundation
2 |
3 | public let DISPATCH = DispatchQueue(label: "Stream", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
4 | public let CPU_COUNT = ProcessInfo.processInfo.activeProcessorCount
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/9] Emitting module Stream
/host/spi-builder-workspace/Sources/Stream/Lock.swift:4:29: error: cannot find 'DispatchSemaphore' in scope
2 |
3 | public struct Lock {
4 | private var semaphore = DispatchSemaphore(value: 1)
| `- error: cannot find 'DispatchSemaphore' in scope
5 |
6 | public func aquire(_ block: () throws -> Void) rethrows {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:103:19: error: cannot find type 'DispatchQueue' in scope
101 | maxTasks: Int = CPU_COUNT,
102 | queueMax: Int? = nil,
103 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
104 | f: @escaping (ConcurrentQueue<Index<B>?>, Int, Element) throws -> Void
105 | ) -> OrderedStream<B> {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:165:19: error: cannot find type 'DispatchQueue' in scope
163 | maxTasks: Int = CPU_COUNT,
164 | queueMax: Int? = nil,
165 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
166 | f: @escaping (Element) throws -> B
167 | ) -> OrderedStream<B> {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:184:19: error: cannot find type 'DispatchQueue' in scope
182 | maxTasks: Int = CPU_COUNT,
183 | queueMax: Int? = nil,
184 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
185 | f: @escaping (Element) throws -> S
186 | ) -> OrderedStream<B> where S.Element == B {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:210:19: error: cannot find type 'DispatchQueue' in scope
208 | maxTasks: Int = CPU_COUNT,
209 | queueMax: Int? = nil,
210 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
211 | f: @escaping (Element) throws -> Bool
212 | ) -> OrderedStream<Element> {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:234:19: error: cannot find type 'DispatchQueue' in scope
232 | maxTasks: Int = CPU_COUNT,
233 | queueMax: Int? = nil,
234 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
235 | f: @escaping (Element) throws -> Void
236 | ) {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:33:19: error: cannot find type 'DispatchQueue' in scope
31 | maxTasks: Int = CPU_COUNT,
32 | queueMax: Int? = nil,
33 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
34 | f: @escaping (ConcurrentQueue<B?>, Element) throws -> Void
35 | ) -> Stream<B> {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:77:19: error: cannot find type 'DispatchQueue' in scope
75 | maxTasks: Int = CPU_COUNT,
76 | queueMax: Int? = nil,
77 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
78 | f: @escaping (Element) throws -> B
79 | ) -> Stream<B> {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:92:19: error: cannot find type 'DispatchQueue' in scope
90 | maxTasks: Int = CPU_COUNT,
91 | queueMax: Int? = nil,
92 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
93 | f: @escaping (Element) throws -> S
94 | ) -> Stream<B> where S.Element == B {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:109:19: error: cannot find type 'DispatchQueue' in scope
107 | maxTasks: Int = CPU_COUNT,
108 | queueMax: Int? = nil,
109 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
110 | f: @escaping (Element) throws -> Bool
111 | ) -> Stream<Element> {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:122:19: error: cannot find type 'DispatchQueue' in scope
120 | maxTasks: Int = CPU_COUNT,
121 | queueMax: Int? = nil,
122 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
123 | f: @escaping (Element) throws -> Void
124 | ) {
/host/spi-builder-workspace/Sources/Stream/Utils.swift:3:23: error: cannot find 'DispatchQueue' in scope
1 | import Foundation
2 |
3 | public let DISPATCH = DispatchQueue(label: "Stream", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
4 | public let CPU_COUNT = ProcessInfo.processInfo.activeProcessorCount
/host/spi-builder-workspace/Sources/Stream/Utils.swift:3:67: error: cannot infer contextual base in reference to member 'concurrent'
1 | import Foundation
2 |
3 | public let DISPATCH = DispatchQueue(label: "Stream", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
4 | public let CPU_COUNT = ProcessInfo.processInfo.activeProcessorCount
[5/9] Compiling Stream Lock.swift
/host/spi-builder-workspace/Sources/Stream/Lock.swift:4:29: error: cannot find 'DispatchSemaphore' in scope
2 |
3 | public struct Lock {
4 | private var semaphore = DispatchSemaphore(value: 1)
| `- error: cannot find 'DispatchSemaphore' in scope
5 |
6 | public func aquire(_ block: () throws -> Void) rethrows {
[6/9] Compiling Stream ConcurrentQueue.swift
/host/spi-builder-workspace/Sources/Stream/Lock.swift:4:29: error: cannot find 'DispatchSemaphore' in scope
2 |
3 | public struct Lock {
4 | private var semaphore = DispatchSemaphore(value: 1)
| `- error: cannot find 'DispatchSemaphore' in scope
5 |
6 | public func aquire(_ block: () throws -> Void) rethrows {
[7/9] Compiling Stream OrderedStream.swift
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:103:19: error: cannot find type 'DispatchQueue' in scope
101 | maxTasks: Int = CPU_COUNT,
102 | queueMax: Int? = nil,
103 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
104 | f: @escaping (ConcurrentQueue<Index<B>?>, Int, Element) throws -> Void
105 | ) -> OrderedStream<B> {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:165:19: error: cannot find type 'DispatchQueue' in scope
163 | maxTasks: Int = CPU_COUNT,
164 | queueMax: Int? = nil,
165 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
166 | f: @escaping (Element) throws -> B
167 | ) -> OrderedStream<B> {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:184:19: error: cannot find type 'DispatchQueue' in scope
182 | maxTasks: Int = CPU_COUNT,
183 | queueMax: Int? = nil,
184 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
185 | f: @escaping (Element) throws -> S
186 | ) -> OrderedStream<B> where S.Element == B {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:210:19: error: cannot find type 'DispatchQueue' in scope
208 | maxTasks: Int = CPU_COUNT,
209 | queueMax: Int? = nil,
210 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
211 | f: @escaping (Element) throws -> Bool
212 | ) -> OrderedStream<Element> {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:234:19: error: cannot find type 'DispatchQueue' in scope
232 | maxTasks: Int = CPU_COUNT,
233 | queueMax: Int? = nil,
234 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
235 | f: @escaping (Element) throws -> Void
236 | ) {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:118:37: error: cannot find 'DispatchSemaphore' in scope
116 | let dispatch = dispatch ?? DISPATCH
117 | // let dispatch = dispatch ?? DispatchQueue(label: UUID().uuidString, attributes: .concurrent)
118 | let semaphore = DispatchSemaphore(value: maxTasks)
| `- error: cannot find 'DispatchSemaphore' in scope
119 |
120 | dispatch.async {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:121:37: error: cannot find 'DispatchGroup' in scope
119 |
120 | dispatch.async {
121 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
122 |
123 | for (i, elem) in self.enumerated() {
/host/spi-builder-workspace/Sources/Stream/Utils.swift:3:23: error: cannot find 'DispatchQueue' in scope
1 | import Foundation
2 |
3 | public let DISPATCH = DispatchQueue(label: "Stream", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
4 | public let CPU_COUNT = ProcessInfo.processInfo.activeProcessorCount
/host/spi-builder-workspace/Sources/Stream/Utils.swift:3:67: error: cannot infer contextual base in reference to member 'concurrent'
1 | import Foundation
2 |
3 | public let DISPATCH = DispatchQueue(label: "Stream", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
4 | public let CPU_COUNT = ProcessInfo.processInfo.activeProcessorCount
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:199:23: error: generic parameter 'Element' could not be inferred
1 | import Foundation
2 |
3 | struct Index<Element> {
| `- note: 'Element' declared as parameter to type 'Index'
4 | let index: Int
5 | let isLast: Bool
:
197 | ))
198 | }
199 | queue.put(Index(
| |- error: generic parameter 'Element' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
200 | index: i,
201 | isLast: true,
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:222:27: error: generic parameter 'Element' could not be inferred
1 | import Foundation
2 |
3 | struct Index<Element> {
| `- note: 'Element' declared as parameter to type 'Index'
4 | let index: Int
5 | let isLast: Bool
:
220 | ))
221 | } else {
222 | queue.put(Index(
| |- error: generic parameter 'Element' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
223 | index: i,
224 | isLast: true,
[8/9] Compiling Stream Queue.swift
[9/9] Compiling Stream Stream.swift
/host/spi-builder-workspace/Sources/Stream/Stream.swift:33:19: error: cannot find type 'DispatchQueue' in scope
31 | maxTasks: Int = CPU_COUNT,
32 | queueMax: Int? = nil,
33 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
34 | f: @escaping (ConcurrentQueue<B?>, Element) throws -> Void
35 | ) -> Stream<B> {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:77:19: error: cannot find type 'DispatchQueue' in scope
75 | maxTasks: Int = CPU_COUNT,
76 | queueMax: Int? = nil,
77 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
78 | f: @escaping (Element) throws -> B
79 | ) -> Stream<B> {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:92:19: error: cannot find type 'DispatchQueue' in scope
90 | maxTasks: Int = CPU_COUNT,
91 | queueMax: Int? = nil,
92 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
93 | f: @escaping (Element) throws -> S
94 | ) -> Stream<B> where S.Element == B {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:109:19: error: cannot find type 'DispatchQueue' in scope
107 | maxTasks: Int = CPU_COUNT,
108 | queueMax: Int? = nil,
109 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
110 | f: @escaping (Element) throws -> Bool
111 | ) -> Stream<Element> {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:122:19: error: cannot find type 'DispatchQueue' in scope
120 | maxTasks: Int = CPU_COUNT,
121 | queueMax: Int? = nil,
122 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
123 | f: @escaping (Element) throws -> Void
124 | ) {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:46:37: error: cannot find 'DispatchSemaphore' in scope
44 | let dispatch = dispatch ?? DISPATCH
45 | // let dispatch = dispatch ?? DispatchQueue(label: UUID().uuidString, attributes: .concurrent)
46 | let semaphore = DispatchSemaphore(value: maxTasks)
| `- error: cannot find 'DispatchSemaphore' in scope
47 |
48 | dispatch.async {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:49:37: error: cannot find 'DispatchGroup' in scope
47 |
48 | dispatch.async {
49 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
50 |
51 | for elem in self {
/host/spi-builder-workspace/Sources/Stream/Utils.swift:3:23: error: cannot find 'DispatchQueue' in scope
1 | import Foundation
2 |
3 | public let DISPATCH = DispatchQueue(label: "Stream", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
4 | public let CPU_COUNT = ProcessInfo.processInfo.activeProcessorCount
/host/spi-builder-workspace/Sources/Stream/Utils.swift:3:67: error: cannot infer contextual base in reference to member 'concurrent'
1 | import Foundation
2 |
3 | public let DISPATCH = DispatchQueue(label: "Stream", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
4 | public let CPU_COUNT = ProcessInfo.processInfo.activeProcessorCount
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
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/8] Compiling Stream Utils.swift
/host/spi-builder-workspace/Sources/Stream/Utils.swift:3:23: error: cannot find 'DispatchQueue' in scope
1 | import Foundation
2 |
3 | public let DISPATCH = DispatchQueue(label: "Stream", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
4 | public let CPU_COUNT = ProcessInfo.processInfo.activeProcessorCount
/host/spi-builder-workspace/Sources/Stream/Utils.swift:3:67: error: cannot infer contextual base in reference to member 'concurrent'
1 | import Foundation
2 |
3 | public let DISPATCH = DispatchQueue(label: "Stream", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
4 | public let CPU_COUNT = ProcessInfo.processInfo.activeProcessorCount
[3/8] Compiling Stream Stream.swift
/host/spi-builder-workspace/Sources/Stream/Stream.swift:33:19: error: cannot find type 'DispatchQueue' in scope
31 | maxTasks: Int = CPU_COUNT,
32 | queueMax: Int? = nil,
33 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
34 | f: @escaping (ConcurrentQueue<B?>, Element) throws -> Void
35 | ) -> Stream<B> {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:77:19: error: cannot find type 'DispatchQueue' in scope
75 | maxTasks: Int = CPU_COUNT,
76 | queueMax: Int? = nil,
77 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
78 | f: @escaping (Element) throws -> B
79 | ) -> Stream<B> {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:92:19: error: cannot find type 'DispatchQueue' in scope
90 | maxTasks: Int = CPU_COUNT,
91 | queueMax: Int? = nil,
92 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
93 | f: @escaping (Element) throws -> S
94 | ) -> Stream<B> where S.Element == B {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:109:19: error: cannot find type 'DispatchQueue' in scope
107 | maxTasks: Int = CPU_COUNT,
108 | queueMax: Int? = nil,
109 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
110 | f: @escaping (Element) throws -> Bool
111 | ) -> Stream<Element> {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:122:19: error: cannot find type 'DispatchQueue' in scope
120 | maxTasks: Int = CPU_COUNT,
121 | queueMax: Int? = nil,
122 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
123 | f: @escaping (Element) throws -> Void
124 | ) {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:46:37: error: cannot find 'DispatchSemaphore' in scope
44 | let dispatch = dispatch ?? DISPATCH
45 | // let dispatch = dispatch ?? DispatchQueue(label: UUID().uuidString, attributes: .concurrent)
46 | let semaphore = DispatchSemaphore(value: maxTasks)
| `- error: cannot find 'DispatchSemaphore' in scope
47 |
48 | dispatch.async {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:49:37: error: cannot find 'DispatchGroup' in scope
47 |
48 | dispatch.async {
49 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
50 |
51 | for elem in self {
/host/spi-builder-workspace/Sources/Stream/Utils.swift:3:23: error: cannot find 'DispatchQueue' in scope
1 | import Foundation
2 |
3 | public let DISPATCH = DispatchQueue(label: "Stream", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
4 | public let CPU_COUNT = ProcessInfo.processInfo.activeProcessorCount
/host/spi-builder-workspace/Sources/Stream/Utils.swift:3:67: error: cannot infer contextual base in reference to member 'concurrent'
1 | import Foundation
2 |
3 | public let DISPATCH = DispatchQueue(label: "Stream", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
4 | public let CPU_COUNT = ProcessInfo.processInfo.activeProcessorCount
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Emitting module Stream
/host/spi-builder-workspace/Sources/Stream/Lock.swift:4:29: error: cannot find 'DispatchSemaphore' in scope
2 |
3 | public struct Lock {
4 | private var semaphore = DispatchSemaphore(value: 1)
| `- error: cannot find 'DispatchSemaphore' in scope
5 |
6 | public func aquire(_ block: () throws -> Void) rethrows {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:103:19: error: cannot find type 'DispatchQueue' in scope
101 | maxTasks: Int = CPU_COUNT,
102 | queueMax: Int? = nil,
103 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
104 | f: @escaping (ConcurrentQueue<Index<B>?>, Int, Element) throws -> Void
105 | ) -> OrderedStream<B> {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:165:19: error: cannot find type 'DispatchQueue' in scope
163 | maxTasks: Int = CPU_COUNT,
164 | queueMax: Int? = nil,
165 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
166 | f: @escaping (Element) throws -> B
167 | ) -> OrderedStream<B> {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:184:19: error: cannot find type 'DispatchQueue' in scope
182 | maxTasks: Int = CPU_COUNT,
183 | queueMax: Int? = nil,
184 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
185 | f: @escaping (Element) throws -> S
186 | ) -> OrderedStream<B> where S.Element == B {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:210:19: error: cannot find type 'DispatchQueue' in scope
208 | maxTasks: Int = CPU_COUNT,
209 | queueMax: Int? = nil,
210 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
211 | f: @escaping (Element) throws -> Bool
212 | ) -> OrderedStream<Element> {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:234:19: error: cannot find type 'DispatchQueue' in scope
232 | maxTasks: Int = CPU_COUNT,
233 | queueMax: Int? = nil,
234 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
235 | f: @escaping (Element) throws -> Void
236 | ) {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:33:19: error: cannot find type 'DispatchQueue' in scope
31 | maxTasks: Int = CPU_COUNT,
32 | queueMax: Int? = nil,
33 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
34 | f: @escaping (ConcurrentQueue<B?>, Element) throws -> Void
35 | ) -> Stream<B> {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:77:19: error: cannot find type 'DispatchQueue' in scope
75 | maxTasks: Int = CPU_COUNT,
76 | queueMax: Int? = nil,
77 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
78 | f: @escaping (Element) throws -> B
79 | ) -> Stream<B> {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:92:19: error: cannot find type 'DispatchQueue' in scope
90 | maxTasks: Int = CPU_COUNT,
91 | queueMax: Int? = nil,
92 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
93 | f: @escaping (Element) throws -> S
94 | ) -> Stream<B> where S.Element == B {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:109:19: error: cannot find type 'DispatchQueue' in scope
107 | maxTasks: Int = CPU_COUNT,
108 | queueMax: Int? = nil,
109 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
110 | f: @escaping (Element) throws -> Bool
111 | ) -> Stream<Element> {
/host/spi-builder-workspace/Sources/Stream/Stream.swift:122:19: error: cannot find type 'DispatchQueue' in scope
120 | maxTasks: Int = CPU_COUNT,
121 | queueMax: Int? = nil,
122 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
123 | f: @escaping (Element) throws -> Void
124 | ) {
/host/spi-builder-workspace/Sources/Stream/Utils.swift:3:23: error: cannot find 'DispatchQueue' in scope
1 | import Foundation
2 |
3 | public let DISPATCH = DispatchQueue(label: "Stream", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
4 | public let CPU_COUNT = ProcessInfo.processInfo.activeProcessorCount
/host/spi-builder-workspace/Sources/Stream/Utils.swift:3:67: error: cannot infer contextual base in reference to member 'concurrent'
1 | import Foundation
2 |
3 | public let DISPATCH = DispatchQueue(label: "Stream", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
4 | public let CPU_COUNT = ProcessInfo.processInfo.activeProcessorCount
[5/8] Compiling Stream OrderedStream.swift
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:103:19: error: cannot find type 'DispatchQueue' in scope
101 | maxTasks: Int = CPU_COUNT,
102 | queueMax: Int? = nil,
103 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
104 | f: @escaping (ConcurrentQueue<Index<B>?>, Int, Element) throws -> Void
105 | ) -> OrderedStream<B> {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:165:19: error: cannot find type 'DispatchQueue' in scope
163 | maxTasks: Int = CPU_COUNT,
164 | queueMax: Int? = nil,
165 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
166 | f: @escaping (Element) throws -> B
167 | ) -> OrderedStream<B> {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:184:19: error: cannot find type 'DispatchQueue' in scope
182 | maxTasks: Int = CPU_COUNT,
183 | queueMax: Int? = nil,
184 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
185 | f: @escaping (Element) throws -> S
186 | ) -> OrderedStream<B> where S.Element == B {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:210:19: error: cannot find type 'DispatchQueue' in scope
208 | maxTasks: Int = CPU_COUNT,
209 | queueMax: Int? = nil,
210 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
211 | f: @escaping (Element) throws -> Bool
212 | ) -> OrderedStream<Element> {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:234:19: error: cannot find type 'DispatchQueue' in scope
232 | maxTasks: Int = CPU_COUNT,
233 | queueMax: Int? = nil,
234 | dispatch: DispatchQueue? = nil,
| `- error: cannot find type 'DispatchQueue' in scope
235 | f: @escaping (Element) throws -> Void
236 | ) {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:118:37: error: cannot find 'DispatchSemaphore' in scope
116 | let dispatch = dispatch ?? DISPATCH
117 | // let dispatch = dispatch ?? DispatchQueue(label: UUID().uuidString, attributes: .concurrent)
118 | let semaphore = DispatchSemaphore(value: maxTasks)
| `- error: cannot find 'DispatchSemaphore' in scope
119 |
120 | dispatch.async {
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:121:37: error: cannot find 'DispatchGroup' in scope
119 |
120 | dispatch.async {
121 | let group = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
122 |
123 | for (i, elem) in self.enumerated() {
/host/spi-builder-workspace/Sources/Stream/Utils.swift:3:23: error: cannot find 'DispatchQueue' in scope
1 | import Foundation
2 |
3 | public let DISPATCH = DispatchQueue(label: "Stream", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
4 | public let CPU_COUNT = ProcessInfo.processInfo.activeProcessorCount
/host/spi-builder-workspace/Sources/Stream/Utils.swift:3:67: error: cannot infer contextual base in reference to member 'concurrent'
1 | import Foundation
2 |
3 | public let DISPATCH = DispatchQueue(label: "Stream", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
4 | public let CPU_COUNT = ProcessInfo.processInfo.activeProcessorCount
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:199:23: error: generic parameter 'Element' could not be inferred
1 | import Foundation
2 |
3 | struct Index<Element> {
| `- note: 'Element' declared as parameter to type 'Index'
4 | let index: Int
5 | let isLast: Bool
:
197 | ))
198 | }
199 | queue.put(Index(
| |- error: generic parameter 'Element' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
200 | index: i,
201 | isLast: true,
/host/spi-builder-workspace/Sources/Stream/OrderedStream.swift:222:27: error: generic parameter 'Element' could not be inferred
1 | import Foundation
2 |
3 | struct Index<Element> {
| `- note: 'Element' declared as parameter to type 'Index'
4 | let index: Int
5 | let isLast: Bool
:
220 | ))
221 | } else {
222 | queue.put(Index(
| |- error: generic parameter 'Element' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
223 | index: i,
224 | isLast: true,
[6/8] Compiling Stream Lock.swift
/host/spi-builder-workspace/Sources/Stream/Lock.swift:4:29: error: cannot find 'DispatchSemaphore' in scope
2 |
3 | public struct Lock {
4 | private var semaphore = DispatchSemaphore(value: 1)
| `- error: cannot find 'DispatchSemaphore' in scope
5 |
6 | public func aquire(_ block: () throws -> Void) rethrows {
[7/8] Compiling Stream Queue.swift
[8/8] Compiling Stream ConcurrentQueue.swift
/host/spi-builder-workspace/Sources/Stream/Lock.swift:4:29: error: cannot find 'DispatchSemaphore' in scope
2 |
3 | public struct Lock {
4 | private var semaphore = DispatchSemaphore(value: 1)
| `- error: cannot find 'DispatchSemaphore' in scope
5 |
6 | public func aquire(_ block: () throws -> Void) rethrows {
BUILD FAILURE 6.1 wasm