Build Information
Failed to build Kavel, reference main (56e604), with Swift 6.1 for Wasm on 27 Oct 2026 21:24:25 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344845-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>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hanshs474/kavel-swift.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/hanshs474/kavel-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 56e6046 Kavel Swift 1.0.0
Cloned https://github.com/hanshs474/kavel-swift.git
Revision (git rev-parse @):
56e60467dbe9f90176ec5869a191379d51ed0aa6
SUCCESS checkout https://github.com/hanshs474/kavel-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/hanshs474/kavel-swift.git
https://github.com/hanshs474/kavel-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-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:f257c9b8465670613eb336f6def351d681b1d395aebdb231a45bac980c1f9d3c
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module Kavel
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:31:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | public let apiKey: String?
31 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | public init(apiKey: String? = nil, session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:33:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | public let session: URLSession
32 |
33 | public init(apiKey: String? = nil, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["KAVEL_API_KEY"]
35 | self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:33:63: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
31 | public let session: URLSession
32 |
33 | public init(apiKey: String? = nil, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
34 | self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["KAVEL_API_KEY"]
35 | self.session = session
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:62:30: error: cannot find type 'URLRequest' in scope
60 | }
61 |
62 | private func json(_ req: URLRequest) async throws -> [String: Any] {
| `- error: cannot find type 'URLRequest' in scope
63 | let (data, _) = try await session.data(for: req)
64 | return (try JSONSerialization.jsonObject(with: data) as? [String: Any]) ?? [:]
[4/4] Compiling Kavel Kavel.swift
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:31:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | public let apiKey: String?
31 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | public init(apiKey: String? = nil, session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:33:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | public let session: URLSession
32 |
33 | public init(apiKey: String? = nil, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["KAVEL_API_KEY"]
35 | self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:33:63: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
31 | public let session: URLSession
32 |
33 | public init(apiKey: String? = nil, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
34 | self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["KAVEL_API_KEY"]
35 | self.session = session
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:62:30: error: cannot find type 'URLRequest' in scope
60 | }
61 |
62 | private func json(_ req: URLRequest) async throws -> [String: Any] {
| `- error: cannot find type 'URLRequest' in scope
63 | let (data, _) = try await session.data(for: req)
64 | return (try JSONSerialization.jsonObject(with: data) as? [String: Any]) ?? [:]
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:63:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
61 |
62 | private func json(_ req: URLRequest) async throws -> [String: Any] {
63 | let (data, _) = try await session.data(for: req)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
64 | return (try JSONSerialization.jsonObject(with: data) as? [String: Any]) ?? [:]
65 | }
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:69:22: error: cannot find 'URLRequest' in scope
67 | private func run(_ payload: [String: Any], timeout: TimeInterval) async throws -> Image {
68 | let auth = headers()
69 | var submit = URLRequest(url: Kavel.baseURL.appendingPathComponent("api/ai/generate"))
| `- error: cannot find 'URLRequest' in scope
70 | submit.httpMethod = "POST"
71 | submit.setValue("application/json", forHTTPHeaderField: "content-type")
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:86:23: error: cannot find type 'URLRequest' in scope
84 | while Date() < deadline {
85 | try await Task.sleep(nanoseconds: 5_000_000_000)
86 | var poll: URLRequest
| `- error: cannot find type 'URLRequest' in scope
87 | if auth["authorization"] != nil {
88 | poll = URLRequest(url: Kavel.baseURL.appendingPathComponent("api/ai/query"))
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:88:24: error: cannot find 'URLRequest' in scope
86 | var poll: URLRequest
87 | if auth["authorization"] != nil {
88 | poll = URLRequest(url: Kavel.baseURL.appendingPathComponent("api/ai/query"))
| `- error: cannot find 'URLRequest' in scope
89 | poll.httpMethod = "POST"
90 | poll.setValue("application/json", forHTTPHeaderField: "content-type")
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:95:24: error: cannot find 'URLRequest' in scope
93 | var c = URLComponents(url: Kavel.baseURL.appendingPathComponent("api/ai/anon-query"), resolvingAgainstBaseURL: false)!
94 | c.queryItems = [.init(name: "taskId", value: task), .init(name: "provider", value: "kie"), .init(name: "mediaType", value: "image")]
95 | poll = URLRequest(url: c.url!)
| `- error: cannot find 'URLRequest' in scope
96 | }
97 | auth.forEach { poll.setValue($0.value, forHTTPHeaderField: $0.key) }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-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:f257c9b8465670613eb336f6def351d681b1d395aebdb231a45bac980c1f9d3c
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/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module Kavel
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:31:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | public let apiKey: String?
31 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | public init(apiKey: String? = nil, session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:33:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | public let session: URLSession
32 |
33 | public init(apiKey: String? = nil, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["KAVEL_API_KEY"]
35 | self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:33:63: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
31 | public let session: URLSession
32 |
33 | public init(apiKey: String? = nil, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
34 | self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["KAVEL_API_KEY"]
35 | self.session = session
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:62:30: error: cannot find type 'URLRequest' in scope
60 | }
61 |
62 | private func json(_ req: URLRequest) async throws -> [String: Any] {
| `- error: cannot find type 'URLRequest' in scope
63 | let (data, _) = try await session.data(for: req)
64 | return (try JSONSerialization.jsonObject(with: data) as? [String: Any]) ?? [:]
[3/3] Compiling Kavel Kavel.swift
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:31:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | public let apiKey: String?
31 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | public init(apiKey: String? = nil, session: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:33:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | public let session: URLSession
32 |
33 | public init(apiKey: String? = nil, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["KAVEL_API_KEY"]
35 | self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:33:63: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
31 | public let session: URLSession
32 |
33 | public init(apiKey: String? = nil, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
34 | self.apiKey = apiKey ?? ProcessInfo.processInfo.environment["KAVEL_API_KEY"]
35 | self.session = session
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:62:30: error: cannot find type 'URLRequest' in scope
60 | }
61 |
62 | private func json(_ req: URLRequest) async throws -> [String: Any] {
| `- error: cannot find type 'URLRequest' in scope
63 | let (data, _) = try await session.data(for: req)
64 | return (try JSONSerialization.jsonObject(with: data) as? [String: Any]) ?? [:]
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:63:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
61 |
62 | private func json(_ req: URLRequest) async throws -> [String: Any] {
63 | let (data, _) = try await session.data(for: req)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
64 | return (try JSONSerialization.jsonObject(with: data) as? [String: Any]) ?? [:]
65 | }
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:69:22: error: cannot find 'URLRequest' in scope
67 | private func run(_ payload: [String: Any], timeout: TimeInterval) async throws -> Image {
68 | let auth = headers()
69 | var submit = URLRequest(url: Kavel.baseURL.appendingPathComponent("api/ai/generate"))
| `- error: cannot find 'URLRequest' in scope
70 | submit.httpMethod = "POST"
71 | submit.setValue("application/json", forHTTPHeaderField: "content-type")
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:86:23: error: cannot find type 'URLRequest' in scope
84 | while Date() < deadline {
85 | try await Task.sleep(nanoseconds: 5_000_000_000)
86 | var poll: URLRequest
| `- error: cannot find type 'URLRequest' in scope
87 | if auth["authorization"] != nil {
88 | poll = URLRequest(url: Kavel.baseURL.appendingPathComponent("api/ai/query"))
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:88:24: error: cannot find 'URLRequest' in scope
86 | var poll: URLRequest
87 | if auth["authorization"] != nil {
88 | poll = URLRequest(url: Kavel.baseURL.appendingPathComponent("api/ai/query"))
| `- error: cannot find 'URLRequest' in scope
89 | poll.httpMethod = "POST"
90 | poll.setValue("application/json", forHTTPHeaderField: "content-type")
/host/spi-builder-workspace/Sources/Kavel/Kavel.swift:95:24: error: cannot find 'URLRequest' in scope
93 | var c = URLComponents(url: Kavel.baseURL.appendingPathComponent("api/ai/anon-query"), resolvingAgainstBaseURL: false)!
94 | c.queryItems = [.init(name: "taskId", value: task), .init(name: "provider", value: "kie"), .init(name: "mediaType", value: "image")]
95 | poll = URLRequest(url: c.url!)
| `- error: cannot find 'URLRequest' in scope
96 | }
97 | auth.forEach { poll.setValue($0.value, forHTTPHeaderField: $0.key) }
BUILD FAILURE 6.1 wasm