Build Information
Failed to build Bonsai, reference main (11f17f), with Swift 6.1 for Wasm on 10 Mar 2026 20:23:12 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/loopwerk/Bonsai.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/loopwerk/Bonsai
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 11f17f3 chore: Update the minimum Swift version to 5.10
Cloned https://github.com/loopwerk/Bonsai.git
Revision (git rev-parse @):
11f17f321022c068f609b8f758081b5c9237109d
SUCCESS checkout https://github.com/loopwerk/Bonsai.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/loopwerk/Bonsai.git
https://github.com/loopwerk/Bonsai.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "Bonsai",
"name" : "Bonsai",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Bonsai",
"targets" : [
"Bonsai"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "BonsaiBenchmark",
"targets" : [
"BonsaiBenchmark"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "BonsaiTests",
"module_type" : "SwiftTarget",
"name" : "BonsaiTests",
"path" : "Tests/BonsaiTests",
"sources" : [
"BonsaiTests.swift"
],
"target_dependencies" : [
"Bonsai"
],
"type" : "test"
},
{
"c99name" : "BonsaiBenchmark",
"module_type" : "SwiftTarget",
"name" : "BonsaiBenchmark",
"path" : "Benchmark",
"product_memberships" : [
"BonsaiBenchmark"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Bonsai"
],
"type" : "executable"
},
{
"c99name" : "Bonsai",
"module_type" : "SwiftTarget",
"name" : "Bonsai",
"path" : "Sources/Bonsai",
"product_memberships" : [
"Bonsai",
"BonsaiBenchmark"
],
"sources" : [
"Bonsai.swift",
"Constants.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/10] Compiling Bonsai Constants.swift
[5/10] Emitting module Bonsai
[6/10] Compiling Bonsai Bonsai.swift
[7/11] Wrapping AST for Bonsai for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/13] Emitting module BonsaiBenchmark
/host/spi-builder-workspace/Benchmark/main.swift:18:13: error: cannot find 'DispatchTime' in scope
16 | }
17 |
18 | let start = DispatchTime.now()
| `- error: cannot find 'DispatchTime' in scope
19 | for _ in 0 ..< iterations {
20 | _ = Bonsai.minifyHTML(html)
/host/spi-builder-workspace/Benchmark/main.swift:23:11: error: cannot find 'DispatchTime' in scope
21 | }
22 |
23 | let end = DispatchTime.now()
| `- error: cannot find 'DispatchTime' in scope
24 |
25 | let nanoseconds = Double(end.uptimeNanoseconds - start.uptimeNanoseconds)
[10/13] Compiling BonsaiBenchmark main.swift
/host/spi-builder-workspace/Benchmark/main.swift:18:13: error: cannot find 'DispatchTime' in scope
16 | }
17 |
18 | let start = DispatchTime.now()
| `- error: cannot find 'DispatchTime' in scope
19 | for _ in 0 ..< iterations {
20 | _ = Bonsai.minifyHTML(html)
/host/spi-builder-workspace/Benchmark/main.swift:23:11: error: cannot find 'DispatchTime' in scope
21 | }
22 |
23 | let end = DispatchTime.now()
| `- error: cannot find 'DispatchTime' in scope
24 |
25 | let nanoseconds = Double(end.uptimeNanoseconds - start.uptimeNanoseconds)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
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/5] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling Bonsai Constants.swift
[3/8] Emitting module Bonsai
[4/8] Compiling Bonsai Bonsai.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/10] Emitting module BonsaiBenchmark
/host/spi-builder-workspace/Benchmark/main.swift:18:13: error: cannot find 'DispatchTime' in scope
16 | }
17 |
18 | let start = DispatchTime.now()
| `- error: cannot find 'DispatchTime' in scope
19 | for _ in 0 ..< iterations {
20 | _ = Bonsai.minifyHTML(html)
/host/spi-builder-workspace/Benchmark/main.swift:23:11: error: cannot find 'DispatchTime' in scope
21 | }
22 |
23 | let end = DispatchTime.now()
| `- error: cannot find 'DispatchTime' in scope
24 |
25 | let nanoseconds = Double(end.uptimeNanoseconds - start.uptimeNanoseconds)
[7/10] Compiling BonsaiBenchmark main.swift
/host/spi-builder-workspace/Benchmark/main.swift:18:13: error: cannot find 'DispatchTime' in scope
16 | }
17 |
18 | let start = DispatchTime.now()
| `- error: cannot find 'DispatchTime' in scope
19 | for _ in 0 ..< iterations {
20 | _ = Bonsai.minifyHTML(html)
/host/spi-builder-workspace/Benchmark/main.swift:23:11: error: cannot find 'DispatchTime' in scope
21 | }
22 |
23 | let end = DispatchTime.now()
| `- error: cannot find 'DispatchTime' in scope
24 |
25 | let nanoseconds = Double(end.uptimeNanoseconds - start.uptimeNanoseconds)
BUILD FAILURE 6.1 wasm