The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-extract, reference main (9a4211), with Swift 6.2 for Wasm on 30 Sep 2026 18:36:42 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-3":/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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
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 9a4211d Record 0.16.0: a line of Chinese, Japanese or Korean is read as its words.
Cloned https://github.com/asaptf/swift-extract.git
Revision (git rev-parse @):
9a4211d3d0d04e109fec80d93521f3f8e82efbd8
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-53886770-3":/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:ff44196b45f83e5a0a99a627b185f548850d9bc1242e3dee2178fb1570812fe8
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/5599] Fetching anylanguagemodel
Fetched https://github.com/huggingface/AnyLanguageModel.git from cache (1.28s)
[1/80093] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (7.08s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (8.92s)
Computing version for https://github.com/huggingface/AnyLanguageModel.git
Computed https://github.com/huggingface/AnyLanguageModel.git at 0.8.0 (0.45s)
Fetching https://github.com/mattt/EventSource
Fetching https://github.com/mattt/JSONSchema
Fetching https://github.com/mattt/PartialJSONDecoder
[1/82] Fetching partialjsondecoder
Fetched https://github.com/mattt/PartialJSONDecoder from cache (0.58s)
[1/303] Fetching eventsource
[191/510] Fetching eventsource, jsonschema
Fetched https://github.com/mattt/JSONSchema from cache (0.69s)
Fetched https://github.com/mattt/EventSource from cache (0.70s)
Computing version for https://github.com/mattt/PartialJSONDecoder
Computed https://github.com/mattt/PartialJSONDecoder at 1.0.1 (1.07s)
Computing version for https://github.com/mattt/JSONSchema
Computed https://github.com/mattt/JSONSchema at 1.3.1 (0.50s)
Fetching https://github.com/apple/swift-collections.git
[1/28069] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.91s)
Computing version for https://github.com/mattt/EventSource
Computed https://github.com/mattt/EventSource at 1.5.1 (2.44s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.1 (0.69s)
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.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/PartialJSONDecoder
Working copy of https://github.com/mattt/PartialJSONDecoder resolved at 1.0.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/mattt/JSONSchema
Working copy of https://github.com/mattt/JSONSchema resolved at 1.3.1
Creating working copy for https://github.com/huggingface/AnyLanguageModel.git
Working copy of https://github.com/huggingface/AnyLanguageModel.git resolved at 0.8.0
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/600.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/600.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz (0.25s)
Building for debugging...
[0/34] Write sources
[17/34] Write swift-version-24593BA9C3E375BF.txt
[19/118] Emitting module InternalCollectionsUtilities
[20/121] Emitting module PartialJSONDecoder
[21/121] Compiling InternalCollectionsUtilities Strideable+LimitHelpers.swift
[22/121] Compiling InternalCollectionsUtilities String+Padding.swift
[23/121] Compiling InternalCollectionsUtilities TemporaryAllocation.swift
[24/121] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[25/124] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[26/124] Compiling InternalCollectionsUtilities Integer rank.swift
[27/124] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[28/124] Compiling InternalCollectionsUtilities UInt+reversed.swift
[29/124] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Equality.swift
[30/124] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Extras.swift
[31/124] Compiling InternalCollectionsUtilities Debugging.swift
[32/124] Compiling InternalCollectionsUtilities Descriptions.swift
[33/124] Compiling InternalCollectionsUtilities MutableSpan+Extras.swift
[34/124] Compiling InternalCollectionsUtilities OutputSpan+Extras.swift
[35/124] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[36/124] Compiling InternalCollectionsUtilities Span+Extras.swift
[37/124] Compiling InternalCollectionsUtilities Iterable+CopyContents.swift
[38/124] Compiling InternalCollectionsUtilities Iterable+Equality.swift
[39/124] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[40/124] Compiling InternalCollectionsUtilities MutableRef.swift
[41/124] Emitting module InternalCollectionsUtilities
[42/124] Compiling AnyLanguageModelMacros Plugin.swift
[43/124] Compiling InternalCollectionsUtilities UnsafeMutablePointer+Extras.swift
[44/124] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[45/124] Compiling InternalCollectionsUtilities UnsafePointer+Extras.swift
[46/124] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[47/124] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[48/124] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[49/124] Compiling EventSource AsyncEventsSequence.swift
[50/124] Emitting module EventSource
[51/124] Compiling ExtractMacros Plugin.swift
[52/124] Compiling ExtractMacros GuideMacro.swift
[53/124] Compiling EventSource AsyncEventsSequence.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[54/124] 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: 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
[55/124] Emitting module ExtractMacros
[64/124] 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")
[65/124] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[66/124] Compiling InternalCollectionsUtilities _SortedCollection.swift
[67/124] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[71/124] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[76/124] Compiling EventSource EventSource+AsyncHTTPClient.swift
[77/124] 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: 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)
BUILD FAILURE 6.2 wasm