The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Coltrane, reference main (d19e6d), with Swift 6.1 for Wasm on 28 Jun 2026 06:30:07 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/otaviocc/Coltrane.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/otaviocc/Coltrane
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d19e6d6 Add ppm and mp4 to gitignore
Cloned https://github.com/otaviocc/Coltrane.git
Revision (git rev-parse @):
d19e6d6b38c8f5578485cf537b639b65688cdb15
SUCCESS checkout https://github.com/otaviocc/Coltrane.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/otaviocc/Coltrane.git
https://github.com/otaviocc/Coltrane.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/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.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 saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/56] Write sources
[14/56] Compiling ColtraneHelpers cpu_affinity.c
[15/56] Write swift-version-24593BA9C3E375BF.txt
[17/65] Compiling Coltrane SpawnSplit.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[18/66] Compiling Coltrane Scheduler.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:45:28: error: cannot find 'DispatchSemaphore' in scope
 43 |     var jobStack: [AnyJob] = []
 44 |
 45 |     private let finished = DispatchSemaphore(value: 0)
    |                            `- error: cannot find 'DispatchSemaphore' in scope
 46 |     private var thread: Thread?
 47 |     private unowned let runtime: Coltrane
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:46:25: error: cannot find type 'Thread' in scope
 44 |
 45 |     private let finished = DispatchSemaphore(value: 0)
 46 |     private var thread: Thread?
    |                         `- error: cannot find type 'Thread' in scope
 47 |     private unowned let runtime: Coltrane
 48 |
[19/66] Compiling Coltrane VirtualProcessor.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:45:28: error: cannot find 'DispatchSemaphore' in scope
 43 |     var jobStack: [AnyJob] = []
 44 |
 45 |     private let finished = DispatchSemaphore(value: 0)
    |                            `- error: cannot find 'DispatchSemaphore' in scope
 46 |     private var thread: Thread?
 47 |     private unowned let runtime: Coltrane
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:46:25: error: cannot find type 'Thread' in scope
 44 |
 45 |     private let finished = DispatchSemaphore(value: 0)
 46 |     private var thread: Thread?
    |                         `- error: cannot find type 'Thread' in scope
 47 |     private unowned let runtime: Coltrane
 48 |
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:64:25: error: cannot find 'Thread' in scope
 62 |     func startThread() {
 63 |         precondition(!isMain, "VP 0 (main) must not spawn a thread")
 64 |         let callerQoS = Thread.current.qualityOfService
    |                         `- error: cannot find 'Thread' in scope
 65 |         let t = Thread { [weak self] in self?.runLoop() }
 66 |         t.stackSize = 8 << 20
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:65:17: error: cannot find 'Thread' in scope
 63 |         precondition(!isMain, "VP 0 (main) must not spawn a thread")
 64 |         let callerQoS = Thread.current.qualityOfService
 65 |         let t = Thread { [weak self] in self?.runLoop() }
    |                 `- error: cannot find 'Thread' in scope
 66 |         t.stackSize = 8 << 20
 67 |         t.name = "Coltrane.VP\(id)"
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:76:34: error: cannot find 'Thread' in scope
 74 |     /// briefly when there is none, until the runtime stops.
 75 |     func runLoop() {
 76 |         runtime.register(thread: Thread.current, as: self)
    |                                  `- error: cannot find 'Thread' in scope
 77 |         bindToCore(id)
 78 |
/host/spi-builder-workspace/Sources/Coltrane/Coltrane.swift:196:27: error: cannot find type 'Thread' in scope
194 |
195 |     /// Records that `thread` is running as `vp`, so `currentVP()` can map back.
196 |     func register(thread: Thread, as vp: VirtualProcessor) {
    |                           `- error: cannot find type 'Thread' in scope
197 |         stateLock.lock()
198 |         threadMap[ObjectIdentifier(thread)] = vp
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:101:14: warning: result of call to 'wait(until:)' is unused
 99 |         let cond = runtime.workSignal
100 |         cond.lock()
101 |         cond.wait(until: Date().addingTimeInterval(Coltrane.idlePollInterval))
    |              `- warning: result of call to 'wait(until:)' is unused
102 |         cond.unlock()
103 |     }
[20/66] Compiling Coltrane JobOptions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[21/66] Compiling Coltrane JobList.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[22/66] Compiling Coltrane Join.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Coltrane/Join.swift:94:28: warning: result of call to 'wait(until:)' is unused
92 |         job.completion.lock()
93 |         if !job.isFinishedLocked {
94 |             job.completion.wait(until: Date().addingTimeInterval(Coltrane.idlePollInterval))
   |                            `- warning: result of call to 'wait(until:)' is unused
95 |         }
96 |         job.completion.unlock()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/66] Compiling Coltrane JobHandle.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[24/66] Emitting module Coltrane
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Coltrane/Coltrane.swift:196:27: error: cannot find type 'Thread' in scope
194 |
195 |     /// Records that `thread` is running as `vp`, so `currentVP()` can map back.
196 |     func register(thread: Thread, as vp: VirtualProcessor) {
    |                           `- error: cannot find type 'Thread' in scope
197 |         stateLock.lock()
198 |         threadMap[ObjectIdentifier(thread)] = vp
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:45:28: error: cannot find 'DispatchSemaphore' in scope
 43 |     var jobStack: [AnyJob] = []
 44 |
 45 |     private let finished = DispatchSemaphore(value: 0)
    |                            `- error: cannot find 'DispatchSemaphore' in scope
 46 |     private var thread: Thread?
 47 |     private unowned let runtime: Coltrane
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:46:25: error: cannot find type 'Thread' in scope
 44 |
 45 |     private let finished = DispatchSemaphore(value: 0)
 46 |     private var thread: Thread?
    |                         `- error: cannot find type 'Thread' in scope
 47 |     private unowned let runtime: Coltrane
 48 |
[25/66] Compiling Coltrane Coltrane.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Coltrane/Coltrane.swift:196:27: error: cannot find type 'Thread' in scope
194 |
195 |     /// Records that `thread` is running as `vp`, so `currentVP()` can map back.
196 |     func register(thread: Thread, as vp: VirtualProcessor) {
    |                           `- error: cannot find type 'Thread' in scope
197 |         stateLock.lock()
198 |         threadMap[ObjectIdentifier(thread)] = vp
/host/spi-builder-workspace/Sources/Coltrane/Coltrane.swift:129:39: error: cannot find 'Thread' in scope
127 |         let main = VirtualProcessor(id: 0, isMain: true, runtime: self)
128 |         vpList = [main]
129 |         threadMap = [ObjectIdentifier(Thread.current): main]
    |                                       `- error: cannot find 'Thread' in scope
130 |         var workers: [VirtualProcessor] = []
131 |         for slot in 1..<count {
/host/spi-builder-workspace/Sources/Coltrane/Coltrane.swift:207:43: error: cannot find 'Thread' in scope
205 |         stateLock.lock()
206 |         defer { stateLock.unlock() }
207 |         return threadMap[ObjectIdentifier(Thread.current)]
    |                                           `- error: cannot find 'Thread' in scope
208 |     }
209 |
[26/66] Compiling Coltrane Job.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Coltrane/Coltrane.swift:196:27: error: cannot find type 'Thread' in scope
194 |
195 |     /// Records that `thread` is running as `vp`, so `currentVP()` can map back.
196 |     func register(thread: Thread, as vp: VirtualProcessor) {
    |                           `- error: cannot find type 'Thread' in scope
197 |         stateLock.lock()
198 |         threadMap[ObjectIdentifier(thread)] = vp
/host/spi-builder-workspace/Sources/Coltrane/Coltrane.swift:129:39: error: cannot find 'Thread' in scope
127 |         let main = VirtualProcessor(id: 0, isMain: true, runtime: self)
128 |         vpList = [main]
129 |         threadMap = [ObjectIdentifier(Thread.current): main]
    |                                       `- error: cannot find 'Thread' in scope
130 |         var workers: [VirtualProcessor] = []
131 |         for slot in 1..<count {
/host/spi-builder-workspace/Sources/Coltrane/Coltrane.swift:207:43: error: cannot find 'Thread' in scope
205 |         stateLock.lock()
206 |         defer { stateLock.unlock() }
207 |         return threadMap[ObjectIdentifier(Thread.current)]
    |                                           `- error: cannot find 'Thread' in scope
208 |     }
209 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/41] Write swift-version-24593BA9C3E375BF.txt
[2/50] Compiling Coltrane SpawnSplit.swift
[3/50] Compiling Coltrane Scheduler.swift
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:45:28: error: cannot find 'DispatchSemaphore' in scope
 43 |     var jobStack: [AnyJob] = []
 44 |
 45 |     private let finished = DispatchSemaphore(value: 0)
    |                            `- error: cannot find 'DispatchSemaphore' in scope
 46 |     private var thread: Thread?
 47 |     private unowned let runtime: Coltrane
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:46:25: error: cannot find type 'Thread' in scope
 44 |
 45 |     private let finished = DispatchSemaphore(value: 0)
 46 |     private var thread: Thread?
    |                         `- error: cannot find type 'Thread' in scope
 47 |     private unowned let runtime: Coltrane
 48 |
[4/51] Compiling Coltrane Join.swift
/host/spi-builder-workspace/Sources/Coltrane/Join.swift:94:28: warning: result of call to 'wait(until:)' is unused
92 |         job.completion.lock()
93 |         if !job.isFinishedLocked {
94 |             job.completion.wait(until: Date().addingTimeInterval(Coltrane.idlePollInterval))
   |                            `- warning: result of call to 'wait(until:)' is unused
95 |         }
96 |         job.completion.unlock()
[5/51] Compiling Coltrane JobOptions.swift
[6/51] Compiling Coltrane JobList.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/51] Compiling Coltrane JobHandle.swift
[8/51] Emitting module Coltrane
/host/spi-builder-workspace/Sources/Coltrane/Coltrane.swift:196:27: error: cannot find type 'Thread' in scope
194 |
195 |     /// Records that `thread` is running as `vp`, so `currentVP()` can map back.
196 |     func register(thread: Thread, as vp: VirtualProcessor) {
    |                           `- error: cannot find type 'Thread' in scope
197 |         stateLock.lock()
198 |         threadMap[ObjectIdentifier(thread)] = vp
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:45:28: error: cannot find 'DispatchSemaphore' in scope
 43 |     var jobStack: [AnyJob] = []
 44 |
 45 |     private let finished = DispatchSemaphore(value: 0)
    |                            `- error: cannot find 'DispatchSemaphore' in scope
 46 |     private var thread: Thread?
 47 |     private unowned let runtime: Coltrane
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:46:25: error: cannot find type 'Thread' in scope
 44 |
 45 |     private let finished = DispatchSemaphore(value: 0)
 46 |     private var thread: Thread?
    |                         `- error: cannot find type 'Thread' in scope
 47 |     private unowned let runtime: Coltrane
 48 |
[9/51] Compiling Coltrane Coltrane.swift
/host/spi-builder-workspace/Sources/Coltrane/Coltrane.swift:196:27: error: cannot find type 'Thread' in scope
194 |
195 |     /// Records that `thread` is running as `vp`, so `currentVP()` can map back.
196 |     func register(thread: Thread, as vp: VirtualProcessor) {
    |                           `- error: cannot find type 'Thread' in scope
197 |         stateLock.lock()
198 |         threadMap[ObjectIdentifier(thread)] = vp
/host/spi-builder-workspace/Sources/Coltrane/Coltrane.swift:129:39: error: cannot find 'Thread' in scope
127 |         let main = VirtualProcessor(id: 0, isMain: true, runtime: self)
128 |         vpList = [main]
129 |         threadMap = [ObjectIdentifier(Thread.current): main]
    |                                       `- error: cannot find 'Thread' in scope
130 |         var workers: [VirtualProcessor] = []
131 |         for slot in 1..<count {
/host/spi-builder-workspace/Sources/Coltrane/Coltrane.swift:207:43: error: cannot find 'Thread' in scope
205 |         stateLock.lock()
206 |         defer { stateLock.unlock() }
207 |         return threadMap[ObjectIdentifier(Thread.current)]
    |                                           `- error: cannot find 'Thread' in scope
208 |     }
209 |
[10/51] Compiling Coltrane Job.swift
/host/spi-builder-workspace/Sources/Coltrane/Coltrane.swift:196:27: error: cannot find type 'Thread' in scope
194 |
195 |     /// Records that `thread` is running as `vp`, so `currentVP()` can map back.
196 |     func register(thread: Thread, as vp: VirtualProcessor) {
    |                           `- error: cannot find type 'Thread' in scope
197 |         stateLock.lock()
198 |         threadMap[ObjectIdentifier(thread)] = vp
/host/spi-builder-workspace/Sources/Coltrane/Coltrane.swift:129:39: error: cannot find 'Thread' in scope
127 |         let main = VirtualProcessor(id: 0, isMain: true, runtime: self)
128 |         vpList = [main]
129 |         threadMap = [ObjectIdentifier(Thread.current): main]
    |                                       `- error: cannot find 'Thread' in scope
130 |         var workers: [VirtualProcessor] = []
131 |         for slot in 1..<count {
/host/spi-builder-workspace/Sources/Coltrane/Coltrane.swift:207:43: error: cannot find 'Thread' in scope
205 |         stateLock.lock()
206 |         defer { stateLock.unlock() }
207 |         return threadMap[ObjectIdentifier(Thread.current)]
    |                                           `- error: cannot find 'Thread' in scope
208 |     }
209 |
[11/51] Compiling Coltrane VirtualProcessor.swift
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:45:28: error: cannot find 'DispatchSemaphore' in scope
 43 |     var jobStack: [AnyJob] = []
 44 |
 45 |     private let finished = DispatchSemaphore(value: 0)
    |                            `- error: cannot find 'DispatchSemaphore' in scope
 46 |     private var thread: Thread?
 47 |     private unowned let runtime: Coltrane
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:46:25: error: cannot find type 'Thread' in scope
 44 |
 45 |     private let finished = DispatchSemaphore(value: 0)
 46 |     private var thread: Thread?
    |                         `- error: cannot find type 'Thread' in scope
 47 |     private unowned let runtime: Coltrane
 48 |
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:64:25: error: cannot find 'Thread' in scope
 62 |     func startThread() {
 63 |         precondition(!isMain, "VP 0 (main) must not spawn a thread")
 64 |         let callerQoS = Thread.current.qualityOfService
    |                         `- error: cannot find 'Thread' in scope
 65 |         let t = Thread { [weak self] in self?.runLoop() }
 66 |         t.stackSize = 8 << 20
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:65:17: error: cannot find 'Thread' in scope
 63 |         precondition(!isMain, "VP 0 (main) must not spawn a thread")
 64 |         let callerQoS = Thread.current.qualityOfService
 65 |         let t = Thread { [weak self] in self?.runLoop() }
    |                 `- error: cannot find 'Thread' in scope
 66 |         t.stackSize = 8 << 20
 67 |         t.name = "Coltrane.VP\(id)"
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:76:34: error: cannot find 'Thread' in scope
 74 |     /// briefly when there is none, until the runtime stops.
 75 |     func runLoop() {
 76 |         runtime.register(thread: Thread.current, as: self)
    |                                  `- error: cannot find 'Thread' in scope
 77 |         bindToCore(id)
 78 |
/host/spi-builder-workspace/Sources/Coltrane/Coltrane.swift:196:27: error: cannot find type 'Thread' in scope
194 |
195 |     /// Records that `thread` is running as `vp`, so `currentVP()` can map back.
196 |     func register(thread: Thread, as vp: VirtualProcessor) {
    |                           `- error: cannot find type 'Thread' in scope
197 |         stateLock.lock()
198 |         threadMap[ObjectIdentifier(thread)] = vp
/host/spi-builder-workspace/Sources/Coltrane/VirtualProcessor.swift:101:14: warning: result of call to 'wait(until:)' is unused
 99 |         let cond = runtime.workSignal
100 |         cond.lock()
101 |         cond.wait(until: Date().addingTimeInterval(Coltrane.idlePollInterval))
    |              `- warning: result of call to 'wait(until:)' is unused
102 |         cond.unlock()
103 |     }
BUILD FAILURE 6.1 wasm