The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-openapi-urlsession, reference 1.4.0 (c97e0f), with Swift 6.4 for Wasm on 22 Oct 2026 14:00:12 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-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.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apple/swift-openapi-urlsession.git
Reference: 1.4.0
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/apple/swift-openapi-urlsession
 * tag               1.4.0      -> FETCH_HEAD
HEAD is now at c97e0f0 Add per-operation URLRequest overrides (#98)
Cloned https://github.com/apple/swift-openapi-urlsession.git
Revision (git rev-parse @):
c97e0f0187d95542b4a254f5bb4dc67f43bf73c9
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/apple/swift-openapi-urlsession.git at 1.4.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/apple/swift-openapi-urlsession.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-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.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:7a2e5502d3bb6640f9b2bbb1dadf9967024364ce9ed0ed0bd80cf1b699d193fd
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/apple/swift-openapi-runtime
Fetching https://github.com/apple/swift-http-types
Fetching https://github.com/apple/swift-nio
Fetching https://github.com/apple/swift-collections
[1/1961] Fetching swift-http-types
[1962/9219] Fetching swift-http-types, swift-openapi-runtime
[5591/38482] Fetching swift-http-types, swift-openapi-runtime, swift-collections
Fetched https://github.com/apple/swift-openapi-runtime (0.63s)
[6936/31224] Fetching swift-http-types, swift-collections
[31225/117852] Fetching swift-http-types, swift-collections, swift-nio
Fetched https://github.com/apple/swift-collections (1.19s)
[7159/88589] Fetching swift-http-types, swift-nio
Fetched https://github.com/apple/swift-http-types (3.41s)
Fetched https://github.com/apple/swift-nio (3.46s)
Computing version for https://github.com/apple/swift-openapi-runtime
Computed https://github.com/apple/swift-openapi-runtime at 1.13.3 (3.62s)
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
Computed https://github.com/apple/swift-collections at 1.7.3 (0.26s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.104.0 (0.28s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
[1/1889] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git (0.47s)
[1/7368] Fetching swift-system
Fetched https://github.com/apple/swift-system.git (0.69s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (0.86s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (0.18s)
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.7.3
Creating working copy for https://github.com/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.104.0
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/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-openapi-runtime
Working copy of https://github.com/apple/swift-openapi-runtime resolved at 1.13.3
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.8.1
Building for debugging...
[Provisioning 4 / 11]
[Pre-planning 1 / 214]
[Constructing 223 / 465]
[52 / 96] HTTPTypes
[53 / 105] InternalCollectionsUtilities
[65 / 105] InternalCollectionsUtilities
[67 / 105] InternalCollectionsUtilities
[69 / 105] SpanPreview
[70 / 105] InternalCollectionsUtilities
[72 / 105] HTTPTypes-product
[76 / 111] SpanPreview
[84 / 120] SpanPreview
[87 / 120] SpanPreview
[89 / 121] SpanPreview
[90 / 122] InternalCollectionsUtilities
[93 / 122] OpenAPIRuntime
[94 / 123] OpenAPIRuntime
[95 / 123] InternalCollectionsUtilities
[103 / 123] InternalCollectionsUtilities
[106 / 124]
[108 / 133] DequeModule
[109 / 133] DequeModule
[110 / 133] DequeModule
[111 / 133] DequeModule
[112 / 133] DequeModule
[113 / 133] DequeModule
[114 / 133] DequeModule
[115 / 133] DequeModule
[116 / 133] DequeModule
[116 / 133] OpenAPIRuntime
[119 / 134] DequeModule
[135 / 143] DequeModule
[135 / 143] OpenAPIURLSession
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:67:29: error: cannot find type 'URLSession' in scope
 65 |
 66 |         /// The URLSession used for performing HTTP operations.
 67 |         public var session: URLSession
    |                             `- error: cannot find type 'URLSession' in scope
 68 |
 69 |         /// A closure that provides request overrides using metadata about an OpenAPI operation.
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:81:30: error: cannot find type 'URLSession' in scope
 79 |         ///     If none is provided, the system uses the shared URLSession.
 80 |         ///   - httpBodyProcessingMode: The mode used to process HTTP request and response bodies.
 81 |         public init(session: URLSession = .shared, httpBodyProcessingMode: HTTPBodyProcessingMode = .platformDefault) {
    |                              `- error: cannot find type 'URLSession' in scope
 82 |             let implementation = httpBodyProcessingMode.implementation
 83 |             self.init(session: session, implementation: implementation)
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:88:30: error: cannot find type 'URLSession' in scope
 86 |         /// - Parameter session: The URLSession used for performing HTTP operations.
 87 |         ///   If none is provided, the system uses the shared URLSession.
 88 |         public init(session: URLSession = .shared) { self.init(session: session, implementation: .platformDefault) }
    |                              `- error: cannot find type 'URLSession' in scope
 89 |
 90 |         /// Creates a configuration with per-operation request overrides.
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:99:22: error: cannot find type 'URLSession' in scope
 97 |         ///     and returns the overrides to apply to its request.
 98 |         public init(
 99 |             session: URLSession = .shared,
    |                      `- error: cannot find type 'URLSession' in scope
100 |             httpBodyProcessingMode: HTTPBodyProcessingMode = .platformDefault,
101 |             requestOverrides: (@Sendable (_ metadata: RequestMetadata) -> RequestOverrides)? = nil
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:173:22: error: cannot find type 'URLSession' in scope
171 |
172 |         init(
173 |             session: URLSession = .shared,
    |                      `- error: cannot find type 'URLSession' in scope
174 |             implementation: Implementation,
175 |             requestOverrides: (@Sendable (_ metadata: RequestMetadata) -> RequestOverrides)? = nil
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:234:28: error: cannot find type 'URLResponse' in scope
232 |
233 | extension HTTPBody.Length {
234 |     init(from urlResponse: URLResponse) {
    |                            `- error: cannot find type 'URLResponse' in scope
235 |         if urlResponse.expectedContentLength == -1 {
236 |             self = .unknown
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:250:26: error: cannot find type 'URLResponse' in scope
248 |
249 |     /// Returned `URLResponse` could not be converted to `HTTPURLResponse`.
250 |     case notHTTPResponse(URLResponse)
    |                          `- error: cannot find type 'URLResponse' in scope
251 |
252 |     /// Returned `HTTPURLResponse` has an invalid status code
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:253:36: error: cannot find type 'HTTPURLResponse' in scope
251 |
252 |     /// Returned `HTTPURLResponse` has an invalid status code
253 |     case invalidResponseStatusCode(HTTPURLResponse)
    |                                    `- error: cannot find type 'HTTPURLResponse' in scope
254 |
255 |     /// Returned `URLResponse` was nil
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:263:25: error: cannot find type 'URLResponse' in scope
261 |
262 | extension HTTPResponse {
263 |     init(_ urlResponse: URLResponse) throws {
    |                         `- error: cannot find type 'URLResponse' in scope
264 |         guard let httpResponse = urlResponse as? HTTPURLResponse else {
265 |             throw URLSessionTransportError.notHTTPResponse(urlResponse)
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:282:11: error: cannot find type 'URLRequest' in scope
280 | }
281 |
282 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
283 |     init(
284 |         _ request: HTTPRequest,
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:403:11: error: cannot find type 'URLSession' in scope
401 | }
402 |
403 | extension URLSession {
    |           `- error: cannot find type 'URLSession' in scope
404 |     func bufferedRequest(
405 |         for request: HTTPRequest,
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/OpenAPIURLSession/BufferedStream/BufferedStream.swift /host/spi-builder-workspace/Sources/OpenAPIURLSession/BufferedStream/Lock.swift /host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionBidirectionalStreaming/BidirectionalStreamingURLSessionDelegate.swift /host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionBidirectionalStreaming/HTTPBodyOutputStreamBridge.swift /host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionBidirectionalStreaming/URLSession+Extensions.swift /host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-upcoming-feature ExistentialAny -enable-upcoming-feature MemberImportVisibility -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-openapi-urlsession.build/Debug-webassembly-wasm32/OpenAPIURLSession-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-openapi-urlsession.build/Debug-webassembly-wasm32/OpenAPIURLSession-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-openapi-urlsession.build/Debug-webassembly-wasm32/OpenAPIURLSession-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name OpenAPIURLSession -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-openapi-urlsession.build/Debug-webassembly-wasm32/OpenAPIURLSession-t.build/Objects-normal/wasm32/OpenAPIURLSession_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-openapi-urlsession.build/Debug-webassembly-wasm32/OpenAPIURLSession-t.build/Objects-normal/wasm32/Modules/OpenAPIURLSession.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-openapi-urlsession.build/Debug-webassembly-wasm32/OpenAPIURLSession-t.build/Objects-normal/wasm32/Modules/OpenAPIURLSession.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-openapi-urlsession.build/Debug-webassembly-wasm32/OpenAPIURLSession-t.build/Objects-normal/wasm32/OpenAPIURLSession-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-openapi-urlsession.build/Debug-webassembly-wasm32/OpenAPIURLSession-t.build/Objects-normal/wasm32/OpenAPIURLSession-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-openapi-urlsession.build/Debug-webassembly-wasm32/OpenAPIURLSession-t.build/Objects-normal/wasm32/OpenAPIURLSession-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-openapi-urlsession.build/Debug-webassembly-wasm32/OpenAPIURLSession-t.build/Objects-normal/wasm32/Modules/OpenAPIURLSession.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm