Build Information
Failed to build JSON, reference 4.0.2 (12e37e), with Swift 6.4 for Wasm on 15 Sep 2026 21:52:26 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-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.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/dankogai/swift-json.git
Reference: 4.0.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/dankogai/swift-json
* tag 4.0.2 -> FETCH_HEAD
HEAD is now at 12e37ec version 4.0.2
Cloned https://github.com/dankogai/swift-json.git
Revision (git rev-parse @):
12e37ec0a9e5d979de7cd3d00e0495a87c62834d
SUCCESS checkout https://github.com/dankogai/swift-json.git at 4.0.2
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/dankogai/swift-json.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-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.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
Building for debugging...
[Planning deferred tasks]
[24 / 35] JSON
/host/spi-builder-workspace/Sources/JSON/JSON.swift:32:16: [1;33mwarning: [1;39m'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'JSON' to 'Hashable' by implementing 'hash(into:)' instead[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m30 |[0;0m }
[0;36m31 |[0;0m extension JSON : Hashable {
[0;36m32 |[0;0m public var hashValue: Int {
[0;36m|[0;0m `- [1;33mwarning: [1;39m'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'JSON' to 'Hashable' by implementing 'hash(into:)' instead[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m33 |[0;0m switch self {
[0;36m34 |[0;0m case .Error(let m): fatalError("\(m)")
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[33 / 38] JSONRun-product
[35 / 39] JSON
/host/spi-builder-workspace/Sources/JSON/JSON.swift:32:16: [1;33mwarning: [1;39m'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'JSON' to 'Hashable' by implementing 'hash(into:)' instead[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m30 |[0;0m }
[0;36m31 |[0;0m extension JSON : Hashable {
[0;36m32 |[0;0m public var hashValue: Int {
[0;36m|[0;0m `- [1;33mwarning: [1;39m'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'JSON' to 'Hashable' by implementing 'hash(into:)' instead[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m33 |[0;0m switch self {
[0;36m34 |[0;0m case .Error(let m): fatalError("\(m)")
/host/spi-builder-workspace/Sources/JSON/JSON.swift:270:17: [1;33mwarning: [1;39mvariable 'kv' was never mutated; consider changing to 'let' constant[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
[0;36m268 |[0;0m }
[0;36m269 |[0;0m case .Object(let o):
[0;36m270 |[0;0m var kv = o.map{ $0 }
[0;36m|[0;0m `- [1;33mwarning: [1;39mvariable 'kv' was never mutated; consider changing to 'let' constant[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
[0;36m271 |[0;0m var i = -1
[0;36m272 |[0;0m return AnyIterator {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#VariableNeverMutated]: <https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated>
error: unknown argument: '-shared'
error: Ld /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/libJSON.wasm normal failed with a nonzero exit code. Command line: cd /host/spi-builder-workspace
/usr/bin/swiftc -target wasm32-unknown-wasip1 -shared -emit-library -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 -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 -Xclang-linker -resource-dir -Xclang-linker /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 -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 -L/host/spi-builder-workspace/.build/out/Intermediates.noindex/EagerLinkingTBDs/Debug-webassembly-wasm32 -L/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 @/host/spi-builder-workspace/.build/out/Intermediates.noindex/JSON.build/Debug-webassembly-wasm32/JSON-product-t.build/Objects-normal/wasm32/JSON.LinkFileList -Xlinker --gc-sections -Xclang-linker -rdynamic -L/usr/lib/swift -static-stdlib @/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/JSON.objlib/args.resp -o /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/libJSON.wasm
error: Build failed
BUILD FAILURE 6.4 wasm