Build Information
Failed to build AnyLanguageModel, reference main (d0ea4e), with Swift 6.3 for Wasm on 10 Oct 2026 18:31:27 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886768-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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/huggingface/AnyLanguageModel.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/huggingface/AnyLanguageModel
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at d0ea4e5 Parse and write Llama tool calls without JSONSerialization (#308)
Cloned https://github.com/huggingface/AnyLanguageModel.git
Revision (git rev-parse @):
d0ea4e55a35266c9584adb3b3535c4eca5c21a43
SUCCESS checkout https://github.com/huggingface/AnyLanguageModel.git at main
========================================
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-53886768-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:df2e9038ff906af397ec7b7e13902ccb183f8867606bc33419e44453a9abdb4b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/mattt/EventSource
Fetching https://github.com/mattt/JSONSchema
Fetching https://github.com/swiftlang/swift-syntax
[1/207] Fetching jsonschema
[208/510] Fetching jsonschema, eventsource
[511/80926] Fetching jsonschema, eventsource, swift-syntax
Fetched https://github.com/mattt/JSONSchema from cache (3.92s)
Fetched https://github.com/mattt/EventSource from cache (3.92s)
Fetched https://github.com/swiftlang/swift-syntax from cache (3.94s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 602.0.0 (4.92s)
Computing version for https://github.com/mattt/JSONSchema
Computed https://github.com/mattt/JSONSchema at 1.3.1 (0.13s)
Fetching https://github.com/apple/swift-collections.git
[1/28695] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.65s)
Computing version for https://github.com/mattt/EventSource
Computed https://github.com/mattt/EventSource at 1.5.1 (1.79s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.2 (0.23s)
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.2
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
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.26s)
Building for debugging...
[0/10] Write sources
[6/10] Write swift-version-24593BA9C3E375BF.txt
[8/47] Emitting module InternalCollectionsUtilities
[9/50] Emitting module AnyLanguageModelMacros
[10/50] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Equality.swift
[11/50] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Extras.swift
[12/50] Compiling InternalCollectionsUtilities Debugging.swift
[13/50] Compiling InternalCollectionsUtilities Descriptions.swift
[14/50] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[15/50] Compiling InternalCollectionsUtilities _SortedCollection.swift
[16/50] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[17/50] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[18/50] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[19/50] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[20/50] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[21/50] Compiling EventSource EventSource+AsyncHTTPClient.swift
[22/50] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[23/50] Compiling InternalCollectionsUtilities Integer rank.swift
[24/50] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[25/50] Compiling InternalCollectionsUtilities UInt+reversed.swift
[26/50] Compiling InternalCollectionsUtilities Iterable+CopyContents.swift
[27/50] Compiling InternalCollectionsUtilities Iterable+Equality.swift
[28/50] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[29/50] Compiling InternalCollectionsUtilities MutableRef.swift
[30/50] Compiling InternalCollectionsUtilities MutableSpan+Extras.swift
[31/50] Compiling InternalCollectionsUtilities OutputSpan+Extras.swift
[32/50] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[33/50] Compiling InternalCollectionsUtilities Span+Extras.swift
[34/50] Compiling InternalCollectionsUtilities UnsafeMutablePointer+Extras.swift
[35/50] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[36/50] Compiling InternalCollectionsUtilities UnsafePointer+Extras.swift
[37/50] Compiling InternalCollectionsUtilities Strideable+LimitHelpers.swift
[38/50] Compiling InternalCollectionsUtilities String+Padding.swift
[39/50] Compiling InternalCollectionsUtilities TemporaryAllocation.swift
[40/50] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[41/50] Compiling EventSource AsyncEventsSequence.swift
[42/50] 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
[44/108] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[45/108] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[46/108] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[47/108] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[48/108] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[49/108] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[50/108] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[51/108] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[52/115] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[53/115] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[54/115] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[55/115] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[56/115] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[57/115] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[58/115] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[59/115] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[60/115] Compiling OrderedCollections OrderedDictionary+Codable.swift
[61/115] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[62/115] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[63/115] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[64/115] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[65/115] Compiling OrderedCollections OrderedDictionary+Elements.swift
[66/115] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[67/115] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[68/115] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[69/115] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[70/115] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[71/115] Compiling OrderedCollections OrderedDictionary+Move.swift
[72/115] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[73/115] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[74/115] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[75/115] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[76/115] Compiling OrderedCollections OrderedDictionary+Values.swift
[77/115] Compiling OrderedCollections OrderedDictionary.swift
[78/115] Compiling OrderedCollections OrderedSet+Codable.swift
[79/115] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[80/115] Compiling OrderedCollections OrderedSet+Descriptions.swift
[81/115] Compiling OrderedCollections OrderedSet+Diffing.swift
[82/115] Compiling OrderedCollections OrderedSet+Equatable.swift
[83/115] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[84/115] Compiling EventSource AsyncSequence+Events.swift
[85/115] 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)
BUILD FAILURE 6.3 wasm