Build Information
Failed to build swift-xet, reference main (4395b0), with Swift 6.4 for Wasm on 25 Sep 2026 12:49:48 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344845-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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DePasqualeOrg/swift-xet.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/DePasqualeOrg/swift-xet
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4395b09 Align with xet-core (#5)
Cloned https://github.com/DePasqualeOrg/swift-xet.git
Revision (git rev-parse @):
4395b0900c1d45614d323b9ba1109cd46dc1c1d7
SUCCESS checkout https://github.com/DePasqualeOrg/swift-xet.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/DePasqualeOrg/swift-xet.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Pre-planning 1 / 66]
[Starting]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/Sources/Xet/CAS.swift:12:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m10 |[0;0m /// that describes how to reassemble a file from its constituent chunks.
[0;36m11 |[0;0m struct CASClient: Sendable {
[0;36m12 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m13 |[0;0m private static let reconstructionVersionState = ReconstructionVersionState()
[0;36m14 |[0;0m
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/CAS.swift:16:22: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m /// Creates a CAS client with the specified URL session.
[0;36m16 |[0;0m init(urlSession: [4;39mURLSession[0;0m = .shared) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m17 |[0;0m self.urlSession = urlSession
[0;36m18 |[0;0m }
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/CAS.swift:16:36: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m /// Creates a CAS client with the specified URL session.
[0;36m16 |[0;0m init(urlSession: URLSession = .shared) {
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m17 |[0;0m self.urlSession = urlSession
[0;36m18 |[0;0m }
/host/spi-builder-workspace/Sources/Xet/CAS.swift:16:36: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m /// Creates a CAS client with the specified URL session.
[0;36m16 |[0;0m init(urlSession: URLSession = [4;39m.shared[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m17 |[0;0m self.urlSession = urlSession
[0;36m18 |[0;0m }
/host/spi-builder-workspace/Sources/Xet/CAS.swift:137:22: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m135 |[0;0m
[0;36m136 |[0;0m private func reconstructionWithRetry(
[0;36m137 |[0;0m for request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m138 |[0;0m apiVersion: Int,
[0;36m139 |[0;0m enableMultiRangeFetching: Bool,
/host/spi-builder-workspace/Sources/Xet/CAS.swift:12:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'CASClient' has non-Sendable type 'AnyObject'[0;0m
[0;36m10 |[0;0m /// that describes how to reassemble a file from its constituent chunks.
[0;36m11 |[0;0m struct CASClient: Sendable {
[0;36m12 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming struct 'CASClient' has non-Sendable type 'AnyObject'[0;0m
[0;36m13 |[0;0m private static let reconstructionVersionState = ReconstructionVersionState()
[0;36m14 |[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:112:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m110 |[0;0m
[0;36m111 |[0;0m /// URL session for xorb data fetches, using the fetch delegate.
[0;36m112 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m113 |[0;0m
[0;36m114 |[0;0m /// URL session for CAS reconstruction and token requests (no delegate).
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:115:33: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m113 |[0;0m
[0;36m114 |[0;0m /// URL session for CAS reconstruction and token requests (no delegate).
[0;36m115 |[0;0m private let controlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m116 |[0;0m
[0;36m117 |[0;0m /// Downloader configuration settings.
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:225:85: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m223 |[0;0m }
[0;36m224 |[0;0m
[0;36m225 |[0;0m private static func applyHeaders(_ headers: [String: String], to request: inout [4;39mURLRequest[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m226 |[0;0m for (key, value) in headers {
[0;36m227 |[0;0m request.setValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/Xet/Xet.swift:786:18: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m784 |[0;0m termHash: String,
[0;36m785 |[0;0m fetchInfo: CASClient.ReconstructionResponse.FetchInfo,
[0;36m786 |[0;0m request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m787 |[0;0m requestGeneration: Int,
[0;36m788 |[0;0m expectedUnpackedLength: Int?,
/host/spi-builder-workspace/Sources/Xet/Xet.swift:911:19: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m909 |[0;0m private func decodeXorbResponse(
[0;36m910 |[0;0m _ responseData: Data,
[0;36m911 |[0;0m response: [4;39mHTTPURLResponse[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m912 |[0;0m fetchInfo: CASClient.ReconstructionResponse.FetchInfo,
[0;36m913 |[0;0m expectedUnpackedLength: Int?
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1111:22: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m1109 |[0;0m private struct RefreshedFetchRequest: Sendable {
[0;36m1110 |[0;0m let generation: Int
[0;36m1111 |[0;0m let request: [4;39mURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m1112 |[0;0m }
[0;36m1113 |[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:112:17: [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming class 'XetDownloader' has non-Sendable type 'AnyObject'[0;0m
[0;36m110 |[0;0m
[0;36m111 |[0;0m /// URL session for xorb data fetches, using the fetch delegate.
[0;36m112 |[0;0m private let urlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'urlSession' of 'Sendable'-conforming class 'XetDownloader' has non-Sendable type 'AnyObject'[0;0m
[0;36m113 |[0;0m
[0;36m114 |[0;0m /// URL session for CAS reconstruction and token requests (no delegate).
/host/spi-builder-workspace/Sources/Xet/Xet.swift:115:17: [1;31merror: [1;39mstored property 'controlSession' of 'Sendable'-conforming class 'XetDownloader' has non-Sendable type 'AnyObject'[0;0m
[0;36m113 |[0;0m
[0;36m114 |[0;0m /// URL session for CAS reconstruction and token requests (no delegate).
[0;36m115 |[0;0m private let controlSession: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'controlSession' of 'Sendable'-conforming class 'XetDownloader' has non-Sendable type 'AnyObject'[0;0m
[0;36m116 |[0;0m
[0;36m117 |[0;0m /// Downloader configuration settings.
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1301:46: [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m1299 |[0;0m /// URLSession data delegate that accumulates received data per task
[0;36m1300 |[0;0m /// and reports download progress as bytes arrive.
[0;36m1301 |[0;0m private final class FetchDelegate: NSObject, [4;39mURLSessionDataDelegate[0;0m, @unchecked Sendable {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m1302 |[0;0m private let lock = NSLock()
[0;36m1303 |[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1306:54: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1304 |[0;0m private struct TaskState {
[0;36m1305 |[0;0m var data: Data
[0;36m1306 |[0;0m var continuation: CheckedContinuation<(Data, [4;39mURLResponse[0;0m), Error>
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1307 |[0;0m var progressHandler: (@Sendable (Int64, Int64) -> Void)?
[0;36m1308 |[0;0m var response: URLResponse?
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1308:23: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1306 |[0;0m var continuation: CheckedContinuation<(Data, URLResponse), Error>
[0;36m1307 |[0;0m var progressHandler: (@Sendable (Int64, Int64) -> Void)?
[0;36m1308 |[0;0m var response: [4;39mURLResponse[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1309 |[0;0m }
[0;36m1310 |[0;0m
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1316:22: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m1314 |[0;0m /// delegate receives `didReceive data:` callbacks for progress tracking.
[0;36m1315 |[0;0m func data(
[0;36m1316 |[0;0m for request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m1317 |[0;0m session: URLSession,
[0;36m1318 |[0;0m progressHandler: (@Sendable (Int64, Int64) -> Void)? = nil
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1317:18: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1315 |[0;0m func data(
[0;36m1316 |[0;0m for request: URLRequest,
[0;36m1317 |[0;0m session: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1318 |[0;0m progressHandler: (@Sendable (Int64, Int64) -> Void)? = nil
[0;36m1319 |[0;0m ) async throws -> (Data, URLResponse) {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1319:30: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1317 |[0;0m session: URLSession,
[0;36m1318 |[0;0m progressHandler: (@Sendable (Int64, Int64) -> Void)? = nil
[0;36m1319 |[0;0m ) async throws -> (Data, [4;39mURLResponse[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1320 |[0;0m let taskHolder = TaskHolder()
[0;36m1321 |[0;0m return try await withTaskCancellationHandler {
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1347:27: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1345 |[0;0m private final class TaskHolder: @unchecked Sendable {
[0;36m1346 |[0;0m private let lock = NSLock()
[0;36m1347 |[0;0m private var task: [4;39mURLSessionDataTask[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1348 |[0;0m
[0;36m1349 |[0;0m func setTask(_ task: URLSessionDataTask) {
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1349:30: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1347 |[0;0m private var task: URLSessionDataTask?
[0;36m1348 |[0;0m
[0;36m1349 |[0;0m func setTask(_ task: [4;39mURLSessionDataTask[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1350 |[0;0m lock.lock()
[0;36m1351 |[0;0m self.task = task
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1367:60: [1;31merror: [1;39m'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m1365 |[0;0m dataTask: URLSessionDataTask,
[0;36m1366 |[0;0m didReceive response: URLResponse,
[0;36m1367 |[0;0m completionHandler: @escaping @Sendable ([4;39mURLSession[0;0m.ResponseDisposition) -> Void
[0;36m|[0;0m `- [1;31merror: [1;39m'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m1368 |[0;0m ) {
[0;36m1369 |[0;0m lock.withLock {
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1364:20: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1362 |[0;0m
[0;36m1363 |[0;0m func urlSession(
[0;36m1364 |[0;0m _ session: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1365 |[0;0m dataTask: URLSessionDataTask,
[0;36m1366 |[0;0m didReceive response: URLResponse,
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1365:19: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1363 |[0;0m func urlSession(
[0;36m1364 |[0;0m _ session: URLSession,
[0;36m1365 |[0;0m dataTask: [4;39mURLSessionDataTask[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1366 |[0;0m didReceive response: URLResponse,
[0;36m1367 |[0;0m completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1366:30: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1364 |[0;0m _ session: URLSession,
[0;36m1365 |[0;0m dataTask: URLSessionDataTask,
[0;36m1366 |[0;0m didReceive response: [4;39mURLResponse[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1367 |[0;0m completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
[0;36m1368 |[0;0m ) {
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1376:20: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1374 |[0;0m
[0;36m1375 |[0;0m func urlSession(
[0;36m1376 |[0;0m _ session: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1377 |[0;0m dataTask: URLSessionDataTask,
[0;36m1378 |[0;0m didReceive receivedData: Data
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1377:19: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1375 |[0;0m func urlSession(
[0;36m1376 |[0;0m _ session: URLSession,
[0;36m1377 |[0;0m dataTask: [4;39mURLSessionDataTask[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1378 |[0;0m didReceive receivedData: Data
[0;36m1379 |[0;0m ) {
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1393:20: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1391 |[0;0m
[0;36m1392 |[0;0m func urlSession(
[0;36m1393 |[0;0m _ session: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1394 |[0;0m task: URLSessionTask,
[0;36m1395 |[0;0m didCompleteWithError error: Error?
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1394:15: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1392 |[0;0m func urlSession(
[0;36m1393 |[0;0m _ session: URLSession,
[0;36m1394 |[0;0m task: [4;39mURLSessionTask[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1395 |[0;0m didCompleteWithError error: Error?
[0;36m1396 |[0;0m ) {
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1522:33: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1520 |[0;0m actor TokenProvider {
[0;36m1521 |[0;0m /// URL session used for token refresh requests.
[0;36m1522 |[0;0m private let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1523 |[0;0m
[0;36m1524 |[0;0m /// Window before expiration to treat tokens as stale.
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1559:25: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1557 |[0;0m /// Defaults to 60 seconds.
[0;36m1558 |[0;0m init(
[0;36m1559 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1560 |[0;0m safetyWindow: TimeInterval = 60
[0;36m1561 |[0;0m ) {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1559:39: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m1557 |[0;0m /// Defaults to 60 seconds.
[0;36m1558 |[0;0m init(
[0;36m1559 |[0;0m urlSession: URLSession = .shared,
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m1560 |[0;0m safetyWindow: TimeInterval = 60
[0;36m1561 |[0;0m ) {
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1559:39: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m1557 |[0;0m /// Defaults to 60 seconds.
[0;36m1558 |[0;0m init(
[0;36m1559 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m1560 |[0;0m safetyWindow: TimeInterval = 60
[0;36m1561 |[0;0m ) {
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1638:26: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m1636 |[0;0m
[0;36m1637 |[0;0m private static func connectionInfoWithRetry(
[0;36m1638 |[0;0m for request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m1639 |[0;0m urlSession: URLSession,
[0;36m1640 |[0;0m maxRetries: Int,
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1639:25: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1637 |[0;0m private static func connectionInfoWithRetry(
[0;36m1638 |[0;0m for request: URLRequest,
[0;36m1639 |[0;0m urlSession: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1640 |[0;0m maxRetries: Int,
[0;36m1641 |[0;0m retryBaseDelay: TimeInterval,
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Xet/Xet.swift:1708:59: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1706 |[0;0m }
[0;36m1707 |[0;0m
[0;36m1708 |[0;0m private static func connectionInfo(from response: [4;39mHTTPURLResponse[0;0m) throws -> ConnectionInfo? {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1709 |[0;0m guard
[0;36m1710 |[0;0m let casURLString = response.value(forHTTPHeaderField: "X-Xet-Cas-Url"),
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/Xet/BG4.swift /host/spi-builder-workspace/Sources/Xet/CAS.swift /host/spi-builder-workspace/Sources/Xet/LZ4.swift /host/spi-builder-workspace/Sources/Xet/Xet.swift /host/spi-builder-workspace/Sources/Xet/Xorb.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Xet -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/Objects-normal/wasm32/Xet_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/Objects-normal/wasm32/Modules/Xet.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/Objects-normal/wasm32/Modules/Xet.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/Objects-normal/wasm32/Xet-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/Objects-normal/wasm32/Xet-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/Objects-normal/wasm32/Xet-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-xet.build/Debug-webassembly-wasm32/Xet-t.build/Objects-normal/wasm32/Modules/Xet.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm