Build Information
Failed to build ACP, reference main (efcd32), with Swift 6.3 for Linux on 11 Nov 2026 18:39:45 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:linux-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aptove/swift-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/aptove/swift-sdk
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at efcd325 chore: add GitHub funding config
Cloned https://github.com/aptove/swift-sdk.git
Revision (git rev-parse @):
efcd32591fadabfff9738dcbe82136a83088b34b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/aptove/swift-sdk.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.3
Building package at path: $PWD
https://github.com/aptove/swift-sdk.git
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:linux-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:c65048520f238ace1c869e2a11830931456603720e559a9397eec622de37c276
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.3-latest
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-collections.git
[1/8350] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.52s)
[1/29922] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.55s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.6 (1.79s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.17.0 (0.16s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.6
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.17.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/SimpleAgentApp/README.md
Building for debugging...
[0/46] Write sources
[18/46] Write swift-version-24593BA9C3E375BF.txt
[20/86] Emitting module InternalCollectionsUtilities
[21/89] Compiling InternalCollectionsUtilities Immortalize.swift
[22/89] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[23/89] Compiling InternalCollectionsUtilities Integer rank.swift
[24/89] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[25/89] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[26/89] Compiling InternalCollectionsUtilities _SortedCollection.swift
[27/89] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[28/89] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[29/89] Compiling InternalCollectionsUtilities UnsafeMutablePointer+Extras.swift
[30/89] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[31/89] Compiling InternalCollectionsUtilities UnsafePointer+Extras.swift
[32/89] Compiling Logging Logger+With.swift
[33/90] Compiling InternalCollectionsUtilities Span+Extras.swift
[34/90] Compiling InternalCollectionsUtilities Strideable+LimitHelpers.swift
[35/90] Compiling InternalCollectionsUtilities String+Padding.swift
[36/90] Compiling InternalCollectionsUtilities TemporaryAllocation.swift
[37/90] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[38/90] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[39/90] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[40/90] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[41/90] Compiling Logging Logger+Attributes.swift
[42/90] Compiling InternalCollectionsUtilities UInt+reversed.swift
[43/90] Compiling InternalCollectionsUtilities Iterable+CopyContents.swift
[44/90] Compiling InternalCollectionsUtilities Iterable+Equality.swift
[45/90] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[46/90] Compiling InternalCollectionsUtilities Debugging.swift
[47/90] Compiling InternalCollectionsUtilities Descriptions.swift
[48/90] Compiling InternalCollectionsUtilities MutableRef.swift
[49/90] Compiling InternalCollectionsUtilities MutableSpan+Extras.swift
[50/90] Compiling InternalCollectionsUtilities OutputSpan+Extras.swift
[51/90] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[52/90] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Equality.swift
[53/90] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Extras.swift
[56/91] Compiling Logging Logger.swift
[57/91] Compiling Logging LoggingSystem.swift
[58/93] Wrapping AST for InternalCollectionsUtilities for debugging
[60/194] Compiling SpanPreview InputSpan.swift
[61/194] Emitting module SpanPreview
[62/194] Compiling HeapModule Heap+Invariants.swift
[63/194] Compiling SpanPreview MutableSpan+InputSpanHelpers.swift
[64/280] Compiling SpanPreview OutputSpan+InputSpanHelpers.swift
[65/361] Wrapping AST for SpanPreview for debugging
[67/395] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[68/398] Compiling HeapModule Heap+Descriptions.swift
[69/403] Compiling DequeModule Deque+Codable.swift
[70/403] Compiling DequeModule Deque+Collection.swift
[71/403] Compiling DequeModule Deque+Equatable.swift
[72/403] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[73/403] Compiling Logging MetadataProvider.swift
[74/403] Emitting module Logging
[76/404] Compiling HeapModule Heap.swift
[76/404] Wrapping AST for Logging for debugging
[78/404] Compiling HeapModule _HeapNode.swift
[79/404] Compiling HeapModule Heap+Testing.swift
[80/404] Compiling HeapModule Heap+UnsafeHandle.swift
[81/404] Compiling DequeModule Deque+Testing.swift
[82/404] Compiling DequeModule Deque._Storage.swift
[83/404] Compiling DequeModule Deque._UnsafeHandle.swift
[84/404] Compiling DequeModule Deque.swift
[85/404] Compiling DequeModule RigidDeque+Prepend.swift
[86/404] Compiling DequeModule RigidDeque+Removals.swift
[87/404] Compiling DequeModule RigidDeque+Replacements.swift
[88/404] Compiling DequeModule RigidDeque+Testing.swift
[89/411] Emitting module HeapModule
[91/412] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[92/412] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[93/412] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[94/412] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[95/412] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[96/412] Compiling OrderedCollections OrderedDictionary+Move.swift
[97/412] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[98/412] Compiling DequeModule UniqueDeque+Initializers.swift
[99/412] Compiling DequeModule UniqueDeque+Insertions.swift
[100/412] Compiling DequeModule UniqueDeque+Iterable.swift
[101/412] Compiling DequeModule UniqueDeque+Prepend.swift
[102/412] Compiling DequeModule UniqueDeque+Removals.swift
[103/412] Compiling DequeModule UniqueDeque+Consumption.swift
[104/412] Compiling DequeModule UniqueDeque+ContainerOperations.swift
[105/412] Compiling DequeModule UniqueDeque+Deprecations.swift
[105/412] Wrapping AST for HeapModule for debugging
[112/412] Compiling BitCollections BitSet.Index.swift
[113/412] Compiling BitCollections BitSet._UnsafeHandle.swift
[114/412] Compiling BitCollections BitSet.swift
[115/419] Compiling DequeModule RigidDeque+Iterable.swift
[116/419] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[117/419] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[118/419] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[119/419] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[120/419] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[123/419] Compiling DequeModule _DequeBuffer.swift
[124/419] Compiling DequeModule _DequeBufferHeader.swift
[125/419] Compiling DequeModule RigidDeque+Append.swift
[126/419] Compiling DequeModule RigidDeque+Consumption.swift
[127/419] Compiling DequeModule RigidDeque+ContainerOperations.swift
[128/419] Compiling DequeModule RigidDeque+Deprecations.swift
[134/424] Compiling DequeModule RigidDeque+Descriptions.swift
[135/424] Compiling DequeModule RigidDeque+Equatable.swift
[136/424] Compiling DequeModule RigidDeque+Hashable.swift
[137/424] Compiling DequeModule RigidDeque+Initializers.swift
[138/424] Compiling DequeModule RigidDeque+Insertions.swift
[143/424] Compiling DequeModule UniqueDeque+Descriptions.swift
[144/424] Compiling DequeModule UniqueDeque+Equatable.swift
[145/424] Compiling DequeModule UniqueDeque+Hashable.swift
[165/424] Compiling DequeModule RigidDeque.swift
[166/424] Compiling DequeModule UniqueDeque+Append.swift
[175/424] Emitting module BitCollections
[176/424] Compiling HashTreeCollections TreeDictionary.swift
[177/424] Compiling HashTreeCollections TreeSet+Codable.swift
[178/424] Compiling HashTreeCollections TreeSet+Collection.swift
[179/424] Compiling HashTreeCollections TreeSet+CustomReflectable.swift
[180/424] Compiling HashTreeCollections TreeSet+Debugging.swift
[181/424] Compiling HashTreeCollections TreeSet+Descriptions.swift
[182/424] Compiling HashTreeCollections TreeSet+Equatable.swift
[183/424] Compiling HashTreeCollections TreeSet+ExpressibleByArrayLiteral.swift
[184/424] Compiling HashTreeCollections TreeSet+Extras.swift
[185/424] Compiling HashTreeCollections TreeSet+Filter.swift
[198/443] Compiling DequeModule Deque+CustomReflectable.swift
[199/443] Compiling DequeModule Deque+Descriptions.swift
[204/443] Compiling DequeModule UniqueDeque+Replacements.swift
[205/443] Compiling DequeModule UniqueDeque.swift
[206/443] Compiling DequeModule _DequeSlot.swift
[207/443] Compiling DequeModule _UnsafeDequeHandle.swift
[208/443] Compiling DequeModule _UnsafeDequeSegments.swift
[215/443] Compiling DequeModule Deque+Extras.swift
[216/443] Compiling DequeModule Deque+Hashable.swift
[226/443] Compiling OrderedCollections OrderedSet+Sendable.swift
[227/443] Compiling OrderedCollections OrderedSet+SubSequence.swift
[228/443] Compiling OrderedCollections OrderedSet+Testing.swift
[229/443] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[240/443] Compiling _RopeModule String Utilities.swift
[241/443] Compiling _RopeModule String.Index+ABI.swift
[242/443] Compiling _RopeModule _CharacterRecognizer.swift
[243/443] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[244/443] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[245/443] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[246/443] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[247/443] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[248/443] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[249/443] Compiling HashTreeCollections TreeSet.swift
[261/443] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[262/443] Compiling OrderedCollections OrderedSet.swift
[263/443] Compiling OrderedCollections UnsafeBitset.swift
[264/443] Compiling HashTreeCollections _HashSlot.swift
[265/443] Compiling HashTreeCollections _HashStack.swift
[333/443] Emitting module OrderedCollections
[343/445] Wrapping AST for BitCollections for debugging
[344/445] Wrapping AST for OrderedCollections for debugging
[388/445] Emitting module _RopeModule
[389/445] Compiling _RopeModule Rope+Join.swift
[390/445] Compiling _RopeModule Rope+MutatingForEach.swift
[391/445] Compiling _RopeModule Rope+Remove.swift
[392/445] Compiling _RopeModule Rope+RemoveSubrange.swift
[393/445] Compiling _RopeModule Rope+Split.swift
[394/445] Compiling _RopeModule Optional Utilities.swift
[418/446] Wrapping AST for _RopeModule for debugging
[425/446] Emitting module HashTreeCollections
[426/447] Wrapping AST for HashTreeCollections for debugging
[428/447] Emitting module DequeModule
[429/450] Wrapping AST for DequeModule for debugging
[431/450] Emitting module Collections
[432/450] Compiling Collections Collections.swift
[433/451] Wrapping AST for Collections for debugging
[435/506] Compiling ACPModel Priority.swift
[436/506] Compiling ACPModel ProtocolVersion.swift
[437/506] Compiling ACPModel Providers.swift
[438/506] Compiling ACPModel RequestId.swift
[439/506] Compiling ACPModel Role.swift
[440/506] Compiling ACPModel SessionConfigGroupId.swift
[441/506] Compiling ACPModel SessionConfigId.swift
[442/506] Compiling ACPModel SessionConfigOption.swift
[443/513] Compiling ACPModel SessionConfigValueId.swift
[444/513] Compiling ACPModel SessionId.swift
[445/513] Compiling ACPModel SessionInfo.swift
[446/513] Compiling ACPModel SessionMessages.swift
[447/513] Compiling ACPModel SessionModeId.swift
[448/513] Compiling ACPModel SessionModeMessages.swift
[449/513] Compiling ACPModel SessionOperations.swift
[450/513] Compiling ACPModel SessionUpdate.swift
[451/513] Compiling ACPModel ACPModel.swift
[452/513] Compiling ACPModel AcpProtocols.swift
[453/513] Compiling ACPModel Annotations.swift
[454/513] Compiling ACPModel AuthMessages.swift
[455/513] Compiling ACPModel AvailableCommand.swift
[456/513] Compiling ACPModel Capabilities.swift
[457/513] Compiling ACPModel ContentBlock.swift
[458/513] Compiling ACPModel Cursor.swift
[459/513] Emitting module ACPModel
[460/513] Compiling ACPModel Elicitation.swift
[461/513] Compiling ACPModel FileMessages.swift
[462/513] Compiling ACPModel Implementation.swift
[463/513] Compiling ACPModel InitializeMessages.swift
[464/513] Compiling ACPModel JsonRpc.swift
[465/513] Compiling ACPModel JsonValue.swift
[466/513] Compiling ACPModel McpServer.swift
[467/513] Compiling ACPModel MessageId.swift
[468/513] Compiling ACPModel V2Elicitation.swift
[469/513] Compiling ACPModel V2ElicitationRequests.swift
[470/513] Compiling ACPModel V2MaybeUndefined.swift
[471/513] Compiling ACPModel V2Permission.swift
[472/513] Compiling ACPModel V2Plan.swift
[473/513] Compiling ACPModel V2Providers.swift
[474/513] Compiling ACPModel V2Requests.swift
[475/513] Compiling ACPModel SessionUpdateTypes.swift
[476/513] Compiling ACPModel Terminal.swift
[477/513] Compiling ACPModel ToolCall.swift
[478/513] Compiling ACPModel ToolCallId.swift
[479/513] Compiling ACPModel V2Auth.swift
[480/513] Compiling ACPModel V2Capabilities.swift
[481/513] Compiling ACPModel V2Content.swift
[482/513] Compiling ACPModel ModelId.swift
[483/513] Compiling ACPModel ModelMessages.swift
[484/513] Compiling ACPModel Nes.swift
[485/513] Compiling ACPModel Notifications.swift
[486/513] Compiling ACPModel Pagination.swift
[487/513] Compiling ACPModel PermissionMessages.swift
[488/513] Compiling ACPModel PermissionOptionId.swift
[489/513] Compiling ACPModel PlanEntry.swift
[490/513] Compiling ACPModel V2Session.swift
[491/513] Compiling ACPModel V2SessionConfig.swift
[492/513] Compiling ACPModel V2SessionResume.swift
[493/513] Compiling ACPModel V2SessionUpdate.swift
[494/513] Compiling ACPModel V2Terminal.swift
[495/513] Compiling ACPModel V2ToolCall.swift
[496/513] Compiling ACPModel V2Types.swift
[497/514] Wrapping AST for ACPModel for debugging
[499/530] Emitting module ACP
[500/532] Compiling ACP TerminalOperations.swift
[501/532] Compiling ACP Transport.swift
[502/532] Compiling ACP RemoteClientOperations.swift
[503/532] Compiling ACP StdioTransport.swift
[504/532] Compiling ACP ACP.swift
[505/532] Compiling ACP Agent.swift
[506/532] Compiling ACP AgentConnection.swift
[507/532] Compiling ACP FileSystemOperations.swift
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:128:27: warning: capture of non-Sendable type 'Request.Type' in an isolated closure [#SendableMetatypes]
126 | ) -> PaginatedAsyncSequence<Item> {
127 | PaginatedAsyncSequence { [self] cursor in
128 | let request = requestFactory(cursor)
| `- warning: capture of non-Sendable type 'Request.Type' in an isolated closure [#SendableMetatypes]
129 | let jsonRpcResponse = try await self.sendRequest(method: method, params: request)
130 |
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:133:46: warning: capture of non-Sendable type 'Response.Type' in an isolated closure [#SendableMetatypes]
131 | // Decode the result to the expected response type
132 | let data = try JSONEncoder().encode(jsonRpcResponse.result)
133 | let response = try JSONDecoder().decode(Response.self, from: data)
| `- warning: capture of non-Sendable type 'Response.Type' in an isolated closure [#SendableMetatypes]
134 |
135 | return responseHandler(response)
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:129:50: warning: sending value of non-Sendable type 'Request' risks causing data races [#SendingRisksDataRace]
127 | PaginatedAsyncSequence { [self] cursor in
128 | let request = requestFactory(cursor)
129 | let jsonRpcResponse = try await self.sendRequest(method: method, params: request)
| | `- note: isolated conformance to protocol 'Encodable' can be introduced here
| |- warning: sending value of non-Sendable type 'Request' risks causing data races [#SendingRisksDataRace]
| `- note: sending task-isolated value of non-Sendable type 'Request' to actor-isolated instance method 'sendRequest(method:params:timeoutSeconds:)' risks causing races in between task-isolated and actor-isolated uses
130 |
131 | // Decode the result to the expected response type
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[508/532] Compiling ACP PaginatedResponse.swift
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:128:27: warning: capture of non-Sendable type 'Request.Type' in an isolated closure [#SendableMetatypes]
126 | ) -> PaginatedAsyncSequence<Item> {
127 | PaginatedAsyncSequence { [self] cursor in
128 | let request = requestFactory(cursor)
| `- warning: capture of non-Sendable type 'Request.Type' in an isolated closure [#SendableMetatypes]
129 | let jsonRpcResponse = try await self.sendRequest(method: method, params: request)
130 |
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:133:46: warning: capture of non-Sendable type 'Response.Type' in an isolated closure [#SendableMetatypes]
131 | // Decode the result to the expected response type
132 | let data = try JSONEncoder().encode(jsonRpcResponse.result)
133 | let response = try JSONDecoder().decode(Response.self, from: data)
| `- warning: capture of non-Sendable type 'Response.Type' in an isolated closure [#SendableMetatypes]
134 |
135 | return responseHandler(response)
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:129:50: warning: sending value of non-Sendable type 'Request' risks causing data races [#SendingRisksDataRace]
127 | PaginatedAsyncSequence { [self] cursor in
128 | let request = requestFactory(cursor)
129 | let jsonRpcResponse = try await self.sendRequest(method: method, params: request)
| | `- note: isolated conformance to protocol 'Encodable' can be introduced here
| |- warning: sending value of non-Sendable type 'Request' risks causing data races [#SendingRisksDataRace]
| `- note: sending task-isolated value of non-Sendable type 'Request' to actor-isolated instance method 'sendRequest(method:params:timeoutSeconds:)' risks causing races in between task-isolated and actor-isolated uses
130 |
131 | // Decode the result to the expected response type
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[509/532] Compiling ACP AgentContext.swift
[510/532] Compiling ACP Client.swift
[511/532] Compiling ACP Protocol.swift
/host/spi-builder-workspace/Sources/ACP/ProtocolExtensions.swift:187:17: warning: capture of non-Sendable type 'P.Type' in an isolated closure [#SendableMetatypes]
185 | if let paramsValue = request.params {
186 | let data = try JSONEncoder().encode(paramsValue)
187 | params = try JSONDecoder().decode(P.self, from: data)
| `- warning: capture of non-Sendable type 'P.Type' in an isolated closure [#SendableMetatypes]
188 | } else {
189 | throw ProtocolError.decodingFailed(underlying: NSError(
/host/spi-builder-workspace/Sources/ACP/ProtocolExtensions.swift:197:30: warning: capture of non-Sendable type 'R.Type' in an isolated closure [#SendableMetatypes]
195 |
196 | // Execute handler
197 | let result = try await handler(params)
| `- warning: capture of non-Sendable type 'R.Type' in an isolated closure [#SendableMetatypes]
198 |
199 | // Encode result as JsonValue
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[512/532] Compiling ACP ProtocolExtensions.swift
/host/spi-builder-workspace/Sources/ACP/ProtocolExtensions.swift:187:17: warning: capture of non-Sendable type 'P.Type' in an isolated closure [#SendableMetatypes]
185 | if let paramsValue = request.params {
186 | let data = try JSONEncoder().encode(paramsValue)
187 | params = try JSONDecoder().decode(P.self, from: data)
| `- warning: capture of non-Sendable type 'P.Type' in an isolated closure [#SendableMetatypes]
188 | } else {
189 | throw ProtocolError.decodingFailed(underlying: NSError(
/host/spi-builder-workspace/Sources/ACP/ProtocolExtensions.swift:197:30: warning: capture of non-Sendable type 'R.Type' in an isolated closure [#SendableMetatypes]
195 |
196 | // Execute handler
197 | let result = try await handler(params)
| `- warning: capture of non-Sendable type 'R.Type' in an isolated closure [#SendableMetatypes]
198 |
199 | // Encode result as JsonValue
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[513/532] Compiling ACP ClientConnection.swift
[514/532] Compiling ACP ClientSession.swift
[515/532] Compiling ACP ClientSessionOperations.swift
[516/532] Compiling ACP Event.swift
[517/533] Wrapping AST for ACP for debugging
[519/546] Emitting module SimpleAgentApp
[520/546] 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):
/usr/include/stdio.h:150:14: note: var declared here
148 | /* Standard streams. */
149 | extern FILE *stdin; /* Standard input stream. */
150 | extern FILE *stdout; /* Standard output stream. */
| `- note: var declared here
151 | extern FILE *stderr; /* Standard error output stream. */
152 | /* C89/C99 say they're macros. Make them happy. */
/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 }
/usr/include/stdio.h:150:14: note: var declared here
148 | /* Standard streams. */
149 | extern FILE *stdin; /* Standard input stream. */
150 | extern FILE *stdout; /* Standard output stream. */
| `- note: var declared here
151 | extern FILE *stderr; /* Standard error output stream. */
152 | /* C89/C99 say they're macros. Make them happy. */
/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(
/usr/include/stdio.h:150:14: note: var declared here
148 | /* Standard streams. */
149 | extern FILE *stdin; /* Standard input stream. */
150 | extern FILE *stdout; /* Standard output stream. */
| `- note: var declared here
151 | extern FILE *stderr; /* Standard error output stream. */
152 | /* C89/C99 say they're macros. Make them happy. */
error: emit-module command failed with exit code 1 (use -v to see invocation)
[521/546] 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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
53 | self.url = url
54 | self.session = session
/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
[522/546] Compiling ACPHTTP ACPHTTP.swift
[523/546] 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:52:50: error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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 |
[524/546] Emitting module V2NegotiationApp
[525/546] Emitting module GeminiClientApp
/host/spi-builder-workspace/Samples/GeminiClientApp/main.swift:175:90: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
173 | switch update {
174 | case .agentMessageChunk(let chunk):
175 | if case .text(let t) = chunk.content { print(t.text, terminator: ""); fflush(stdout) }
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
176 | case .agentThoughtChunk(let chunk):
177 | if case .text(let t) = chunk.content { print("💭 \(t.text)", terminator: ""); fflush(stdout) }
/usr/include/stdio.h:150:14: note: var declared here
148 | /* Standard streams. */
149 | extern FILE *stdin; /* Standard input stream. */
150 | extern FILE *stdout; /* Standard output stream. */
| `- note: var declared here
151 | extern FILE *stderr; /* Standard error output stream. */
152 | /* C89/C99 say they're macros. Make them happy. */
BUILD FAILURE 6.3 linux