Build Information
Failed to build swift-openapi-urlsession, reference 1.3.2 (77effe), with Swift 6.4 for Wasm on 3 Oct 2026 16:05:45 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apple/swift-openapi-urlsession.git
Reference: 1.3.2
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.3.2 -> FETCH_HEAD
HEAD is now at 77effea Skip empty HTTPBody chunks in the URLSession stream bridge (#96)
Cloned https://github.com/apple/swift-openapi-urlsession.git
Revision (git rev-parse @):
77effea09e780f6f3f119ffb8150ff25e31c78b1
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/apple/swift-openapi-urlsession.git at 1.3.2
========================================
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-54344844-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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/apple/swift-http-types
Fetching https://github.com/apple/swift-collections
Fetching https://github.com/apple/swift-nio
Fetching https://github.com/apple/swift-openapi-runtime
[1/1939] Fetching swift-http-types
[1940/9026] Fetching swift-http-types, swift-openapi-runtime
[9027/37564] Fetching swift-http-types, swift-openapi-runtime, swift-collections
[14735/123829] Fetching swift-http-types, swift-openapi-runtime, swift-collections, swift-nio
Fetched https://github.com/apple/swift-http-types (3.83s)
Fetched https://github.com/apple/swift-openapi-runtime (3.83s)
Fetched https://github.com/apple/swift-collections (3.85s)
Fetched https://github.com/apple/swift-nio (3.88s)
Computing version for https://github.com/apple/swift-openapi-runtime
Computed https://github.com/apple/swift-openapi-runtime at 1.12.2 (4.16s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.8.0 (0.35s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.7.1 (0.46s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.103.0 (0.41s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
[1/1885] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git (0.49s)
[1/7102] Fetching swift-system
Fetched https://github.com/apple/swift-system.git (0.65s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (0.85s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (0.24s)
Creating working copy for https://github.com/apple/swift-openapi-runtime
Working copy of https://github.com/apple/swift-openapi-runtime resolved at 1.12.2
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
Creating working copy for https://github.com/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.103.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-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.7.1
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
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 214]
[Planning deferred tasks]
[44 / 87] HTTPTypes
[53 / 105] InternalCollectionsUtilities
[54 / 105] HTTPTypes
[65 / 105] InternalCollectionsUtilities
[67 / 105] InternalCollectionsUtilities
[69 / 105] SpanPreview
[75 / 110] SpanPreview
[78 / 110] SpanPreview
[84 / 112]
[90 / 122] DequeModule
[91 / 131] OpenAPIRuntime
[92 / 131] OpenAPIRuntime
[93 / 131] OpenAPIRuntime
[95 / 131] OpenAPIRuntime
[97 / 133] OpenAPIRuntime
[98 / 133] OpenAPIRuntime
[99 / 133] OpenAPIRuntime
[101 / 133] OpenAPIRuntime
[106 / 133] OpenAPIRuntime-product
[113 / 133] DequeModule
[115 / 133] DequeModule
[115 / 133]
[116 / 133] DequeModule
[116 / 133] OpenAPIRuntime
[119 / 134] DequeModule
[132 / 142] OpenAPIURLSession
[132 / 142] DequeModule
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:67:29: [1;31merror: [1;39mcannot find type 'URLSession' in scope[0;0m
[0;36m65 |[0;0m
[0;36m66 |[0;0m /// The URLSession used for performing HTTP operations.
[0;36m67 |[0;0m public var session: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSession' in scope[0;0m
[0;36m68 |[0;0m
[0;36m69 |[0;0m /// Creates a new configuration with the provided session.
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:74:30: [1;31merror: [1;39mcannot find type 'URLSession' in scope[0;0m
[0;36m72 |[0;0m /// If none is provided, the system uses the shared URLSession.
[0;36m73 |[0;0m /// - httpBodyProcessingMode: The mode used to process HTTP request and response bodies.
[0;36m74 |[0;0m public init(session: [4;39mURLSession[0;0m = .shared, httpBodyProcessingMode: HTTPBodyProcessingMode = .platformDefault) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSession' in scope[0;0m
[0;36m75 |[0;0m let implementation = httpBodyProcessingMode.implementation
[0;36m76 |[0;0m self.init(session: session, implementation: implementation)
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:81:30: [1;31merror: [1;39mcannot find type 'URLSession' in scope[0;0m
[0;36m79 |[0;0m /// - Parameter session: The URLSession used for performing HTTP operations.
[0;36m80 |[0;0m /// If none is provided, the system uses the shared URLSession.
[0;36m81 |[0;0m public init(session: [4;39mURLSession[0;0m = .shared) { self.init(session: session, implementation: .platformDefault) }
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSession' in scope[0;0m
[0;36m82 |[0;0m /// Specifies the mode in which HTTP request and response bodies are processed.
[0;36m83 |[0;0m public struct HTTPBodyProcessingMode: Sendable {
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:103:23: [1;31merror: [1;39mcannot find type 'URLSession' in scope[0;0m
[0;36m101 |[0;0m var implementation: Implementation
[0;36m102 |[0;0m
[0;36m103 |[0;0m init(session: [4;39mURLSession[0;0m = .shared, implementation: Implementation = .platformDefault) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSession' in scope[0;0m
[0;36m104 |[0;0m self.session = session
[0;36m105 |[0;0m if case .streaming = implementation {
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:157:28: [1;31merror: [1;39mcannot find type 'URLResponse' in scope[0;0m
[0;36m155 |[0;0m
[0;36m156 |[0;0m extension HTTPBody.Length {
[0;36m157 |[0;0m init(from urlResponse: [4;39mURLResponse[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLResponse' in scope[0;0m
[0;36m158 |[0;0m if urlResponse.expectedContentLength == -1 {
[0;36m159 |[0;0m self = .unknown
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:173:26: [1;31merror: [1;39mcannot find type 'URLResponse' in scope[0;0m
[0;36m171 |[0;0m
[0;36m172 |[0;0m /// Returned `URLResponse` could not be converted to `HTTPURLResponse`.
[0;36m173 |[0;0m case notHTTPResponse([4;39mURLResponse[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLResponse' in scope[0;0m
[0;36m174 |[0;0m
[0;36m175 |[0;0m /// Returned `HTTPURLResponse` has an invalid status code
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:176:36: [1;31merror: [1;39mcannot find type 'HTTPURLResponse' in scope[0;0m
[0;36m174 |[0;0m
[0;36m175 |[0;0m /// Returned `HTTPURLResponse` has an invalid status code
[0;36m176 |[0;0m case invalidResponseStatusCode([4;39mHTTPURLResponse[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'HTTPURLResponse' in scope[0;0m
[0;36m177 |[0;0m
[0;36m178 |[0;0m /// Returned `URLResponse` was nil
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:186:25: [1;31merror: [1;39mcannot find type 'URLResponse' in scope[0;0m
[0;36m184 |[0;0m
[0;36m185 |[0;0m extension HTTPResponse {
[0;36m186 |[0;0m init(_ urlResponse: [4;39mURLResponse[0;0m) throws {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLResponse' in scope[0;0m
[0;36m187 |[0;0m guard let httpResponse = urlResponse as? HTTPURLResponse else {
[0;36m188 |[0;0m throw URLSessionTransportError.notHTTPResponse(urlResponse)
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:205:11: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m203 |[0;0m }
[0;36m204 |[0;0m
[0;36m205 |[0;0m extension [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m206 |[0;0m init(_ request: HTTPRequest, baseURL: URL) throws {
[0;36m207 |[0;0m guard var baseUrlComponents = URLComponents(string: baseURL.absoluteString),
/host/spi-builder-workspace/Sources/OpenAPIURLSession/URLSessionTransport.swift:315:11: [1;31merror: [1;39mcannot find type 'URLSession' in scope[0;0m
[0;36m313 |[0;0m }
[0;36m314 |[0;0m
[0;36m315 |[0;0m extension [4;39mURLSession[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSession' in scope[0;0m
[0;36m316 |[0;0m func bufferedRequest(for request: HTTPRequest, baseURL: URL, requestBody: HTTPBody?) async throws -> (
[0;36m317 |[0;0m HTTPResponse, HTTPBody?
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.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_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.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_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.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_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