Build Information
Failed to build unswayed, reference main (d879bf), with Swift 6.2 for Wasm on 11 Aug 2026 22:29:11 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-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>&1Build Log
========================================
RunAll
========================================
Builder version: 729ceb5fcd9493dc13ee340bc4f0908bd201f85d
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Umer9538/unswayed.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/Umer9538/unswayed
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at d879bf0 Audit round 2: six fixes, each locked as a regression test
Cloned https://github.com/Umer9538/unswayed.git
Revision (git rev-parse @):
d879bf09bf80de1e1f27516b5c8e1f3df9b6fe11
SUCCESS checkout https://github.com/Umer9538/unswayed.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/Umer9538/unswayed.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-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:70428a4f4110aef5b17a27427e965f31cf3855e8cf1dfdc416ed61c780337965
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
[4/16] Compiling ParityCore FoundationModelsProvider.swift
[5/17] Compiling ParityCore Provider.swift
[6/17] Compiling ParityCore Stats.swift
[7/17] Compiling ParityCore HTTPProviders.swift
/host/spi-builder-workspace/Sources/ParityCore/HTTPProviders.swift:29:23: error: cannot find 'URLRequest' in scope
27 |
28 | public func respond(to prompt: String) async throws -> String {
29 | var request = URLRequest(url: URL(string: "https://api.anthropic.com/v1/messages")!)
| `- error: cannot find 'URLRequest' in scope
30 | request.httpMethod = "POST"
31 | request.setValue(apiKey, forHTTPHeaderField: "x-api-key")
/host/spi-builder-workspace/Sources/ParityCore/HTTPProviders.swift:40:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 | "messages": [["role": "user", "content": prompt]],
39 | ])
40 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
41 | guard let http = response as? HTTPURLResponse, http.statusCode == 200 else {
42 | let body = String(data: data, encoding: .utf8) ?? ""
/host/spi-builder-workspace/Sources/ParityCore/HTTPProviders.swift:44:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
42 | let body = String(data: data, encoding: .utf8) ?? ""
43 | throw ParityFormatError(
44 | "anthropic HTTP \((response as? HTTPURLResponse)?.statusCode ?? -1): \(body.prefix(300))")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
45 | }
46 | guard let json = try JSONSerialization.jsonObject(with: data) as? [String: Any],
/host/spi-builder-workspace/Sources/ParityCore/HTTPProviders.swift:86:23: error: cannot find 'URLRequest' in scope
84 | string:
85 | "https://generativelanguage.googleapis.com/v1beta/models/\(model):generateContent")!
86 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
87 | request.httpMethod = "POST"
88 | request.setValue("application/json", forHTTPHeaderField: "content-type")
/host/spi-builder-workspace/Sources/ParityCore/HTTPProviders.swift:94:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
92 | "generationConfig": ["temperature": 0],
93 | ])
94 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
95 | guard let http = response as? HTTPURLResponse, http.statusCode == 200 else {
96 | let body = String(data: data, encoding: .utf8) ?? ""
/host/spi-builder-workspace/Sources/ParityCore/HTTPProviders.swift:98:64: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
96 | let body = String(data: data, encoding: .utf8) ?? ""
97 | throw ParityFormatError(
98 | "gemini HTTP \((response as? HTTPURLResponse)?.statusCode ?? -1): \(body.prefix(300))")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
99 | }
100 | guard let json = try JSONSerialization.jsonObject(with: data) as? [String: Any],
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/17] Compiling ParityCore Compare.swift
[9/17] Compiling ParityCore Checks.swift
[10/17] Emitting module ParityCore
/host/spi-builder-workspace/Sources/ParityCore/Capture.swift:214:50: error: cannot find type 'DispatchTime' in scope
212 | }
213 |
214 | private static func elapsedMs(since started: DispatchTime) -> Int {
| `- error: cannot find type 'DispatchTime' in scope
215 | Int((DispatchTime.now().uptimeNanoseconds - started.uptimeNanoseconds) / 1_000_000)
216 | }
[11/17] Compiling ParityCore Capture.swift
/host/spi-builder-workspace/Sources/ParityCore/Capture.swift:214:50: error: cannot find type 'DispatchTime' in scope
212 | }
213 |
214 | private static func elapsedMs(since started: DispatchTime) -> Int {
| `- error: cannot find type 'DispatchTime' in scope
215 | Int((DispatchTime.now().uptimeNanoseconds - started.uptimeNanoseconds) / 1_000_000)
216 | }
/host/spi-builder-workspace/Sources/ParityCore/Capture.swift:174:31: error: cannot find 'DispatchTime' in scope
172 |
173 | for sampleIndex in 0..<samplesPerPrompt {
174 | let started = DispatchTime.now()
| `- error: cannot find 'DispatchTime' in scope
175 | do {
176 | let output = try await provider.respond(to: prompt.prompt)
/host/spi-builder-workspace/Sources/ParityCore/Capture.swift:215:14: error: cannot find 'DispatchTime' in scope
213 |
214 | private static func elapsedMs(since started: DispatchTime) -> Int {
215 | Int((DispatchTime.now().uptimeNanoseconds - started.uptimeNanoseconds) / 1_000_000)
| `- error: cannot find 'DispatchTime' in scope
216 | }
217 | }
[12/17] Compiling ParityCore Cassette.swift
/host/spi-builder-workspace/Sources/ParityCore/Capture.swift:214:50: error: cannot find type 'DispatchTime' in scope
212 | }
213 |
214 | private static func elapsedMs(since started: DispatchTime) -> Int {
| `- error: cannot find type 'DispatchTime' in scope
215 | Int((DispatchTime.now().uptimeNanoseconds - started.uptimeNanoseconds) / 1_000_000)
216 | }
/host/spi-builder-workspace/Sources/ParityCore/Capture.swift:174:31: error: cannot find 'DispatchTime' in scope
172 |
173 | for sampleIndex in 0..<samplesPerPrompt {
174 | let started = DispatchTime.now()
| `- error: cannot find 'DispatchTime' in scope
175 | do {
176 | let output = try await provider.respond(to: prompt.prompt)
/host/spi-builder-workspace/Sources/ParityCore/Capture.swift:215:14: error: cannot find 'DispatchTime' in scope
213 |
214 | private static func elapsedMs(since started: DispatchTime) -> Int {
215 | Int((DispatchTime.now().uptimeNanoseconds - started.uptimeNanoseconds) / 1_000_000)
| `- error: cannot find 'DispatchTime' in scope
216 | }
217 | }
[13/17] Compiling ParityCore Suite.swift
BUILD FAILURE 6.2 wasm