The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftExecutors, reference main (213eff), with Swift 6.2 for Wasm on 13 Oct 2026 04:54:56 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kosikowski/swift-executors.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/Kosikowski/swift-executors
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 213eff4 Migrate to Swift 6.2+ and fix ThreadExecutor (v0.2.0) (#4)
Cloned https://github.com/Kosikowski/swift-executors.git
Revision (git rev-parse @):
213eff4cd741ab87444c24a3fe7f1379e10d7d2c
SUCCESS checkout https://github.com/Kosikowski/swift-executors.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/Kosikowski/swift-executors.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:c092ff8dc506a2a30e6239b6992792fd4f7dfaaa46cac3b3c48d8fe35e954282
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/11] Emitting module SwiftExecutors
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:17:24: error: cannot find type 'DispatchQueue' in scope
15 | public final class DispatchQueueTaskExecutor: TaskExecutor {
16 |     /// Private dispatch queue used as the underlying thread pool.
17 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
18 |
19 |     /// Creates a new task executor backed by a GCD dispatch queue.
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:28:22: error: cannot find type 'DispatchQoS' in scope
26 |     ///   - target: Target queue for execution (nil for default).
27 |     public init(label: String = "DispatchTaskExec",
28 |                 qos: DispatchQoS = .default,
   |                      `- error: cannot find type 'DispatchQoS' in scope
29 |                 attributes: DispatchQueue.Attributes = [],
30 |                 target: DispatchQueue? = nil)
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:29:29: error: cannot find type 'DispatchQueue' in scope
27 |     public init(label: String = "DispatchTaskExec",
28 |                 qos: DispatchQoS = .default,
29 |                 attributes: DispatchQueue.Attributes = [],
   |                             `- error: cannot find type 'DispatchQueue' in scope
30 |                 target: DispatchQueue? = nil)
31 |     {
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:30:25: error: cannot find type 'DispatchQueue' in scope
28 |                 qos: DispatchQoS = .default,
29 |                 attributes: DispatchQueue.Attributes = [],
30 |                 target: DispatchQueue? = nil)
   |                         `- error: cannot find type 'DispatchQueue' in scope
31 |     {
32 |         queue = DispatchQueue(
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:51:34: error: cannot find type 'DispatchQoS' in scope
49 |     ///   - target: Target queue for execution (nil for default).
50 |     public convenience init(concurrentLabel: String,
51 |                             qos: DispatchQoS = .default,
   |                                  `- error: cannot find type 'DispatchQoS' in scope
52 |                             target: DispatchQueue? = nil)
53 |     {
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:52:37: error: cannot find type 'DispatchQueue' in scope
50 |     public convenience init(concurrentLabel: String,
51 |                             qos: DispatchQoS = .default,
52 |                             target: DispatchQueue? = nil)
   |                                     `- error: cannot find type 'DispatchQueue' in scope
53 |     {
54 |         self.init(label: concurrentLabel, qos: qos, attributes: .concurrent, target: target)
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:64:34: error: cannot find type 'DispatchQoS' in scope
62 |     ///   - target: Target queue for execution (nil for default).
63 |     public convenience init(serialLabel: String,
64 |                             qos: DispatchQoS = .default,
   |                                  `- error: cannot find type 'DispatchQoS' in scope
65 |                             target: DispatchQueue? = nil)
66 |     {
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:65:37: error: cannot find type 'DispatchQueue' in scope
63 |     public convenience init(serialLabel: String,
64 |                             qos: DispatchQoS = .default,
65 |                             target: DispatchQueue? = nil)
   |                                     `- error: cannot find type 'DispatchQueue' in scope
66 |     {
67 |         self.init(label: serialLabel, qos: qos, attributes: [], target: target)
/host/spi-builder-workspace/Sources/SwiftExecutors/QueueTaskExecutor.swift:17:24: error: cannot find type 'OperationQueue' in scope
15 | public final class QueueTaskExecutor: TaskExecutor {
16 |     /// Private operation queue used as the underlying thread pool.
17 |     private let queue: OperationQueue
   |                        `- error: cannot find type 'OperationQueue' in scope
18 |
19 |     /// Creates a new task executor backed by an NSOperationQueue.
/host/spi-builder-workspace/Sources/SwiftExecutors/QueueTaskExecutor.swift:28:38: error: cannot find 'OperationQueue' in scope
26 |     ///   - qos: Quality of service for priority handling (e.g. `.userInitiated`, `.background`).
27 |     public init(label: String = "TaskExec",
28 |                 maxConcurrent: Int = OperationQueue.defaultMaxConcurrentOperationCount,
   |                                      `- error: cannot find 'OperationQueue' in scope
29 |                 qos: QualityOfService = .default)
30 |     {
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:45:25: error: cannot find type 'Thread' in scope
 43 | public final class ThreadExecutor: SerialExecutor, TaskExecutor, @unchecked Sendable {
 44 |     /// The long-lived worker thread. Lives for the lifetime of the executor.
 45 |     private let thread: Thread
    |                         `- error: cannot find type 'Thread' in scope
 46 |
 47 |     /// Owns the thread's run loop and the jobs waiting for it.
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:52:28: error: cannot find type 'Thread' in scope
 50 |     /// Exposes the thread for testing purposes only.
 51 |     @_spi(ThreadExecutorTesting)
 52 |     public var testThread: Thread {
    |                            `- error: cannot find type 'Thread' in scope
 53 |         thread
 54 |     }
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:58:29: error: cannot find type 'CFRunLoop' in scope
 56 |     /// Exposes the run loop for testing purposes only.
 57 |     @_spi(ThreadExecutorTesting)
 58 |     public var testRunLoop: CFRunLoop {
    |                             `- error: cannot find type 'CFRunLoop' in scope
 59 |         worker.runLoop
 60 |     }
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:190:31: error: cannot find type 'CFRunLoop' in scope
188 |     }
189 |
190 |     private(set) var runLoop: CFRunLoop!
    |                               `- error: cannot find type 'CFRunLoop' in scope
191 |     private(set) var threadID: pthread_t!
192 |
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:195:25: error: cannot find type 'CFRunLoopSource' in scope
193 |     /// Signalled while jobs are waiting; its callout runs them. Being a
194 |     /// source, it also keeps the run loop from finishing while it is idle.
195 |     private var source: CFRunLoopSource!
    |                         `- error: cannot find type 'CFRunLoopSource' in scope
196 |
197 |     private let ready = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:197:25: error: cannot find 'DispatchSemaphore' in scope
195 |     private var source: CFRunLoopSource!
196 |
197 |     private let ready = DispatchSemaphore(value: 0)
    |                         `- error: cannot find 'DispatchSemaphore' in scope
198 |     private let queue = Mutex(Queue())
199 |     private let stopRequested = Atomic(false)
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:375:38: error: cannot find type 'CFRunLoopActivity' in scope
373 |
374 |     /// Tracks how deeply the run loop is nested, and stops it when asked.
375 |     private func observe(_ activity: CFRunLoopActivity) {
    |                                      `- error: cannot find type 'CFRunLoopActivity' in scope
376 |         switch activity {
377 |         case .entry:
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:411:11: error: cannot find type 'Thread' in scope
409 | }
410 |
411 | extension Thread {
    |           `- error: cannot find type 'Thread' in scope
412 |     /// The quality of service of the calling thread.
413 |     static var currentQoS: QualityOfService {
[5/11] Compiling SwiftExecutors QueueTaskExecutor.swift
/host/spi-builder-workspace/Sources/SwiftExecutors/QueueTaskExecutor.swift:17:24: error: cannot find type 'OperationQueue' in scope
15 | public final class QueueTaskExecutor: TaskExecutor {
16 |     /// Private operation queue used as the underlying thread pool.
17 |     private let queue: OperationQueue
   |                        `- error: cannot find type 'OperationQueue' in scope
18 |
19 |     /// Creates a new task executor backed by an NSOperationQueue.
/host/spi-builder-workspace/Sources/SwiftExecutors/QueueTaskExecutor.swift:28:38: error: cannot find 'OperationQueue' in scope
26 |     ///   - qos: Quality of service for priority handling (e.g. `.userInitiated`, `.background`).
27 |     public init(label: String = "TaskExec",
28 |                 maxConcurrent: Int = OperationQueue.defaultMaxConcurrentOperationCount,
   |                                      `- error: cannot find 'OperationQueue' in scope
29 |                 qos: QualityOfService = .default)
30 |     {
/host/spi-builder-workspace/Sources/SwiftExecutors/QueueTaskExecutor.swift:32:51: error: cannot find 'OperationQueue' in scope
30 |     {
31 |         precondition(
32 |             maxConcurrent > 0 || maxConcurrent == OperationQueue.defaultMaxConcurrentOperationCount,
   |                                                   `- error: cannot find 'OperationQueue' in scope
33 |             "maxConcurrent must be positive or OperationQueue.defaultMaxConcurrentOperationCount, not \(maxConcurrent): no job would ever run"
34 |         )
/host/spi-builder-workspace/Sources/SwiftExecutors/QueueTaskExecutor.swift:35:17: error: cannot find 'OperationQueue' in scope
33 |             "maxConcurrent must be positive or OperationQueue.defaultMaxConcurrentOperationCount, not \(maxConcurrent): no job would ever run"
34 |         )
35 |         queue = OperationQueue()
   |                 `- error: cannot find 'OperationQueue' in scope
36 |         queue.name = label
37 |         queue.maxConcurrentOperationCount = maxConcurrent // Throttle concurrency at the queue level
[6/11] Compiling SwiftExecutors DispatchQueueTaskExecutor.swift
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:17:24: error: cannot find type 'DispatchQueue' in scope
15 | public final class DispatchQueueTaskExecutor: TaskExecutor {
16 |     /// Private dispatch queue used as the underlying thread pool.
17 |     private let queue: DispatchQueue
   |                        `- error: cannot find type 'DispatchQueue' in scope
18 |
19 |     /// Creates a new task executor backed by a GCD dispatch queue.
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:28:22: error: cannot find type 'DispatchQoS' in scope
26 |     ///   - target: Target queue for execution (nil for default).
27 |     public init(label: String = "DispatchTaskExec",
28 |                 qos: DispatchQoS = .default,
   |                      `- error: cannot find type 'DispatchQoS' in scope
29 |                 attributes: DispatchQueue.Attributes = [],
30 |                 target: DispatchQueue? = nil)
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:29:29: error: cannot find type 'DispatchQueue' in scope
27 |     public init(label: String = "DispatchTaskExec",
28 |                 qos: DispatchQoS = .default,
29 |                 attributes: DispatchQueue.Attributes = [],
   |                             `- error: cannot find type 'DispatchQueue' in scope
30 |                 target: DispatchQueue? = nil)
31 |     {
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:30:25: error: cannot find type 'DispatchQueue' in scope
28 |                 qos: DispatchQoS = .default,
29 |                 attributes: DispatchQueue.Attributes = [],
30 |                 target: DispatchQueue? = nil)
   |                         `- error: cannot find type 'DispatchQueue' in scope
31 |     {
32 |         queue = DispatchQueue(
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:51:34: error: cannot find type 'DispatchQoS' in scope
49 |     ///   - target: Target queue for execution (nil for default).
50 |     public convenience init(concurrentLabel: String,
51 |                             qos: DispatchQoS = .default,
   |                                  `- error: cannot find type 'DispatchQoS' in scope
52 |                             target: DispatchQueue? = nil)
53 |     {
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:52:37: error: cannot find type 'DispatchQueue' in scope
50 |     public convenience init(concurrentLabel: String,
51 |                             qos: DispatchQoS = .default,
52 |                             target: DispatchQueue? = nil)
   |                                     `- error: cannot find type 'DispatchQueue' in scope
53 |     {
54 |         self.init(label: concurrentLabel, qos: qos, attributes: .concurrent, target: target)
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:64:34: error: cannot find type 'DispatchQoS' in scope
62 |     ///   - target: Target queue for execution (nil for default).
63 |     public convenience init(serialLabel: String,
64 |                             qos: DispatchQoS = .default,
   |                                  `- error: cannot find type 'DispatchQoS' in scope
65 |                             target: DispatchQueue? = nil)
66 |     {
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:65:37: error: cannot find type 'DispatchQueue' in scope
63 |     public convenience init(serialLabel: String,
64 |                             qos: DispatchQoS = .default,
65 |                             target: DispatchQueue? = nil)
   |                                     `- error: cannot find type 'DispatchQueue' in scope
66 |     {
67 |         self.init(label: serialLabel, qos: qos, attributes: [], target: target)
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:32:17: error: cannot find 'DispatchQueue' in scope
30 |                 target: DispatchQueue? = nil)
31 |     {
32 |         queue = DispatchQueue(
   |                 `- error: cannot find 'DispatchQueue' in scope
33 |             label: label,
34 |             qos: qos,
/host/spi-builder-workspace/Sources/SwiftExecutors/DispatchQueueTaskExecutor.swift:54:66: error: cannot infer contextual base in reference to member 'concurrent'
52 |                             target: DispatchQueue? = nil)
53 |     {
54 |         self.init(label: concurrentLabel, qos: qos, attributes: .concurrent, target: target)
   |                                                                  `- error: cannot infer contextual base in reference to member 'concurrent'
55 |     }
56 |
[7/11] Compiling SwiftExecutors ThreadExecutor.swift
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:45:25: error: cannot find type 'Thread' in scope
 43 | public final class ThreadExecutor: SerialExecutor, TaskExecutor, @unchecked Sendable {
 44 |     /// The long-lived worker thread. Lives for the lifetime of the executor.
 45 |     private let thread: Thread
    |                         `- error: cannot find type 'Thread' in scope
 46 |
 47 |     /// Owns the thread's run loop and the jobs waiting for it.
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:52:28: error: cannot find type 'Thread' in scope
 50 |     /// Exposes the thread for testing purposes only.
 51 |     @_spi(ThreadExecutorTesting)
 52 |     public var testThread: Thread {
    |                            `- error: cannot find type 'Thread' in scope
 53 |         thread
 54 |     }
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:58:29: error: cannot find type 'CFRunLoop' in scope
 56 |     /// Exposes the run loop for testing purposes only.
 57 |     @_spi(ThreadExecutorTesting)
 58 |     public var testRunLoop: CFRunLoop {
    |                             `- error: cannot find type 'CFRunLoop' in scope
 59 |         worker.runLoop
 60 |     }
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:190:31: error: cannot find type 'CFRunLoop' in scope
188 |     }
189 |
190 |     private(set) var runLoop: CFRunLoop!
    |                               `- error: cannot find type 'CFRunLoop' in scope
191 |     private(set) var threadID: pthread_t!
192 |
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:195:25: error: cannot find type 'CFRunLoopSource' in scope
193 |     /// Signalled while jobs are waiting; its callout runs them. Being a
194 |     /// source, it also keeps the run loop from finishing while it is idle.
195 |     private var source: CFRunLoopSource!
    |                         `- error: cannot find type 'CFRunLoopSource' in scope
196 |
197 |     private let ready = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:197:25: error: cannot find 'DispatchSemaphore' in scope
195 |     private var source: CFRunLoopSource!
196 |
197 |     private let ready = DispatchSemaphore(value: 0)
    |                         `- error: cannot find 'DispatchSemaphore' in scope
198 |     private let queue = Mutex(Queue())
199 |     private let stopRequested = Atomic(false)
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:375:38: error: cannot find type 'CFRunLoopActivity' in scope
373 |
374 |     /// Tracks how deeply the run loop is nested, and stops it when asked.
375 |     private func observe(_ activity: CFRunLoopActivity) {
    |                                      `- error: cannot find type 'CFRunLoopActivity' in scope
376 |         switch activity {
377 |         case .entry:
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:411:11: error: cannot find type 'Thread' in scope
409 | }
410 |
411 | extension Thread {
    |           `- error: cannot find type 'Thread' in scope
412 |     /// The quality of service of the calling thread.
413 |     static var currentQoS: QualityOfService {
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:82:22: error: cannot find 'Thread' in scope
 80 |         //         lifetime is driven by its owners, not by its own thread.
 81 |         let worker = Worker()
 82 |         let thread = Thread { worker.run() }
    |                      `- error: cannot find 'Thread' in scope
 83 |
 84 |         // Step 2: Human-readable thread label for debuggers & Instruments.
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:86:55: error: cannot find 'Thread' in scope
 84 |         // Step 2: Human-readable thread label for debuggers & Instruments.
 85 |         thread.name = name
 86 |         thread.qualityOfService = qualityOfService ?? Thread.currentQoS
    |                                                       `- error: cannot find 'Thread' in scope
 87 |
 88 |         // Step 3: Start the thread and block until its run loop is ready.
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:219:9: error: cannot find 'pthread_equal' in scope
217 |
218 |     var isCurrentThread: Bool {
219 |         pthread_equal(pthread_self(), threadID) != 0
    |         `- error: cannot find 'pthread_equal' in scope
220 |     }
221 |
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:219:23: error: cannot find 'pthread_self' in scope
217 |
218 |     var isCurrentThread: Bool {
219 |         pthread_equal(pthread_self(), threadID) != 0
    |                       `- error: cannot find 'pthread_self' in scope
220 |     }
221 |
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:228:19: error: cannot find 'CFRunLoopGetCurrent' in scope
226 |     /// The worker thread's body.
227 |     func run() {
228 |         runLoop = CFRunLoopGetCurrent()
    |                   `- error: cannot find 'CFRunLoopGetCurrent' in scope
229 |         threadID = pthread_self()
230 |
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:229:20: error: cannot find 'pthread_self' in scope
227 |     func run() {
228 |         runLoop = CFRunLoopGetCurrent()
229 |         threadID = pthread_self()
    |                    `- error: cannot find 'pthread_self' in scope
230 |
231 |         // The source refers to the worker without retaining it. It cannot
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:234:23: error: cannot find 'CFRunLoopSourceContext' in scope
232 |         // call back once the worker is gone: it is invalidated before
233 |         // `run()` returns.
234 |         var context = CFRunLoopSourceContext()
    |                       `- error: cannot find 'CFRunLoopSourceContext' in scope
235 |         context.info = Unmanaged.passUnretained(self).toOpaque()
236 |         context.perform = { info in
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:239:18: error: cannot find 'CFRunLoopSourceCreate' in scope
237 |             Unmanaged<Worker>.fromOpaque(info!).takeUnretainedValue().drain()
238 |         }
239 |         source = CFRunLoopSourceCreate(kCFAllocatorDefault, 0, &context)
    |                  `- error: cannot find 'CFRunLoopSourceCreate' in scope
240 |         CFRunLoopAddSource(runLoop, source, .defaultMode)
241 |
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:239:40: error: cannot find 'kCFAllocatorDefault' in scope
237 |             Unmanaged<Worker>.fromOpaque(info!).takeUnretainedValue().drain()
238 |         }
239 |         source = CFRunLoopSourceCreate(kCFAllocatorDefault, 0, &context)
    |                                        `- error: cannot find 'kCFAllocatorDefault' in scope
240 |         CFRunLoopAddSource(runLoop, source, .defaultMode)
241 |
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:240:9: error: cannot find 'CFRunLoopAddSource' in scope
238 |         }
239 |         source = CFRunLoopSourceCreate(kCFAllocatorDefault, 0, &context)
240 |         CFRunLoopAddSource(runLoop, source, .defaultMode)
    |         `- error: cannot find 'CFRunLoopAddSource' in scope
241 |
242 |         let activities: CFRunLoopActivity = [.entry, .beforeSources, .beforeWaiting, .exit]
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:240:46: error: cannot infer contextual base in reference to member 'defaultMode'
238 |         }
239 |         source = CFRunLoopSourceCreate(kCFAllocatorDefault, 0, &context)
240 |         CFRunLoopAddSource(runLoop, source, .defaultMode)
    |                                              `- error: cannot infer contextual base in reference to member 'defaultMode'
241 |
242 |         let activities: CFRunLoopActivity = [.entry, .beforeSources, .beforeWaiting, .exit]
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:242:25: error: cannot find type 'CFRunLoopActivity' in scope
240 |         CFRunLoopAddSource(runLoop, source, .defaultMode)
241 |
242 |         let activities: CFRunLoopActivity = [.entry, .beforeSources, .beforeWaiting, .exit]
    |                         `- error: cannot find type 'CFRunLoopActivity' in scope
243 |         let observer = CFRunLoopObserverCreateWithHandler(kCFAllocatorDefault, activities.rawValue, true, 0) { _, activity in
244 |             self.observe(activity)
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:243:24: error: cannot find 'CFRunLoopObserverCreateWithHandler' in scope
241 |
242 |         let activities: CFRunLoopActivity = [.entry, .beforeSources, .beforeWaiting, .exit]
243 |         let observer = CFRunLoopObserverCreateWithHandler(kCFAllocatorDefault, activities.rawValue, true, 0) { _, activity in
    |                        `- error: cannot find 'CFRunLoopObserverCreateWithHandler' in scope
244 |             self.observe(activity)
245 |         }
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:243:59: error: cannot find 'kCFAllocatorDefault' in scope
241 |
242 |         let activities: CFRunLoopActivity = [.entry, .beforeSources, .beforeWaiting, .exit]
243 |         let observer = CFRunLoopObserverCreateWithHandler(kCFAllocatorDefault, activities.rawValue, true, 0) { _, activity in
    |                                                           `- error: cannot find 'kCFAllocatorDefault' in scope
244 |             self.observe(activity)
245 |         }
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:246:9: error: cannot find 'CFRunLoopAddObserver' in scope
244 |             self.observe(activity)
245 |         }
246 |         CFRunLoopAddObserver(runLoop, observer, .defaultMode)
    |         `- error: cannot find 'CFRunLoopAddObserver' in scope
247 |
248 |         ready.signal()
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:246:50: error: cannot infer contextual base in reference to member 'defaultMode'
244 |             self.observe(activity)
245 |         }
246 |         CFRunLoopAddObserver(runLoop, observer, .defaultMode)
    |                                                  `- error: cannot infer contextual base in reference to member 'defaultMode'
247 |
248 |         ready.signal()
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:253:13: error: cannot find 'CFRunLoopRun' in scope
251 |         // CFRunLoopStop(); only stopIfRequested() may end the thread.
252 |         while !isStopped {
253 |             CFRunLoopRun()
    |             `- error: cannot find 'CFRunLoopRun' in scope
254 |         }
255 |
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:258:9: error: cannot find 'CFRunLoopObserverInvalidate' in scope
256 |         // Nothing calls into the worker once these are gone, and nothing
257 |         // left on the run loop refers to it.
258 |         CFRunLoopObserverInvalidate(observer)
    |         `- error: cannot find 'CFRunLoopObserverInvalidate' in scope
259 |         CFRunLoopSourceInvalidate(source)
260 |     }
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:259:9: error: cannot find 'CFRunLoopSourceInvalidate' in scope
257 |         // left on the run loop refers to it.
258 |         CFRunLoopObserverInvalidate(observer)
259 |         CFRunLoopSourceInvalidate(source)
    |         `- error: cannot find 'CFRunLoopSourceInvalidate' in scope
260 |     }
261 |
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:282:9: error: cannot find 'CFRunLoopSourceSignal' in scope
280 |         guard wasIdle, !(isCurrentThread && isDraining && !allowsNestedJobs) else { return }
281 |
282 |         CFRunLoopSourceSignal(source)
    |         `- error: cannot find 'CFRunLoopSourceSignal' in scope
283 |         // In case the run-loop is napping, prod it so it wakes up soon.
284 |         CFRunLoopWakeUp(runLoop)
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:284:9: error: cannot find 'CFRunLoopWakeUp' in scope
282 |         CFRunLoopSourceSignal(source)
283 |         // In case the run-loop is napping, prod it so it wakes up soon.
284 |         CFRunLoopWakeUp(runLoop)
    |         `- error: cannot find 'CFRunLoopWakeUp' in scope
285 |     }
286 |
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:303:17: error: cannot find 'CFRunLoopSourceSignal' in scope
301 |             }
302 |             if hasWaiting {
303 |                 CFRunLoopSourceSignal(source)
    |                 `- error: cannot find 'CFRunLoopSourceSignal' in scope
304 |             }
305 |         }
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:313:9: error: cannot find 'CFRunLoopSourceSignal' in scope
311 |         stopRequested.store(true, ordering: .releasing)
312 |         // Guarantees the run loop another pass, in which stopIfRequested() runs.
313 |         CFRunLoopSourceSignal(source)
    |         `- error: cannot find 'CFRunLoopSourceSignal' in scope
314 |         CFRunLoopWakeUp(runLoop)
315 |     }
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:314:9: error: cannot find 'CFRunLoopWakeUp' in scope
312 |         // Guarantees the run loop another pass, in which stopIfRequested() runs.
313 |         CFRunLoopSourceSignal(source)
314 |         CFRunLoopWakeUp(runLoop)
    |         `- error: cannot find 'CFRunLoopWakeUp' in scope
315 |     }
316 |
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:367:13: error: cannot find 'CFRunLoopSourceSignal' in scope
365 |             // This callout is still running, so the run loop polls rather
366 |             // than sleeps before its next pass: no need to wake it up.
367 |             CFRunLoopSourceSignal(source)
    |             `- error: cannot find 'CFRunLoopSourceSignal' in scope
368 |         }
369 |         // Dropping the last reference to the executor runs its deinit here,
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:384:17: error: cannot find 'CFRunLoopWakeUp' in scope
382 |             // another pass if this nested run was started from an observer.
383 |             if depth == 1, stopRequested.load(ordering: .acquiring) {
384 |                 CFRunLoopWakeUp(runLoop)
    |                 `- error: cannot find 'CFRunLoopWakeUp' in scope
385 |             }
386 |         default:
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:403:13: error: cannot find 'CFRunLoopStop' in scope
401 |         if depth == 1 {
402 |             isStopped = true
403 |             CFRunLoopStop(runLoop)
    |             `- error: cannot find 'CFRunLoopStop' in scope
404 |         } else if !hasStoppedNestedRun {
405 |             hasStoppedNestedRun = true
/host/spi-builder-workspace/Sources/SwiftExecutors/ThreadExecutor.swift:406:13: error: cannot find 'CFRunLoopStop' in scope
404 |         } else if !hasStoppedNestedRun {
405 |             hasStoppedNestedRun = true
406 |             CFRunLoopStop(runLoop)
    |             `- error: cannot find 'CFRunLoopStop' in scope
407 |         }
408 |     }
BUILD FAILURE 6.2 wasm