Build Information
Failed to build ReadAssist, reference main (ad238f), with Swift 6.3 for Linux on 5 Sep 2026 09:01:16 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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ai-nuke/read-assist.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/ai-nuke/read-assist
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at ad238fa Add runnable Swift integration and selected-text engineering guide
Cloned https://github.com/ai-nuke/read-assist.git
Revision (git rev-parse @):
ad238fa3267176cc2d0e74cc6b9bf2f7817fac8d
SUCCESS checkout https://github.com/ai-nuke/read-assist.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.3
Building package at path: $PWD
https://github.com/ai-nuke/read-assist.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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:b82c9ac2aaad9c671b7a7653c8e6eeaf006cac60f6a8910901b9357c067e0892
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.3-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 ReadAssistCore
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:8:44: error: cannot find type 'URLSessionTaskDelegate' in scope
6 | }
7 |
8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
9 | func urlSession(_ session: URLSession, task: URLSessionTask,
10 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:10:95: error: cannot find type 'URLRequest' in scope
8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
9 | func urlSession(_ session: URLSession, task: URLSessionTask,
10 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
11 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
12 | completionHandler(nil)
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:11:61: error: cannot find type 'URLRequest' in scope
9 | func urlSession(_ session: URLSession, task: URLSessionTask,
10 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
12 | completionHandler(nil)
13 | }
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:9:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
9 | func urlSession(_ session: URLSession, task: URLSessionTask,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
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/ReadAssistCore/LunaClient.swift:9:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
9 | func urlSession(_ session: URLSession, task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:10:58: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
9 | func urlSession(_ session: URLSession, task: URLSessionTask,
10 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
12 | completionHandler(nil)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | public struct LunaClient: ExplanationClient {
17 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | public init() {
19 | let config = URLSessionConfiguration.ephemeral
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/ReadAssistCore/LunaClient.swift:29:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | // Injection is for isolated transport tests; the production endpoint cannot be configured.
29 | public init(session: URLSession) { self.session = session }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 | public func explain(_ request: ReadingRequest, apiKey: String,
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/ReadAssistCore/LunaClient.swift:17:17: error: stored property 'session' of 'Sendable'-conforming struct 'LunaClient' has non-Sendable type 'AnyObject'
15 |
16 | public struct LunaClient: ExplanationClient {
17 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'LunaClient' has non-Sendable type 'AnyObject'
18 | public init() {
19 | let config = URLSessionConfiguration.ephemeral
[5/11] Compiling ReadAssistCore ReadingRequest.swift
[6/11] Compiling ReadAssistCore ResponseStream.swift
[7/11] Compiling ReadAssistCore LunaClient.swift
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:8:44: error: cannot find type 'URLSessionTaskDelegate' in scope
6 | }
7 |
8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
9 | func urlSession(_ session: URLSession, task: URLSessionTask,
10 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:10:95: error: cannot find type 'URLRequest' in scope
8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
9 | func urlSession(_ session: URLSession, task: URLSessionTask,
10 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
11 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
12 | completionHandler(nil)
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:11:61: error: cannot find type 'URLRequest' in scope
9 | func urlSession(_ session: URLSession, task: URLSessionTask,
10 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
12 | completionHandler(nil)
13 | }
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:9:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
9 | func urlSession(_ session: URLSession, task: URLSessionTask,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
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/ReadAssistCore/LunaClient.swift:9:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
9 | func urlSession(_ session: URLSession, task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:10:58: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, Sendable {
9 | func urlSession(_ session: URLSession, task: URLSessionTask,
10 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
12 | completionHandler(nil)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:17:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | public struct LunaClient: ExplanationClient {
17 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | public init() {
19 | let config = URLSessionConfiguration.ephemeral
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/ReadAssistCore/LunaClient.swift:29:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | // Injection is for isolated transport tests; the production endpoint cannot be configured.
29 | public init(session: URLSession) { self.session = session }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 | public func explain(_ request: ReadingRequest, apiKey: String,
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/ReadAssistCore/LunaClient.swift:17:17: error: stored property 'session' of 'Sendable'-conforming struct 'LunaClient' has non-Sendable type 'AnyObject'
15 |
16 | public struct LunaClient: ExplanationClient {
17 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'LunaClient' has non-Sendable type 'AnyObject'
18 | public init() {
19 | let config = URLSessionConfiguration.ephemeral
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:12:27: error: 'nil' requires a contextual type
10 | willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
11 | completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
12 | completionHandler(nil)
| `- error: 'nil' requires a contextual type
13 | }
14 | }
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:19:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
17 | private let session: URLSession
18 | public init() {
19 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
20 | config.timeoutIntervalForRequest = 20
21 | config.timeoutIntervalForResource = 60
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:24:38: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
22 | config.urlCache = nil
23 | config.httpCookieStorage = nil
24 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
25 | session = URLSession(configuration: config, delegate: NoRedirects(), delegateQueue: nil)
26 | }
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:25:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 | config.httpCookieStorage = nil
24 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
25 | session = URLSession(configuration: config, delegate: NoRedirects(), delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
26 | }
27 |
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:25:93: error: 'nil' requires a contextual type
23 | config.httpCookieStorage = nil
24 | config.requestCachePolicy = .reloadIgnoringLocalCacheData
25 | session = URLSession(configuration: config, delegate: NoRedirects(), delegateQueue: nil)
| `- error: 'nil' requires a contextual type
26 | }
27 |
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:36:20: error: cannot find 'URLRequest' in scope
34 | guard !key.isEmpty else { throw ReadingError.missingKey }
35 | try Task.checkCancellation()
36 | var http = URLRequest(url: URL(string: "https://api.openai.com/v1/responses")!)
| `- error: cannot find 'URLRequest' in scope
37 | http.httpMethod = "POST"
38 | http.setValue("Bearer \(key)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/ReadAssistCore/LunaClient.swift:42:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
40 | http.setValue("text/event-stream", forHTTPHeaderField: "Accept")
41 | http.httpBody = try request.payload()
42 | let (bytes, response) = try await session.bytes(for: http)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
43 | defer { bytes.task.cancel() }
44 | guard let response = response as? HTTPURLResponse else { throw ReadingError.invalidResponse }
BUILD FAILURE 6.3 linux