Build Information
Failed to build ACP, reference v0.1.16 (f38606), with Swift 6.0 for Linux on 3 Mar 2026 07:30:28 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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.0-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/aptove/swift-sdk.git
Reference: v0.1.16
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/aptove/swift-sdk
* tag v0.1.16 -> FETCH_HEAD
HEAD is now at f38606f fix: fail pending requests on transport close, call close() on POSIX 57
Cloned https://github.com/aptove/swift-sdk.git
Revision (git rev-parse @):
f38606f7bb43a12122b8338b2bb694084ededf94
SUCCESS checkout https://github.com/aptove/swift-sdk.git at v0.1.16
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/aptove/swift-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:5920b6fc7f526808de8dcf4e65806a8aca248ef5a9160d25a6b9c7489c0b8a3f
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-log.git
[1/20327] Fetching swift-collections
[205/26417] Fetching swift-collections, swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.86s)
[4066/20327] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (4.64s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (2.70s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.10.1 (0.73s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.10.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.0
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Samples/EchoAgent/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Samples/SimpleClient/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Samples/InteractiveClient/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Samples/SimpleAgentApp/README.md
Building for debugging...
[0/40] Write sources
[16/40] Write swift-version-24593BA9C3E375BF.txt
[18/61] Emitting module InternalCollectionsUtilities
[19/63] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[20/63] Compiling InternalCollectionsUtilities Integer rank.swift
[21/63] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[22/63] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[23/63] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[24/63] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[25/63] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[26/63] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[27/63] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[28/63] Compiling InternalCollectionsUtilities Debugging.swift
[29/63] Compiling InternalCollectionsUtilities Descriptions.swift
[30/63] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[31/63] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[32/63] Compiling InternalCollectionsUtilities _SortedCollection.swift
[33/63] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[34/63] Compiling InternalCollectionsUtilities UInt+reversed.swift
[35/63] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[37/64] Compiling Logging LogHandler.swift
[37/64] Wrapping AST for InternalCollectionsUtilities for debugging
[39/77] Emitting module Logging
[40/78] Compiling Logging Locks.swift
[41/338] Compiling Logging MetadataProvider.swift
[42/338] Compiling HeapModule Heap+Descriptions.swift
[43/338] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[44/338] Compiling OrderedCollections OrderedDictionary+Elements.swift
[45/340] Compiling HeapModule _HeapNode.swift
[46/340] Compiling OrderedCollections OrderedDictionary+Codable.swift
[47/340] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[48/340] Compiling HeapModule Heap.swift
[49/340] Emitting module HeapModule
[50/340] Compiling OrderedCollections _HashTable.swift
[51/340] Compiling OrderedCollections _Hashtable+Header.swift
[52/340] Compiling OrderedCollections _HashTable+Testing.swift
[53/340] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[54/340] Compiling OrderedCollections _HashTable+Constants.swift
[55/340] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[56/340] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[57/340] Compiling HeapModule Heap+Invariants.swift
[58/340] Compiling HeapModule Heap+UnsafeHandle.swift
[59/341] Compiling Logging Logging.swift
[61/342] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[62/342] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[63/342] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[64/342] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[65/342] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[66/342] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[67/342] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[69/349] Compiling _RopeModule BigString+Chunk.swift
[70/349] Compiling _RopeModule BigString+BidirectionalCollection.swift
[71/349] Compiling HashTreeCollections TreeSet+Sequence.swift
[72/349] Compiling HashTreeCollections TreeSet+SetAlgebra Initializers.swift
[73/349] Compiling HashTreeCollections TreeSet+SetAlgebra basics.swift
[74/349] Compiling HashTreeCollections TreeSet+SetAlgebra formIntersection.swift
[75/349] Compiling HashTreeCollections TreeSet+SetAlgebra formSymmetricDifference.swift
[76/349] Compiling HashTreeCollections TreeSet+SetAlgebra formUnion.swift
[77/349] Compiling HashTreeCollections TreeSet+SetAlgebra intersection.swift
[78/349] Compiling HashTreeCollections TreeSet+SetAlgebra isDisjoint.swift
[78/349] Wrapping AST for HeapModule for debugging
[79/359] Wrapping AST for Logging for debugging
[81/359] Compiling DequeModule _DequeSlot.swift
[82/359] Compiling DequeModule _UnsafeWrappedBuffer.swift
[83/359] Compiling OrderedCollections OrderedSet+Equatable.swift
[84/359] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[85/359] Compiling OrderedCollections OrderedSet+Hashable.swift
[86/359] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[87/359] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[88/359] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[89/359] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[90/359] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[91/359] Compiling BitCollections BitSet.Index.swift
[92/359] Compiling BitCollections BitSet._UnsafeHandle.swift
[93/359] Compiling BitCollections BitSet.swift
[94/359] Emitting module BitCollections
[95/359] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[96/359] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[119/365] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[120/365] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[121/365] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[122/365] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[123/365] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[124/365] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[125/365] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[126/365] Compiling OrderedCollections OrderedDictionary+Values.swift
[127/366] Compiling OrderedCollections OrderedSet+SubSequence.swift
[128/366] Compiling OrderedCollections OrderedSet+Testing.swift
[129/366] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[130/366] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[131/366] Compiling OrderedCollections OrderedSet.swift
[132/366] Compiling OrderedCollections _UnsafeBitset.swift
[133/366] Compiling _RopeModule BigString+Chunk+Indexing by Characters.swift
[134/366] Compiling _RopeModule BigString+Chunk+Indexing by UTF16.swift
[135/366] Compiling _RopeModule BigString+Chunk+RopeElement.swift
[136/366] Compiling _RopeModule BigString+Chunk+Splitting.swift
[137/366] Compiling OrderedCollections OrderedDictionary.swift
[138/366] Compiling OrderedCollections OrderedSet+Codable.swift
[139/366] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[140/366] Compiling OrderedCollections OrderedSet+Descriptions.swift
[141/366] Compiling OrderedCollections OrderedSet+Diffing.swift
[145/366] Compiling OrderedCollections OrderedSet+Initializers.swift
[146/366] Compiling OrderedCollections OrderedSet+Insertions.swift
[147/366] Compiling OrderedCollections OrderedSet+Invariants.swift
[148/366] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[149/366] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[150/366] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[151/366] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[152/366] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[153/366] Compiling OrderedCollections _HashTable+Bucket.swift
[154/366] Compiling OrderedCollections _HashTable+BucketIterator.swift
[200/366] Emitting module DequeModule
[201/367] Compiling HashTreeCollections TreeSet+SetAlgebra isEqualSet.swift
[202/367] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSubset.swift
[203/367] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[204/367] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[205/367] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[206/367] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[207/367] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[208/367] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[209/367] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[210/367] Compiling HashTreeCollections TreeSet.swift
[214/367] Compiling OrderedCollections OrderedSet+Sendable.swift
[218/368] Wrapping AST for DequeModule for debugging
[231/368] Wrapping AST for BitCollections for debugging
[289/377] Emitting module OrderedCollections
[298/378] Emitting module _RopeModule
[298/378] Wrapping AST for OrderedCollections for debugging
[333/378] Compiling _RopeModule Rope+Join.swift
[334/378] Compiling _RopeModule Rope+MutatingForEach.swift
[335/378] Compiling _RopeModule Rope+Remove.swift
[336/378] Compiling _RopeModule Rope+RemoveSubrange.swift
[337/378] Compiling _RopeModule Rope+Split.swift
[338/378] Compiling _RopeModule Optional Utilities.swift
[339/378] Compiling _RopeModule String Utilities.swift
[340/378] Compiling _RopeModule String.Index+ABI.swift
[341/378] Compiling _RopeModule _CharacterRecognizer.swift
[342/378] Emitting module HashTreeCollections
[343/379] Wrapping AST for HashTreeCollections for debugging
[364/380] Wrapping AST for _RopeModule for debugging
[366/382] Compiling Collections Collections.swift
[367/382] Emitting module Collections
[368/383] Wrapping AST for Collections for debugging
[370/419] Compiling ACPModel PlanEntry.swift
[371/419] Compiling ACPModel Priority.swift
[372/419] Compiling ACPModel ProtocolVersion.swift
[373/419] Compiling ACPModel RequestId.swift
[374/419] Compiling ACPModel Role.swift
[375/424] Compiling ACPModel ModelMessages.swift
[376/424] Compiling ACPModel Notifications.swift
[377/424] Compiling ACPModel Pagination.swift
[378/424] Compiling ACPModel PermissionMessages.swift
[379/424] Compiling ACPModel PermissionOptionId.swift
[380/424] Emitting module ACPModel
[381/424] Compiling ACPModel ACPModel.swift
[382/424] Compiling ACPModel AcpProtocols.swift
[383/424] Compiling ACPModel Annotations.swift
[384/424] Compiling ACPModel AuthMessages.swift
[385/424] Compiling ACPModel AvailableCommand.swift
[386/424] Compiling ACPModel InitializeMessages.swift
[387/424] Compiling ACPModel JsonRpc.swift
[388/424] Compiling ACPModel JsonValue.swift
[389/424] Compiling ACPModel McpServer.swift
[390/424] Compiling ACPModel ModelId.swift
[391/424] Compiling ACPModel SessionConfigGroupId.swift
[392/424] Compiling ACPModel SessionConfigId.swift
[393/424] Compiling ACPModel SessionConfigOption.swift
[394/424] Compiling ACPModel SessionConfigValueId.swift
[395/424] Compiling ACPModel SessionId.swift
[396/424] Compiling ACPModel SessionInfo.swift
[397/424] Compiling ACPModel SessionMessages.swift
[398/424] Compiling ACPModel SessionModeId.swift
[399/424] Compiling ACPModel SessionModeMessages.swift
[400/424] Compiling ACPModel SessionOperations.swift
[401/424] Compiling ACPModel Capabilities.swift
[402/424] Compiling ACPModel ContentBlock.swift
[403/424] Compiling ACPModel Cursor.swift
[404/424] Compiling ACPModel FileMessages.swift
[405/424] Compiling ACPModel Implementation.swift
[406/424] Compiling ACPModel SessionUpdate.swift
[407/424] Compiling ACPModel SessionUpdateTypes.swift
[408/424] Compiling ACPModel Terminal.swift
[409/424] Compiling ACPModel ToolCall.swift
[410/424] Compiling ACPModel ToolCallId.swift
[411/425] Wrapping AST for ACPModel for debugging
[413/441] Emitting module ACP
[414/443] Compiling ACP TerminalOperations.swift
[415/443] Compiling ACP Transport.swift
[416/443] Compiling ACP FileSystemOperations.swift
[417/443] Compiling ACP PaginatedResponse.swift
[418/443] Compiling ACP RemoteClientOperations.swift
[419/443] Compiling ACP StdioTransport.swift
[420/443] Compiling ACP AgentContext.swift
[421/443] Compiling ACP Client.swift
[422/443] Compiling ACP ClientConnection.swift
[423/443] Compiling ACP ClientSession.swift
[424/443] Compiling ACP Protocol.swift
[425/443] Compiling ACP ProtocolExtensions.swift
[426/443] Compiling ACP ACP.swift
[427/443] Compiling ACP Agent.swift
[428/443] Compiling ACP AgentConnection.swift
[429/443] Compiling ACP ClientSessionOperations.swift
[430/443] Compiling ACP Event.swift
[431/444] Wrapping AST for ACP for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[433/455] Emitting module ACPHTTP
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:44:32: error: cannot find type 'URLSessionWebSocketTask' in scope
42 |
43 | private let stateActor: WebSocketStateActor
44 | private var webSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
45 | private let session: URLSession
46 |
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let stateActor: WebSocketStateActor
44 | private var webSocketTask: URLSessionWebSocketTask?
45 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | /// Initialize a new WebSocket transport.
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/ACPHTTP/WebSocketTransport.swift:52:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | self.url = url
54 | 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/ACPHTTP/WebSocketTransport.swift:52:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | self.url = url
54 | self.session = session
[434/455] Compiling ACPHTTP ACPHTTP.swift
[435/455] Emitting module InteractiveClient
[436/455] Compiling EchoAgent main.swift
[437/455] Emitting module EchoAgent
[438/456] Compiling ACPHTTP WebSocketTransport.swift
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:44:32: error: cannot find type 'URLSessionWebSocketTask' in scope
42 |
43 | private let stateActor: WebSocketStateActor
44 | private var webSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
45 | private let session: URLSession
46 |
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let stateActor: WebSocketStateActor
44 | private var webSocketTask: URLSessionWebSocketTask?
45 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | /// Initialize a new WebSocket transport.
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/ACPHTTP/WebSocketTransport.swift:52:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | self.url = url
54 | 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/ACPHTTP/WebSocketTransport.swift:52:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | self.url = url
54 | self.session = session
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:69:33: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
67 |
68 | // Create WebSocket task
69 | webSocketTask = session.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
70 |
71 | // Start the connection
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:97:40: error: cannot infer contextual base in reference to member 'string'
95 | }
96 |
97 | try await webSocketTask?.send(.string(text))
| `- error: cannot infer contextual base in reference to member 'string'
98 | }
99 |
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:114:38: error: cannot infer contextual base in reference to member 'normalClosure'
112 |
113 | // Close WebSocket with normal closure
114 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
115 | webSocketTask = nil
116 |
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:114:61: error: 'nil' requires a contextual type
112 |
113 | // Close WebSocket with normal closure
114 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
115 | webSocketTask = nil
116 |
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:115:25: error: 'nil' requires a contextual type
113 | // Close WebSocket with normal closure
114 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
115 | webSocketTask = nil
| `- error: 'nil' requires a contextual type
116 |
117 | do {
[440/456] Compiling InteractiveClient main.swift
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:326:49: warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
324 | case .toolCall(let call):
325 | print()
326 | print("🔧 Tool call: \(call.title ?? "Unknown") (\(call.kind?.rawValue ?? ""))")
| `- warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
327 |
328 | case .toolCallUpdate(let update):
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:315:20: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
313 | // Print agent message inline (no newline)
314 | print(renderContent(chunk.content), terminator: "")
315 | fflush(stdout)
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
316 |
317 | case .agentThoughtChunk(let chunk):
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:319:20: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
317 | case .agentThoughtChunk(let chunk):
318 | print("💭 \(renderContent(chunk.content))", terminator: "")
319 | fflush(stdout)
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
320 |
321 | case .userMessageChunk(let chunk):
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:516:20: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
514 | while true {
515 | print("You: ", terminator: "")
516 | fflush(stdout)
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
517 |
518 | guard let input = readLine() else {
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Samples/InteractiveClient/main.swift:545:24: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
543 | print()
544 | print("Agent: ", terminator: "")
545 | fflush(stdout)
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
546 |
547 | let response = try await connection.prompt(request: promptRequest)
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[441/456] Emitting module SimpleAgentApp
[442/456] Compiling SimpleAgentApp main.swift
/host/spi-builder-workspace/Samples/SimpleAgentApp/main.swift:400:24: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
398 | if case .text(let text) = chunk.content {
399 | print(text.text, terminator: "")
400 | fflush(stdout)
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
401 | }
402 | case .agentThoughtChunk(let chunk):
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Samples/SimpleAgentApp/main.swift:491:24: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
489 | while true {
490 | print("You: ", terminator: "")
491 | fflush(stdout)
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
492 |
493 | guard let input = readLine() else { break }
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Samples/SimpleAgentApp/main.swift:501:24: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
499 | print()
500 | print("Agent: ", terminator: "")
501 | fflush(stdout)
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
502 |
503 | let response = try await clientConnection.prompt(request: PromptRequest(
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[443/456] Emitting module SimpleClient
[444/456] Compiling SimpleClient main.swift
BUILD FAILURE 6.0 linux