Build Information
Failed to build translate_tool, reference 3.3.2 (aef1be), with Swift 6.4 for Wasm on 24 Sep 2026 06:01:14 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/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/cenkbilgen/translate_strings.git
Reference: 3.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/cenkbilgen/translate_strings
* tag 3.3.2 -> FETCH_HEAD
HEAD is now at aef1be5 Merge branch 'main' of github.com:cenkbilgen/translate_strings
Cloned https://github.com/cenkbilgen/translate_strings.git
Revision (git rev-parse @):
aef1be54cb2d8fe584936bfc117344f8ea5e6a6f
SUCCESS checkout https://github.com/cenkbilgen/translate_strings.git at 3.3.2
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/cenkbilgen/translate_strings.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/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/cenkbilgen/StringsCatalogKit.git
Fetching https://github.com/cenkbilgen/KeychainSimple.git
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-argument-parser.git
[1/59] Fetching stringscatalogkit
[60/6204] Fetching stringscatalogkit, swift-algorithms
[429/6276] Fetching stringscatalogkit, swift-algorithms, keychainsimple
Fetched https://github.com/cenkbilgen/StringsCatalogKit.git (0.47s)
Fetched https://github.com/cenkbilgen/KeychainSimple.git (0.47s)
[3196/6145] Fetching swift-algorithms
[6146/25074] Fetching swift-algorithms, swift-argument-parser
Fetched https://github.com/apple/swift-algorithms.git (0.78s)
Fetched https://github.com/apple/swift-argument-parser.git (0.78s)
Computing version for https://github.com/cenkbilgen/KeychainSimple.git
Computed https://github.com/cenkbilgen/KeychainSimple.git at 2.0.0 (0.94s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (1.05s)
Fetching https://github.com/apple/swift-numerics.git
[1/6640] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git (1.09s)
Computing version for https://github.com/cenkbilgen/StringsCatalogKit.git
Computed https://github.com/cenkbilgen/StringsCatalogKit.git at 1.1.2 (1.27s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.16s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.8.2 (0.19s)
Creating working copy for https://github.com/cenkbilgen/StringsCatalogKit.git
Working copy of https://github.com/cenkbilgen/StringsCatalogKit.git resolved at 1.1.2
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.8.2
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/cenkbilgen/KeychainSimple.git
Working copy of https://github.com/cenkbilgen/KeychainSimple.git resolved at 2.0.0
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 304]
[Constructing 1 / 655]
[67 / 137] _NumericsShims
[68 / 137] RealModule
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/Sources/TranslationServices/LLMAPI.swift:13:54: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m11 |[0;0m var baseURL: URL { get }
[0;36m12 |[0;0m var headers: [String: String] { get }
[0;36m13 |[0;0m func makePromptRequest(prompt: String) throws -> [4;39mURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m14 |[0;0m associatedtype ResponseBody: Decodable
[0;36m15 |[0;0m func decodeStructuredReply(body: ResponseBody) throws -> LLM.Schema.StructuredContent
/host/spi-builder-workspace/Sources/TranslationServices/LLMAPI.swift:19:48: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m17 |[0;0m
[0;36m18 |[0;0m extension LLMAPI {
[0;36m19 |[0;0m internal func makeRequest(path: String) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m20 |[0;0m var request = URLRequest(url: baseURL.appending(path: path))
[0;36m21 |[0;0m request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/TranslationServices/TranslatorAnthropic.swift:25:54: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m23 |[0;0m let toolName = "StringArray" // check when response comes back that this matches
[0;36m24 |[0;0m
[0;36m25 |[0;0m func makePromptRequest(prompt: String) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m26 |[0;0m var request = makeRequest(path: "messages")
[0;36m27 |[0;0m
/host/spi-builder-workspace/Sources/TranslationServices/TranslatorDeepL.swift:22:39: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m20 |[0;0m let baseURL = URL(string: "https://api-free.deepl.com/v2/")!
[0;36m21 |[0;0m
[0;36m22 |[0;0m func makeRequest(path: String) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m23 |[0;0m var request = URLRequest(url: baseURL.appending(path: path))
[0;36m24 |[0;0m request.setValue("DeepL-Auth-Key \(key)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/TranslationServices/TranslatorProtocol.swift:34:18: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m32 |[0;0m
[0;36m33 |[0;0m func send<ResponseBody: Decodable>(
[0;36m34 |[0;0m request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m35 |[0;0m decoder: JSONDecoder = NetService.decoder
[0;36m36 |[0;0m ) async throws -> ResponseBody {
/host/spi-builder-workspace/Sources/TranslationServices/TranslatorDeepL.swift:71:53: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m69 |[0;0m targetLanguage: targetLanguage
[0;36m70 |[0;0m )
[0;36m71 |[0;0m let (data, response) = try await [4;39mURLSession[0;0m.[4;39mshared[0;0m.data(for: request)
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m72 |[0;0m guard let httpResponse = response as? HTTPURLResponse else {
[0;36m73 |[0;0m throw TranslatorError.invalidResponse
/host/spi-builder-workspace/Sources/TranslationServices/TranslatorDeepL.swift:87:38: [1;31merror: [1;39mcannot infer key path type from context; consider explicitly specifying a root type[0;0m
[0;36m85 |[0;0m }
[0;36m86 |[0;0m let body = try NetService.decoder.decode(Body.self, from: data)
[0;36m87 |[0;0m return body.translations.map([4;39m\[0;0m.text)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot infer key path type from context; consider explicitly specifying a root type[0;0m
[0;36m88 |[0;0m }
[0;36m89 |[0;0m }
/host/spi-builder-workspace/Sources/TranslationServices/TranslatorGemini.swift:43:54: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m41 |[0;0m }
[0;36m42 |[0;0m
[0;36m43 |[0;0m func makePromptRequest(prompt: String) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m44 |[0;0m var request = makeRequest(path: "")
[0;36m45 |[0;0m
/host/spi-builder-workspace/Sources/TranslationServices/TranslatorOpenAI.swift:22:63: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m20 |[0;0m }
[0;36m21 |[0;0m
[0;36m22 |[0;0m internal func makePromptRequest(prompt: String) throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m23 |[0;0m var request = makeRequest(path: "chat/completions")
[0;36m24 |[0;0m struct Body: Encodable {
/host/spi-builder-workspace/Sources/TranslationServices/TranslatorOpenAI.swift:129:38: [1;31merror: [1;39mcannot convert value of type 'TranslatorOpenAI.ResponseBody' to specified type 'ResponseBody'[0;0m
[0;36m127 |[0;0m }
[0;36m128 |[0;0m
[0;36m129 |[0;0m let body: ResponseBody = [4;39mtry await send(request: request)[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot convert value of type 'TranslatorOpenAI.ResponseBody' to specified type 'ResponseBody'[0;0m
[0;36m130 |[0;0m return Set(body.data.map(\.id))
[0;36m131 |[0;0m }
/host/spi-builder-workspace/Sources/TranslationServices/TranslatorOpenAI.swift:129:44: [1;31merror: [1;39m'send' is inaccessible due to 'private' protection level[0;0m
[0;36m127 |[0;0m }
[0;36m128 |[0;0m
[0;36m129 |[0;0m let body: ResponseBody = try await [4;39msend[0;0m(request: request)
[0;36m|[0;0m `- [1;31merror: [1;39m'send' is inaccessible due to 'private' protection level[0;0m
[0;36m130 |[0;0m return Set(body.data.map(\.id))
[0;36m131 |[0;0m }
/host/spi-builder-workspace/Sources/TranslationServices/LLMAPI.swift:30:18: [1;39mnote: [1;39m'send(prompt:)' declared here[0;0m
[0;36m28 |[0;0m }
[0;36m29 |[0;0m
[0;36m30 |[0;0m private func send(prompt: String) async throws -> ResponseBody {
[0;36m|[0;0m `- [1;39mnote: [1;39m'send(prompt:)' declared here[0;0m
[0;36m31 |[0;0m let request = try makePromptRequest(prompt: prompt)
[0;36m32 |[0;0m let body: ResponseBody = try await send(request: request, decoder: NetService.decoder)
/host/spi-builder-workspace/Sources/TranslationServices/TranslatorOpenAI.swift:129:48: [1;31merror: [1;39mincorrect argument label in call (have 'request:', expected 'prompt:')[0;0m
[0;36m127 |[0;0m }
[0;36m128 |[0;0m
[0;36m129 |[0;0m let body: ResponseBody = try await send(request: request)
[0;36m|[0;0m `- [1;31merror: [1;39mincorrect argument label in call (have 'request:', expected 'prompt:')[0;0m
[0;36m130 |[0;0m return Set(body.data.map(\.id))
[0;36m131 |[0;0m }
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/TranslationServices/Errors.swift /host/spi-builder-workspace/Sources/TranslationServices/LLMAPI.swift /host/spi-builder-workspace/Sources/TranslationServices/ModelSelectable.swift /host/spi-builder-workspace/Sources/TranslationServices/TranslatorAnthropic.swift /host/spi-builder-workspace/Sources/TranslationServices/TranslatorDeepL.swift /host/spi-builder-workspace/Sources/TranslationServices/TranslatorGemini.swift /host/spi-builder-workspace/Sources/TranslationServices/TranslatorOpenAI.swift /host/spi-builder-workspace/Sources/TranslationServices/TranslatorProtocol.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 -warnings-as-errors -warnings-as-errors -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -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/translate_tool.build/Debug-webassembly-wasm32/TranslationServices-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/translate_tool.build/Debug-webassembly-wasm32/TranslationServices-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/translate_tool.build/Debug-webassembly-wasm32/TranslationServices-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name TranslationServices -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/translate_tool.build/Debug-webassembly-wasm32/TranslationServices-t.build/Objects-normal/wasm32/TranslationServices_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/translate_tool.build/Debug-webassembly-wasm32/TranslationServices-t.build/Objects-normal/wasm32/Modules/TranslationServices.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/translate_tool.build/Debug-webassembly-wasm32/TranslationServices-t.build/Objects-normal/wasm32/Modules/TranslationServices.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/translate_tool.build/Debug-webassembly-wasm32/TranslationServices-t.build/Objects-normal/wasm32/TranslationServices-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/translate_tool.build/Debug-webassembly-wasm32/TranslationServices-t.build/Objects-normal/wasm32/TranslationServices-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/translate_tool.build/Debug-webassembly-wasm32/TranslationServices-t.build/Objects-normal/wasm32/TranslationServices-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/translate_tool.build/Debug-webassembly-wasm32/TranslationServices-t.build/Objects-normal/wasm32/Modules/TranslationServices.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm