Build Information
Failed to build logging-middleware-oslog, reference main (c66068), with Swift 6.4 for Wasm on 28 Sep 2026 20:28:45 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-2":/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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/laconicman/OSLogLoggingMiddleware.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/laconicman/OSLogLoggingMiddleware
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c660680 FEAT: level and publicBodies knobs for field diagnostics
Cloned https://github.com/laconicman/OSLogLoggingMiddleware.git
Revision (git rev-parse @):
c66068020740e4c872157da696c0f4f999df7e74
SUCCESS checkout https://github.com/laconicman/OSLogLoggingMiddleware.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/laconicman/OSLogLoggingMiddleware.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-2":/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-openapi-urlsession
Fetching https://github.com/apple/swift-http-types
[1/1939] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types (0.47s)
[1/1184] Fetching swift-openapi-urlsession
Fetched https://github.com/apple/swift-openapi-urlsession (0.60s)
Computing version for https://github.com/apple/swift-openapi-urlsession
Computed https://github.com/apple/swift-openapi-urlsession at 1.3.1 (1.82s)
Fetching https://github.com/apple/swift-openapi-runtime
Fetching https://github.com/apple/swift-collections
[1/6958] Fetching swift-openapi-runtime
[6959/34737] Fetching swift-openapi-runtime, swift-collections
Fetched https://github.com/apple/swift-openapi-runtime (1.29s)
Fetched https://github.com/apple/swift-collections (1.31s)
Computing version for https://github.com/apple/swift-openapi-runtime
Computed https://github.com/apple/swift-openapi-runtime at 1.12.1 (1.64s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.8.0 (0.40s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.7.1 (0.43s)
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-openapi-urlsession
Working copy of https://github.com/apple/swift-openapi-urlsession resolved at 1.3.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
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.1
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 244]
[Planning deferred tasks]
[49 / 99] HTTPTypes
[58 / 117] InternalCollectionsUtilities
[59 / 117] HTTPTypes
[62 / 117] InternalCollectionsUtilities
[71 / 117] SpanPreview
[72 / 117] SpanPreview
[75 / 117] InternalCollectionsUtilities
[76 / 117] InternalCollectionsUtilities
[77 / 117] HTTPTypes-product
[79 / 119]
[82 / 123] SpanPreview
[88 / 124] OpenAPIRuntime
[93 / 133] SpanPreview
[94 / 133] OpenAPIRuntime
[95 / 133] SpanPreview
[97 / 134] OpenAPIRuntime
[98 / 134] OpenAPIRuntime
[99 / 135] OpenAPIRuntime
[100 / 135] OpenAPIRuntime
[102 / 135] OpenAPIRuntime
[109 / 135]
[112 / 136] DequeModule
[114 / 145] OpenAPIRuntime
[116 / 145] DequeModule
[118 / 145] DequeModule
[119 / 145] DequeModule
[120 / 145] DequeModule
[121 / 145] OpenAPIRuntime
[121 / 145] DequeModule
[121 / 145] OpenAPIRuntime
[124 / 146] OpenAPIRuntime
[124 / 146] DequeModule
[137 / 154] DequeModule
[140 / 155] OpenAPIURLSession
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/.build/checkouts/swift-openapi-urlsession/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/.build/checkouts/swift-openapi-urlsession/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/.build/checkouts/swift-openapi-urlsession/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/.build/checkouts/swift-openapi-urlsession/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/.build/checkouts/swift-openapi-urlsession/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/.build/checkouts/swift-openapi-urlsession/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/.build/checkouts/swift-openapi-urlsession/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/.build/checkouts/swift-openapi-urlsession/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/.build/checkouts/swift-openapi-urlsession/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/.build/checkouts/swift-openapi-urlsession/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/.build/checkouts/swift-openapi-urlsession/Sources/OpenAPIURLSession/BufferedStream/BufferedStream.swift /host/spi-builder-workspace/.build/checkouts/swift-openapi-urlsession/Sources/OpenAPIURLSession/BufferedStream/Lock.swift /host/spi-builder-workspace/.build/checkouts/swift-openapi-urlsession/Sources/OpenAPIURLSession/URLSessionBidirectionalStreaming/BidirectionalStreamingURLSessionDelegate.swift /host/spi-builder-workspace/.build/checkouts/swift-openapi-urlsession/Sources/OpenAPIURLSession/URLSessionBidirectionalStreaming/HTTPBodyOutputStreamBridge.swift /host/spi-builder-workspace/.build/checkouts/swift-openapi-urlsession/Sources/OpenAPIURLSession/URLSessionBidirectionalStreaming/URLSession+Extensions.swift /host/spi-builder-workspace/.build/checkouts/swift-openapi-urlsession/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 -suppress-warnings -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 -user-module-version 1.3.1 -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 swift_openapi_urlsession -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