Build Information
Failed to build AnyLanguageModel, reference 1.1.1 (dcd18b), with Swift 6.3 for Wasm on 28 Oct 2026 22:01:25 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/huggingface/AnyLanguageModel.git
Reference: 1.1.1
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/huggingface/AnyLanguageModel
* tag 1.1.1 -> FETCH_HEAD
HEAD is now at dcd18b3 Bump README install snippets to 1.1.1 (#373)
Cloned https://github.com/huggingface/AnyLanguageModel.git
Revision (git rev-parse @):
dcd18b30566de97da9c7fb0197415547c64a2bae
SUCCESS checkout https://github.com/huggingface/AnyLanguageModel.git at 1.1.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/huggingface/AnyLanguageModel.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:eea66feda95ad8894091082dbcb77ec1fc917891d37888fd1938b0b68455d992
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/mattt/EventSource
Fetching https://github.com/mattt/JSONSchema
Fetching https://github.com/apple/swift-http-types
[1/207] Fetching jsonschema
[173/532] Fetching jsonschema, eventsource
[533/2493] Fetching jsonschema, eventsource, swift-http-types
Fetched https://github.com/apple/swift-http-types from cache (0.49s)
[1/81292] Fetching swift-syntax
Fetched https://github.com/mattt/EventSource from cache (3.87s)
Fetched https://github.com/mattt/JSONSchema from cache (3.88s)
Fetched https://github.com/swiftlang/swift-syntax from cache (3.90s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 602.0.0 (4.89s)
Computing version for https://github.com/mattt/JSONSchema
Computed https://github.com/mattt/JSONSchema at 1.3.1 (0.14s)
Fetching https://github.com/apple/swift-collections.git
[1/29362] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.42s)
Computing version for https://github.com/mattt/EventSource
Computed https://github.com/mattt/EventSource at 1.5.1 (1.58s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.8.0 (0.18s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.5 (0.25s)
Creating working copy for https://github.com/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.8.0
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 602.0.0
Creating working copy for https://github.com/mattt/JSONSchema
Working copy of https://github.com/mattt/JSONSchema resolved at 1.3.1
Creating working copy for https://github.com/mattt/EventSource
Working copy of https://github.com/mattt/EventSource resolved at 1.5.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.7.5
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3.2-RELEASE-ubuntu_noble_x86_64-MacroSupport.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3.2-RELEASE-ubuntu_noble_x86_64-MacroSupport.tar.gz (0.18s)
Building for debugging...
[0/19] Write sources
[15/19] Write swift-version-24593BA9C3E375BF.txt
[17/109] Emitting module InternalCollectionsUtilities
[19/112] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Equality.swift
[20/112] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Extras.swift
[21/112] Compiling InternalCollectionsUtilities Debugging.swift
[22/112] Compiling InternalCollectionsUtilities Descriptions.swift
[23/115] Compiling InternalCollectionsUtilities Strideable+LimitHelpers.swift
[24/115] Compiling InternalCollectionsUtilities String+Padding.swift
[25/115] Compiling InternalCollectionsUtilities TemporaryAllocation.swift
[26/115] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[29/116] Compiling InternalCollectionsUtilities MutableSpan+Extras.swift
[30/116] Compiling InternalCollectionsUtilities OutputSpan+Extras.swift
[31/116] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[32/116] Compiling InternalCollectionsUtilities Span+Extras.swift
[33/116] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[34/116] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[35/116] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[36/116] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[37/116] Compiling InternalCollectionsUtilities UnsafeMutablePointer+Extras.swift
[38/116] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[39/116] Compiling InternalCollectionsUtilities UnsafePointer+Extras.swift
[40/116] Compiling AnyLanguageModelMacros Plugin.swift
[41/116] Compiling InternalCollectionsUtilities Iterable+CopyContents.swift
[42/116] Compiling InternalCollectionsUtilities Iterable+Equality.swift
[43/116] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[44/116] Compiling InternalCollectionsUtilities MutableRef.swift
[45/116] Emitting module HTTPTypes
[46/116] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[47/116] Compiling InternalCollectionsUtilities _SortedCollection.swift
[48/116] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[49/116] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[50/116] Compiling InternalCollectionsUtilities Integer rank.swift
[51/116] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[52/116] Compiling InternalCollectionsUtilities UInt+reversed.swift
[54/145] Compiling HTTPTypes HTTPRequest.swift
[55/174] Compiling HTTPTypes HTTPResponse.swift
[56/174] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[57/174] Compiling OrderedCollections OrderedSet+Descriptions.swift
[58/174] Compiling OrderedCollections OrderedSet+Diffing.swift
[59/174] Compiling EventSource AsyncEventsSequence.swift
[60/174] Compiling OrderedCollections OrderedDictionary+Values.swift
[61/174] Compiling OrderedCollections OrderedDictionary.swift
[62/174] Compiling OrderedCollections OrderedSet+Codable.swift
[63/174] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[64/174] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[65/174] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[66/174] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[67/174] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[68/174] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[69/174] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[70/174] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[71/174] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[72/174] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[73/174] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[74/174] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[75/181] Emitting module HTTPTypes
[76/182] Compiling OrderedCollections _HashTable+Testing.swift
[77/182] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[78/182] Compiling OrderedCollections _HashTable.swift
[79/182] Compiling OrderedCollections _Hashtable+Header.swift
[80/182] Compiling OrderedCollections OrderedDictionary+Codable.swift
[81/182] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[82/182] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[83/182] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[84/182] Compiling EventSource AsyncSequence+Events.swift
[85/182] Emitting module EventSource
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:346:25: error: cannot find type 'URLRequest' in scope
344 |
345 | /// The request used for the event source connection.
346 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
347 |
348 | /// The URL session for the event source connection.
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:349:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
347 |
348 | /// The URL session for the event source connection.
349 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
350 |
351 | /// The task managing the connection loop.
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/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:498:18: error: cannot find type 'URLRequest' in scope
496 | /// Defaults to `.default`.
497 | public init(
498 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
499 | configuration: URLSessionConfiguration = .default
500 | ) {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:499:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
497 | public init(
498 | request: URLRequest,
499 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
500 | ) {
501 | self.session = URLSession(configuration: configuration)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:499:51: error: value of type '_' expected to be instance of class or class-constrained type
497 | public init(
498 | request: URLRequest,
499 | configuration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
500 | ) {
501 | self.session = URLSession(configuration: configuration)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:499:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
497 | public init(
498 | request: URLRequest,
499 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
500 | ) {
501 | self.session = URLSession(configuration: configuration)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:740:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
738 | #endif
739 |
740 | private func validateHTTPResponse(_ httpResponse: HTTPURLResponse) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
741 | let status = httpResponse.statusCode
742 | if status != 200 {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:482:23: error: cannot find 'URLRequest' in scope
480 | /// - Parameter url: The URL to open the SSE connection to.
481 | public init(url: URL) {
482 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
483 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
484 | request.setValue("no-cache", forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:485:18: error: incorrect argument label in call (have 'request:', expected 'url:')
483 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
484 | request.setValue("no-cache", forHTTPHeaderField: "Cache-Control")
485 | self.init(request: request)
| `- error: incorrect argument label in call (have 'request:', expected 'url:')
486 | }
487 |
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:501:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
499 | configuration: URLSessionConfiguration = .default
500 | ) {
501 | self.session = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
502 | self.request = request
503 | Task { [weak self] in
[86/182] Compiling OrderedCollections _HashTable+Bucket.swift
[87/182] Compiling OrderedCollections _HashTable+BucketIterator.swift
[88/182] Compiling OrderedCollections _HashTable+Constants.swift
[89/182] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[96/182] Compiling OrderedCollections OrderedSet+Equatable.swift
[97/182] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[98/182] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[99/182] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[100/182] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[101/182] Compiling OrderedCollections OrderedDictionary+Move.swift
[106/182] Compiling HTTPTypes HTTPRequest.swift
[111/182] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[112/182] Compiling OrderedCollections OrderedDictionary+Elements.swift
[113/182] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[114/182] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[117/183] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[118/183] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[119/183] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[120/183] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[121/183] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[122/183] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[123/183] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[124/183] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[126/183] Compiling HTTPTypes HTTPFieldValue.swift
[129/183] Compiling HTTPTypes HTTPFields.swift
[130/240] Compiling OrderedCollections OrderedDictionary+Values.swift
[131/240] Compiling OrderedCollections OrderedDictionary.swift
[132/240] Compiling OrderedCollections OrderedSet+Codable.swift
[133/240] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[134/240] Compiling OrderedCollections OrderedSet+Descriptions.swift
[135/240] Compiling OrderedCollections OrderedSet+Diffing.swift
[136/240] Compiling OrderedCollections OrderedSet+Equatable.swift
[137/240] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[138/240] Compiling HTTPTypes HTTPParsedFields.swift
[139/240] Compiling HTTPTypes HTTPFieldValue.swift
[140/240] Compiling HTTPTypes HTTPRequest+URL.swift
[141/240] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[142/240] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[143/240] Compiling HTTPTypes HTTPFields.swift
[145/241] Compiling OrderedCollections OrderedSet+Hashable.swift
[146/241] Compiling OrderedCollections OrderedSet+Initializers.swift
[147/241] Compiling OrderedCollections OrderedSet+Insertions.swift
[148/241] Compiling OrderedCollections OrderedSet+Invariants.swift
[149/241] Compiling OrderedCollections OrderedSet+Move.swift
[150/241] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[151/241] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[152/241] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[153/241] Compiling AnyLanguageModelMacros GuideMacro.swift
[154/241] Compiling HTTPTypes HTTPResponse.swift
[155/241] Compiling AnyLanguageModelMacros GenerableMacro.swift
[156/241] Emitting module AnyLanguageModelMacros
[158/248] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[159/248] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[160/248] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[161/248] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[162/248] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[163/248] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[164/248] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[165/248] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[166/255] Emitting module EventSource
[167/255] Compiling EventSource AsyncSequence+Events.swift
[168/255] Compiling EventSource EventSource+AsyncHTTPClient.swift
[169/255] Compiling EventSource EventSource.swift
[170/255] Compiling EventSource AsyncEventsSequence.swift
[171/255] Compiling HTTPTypes HTTPParsedFields.swift
[172/256] Compiling HTTPTypes HTTPRequest+URL.swift
[173/257] Emitting module HTTPTypesFoundation
[173/257] Wrapping AST for AnyLanguageModelMacros for debugging
[174/257] Write Objects.LinkFileList
[178/262] Compiling HTTPTypesFoundation HTTPTypes+ISOLatin1.swift
[179/263] Compiling HTTPTypesFoundation HTTPTypesFoundation.swift
[180/263] Compiling HTTPTypesFoundation URLRequest+HTTPTypes.swift
[181/263] Compiling HTTPTypesFoundation URLSession+HTTPTypes.swift
[182/263] Compiling HTTPTypesFoundation URLResponse+HTTPTypes.swift
[184/264] Compiling EventSource EventSource.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:346:25: error: cannot find type 'URLRequest' in scope
344 |
345 | /// The request used for the event source connection.
346 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
347 |
348 | /// The URL session for the event source connection.
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:349:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
347 |
348 | /// The URL session for the event source connection.
349 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
350 |
351 | /// The task managing the connection loop.
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/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:498:18: error: cannot find type 'URLRequest' in scope
496 | /// Defaults to `.default`.
497 | public init(
498 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
499 | configuration: URLSessionConfiguration = .default
500 | ) {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:499:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
497 | public init(
498 | request: URLRequest,
499 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
500 | ) {
501 | self.session = URLSession(configuration: configuration)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:499:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
497 | public init(
498 | request: URLRequest,
499 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
500 | ) {
501 | self.session = URLSession(configuration: configuration)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:499:51: error: value of type '_' expected to be instance of class or class-constrained type
497 | public init(
498 | request: URLRequest,
499 | configuration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
500 | ) {
501 | self.session = URLSession(configuration: configuration)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:740:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
738 | #endif
739 |
740 | private func validateHTTPResponse(_ httpResponse: HTTPURLResponse) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
741 | let status = httpResponse.statusCode
742 | if status != 200 {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:482:23: error: cannot find 'URLRequest' in scope
480 | /// - Parameter url: The URL to open the SSE connection to.
481 | public init(url: URL) {
482 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
483 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
484 | request.setValue("no-cache", forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:485:18: error: incorrect argument label in call (have 'request:', expected 'url:')
483 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
484 | request.setValue("no-cache", forHTTPHeaderField: "Cache-Control")
485 | self.init(request: request)
| `- error: incorrect argument label in call (have 'request:', expected 'url:')
486 | }
487 |
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:501:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
499 | configuration: URLSessionConfiguration = .default
500 | ) {
501 | self.session = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
502 | self.request = request
503 | Task { [weak self] in
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:593:68: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
591 | #else
592 | // Apple platforms: Use URLSession.bytes for true streaming
593 | let (byteStream, response) = try await session.bytes(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
594 | for: currentRequest,
595 | delegate: nil
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:595:35: error: 'nil' requires a contextual type
593 | let (byteStream, response) = try await session.bytes(
594 | for: currentRequest,
595 | delegate: nil
| `- error: 'nil' requires a contextual type
596 | )
597 |
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:741:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
739 |
740 | private func validateHTTPResponse(_ httpResponse: HTTPURLResponse) throws {
741 | let status = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
742 | if status != 200 {
743 | throw EventSourceError.invalidHTTPStatus(status)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:745:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
743 | throw EventSourceError.invalidHTTPStatus(status)
744 | }
745 | let contentType = httpResponse.value(forHTTPHeaderField: "Content-Type")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
746 | if contentType?.lowercased().hasPrefix("text/event-stream") != true {
747 | throw EventSourceError.invalidContentType(contentType)
[185/264] Compiling EventSource EventSource+AsyncHTTPClient.swift
[186/264] Compiling OrderedCollections OrderedSet+Sendable.swift
[187/264] Compiling OrderedCollections OrderedSet+SubSequence.swift
[188/264] Compiling OrderedCollections OrderedSet+Testing.swift
[189/264] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[190/264] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[191/264] Compiling OrderedCollections OrderedSet.swift
[192/264] Compiling OrderedCollections UnsafeBitset.swift
[193/264] Compiling HTTPTypesFoundation HTTPTypesFoundation.swift
[193/264] Linking AnyLanguageModelMacros-tool
error: emit-module command failed with exit code 1 (use -v to see invocation)
[194/264] Emitting module HTTPTypesFoundation
/host/spi-builder-workspace/.build/checkouts/swift-http-types/Sources/HTTPTypesFoundation/URLSession+HTTPTypes.swift:50:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
48 | @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
49 | @available(HTTPTypes 1.0, *)
50 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
51 | /// Convenience method to load data using an `HTTPRequest`; creates and resumes a `URLSessionDataTask` internally.
52 | ///
/host/spi-builder-workspace/.build/checkouts/swift-http-types/Sources/HTTPTypesFoundation/URLSession+HTTPTypes.swift:155:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
153 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
154 | @available(HTTPTypes 1.0, *)
155 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
156 | /// Convenience method to load data using an `HTTPRequest`; creates and resumes a `URLSessionDataTask` internally.
157 | ///
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.3 wasm