Build Information
Failed to build swift-ai, reference main (06dc4f), with Swift 6.2 for Linux on 12 Mar 2026 20:22:30 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ohitslaurence/swift-ai-sdk.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/ohitslaurence/swift-ai-sdk
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 06dc4f1 Improve repo quality and contributor experience (#17)
Cloned https://github.com/ohitslaurence/swift-ai-sdk.git
Revision (git rev-parse @):
06dc4f18b25297f3171bca5366ae0b7f38b769e2
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ohitslaurence/swift-ai-sdk.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/ohitslaurence/swift-ai-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:257b0ae9749b4eea8553a58f7bf60a672611c061e9b845ccfee371e7c1138ce8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/14] Write sources
[7/14] Write swift-version-24593BA9C3E375BF.txt
[9/61] Emitting module AICore
[10/67] Compiling AICore AIToolResponse.swift
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:63:55: error: value of type 'URLSession' has no member 'bytes'
61 |
62 | do {
63 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
64 | guard let httpResponse = response as? HTTPURLResponse else {
65 | throw AIError.networkError(
[11/67] Compiling AICore AIToolResult.swift
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:63:55: error: value of type 'URLSession' has no member 'bytes'
61 |
62 | do {
63 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
64 | guard let httpResponse = response as? HTTPURLResponse else {
65 | throw AIError.networkError(
[12/67] Compiling AICore AIToolStream.swift
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:63:55: error: value of type 'URLSession' has no member 'bytes'
61 |
62 | do {
63 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
64 | guard let httpResponse = response as? HTTPURLResponse else {
65 | throw AIError.networkError(
[13/67] Compiling AICore AIToolUse.swift
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:63:55: error: value of type 'URLSession' has no member 'bytes'
61 |
62 | do {
63 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
64 | guard let httpResponse = response as? HTTPURLResponse else {
65 | throw AIError.networkError(
[14/67] Compiling AICore StopCondition.swift
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:63:55: error: value of type 'URLSession' has no member 'bytes'
61 |
62 | do {
63 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
64 | guard let httpResponse = response as? HTTPURLResponse else {
65 | throw AIError.networkError(
[15/67] Compiling AICore AIHTTPTransport.swift
/host/spi-builder-workspace/Sources/AICore/Transport/AIHTTPTransport.swift:63:55: error: value of type 'URLSession' has no member 'bytes'
61 |
62 | do {
63 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
64 | guard let httpResponse = response as? HTTPURLResponse else {
65 | throw AIError.networkError(
[16/67] Compiling AICore StructuredOutputGenerator.swift
[17/67] Compiling AICore StructuredOutputRepair.swift
[18/67] Compiling AICore AITimeout.swift
[19/67] Compiling AICore AITool.swift
[20/67] Compiling AICore AIToolChoice.swift
[21/67] Compiling AICore AIToolExecution.swift
[22/67] Compiling AICore Agent.swift
[23/67] Compiling AICore AIEmbedding.swift
[24/67] Compiling AICore AIEmbeddingRequest.swift
[25/67] Compiling AICore AIEmbeddingResponse.swift
[26/67] Compiling AICore AIError.swift
[27/67] Compiling AICore AIContent.swift
[28/67] Compiling AICore AIDocument.swift
[29/67] Compiling AICore AIImage.swift
[30/67] Compiling AICore AIMessage.swift
[31/67] Compiling AICore AIRole.swift
[32/67] Compiling AICore AIMiddleware.swift
[33/67] Compiling AICore DefaultSettingsMiddleware.swift
[34/67] Compiling AICore LoggingMiddleware.swift
[35/67] Compiling AICore MiddlewareProvider.swift
[36/67] Compiling AICore AIModel.swift
[37/67] Compiling AICore AIAccounting.swift
[38/67] Compiling AICore AITelemetry.swift
[39/67] Compiling AICore AITelemetryEvent.swift
[40/67] Compiling AICore AITelemetryMetrics.swift
[41/67] Compiling AICore AITelemetryRedaction.swift
[42/67] Compiling AICore AIProvider+ToolExecution.swift
[43/67] Compiling AICore SmoothStreaming.swift
[44/67] Compiling AICore AIJSONSchema.swift
[45/67] Compiling AICore AIJSONSchemaGenerator.swift
[46/67] Compiling AICore AIProvider+StructuredOutput.swift
[47/67] Compiling AICore AIStructured.swift
[48/67] Compiling AICore AIStructuredResponse.swift
[49/67] Compiling AICore AIUsageAccumulator.swift
[50/67] Compiling AICore RetryExecutor.swift
[51/67] Compiling AICore RetryPolicy.swift
[52/67] Compiling AICore AIStream.swift
[53/67] Compiling AICore AIStreamDelta.swift
[54/67] Compiling AICore AIStreamEvent.swift
[55/67] Compiling AICore AIProvider.swift
[56/67] Compiling AICore AIProviderCapabilities.swift
[57/67] Compiling AICore AIRequest.swift
[58/67] Compiling AICore AIResponseFormat.swift
[59/67] Compiling AICore AIProviderWarning.swift
[60/67] Compiling AICore AIResponse.swift
[61/67] Compiling AICore AIUsage.swift
BUILD FAILURE 6.2 linux