Build Information
Failed to build swift-extract, reference main (c27fb3), with Swift 6.2 for Wasm on 2 Nov 2026 07:28:33 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/asaptf/swift-extract.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/asaptf/swift-extract
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c27fb3d Fix CI Core Image compatibility and OCR test contention (#11)
Cloned https://github.com/asaptf/swift-extract.git
Revision (git rev-parse @):
c27fb3da750dc3eaa8f135a71772dd6dc1903801
SUCCESS checkout https://github.com/asaptf/swift-extract.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/asaptf/swift-extract.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:c2cc4df169d3c45015ced899e997f329be5fc90bdbfce388bd8981e1ea44d639
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/huggingface/AnyLanguageModel.git
[1/9491] Fetching anylanguagemodel
[9492/90975] Fetching anylanguagemodel, swift-syntax
Fetched https://github.com/huggingface/AnyLanguageModel.git from cache (3.64s)
Fetched https://github.com/swiftlang/swift-syntax from cache (3.66s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (4.86s)
Computing version for https://github.com/huggingface/AnyLanguageModel.git
Computed https://github.com/huggingface/AnyLanguageModel.git at 0.8.0 (0.16s)
Fetching https://github.com/mattt/EventSource
Fetching https://github.com/mattt/JSONSchema
Fetching https://github.com/mattt/PartialJSONDecoder
[1/207] Fetching jsonschema
[16/540] Fetching jsonschema, eventsource
[541/628] Fetching jsonschema, eventsource, partialjsondecoder
Fetched https://github.com/mattt/JSONSchema from cache (0.44s)
Fetched https://github.com/mattt/EventSource from cache (0.44s)
Fetched https://github.com/mattt/PartialJSONDecoder from cache (0.44s)
Computing version for https://github.com/mattt/PartialJSONDecoder
Computed https://github.com/mattt/PartialJSONDecoder at 1.0.1 (0.59s)
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/29448] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.31s)
Computing version for https://github.com/mattt/EventSource
Computed https://github.com/mattt/EventSource at 1.5.1 (1.47s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.5 (0.30s)
Creating working copy for https://github.com/huggingface/AnyLanguageModel.git
Working copy of https://github.com/huggingface/AnyLanguageModel.git resolved at 0.8.0
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
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/PartialJSONDecoder
Working copy of https://github.com/mattt/PartialJSONDecoder resolved at 1.0.1
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.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/600.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_noble_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/600.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_noble_x86_64.tar.gz (0.31s)
Building for debugging...
[0/34] Write sources
[17/34] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/118] 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
[20/118] Compiling InternalCollectionsUtilities MutableSpan+Extras.swift
[21/118] Compiling InternalCollectionsUtilities OutputSpan+Extras.swift
[22/118] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[23/118] Compiling InternalCollectionsUtilities Span+Extras.swift
[24/121] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[25/121] Compiling InternalCollectionsUtilities _SortedCollection.swift
[26/121] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[27/121] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[28/121] Compiling InternalCollectionsUtilities Integer rank.swift
[29/121] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[30/121] Compiling InternalCollectionsUtilities UInt+reversed.swift
[31/121] Compiling InternalCollectionsUtilities Iterable+CopyContents.swift
[32/121] Compiling InternalCollectionsUtilities Iterable+Equality.swift
[33/121] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[34/121] Compiling InternalCollectionsUtilities MutableRef.swift
[35/121] Emitting module InternalCollectionsUtilities
[36/121] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Equality.swift
[37/121] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Extras.swift
[38/121] Compiling InternalCollectionsUtilities Debugging.swift
[39/121] Compiling InternalCollectionsUtilities Descriptions.swift
[40/121] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[41/121] Compiling InternalCollectionsUtilities UnsafeMutablePointer+Extras.swift
[42/121] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[43/121] Compiling InternalCollectionsUtilities UnsafePointer+Extras.swift
[44/121] Compiling InternalCollectionsUtilities Strideable+LimitHelpers.swift
[45/121] Compiling InternalCollectionsUtilities String+Padding.swift
[46/121] Compiling InternalCollectionsUtilities TemporaryAllocation.swift
[47/121] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[48/121] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[49/121] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[50/121] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[56/182] Compiling OrderedCollections OrderedDictionary+Values.swift
[57/182] Compiling OrderedCollections OrderedDictionary.swift
[58/182] Compiling OrderedCollections OrderedSet+Codable.swift
[59/182] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[60/182] Compiling OrderedCollections OrderedSet+Descriptions.swift
[61/182] Compiling OrderedCollections OrderedSet+Diffing.swift
[62/182] Compiling OrderedCollections OrderedSet+Equatable.swift
[63/182] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[64/182] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[65/182] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[66/182] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[67/182] Compiling OrderedCollections OrderedDictionary+Move.swift
[68/182] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[69/182] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[70/182] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[71/182] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[72/182] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[73/182] Compiling OrderedCollections _HashTable+Testing.swift
[74/182] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[75/182] Compiling OrderedCollections _HashTable+Bucket.swift
[76/182] Compiling OrderedCollections _HashTable+BucketIterator.swift
[77/182] Compiling OrderedCollections _HashTable+Constants.swift
[78/182] Compiling ExtractMacros Plugin.swift
[79/182] Compiling ExtractMacros GuideMacro.swift
[80/182] Compiling ExtractMacros ExtractableMacro.swift
/host/spi-builder-workspace/Sources/ExtractMacros/ExtractableMacro.swift:269:14: error: value of type 'String' has no member 'replacingOccurrences'
267 | private static func escapeString(_ value: String) -> String {
268 | value
269 | .replacingOccurrences(of: "\\", with: "\\\\")
| `- error: value of type 'String' has no member 'replacingOccurrences'
270 | .replacingOccurrences(of: "\"", with: "\\\"")
271 | .replacingOccurrences(of: "\n", with: "\\n")
[81/182] Emitting module ExtractMacros
[82/182] Compiling OrderedCollections OrderedDictionary+Codable.swift
[83/182] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[84/182] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[85/182] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[86/182] Emitting module InternalCollectionsUtilities
[87/183] Compiling AnyLanguageModelMacros Plugin.swift
[88/183] Compiling EventSource EventSource+AsyncHTTPClient.swift
[89/183] Compiling EventSource AsyncEventsSequence.swift
[90/183] Emitting module EventSource
[91/183] Compiling EventSource AsyncSequence+Events.swift
[92/183] Emitting module PartialJSONDecoder
[93/183] Emitting module AnyLanguageModelMacros
[94/183] Compiling EventSource EventSource+AsyncHTTPClient.swift
[95/183] Compiling EventSource AsyncSequence+Events.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: 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
/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)
BUILD FAILURE 6.2 wasm