The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ACP, reference v0.1.16 (f38606), with Swift 6.1 for Linux on 3 Mar 2026 07:28:26 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.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build 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.1
Building package at path:  $PWD
https://github.com/aptove/swift-sdk.git
https://github.com/aptove/swift-sdk.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "swift-collections",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-collections.git"
    }
  ],
  "manifest_display_name" : "ACP",
  "name" : "ACP",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "ACPModel",
      "targets" : [
        "ACPModel"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "ACP",
      "targets" : [
        "ACP"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "ACPHTTP",
      "targets" : [
        "ACPHTTP"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "EchoAgent",
      "targets" : [
        "EchoAgent"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "SimpleClient",
      "targets" : [
        "SimpleClient"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "InteractiveClient",
      "targets" : [
        "InteractiveClient"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "SimpleAgentApp",
      "targets" : [
        "SimpleAgentApp"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SimpleClient",
      "module_type" : "SwiftTarget",
      "name" : "SimpleClient",
      "path" : "Samples/SimpleClient",
      "product_memberships" : [
        "SimpleClient"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "ACP",
        "ACPModel"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "SimpleAgentApp",
      "module_type" : "SwiftTarget",
      "name" : "SimpleAgentApp",
      "path" : "Samples/SimpleAgentApp",
      "product_memberships" : [
        "SimpleAgentApp"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "ACP",
        "ACPModel"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "InteractiveClient",
      "module_type" : "SwiftTarget",
      "name" : "InteractiveClient",
      "path" : "Samples/InteractiveClient",
      "product_memberships" : [
        "InteractiveClient"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "ACP",
        "ACPModel"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "EchoAgent",
      "module_type" : "SwiftTarget",
      "name" : "EchoAgent",
      "path" : "Samples/EchoAgent",
      "product_memberships" : [
        "EchoAgent"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "ACP",
        "ACPModel"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "ACPTests",
      "module_type" : "SwiftTarget",
      "name" : "ACPTests",
      "path" : "Tests/ACPTests",
      "sources" : [
        "ACPTests.swift",
        "AgentClientTests.swift",
        "ClientSessionModelTests.swift",
        "ClientSessionTests.swift",
        "E2EIntegrationTests.swift",
        "IntegrationTests.swift",
        "OperationsTests.swift",
        "PaginatedResponseTests.swift",
        "ProtocolTests.swift",
        "StdioTransportTests.swift",
        "TestTransport.swift"
      ],
      "target_dependencies" : [
        "ACP"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ACPModelTests",
      "module_type" : "SwiftTarget",
      "name" : "ACPModelTests",
      "path" : "Tests/ACPModelTests",
      "sources" : [
        "ACPModelTests.swift",
        "AuthMessagesTests.swift",
        "FileMessagesTests.swift",
        "JsonRpcTests.swift",
        "JsonValueTests.swift",
        "ModelMessagesTests.swift",
        "NotificationsTests.swift",
        "PaginationTests.swift",
        "PermissionMessagesTests.swift",
        "ProtocolVersionTests.swift",
        "RequestIdTests.swift",
        "SessionConfigOptionTests.swift",
        "SessionIdTests.swift",
        "SessionModeMessagesTests.swift",
        "SessionOperationsTests.swift",
        "TerminalTests.swift"
      ],
      "target_dependencies" : [
        "ACPModel"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ACPModel",
      "module_type" : "SwiftTarget",
      "name" : "ACPModel",
      "path" : "Sources/ACPModel",
      "product_dependencies" : [
        "Collections"
      ],
      "product_memberships" : [
        "ACPModel",
        "ACP",
        "ACPHTTP",
        "EchoAgent",
        "SimpleClient",
        "InteractiveClient",
        "SimpleAgentApp"
      ],
      "sources" : [
        "ACPModel.swift",
        "AcpProtocols.swift",
        "Annotations.swift",
        "AuthMessages.swift",
        "AvailableCommand.swift",
        "Capabilities.swift",
        "ContentBlock.swift",
        "Cursor.swift",
        "FileMessages.swift",
        "Implementation.swift",
        "InitializeMessages.swift",
        "JsonRpc.swift",
        "JsonValue.swift",
        "McpServer.swift",
        "ModelId.swift",
        "ModelMessages.swift",
        "Notifications.swift",
        "Pagination.swift",
        "PermissionMessages.swift",
        "PermissionOptionId.swift",
        "PlanEntry.swift",
        "Priority.swift",
        "ProtocolVersion.swift",
        "RequestId.swift",
        "Role.swift",
        "SessionConfigGroupId.swift",
        "SessionConfigId.swift",
        "SessionConfigOption.swift",
        "SessionConfigValueId.swift",
        "SessionId.swift",
        "SessionInfo.swift",
        "SessionMessages.swift",
        "SessionModeId.swift",
        "SessionModeMessages.swift",
        "SessionOperations.swift",
        "SessionUpdate.swift",
        "SessionUpdateTypes.swift",
        "Terminal.swift",
        "ToolCall.swift",
        "ToolCallId.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ACPHTTPTests",
      "module_type" : "SwiftTarget",
      "name" : "ACPHTTPTests",
      "path" : "Tests/ACPHTTPTests",
      "sources" : [
        "ACPHTTPTests.swift",
        "WebSocketTransportTests.swift"
      ],
      "target_dependencies" : [
        "ACPHTTP"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ACPHTTP",
      "module_type" : "SwiftTarget",
      "name" : "ACPHTTP",
      "path" : "Sources/ACPHTTP",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "ACPHTTP"
      ],
      "sources" : [
        "ACPHTTP.swift",
        "WebSocketTransport.swift"
      ],
      "target_dependencies" : [
        "ACP",
        "ACPModel"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ACP",
      "module_type" : "SwiftTarget",
      "name" : "ACP",
      "path" : "Sources/ACP",
      "product_dependencies" : [
        "Logging",
        "Collections"
      ],
      "product_memberships" : [
        "ACP",
        "ACPHTTP",
        "EchoAgent",
        "SimpleClient",
        "InteractiveClient",
        "SimpleAgentApp"
      ],
      "sources" : [
        "ACP.swift",
        "Agent.swift",
        "AgentConnection.swift",
        "AgentContext.swift",
        "Client.swift",
        "ClientConnection.swift",
        "ClientSession.swift",
        "ClientSessionOperations.swift",
        "Event.swift",
        "FileSystemOperations.swift",
        "PaginatedResponse.swift",
        "Protocol.swift",
        "ProtocolExtensions.swift",
        "RemoteClientOperations.swift",
        "StdioTransport.swift",
        "TerminalOperations.swift",
        "Transport.swift"
      ],
      "target_dependencies" : [
        "ACPModel"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
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.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8e1c3aab9de7fa4f6e33977b6a4cee007e876da3e605dda0be6b9b9bf86aa951
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-log.git
[1/20327] Fetching swift-collections
[1831/26417] Fetching swift-collections, swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.40s)
Fetched https://github.com/apple/swift-collections.git from cache (1.42s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (2.16s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.10.1 (0.55s)
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 UnsafeMutableRawBufferPointer+Extras.swift
[20/63] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[21/63] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[22/63] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[23/63] Compiling InternalCollectionsUtilities UInt+reversed.swift
[24/63] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[25/63] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[26/63] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[27/63] Compiling InternalCollectionsUtilities Debugging.swift
[28/63] Compiling InternalCollectionsUtilities Descriptions.swift
[29/63] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[30/63] Compiling InternalCollectionsUtilities Integer rank.swift
[31/63] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[32/63] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[33/63] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[34/63] Compiling InternalCollectionsUtilities _SortedCollection.swift
[35/63] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[36/64] Wrapping AST for InternalCollectionsUtilities for debugging
[38/338] Compiling HeapModule Heap+Descriptions.swift
[39/338] Compiling Logging MetadataProvider.swift
[40/338] Compiling Logging Locks.swift
[41/338] Compiling BitCollections BitArray+Codable.swift
[42/338] Compiling BitCollections BitArray+Collection.swift
[43/340] Compiling Logging LogHandler.swift
[44/340] Compiling Logging Logging.swift
[45/340] Emitting module Logging
[46/341] Compiling BitCollections BitArray+Extras.swift
[47/341] Compiling BitCollections BitArray+Fill.swift
[49/341] Compiling HeapModule _HeapNode.swift
[50/341] Compiling HeapModule Heap.swift
[51/341] Compiling HeapModule Heap+UnsafeHandle.swift
[52/341] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[53/341] Compiling HeapModule Heap+Invariants.swift
[53/341] Wrapping AST for Logging for debugging
[55/341] Compiling BitCollections BitArray+Copy.swift
[56/341] Compiling BitCollections BitArray+CustomReflectable.swift
[57/341] Emitting module HeapModule
[58/342] Compiling HashTreeCollections TreeSet+Hashable.swift
[59/342] Compiling HashTreeCollections TreeSet+Sendable.swift
[60/342] Compiling HashTreeCollections TreeSet+Sequence.swift
[61/342] Compiling HashTreeCollections TreeSet+SetAlgebra Initializers.swift
[62/342] Compiling HashTreeCollections TreeSet+SetAlgebra basics.swift
[63/342] Compiling HashTreeCollections TreeSet+SetAlgebra formIntersection.swift
[64/342] Compiling HashTreeCollections TreeSet+SetAlgebra formSymmetricDifference.swift
[65/342] Compiling HashTreeCollections TreeSet+SetAlgebra formUnion.swift
[66/342] Compiling HashTreeCollections TreeSet+SetAlgebra intersection.swift
[67/342] Compiling HashTreeCollections TreeSet+SetAlgebra isDisjoint.swift
[69/352] Compiling DequeModule _DequeSlot.swift
[70/352] Compiling DequeModule _UnsafeWrappedBuffer.swift
[70/352] Wrapping AST for HeapModule for debugging
[72/352] Compiling BitCollections BitSet+SetAlgebra isDisjoint.swift
[73/352] Compiling BitCollections BitSet+SetAlgebra isEqualSet.swift
[74/352] Compiling BitCollections BitSet+SetAlgebra isStrictSubset.swift
[75/352] Compiling BitCollections BitSet+SetAlgebra isStrictSuperset.swift
[76/352] Compiling BitCollections BitSet+SetAlgebra isSubset.swift
[77/352] Compiling BitCollections BitSet+SetAlgebra isSuperset.swift
[78/352] Compiling BitCollections BitSet+SetAlgebra subtract.swift
[79/352] Compiling BitCollections BitSet+SetAlgebra subtracting.swift
[80/352] Compiling BitCollections BitSet+SetAlgebra symmetricDifference.swift
[81/352] Compiling BitCollections BitSet+SetAlgebra union.swift
[82/352] Compiling BitCollections BitSet+Sorted Collection APIs.swift
[83/352] Compiling BitCollections BitSet.Counted.swift
[84/352] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[85/352] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[86/359] Compiling BitCollections BitSet+CustomDebugStringConvertible.swift
[87/359] Compiling BitCollections BitSet+CustomReflectable.swift
[88/359] Compiling BitCollections BitSet+CustomStringConvertible.swift
[89/359] Compiling BitCollections BitSet+Equatable.swift
[90/359] Compiling BitCollections BitSet+ExpressibleByArrayLiteral.swift
[91/359] Compiling BitCollections BitSet+Extras.swift
[92/359] Compiling BitCollections BitSet+Hashable.swift
[93/366] Emitting module BitCollections
[102/366] Compiling BitCollections BitSet.Index.swift
[103/366] Compiling BitCollections BitSet._UnsafeHandle.swift
[104/366] Compiling BitCollections BitArray+ExpressibleByArrayLiteral.swift
[105/366] Compiling BitCollections BitArray+ExpressibleByStringLiteral.swift
[106/366] Compiling BitCollections BitArray+Hashable.swift
[107/366] Compiling BitCollections BitArray+Initializers.swift
[108/366] Compiling BitCollections BitArray+Descriptions.swift
[109/366] Compiling BitCollections BitArray+Equatable.swift
[110/366] Compiling BitCollections BitSet+Random.swift
[111/366] Compiling BitCollections BitSet+SetAlgebra basics.swift
[112/366] Compiling BitCollections BitSet+SetAlgebra conformance.swift
[113/366] Compiling BitCollections BitSet+SetAlgebra formIntersection.swift
[114/366] Compiling BitCollections BitSet+SetAlgebra formSymmetricDifference.swift
[115/366] Compiling BitCollections BitSet+SetAlgebra formUnion.swift
[116/366] Compiling BitCollections BitSet+SetAlgebra intersection.swift
[121/366] Compiling BitCollections BitSet+Initializers.swift
[122/366] Compiling BitCollections BitSet+Invariants.swift
[144/366] Compiling BitCollections BitArray+RandomBits.swift
[145/366] Compiling BitCollections BitArray+RangeReplaceableCollection.swift
[146/366] Compiling BitCollections BitArray+Shifts.swift
[147/366] Compiling BitCollections BitArray+Testing.swift
[148/366] Compiling BitCollections BitArray._UnsafeHandle.swift
[149/366] Compiling BitCollections BitArray.swift
[150/366] Compiling BitCollections BitSet+BidirectionalCollection.swift
[151/366] Compiling BitCollections BitSet+Codable.swift
[152/366] Compiling BitCollections BitArray+BitwiseOperations.swift
[153/366] Compiling BitCollections BitArray+ChunkedBitsIterators.swift
[176/366] Compiling HashTreeCollections TreeSet+SetAlgebra isEqualSet.swift
[177/366] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSubset.swift
[178/366] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[179/366] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[180/366] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[181/366] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[182/366] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[183/366] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[184/366] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[185/366] Compiling HashTreeCollections TreeSet.swift
[186/366] Emitting module DequeModule
[187/367] Wrapping AST for DequeModule for debugging
[199/376] Compiling BitCollections _Word.swift
[200/376] Compiling OrderedCollections OrderedSet.swift
[201/376] Compiling OrderedCollections _UnsafeBitset.swift
[202/376] Compiling HashTreeCollections TreeDictionary+Collection.swift
[203/376] Compiling HashTreeCollections TreeDictionary+CustomReflectable.swift
[204/376] Compiling HashTreeCollections TreeDictionary+Debugging.swift
[205/376] Compiling HashTreeCollections TreeDictionary+Descriptions.swift
[213/376] Compiling BitCollections BitSet.swift
[214/376] Compiling BitCollections Range+Utilities.swift
[215/376] Compiling BitCollections Slice+Utilities.swift
[216/376] Compiling BitCollections UInt+Tricks.swift
[294/377] Wrapping AST for BitCollections for debugging
[307/377] Emitting module OrderedCollections
[308/378] Wrapping AST for OrderedCollections for debugging
[310/378] Emitting module _RopeModule
[333/378] Emitting module HashTreeCollections
[334/379] Compiling _RopeModule Rope+Join.swift
[335/379] Compiling _RopeModule Rope+MutatingForEach.swift
[336/379] Compiling _RopeModule Rope+Remove.swift
[337/379] Compiling _RopeModule Rope+RemoveSubrange.swift
[338/379] Compiling _RopeModule Rope+Split.swift
[339/379] Compiling _RopeModule Optional Utilities.swift
[340/379] Compiling _RopeModule String Utilities.swift
[341/379] Compiling _RopeModule String.Index+ABI.swift
[342/379] Compiling _RopeModule _CharacterRecognizer.swift
[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] Emitting module ACPModel
[371/424] Compiling ACPModel PlanEntry.swift
[372/424] Compiling ACPModel Priority.swift
[373/424] Compiling ACPModel ProtocolVersion.swift
[374/424] Compiling ACPModel RequestId.swift
[375/424] Compiling ACPModel Role.swift
[376/424] Compiling ACPModel ModelMessages.swift
[377/424] Compiling ACPModel Notifications.swift
[378/424] Compiling ACPModel Pagination.swift
[379/424] Compiling ACPModel PermissionMessages.swift
[380/424] Compiling ACPModel PermissionOptionId.swift
[381/424] Compiling ACPModel SessionConfigGroupId.swift
[382/424] Compiling ACPModel SessionConfigId.swift
[383/424] Compiling ACPModel SessionConfigOption.swift
[384/424] Compiling ACPModel SessionConfigValueId.swift
[385/424] Compiling ACPModel SessionId.swift
[386/424] Compiling ACPModel SessionInfo.swift
[387/424] Compiling ACPModel SessionMessages.swift
[388/424] Compiling ACPModel SessionModeId.swift
[389/424] Compiling ACPModel SessionModeMessages.swift
[390/424] Compiling ACPModel SessionOperations.swift
[391/424] Compiling ACPModel InitializeMessages.swift
[392/424] Compiling ACPModel JsonRpc.swift
[393/424] Compiling ACPModel JsonValue.swift
[394/424] Compiling ACPModel McpServer.swift
[395/424] Compiling ACPModel ModelId.swift
[396/424] Compiling ACPModel ACPModel.swift
[397/424] Compiling ACPModel AcpProtocols.swift
[398/424] Compiling ACPModel Annotations.swift
[399/424] Compiling ACPModel AuthMessages.swift
[400/424] Compiling ACPModel AvailableCommand.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] Compiling ACP RemoteClientOperations.swift
[414/441] Compiling ACP StdioTransport.swift
[415/441] Compiling ACP FileSystemOperations.swift
[416/441] Compiling ACP PaginatedResponse.swift
[417/441] Compiling ACP AgentContext.swift
[418/441] Compiling ACP Client.swift
[419/441] Compiling ACP ClientConnection.swift
[420/441] Compiling ACP ClientSession.swift
[421/441] Compiling ACP ClientSessionOperations.swift
[422/441] Compiling ACP Event.swift
[423/441] Emitting module ACP
[424/441] Compiling ACP ACP.swift
[425/441] Compiling ACP Agent.swift
[426/441] Compiling ACP AgentConnection.swift
[427/441] Compiling ACP Protocol.swift
[428/441] Compiling ACP ProtocolExtensions.swift
[429/443] Compiling ACP TerminalOperations.swift
[430/443] Compiling ACP Transport.swift
[431/444] Wrapping AST for ACP for debugging
[433/455] Compiling ACPHTTP ACPHTTP.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[434/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
[435/455] 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 |
[436/455] Emitting module SimpleAgentApp
[437/455] Emitting module SimpleClient
[438/455] Emitting module EchoAgent
[439/455] Emitting module InteractiveClient
/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):
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
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.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8e1c3aab9de7fa4f6e33977b6a4cee007e876da3e605dda0be6b9b9bf86aa951
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
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
[0/1] Planning build
Building for debugging...
[0/24] Write swift-version-24593BA9C3E375BF.txt
[2/45] Compiling InternalCollectionsUtilities _SortedCollection.swift
[3/45] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[4/47] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[5/47] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[6/47] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[7/47] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[8/47] Compiling InternalCollectionsUtilities Debugging.swift
[9/47] Compiling InternalCollectionsUtilities Descriptions.swift
[10/47] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[11/47] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[12/47] Compiling Logging MetadataProvider.swift
[13/47] Emitting module Logging
[14/47] Compiling Logging Locks.swift
[15/47] Emitting module InternalCollectionsUtilities
[16/47] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[17/47] Compiling InternalCollectionsUtilities Integer rank.swift
[18/47] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[19/47] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[20/47] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[21/47] Compiling InternalCollectionsUtilities UInt+reversed.swift
[22/47] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[24/185] Compiling Logging LogHandler.swift
[25/185] Compiling Logging Logging.swift
[27/201] Compiling HeapModule Heap+Descriptions.swift
[28/201] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[29/321] Compiling _RopeModule BigString+Comparable.swift
[30/321] Compiling _RopeModule BigString+CustomDebugStringConvertible.swift
[31/323] Compiling HeapModule _HeapNode.swift
[32/323] Compiling HeapModule Heap+UnsafeHandle.swift
[33/323] Compiling HeapModule Heap+Invariants.swift
[34/323] Compiling HeapModule Heap.swift
[35/323] Compiling _RopeModule BigString+Chunk+Counts.swift
[36/323] Compiling _RopeModule BigString+Chunk+Description.swift
[37/323] Compiling _RopeModule BigString+Chunk+Indexing by Characters.swift
[38/323] Compiling _RopeModule BigString+Chunk+Indexing by UTF16.swift
[39/323] Emitting module HeapModule
[40/324] Compiling _RopeModule BigString+RemoveSubrange.swift
[41/324] Compiling _RopeModule BigString+ReplaceSubrange.swift
[42/324] Compiling _RopeModule BigString+Split.swift
[43/324] Compiling _RopeModule Range+BigString.swift
[44/324] Compiling _RopeModule BigString+UTF16View.swift
[45/324] Compiling _RopeModule BigString+UTF8View.swift
[46/324] Compiling _RopeModule BigString+UnicodeScalarView.swift
[47/329] Compiling _RopeModule BigString+Builder.swift
[48/329] Compiling _RopeModule BigString+Contents.swift
[49/329] Compiling _RopeModule BigString+Debugging.swift
[50/329] Compiling _RopeModule BigString+Index.swift
[51/329] Compiling _RopeModule BigString+Ingester.swift
[52/329] Compiling _RopeModule BigString+Invariants.swift
[53/329] Compiling _RopeModule BigString+Iterators.swift
[54/338] Compiling _RopeModule BigSubstring+UTF8View.swift
[55/338] Compiling _RopeModule BigSubstring+UnicodeScalarView.swift
[56/338] Compiling _RopeModule BigSubstring.swift
[57/338] Compiling _RopeModule Rope+Builder.swift
[58/338] Compiling _RopeModule Rope+Debugging.swift
[59/338] Compiling _RopeModule Rope+Invariants.swift
[60/338] Compiling _RopeModule Rope+_Node.swift
[61/338] Compiling _RopeModule BigString+Chunk.swift
[62/338] Compiling _RopeModule BigString+BidirectionalCollection.swift
[65/338] Compiling _RopeModule BigString+CustomStringConvertible.swift
[66/338] Compiling _RopeModule BigString+Equatable.swift
[67/338] Compiling DequeModule _DequeSlot.swift
[68/338] Compiling DequeModule _UnsafeWrappedBuffer.swift
[77/338] Compiling _RopeModule BigSubstring+UTF16View.swift
[78/338] Compiling _RopeModule BigString+LosslessStringConvertible.swift
[79/338] Compiling _RopeModule BigString+RangeReplaceableCollection.swift
[80/338] Compiling _RopeModule BigString+Sequence.swift
[81/338] Compiling _RopeModule BigString+TextOutputStream.swift
[82/338] Compiling _RopeModule BigString+Append.swift
[83/338] Compiling _RopeModule BigString+Initializers.swift
[84/338] Compiling _RopeModule BigString+Insert.swift
[85/338] Compiling _RopeModule BigString+Managing Breaks.swift
[90/338] Compiling _RopeModule BigString+Metrics.swift
[91/338] Compiling _RopeModule BigString+Summary.swift
[92/338] Compiling _RopeModule BigString.swift
[93/338] Compiling _RopeModule Rope+_Storage.swift
[94/338] Compiling _RopeModule Rope+_UnmanagedLeaf.swift
[95/338] Compiling _RopeModule Rope+_UnsafeHandle.swift
[96/338] Compiling BitCollections BitSet.Index.swift
[97/338] Compiling BitCollections BitSet._UnsafeHandle.swift
[113/347] Compiling _RopeModule BigString+Chunk+RopeElement.swift
[114/347] Compiling _RopeModule BigString+Chunk+Splitting.swift
[130/347] Compiling _RopeModule BigString+Chunk+Append and Insert.swift
[131/347] Compiling _RopeModule BigString+Chunk+Breaks.swift
[132/347] Emitting module BitCollections
[155/347] Compiling HashTreeCollections TreeSet+SetAlgebra isEqualSet.swift
[156/347] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSubset.swift
[157/347] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[158/347] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[159/347] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[160/347] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[161/347] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[162/347] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[163/347] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[164/347] Compiling HashTreeCollections TreeSet.swift
[167/347] Compiling OrderedCollections OrderedSet+Sendable.swift
[168/347] Compiling OrderedCollections OrderedSet+SubSequence.swift
[169/347] Compiling OrderedCollections OrderedSet+Testing.swift
[170/347] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[171/347] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[172/347] Emitting module DequeModule
[173/348] Compiling _RopeModule Rope+Find.swift
[174/348] Compiling _RopeModule Rope+ForEachWhile.swift
[175/348] Compiling _RopeModule Rope+Insert.swift
[176/348] Compiling HashTreeCollections _RawHashNode.swift
[177/348] Compiling HashTreeCollections _UnmanagedHashNode.swift
[178/348] Compiling HashTreeCollections _UnsafePath.swift
[179/348] Compiling HashTreeCollections TreeDictionary+Codable.swift
[180/348] Compiling HashTreeCollections TreeDictionary+Collection.swift
[181/348] Compiling HashTreeCollections TreeDictionary+CustomReflectable.swift
[182/348] Compiling HashTreeCollections TreeDictionary+Debugging.swift
[183/348] Compiling HashTreeCollections TreeDictionary+Descriptions.swift
[189/348] Compiling OrderedCollections OrderedSet.swift
[190/348] Compiling OrderedCollections _UnsafeBitset.swift
[191/348] Compiling _RopeModule Rope+Sequence.swift
[192/348] Compiling _RopeModule Rope+Append.swift
[193/348] Compiling _RopeModule Rope+Extract.swift
[288/356] Emitting module OrderedCollections
[290/356] Emitting module _RopeModule
[330/356] Compiling _RopeModule Rope+Join.swift
[331/356] Compiling _RopeModule Rope+MutatingForEach.swift
[332/356] Compiling _RopeModule Rope+Remove.swift
[333/356] Compiling _RopeModule Rope+RemoveSubrange.swift
[334/356] Compiling _RopeModule Rope+Split.swift
[335/356] Compiling _RopeModule Optional Utilities.swift
[336/356] Compiling _RopeModule String Utilities.swift
[337/356] Compiling _RopeModule String.Index+ABI.swift
[338/356] Compiling _RopeModule _CharacterRecognizer.swift
[340/356] Emitting module HashTreeCollections
[342/358] Emitting module Collections
[343/358] Compiling Collections Collections.swift
[345/394] Compiling ACPModel ModelMessages.swift
[346/394] Compiling ACPModel Notifications.swift
[347/394] Compiling ACPModel Pagination.swift
[348/394] Compiling ACPModel PermissionMessages.swift
[349/394] Compiling ACPModel PermissionOptionId.swift
[350/399] Compiling ACPModel SessionConfigGroupId.swift
[351/399] Compiling ACPModel SessionConfigId.swift
[352/399] Compiling ACPModel SessionConfigOption.swift
[353/399] Compiling ACPModel SessionConfigValueId.swift
[354/399] Compiling ACPModel SessionId.swift
[355/399] Compiling ACPModel PlanEntry.swift
[356/399] Compiling ACPModel Priority.swift
[357/399] Compiling ACPModel ProtocolVersion.swift
[358/399] Compiling ACPModel RequestId.swift
[359/399] Compiling ACPModel Role.swift
[360/399] Compiling ACPModel SessionInfo.swift
[361/399] Compiling ACPModel SessionMessages.swift
[362/399] Compiling ACPModel SessionModeId.swift
[363/399] Compiling ACPModel SessionModeMessages.swift
[364/399] Compiling ACPModel SessionOperations.swift
[365/399] Compiling ACPModel InitializeMessages.swift
[366/399] Compiling ACPModel JsonRpc.swift
[367/399] Compiling ACPModel JsonValue.swift
[368/399] Compiling ACPModel McpServer.swift
[369/399] Compiling ACPModel ModelId.swift
[370/399] Emitting module ACPModel
[371/399] Compiling ACPModel ACPModel.swift
[372/399] Compiling ACPModel AcpProtocols.swift
[373/399] Compiling ACPModel Annotations.swift
[374/399] Compiling ACPModel AuthMessages.swift
[375/399] Compiling ACPModel AvailableCommand.swift
[376/399] Compiling ACPModel Capabilities.swift
[377/399] Compiling ACPModel ContentBlock.swift
[378/399] Compiling ACPModel Cursor.swift
[379/399] Compiling ACPModel FileMessages.swift
[380/399] Compiling ACPModel Implementation.swift
[381/399] Compiling ACPModel SessionUpdate.swift
[382/399] Compiling ACPModel SessionUpdateTypes.swift
[383/399] Compiling ACPModel Terminal.swift
[384/399] Compiling ACPModel ToolCall.swift
[385/399] Compiling ACPModel ToolCallId.swift
[387/415] Compiling ACP ClientSessionOperations.swift
[388/415] Compiling ACP Event.swift
[389/417] Compiling ACP FileSystemOperations.swift
[390/417] Compiling ACP PaginatedResponse.swift
[391/417] Emitting module ACP
[392/417] Compiling ACP TerminalOperations.swift
[393/417] Compiling ACP Transport.swift
[394/417] Compiling ACP RemoteClientOperations.swift
[395/417] Compiling ACP StdioTransport.swift
[396/417] Compiling ACP AgentContext.swift
[397/417] Compiling ACP Client.swift
[398/417] Compiling ACP ACP.swift
[399/417] Compiling ACP Agent.swift
[400/417] Compiling ACP AgentConnection.swift
[401/417] Compiling ACP ClientConnection.swift
[402/417] Compiling ACP ClientSession.swift
[403/417] Compiling ACP Protocol.swift
[404/417] Compiling ACP ProtocolExtensions.swift
[406/428] Compiling ACPHTTP ACPHTTP.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[407/428] 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
[408/428] 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 |
[409/428] Compiling EchoAgent main.swift
[410/428] Emitting module EchoAgent
[411/428] Emitting module SimpleAgentApp
[413/429] 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:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* 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:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* 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:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
[414/429] Emitting module SimpleClient
[415/429] Compiling SimpleClient main.swift
[416/429] Emitting module InteractiveClient
[417/429] 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):
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/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):
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/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 {
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/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)
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
BUILD FAILURE 6.1 linux