Build Information
Failed to build sword, reference main (01eb42), with Swift 6.4 for Wasm on 22 Sep 2026 03:23:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-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/rockname/sword.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/rockname/sword
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 01eb420 Merge pull request #30 from rockname/update-readme
Cloned https://github.com/rockname/sword.git
Revision (git rev-parse @):
01eb420d4c100b4045d9319d9cddd91f0f05ad35
SUCCESS checkout https://github.com/rockname/sword.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/rockname/sword.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-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/apple/swift-argument-parser
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/davecom/SwiftGraph
Fetching https://github.com/kylef/PathKit.git
Fetching https://github.com/apple/swift-syntax.git
[1/1460] Fetching pathkit
[1461/13321] Fetching pathkit, yams
[2173/32239] Fetching pathkit, yams, swift-argument-parser
[28682/35540] Fetching pathkit, yams, swift-argument-parser, swiftgraph
[32670/115539] Fetching pathkit, yams, swift-argument-parser, swiftgraph, swift-syntax
Fetched https://github.com/kylef/PathKit.git (1.15s)
Fetched https://github.com/davecom/SwiftGraph (1.15s)
[40379/110778] Fetching yams, swift-argument-parser, swift-syntax
Fetched https://github.com/jpsim/Yams.git (1.17s)
[29318/98917] Fetching swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser (3.36s)
Fetched https://github.com/apple/swift-syntax.git (3.37s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 1.0.1 (4.46s)
Fetching https://github.com/kylef/Spectre.git
[1/1021] Fetching spectre
Fetched https://github.com/kylef/Spectre.git (0.93s)
Computing version for https://github.com/davecom/SwiftGraph
Computed https://github.com/davecom/SwiftGraph at 3.1.0 (1.98s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 600.0.1 (0.30s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.10.1 (0.18s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.4.0 (0.19s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.18s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 600.0.1
Creating working copy for https://github.com/kylef/PathKit.git
Working copy of https://github.com/kylef/PathKit.git resolved at 1.0.1
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.10.1
Creating working copy for https://github.com/davecom/SwiftGraph
Working copy of https://github.com/davecom/SwiftGraph resolved at 3.1.0
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.4.0
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 650]
[Planning deferred tasks]
[145 / 292] SwiftSyntax509
[157 / 292] SwordFoundation
[168 / 292] SwiftSyntax510
[169 / 292] SwiftSyntax600
[181 / 294] SwiftSyntax509
[185 / 304] SwiftSyntax
[186 / 305] SwiftSyntax510
[188 / 305] SwiftSyntax510
[191 / 306] SwordFoundation
[193 / 306] SwordFoundation
[196 / 307] SwordFoundation
[197 / 307] SwiftSyntax
[200 / 307] SwordFoundation
[200 / 307] SwiftSyntax
[212 / 317] SwiftDiagnostics
[215 / 340] SwiftParser
[216 / 340] SwiftSyntaxSupport
[233 / 340] SwiftSyntaxSupport
[236 / 341] SwiftBasicFormat
[241 / 342] SwordComponentArgument
[245 / 342] SwiftParser
[246 / 342] SwiftParser
[249 / 342] SwiftParser
[253 / 342] SwiftParser
[255 / 342] SwiftDiagnostics
[256 / 342] SwiftDiagnostics
[257 / 342] SwiftOperators
[259 / 342] SwiftOperators
[262 / 342] SwiftDiagnostics
[263 / 342] SwiftBasicFormat
[264 / 342] SwiftBasicFormat
[266 / 343] SwiftParserDiagnostics
[270 / 344]
[274 / 354] SwiftParserDiagnostics
[275 / 354] SwiftParserDiagnostics
[276 / 354] SwiftParserDiagnostics
[277 / 355] SwiftParserDiagnostics
[280 / 355] SwiftParserDiagnostics
[281 / 355] SwiftParserDiagnostics
[287 / 355] SwiftBasicFormat
[289 / 356] SwiftBasicFormat
[291 / 365] SwiftOperators
[292 / 365] SwiftOperators
[293 / 365] SwiftOperators
[296 / 365] SwiftOperators
[297 / 365] SwiftOperators
[303 / 365] SwiftOperators
[304 / 366]
[307 / 375] SwiftSyntaxBuilder
[308 / 375] SwiftSyntaxBuilder
[309 / 376] SwiftSyntaxBuilder
[311 / 377] SwiftSyntaxBuilder
[312 / 377] SwiftSyntaxBuilder
[314 / 377] SwiftSyntaxBuilder
[319 / 377] SwiftParserDiagnostics
[322 / 377] SwiftSyntaxBuilder
[327 / 387] SwiftSyntaxMacros
[336 / 387] SwiftSyntaxMacros
[337 / 387] SwiftSyntaxMacros
[342 / 397] SwiftSyntaxMacroExpansion
[344 / 397] SwiftSyntaxMacroExpansion
[344 / 398] SwiftSyntaxMacroExpansion
[347 / 398] SwiftSyntaxMacros
[350 / 399] SwiftSyntaxMacroExpansion
[357 / 400]
[359 / 409] SwiftCompilerPluginMessageHandling
[361 / 409] SwiftCompilerPluginMessageHandling
[362 / 409] SwiftCompilerPluginMessageHandling
[363 / 409] SwiftCompilerPluginMessageHandling
[365 / 409] SwiftCompilerPluginMessageHandling
[370 / 409] SwiftCompilerPluginMessageHandling
[372 / 410] SwiftCompilerPlugin
[374 / 412] SwiftCompilerPlugin
[379 / 412] SwiftSyntaxMacroExpansion
[381 / 413] SwiftCompilerPluginMessageHandling
[381 / 414] SwiftCompilerPlugin
[383 / 414] SwiftCompilerPluginMessageHandling
[385 / 415] SwiftSyntax
[388 / 416] SwiftSyntax
[395 / 416]
[405 / 417] SwordMacros
[414 / 426] SwordMacros
[415 / 426] SwordMacros
[416 / 427] SwordMacros
[419 / 427] SwordMacros
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/Sword/InstanceStore.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile InstanceStore.swift
[429 / 437] Sword
/host/spi-builder-workspace/Sources/Sword/InstanceStore.swift:8:40: [1;31merror: [1;39mcannot find 'NSMapTable' in scope[0;0m
[0;36m6 |[0;0m
[0;36m7 |[0;0m private var singleInstances = [String: AnyObject]()
[0;36m8 |[0;0m private var weakReferenceInstances = [4;39mNSMapTable[0;0m<NSString, AnyObject>(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'NSMapTable' in scope[0;0m
[0;36m9 |[0;0m keyOptions: .copyIn,
[0;36m10 |[0;0m valueOptions: .weakMemory
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/Sword/Assisted.swift /host/spi-builder-workspace/Sources/Sword/Component.swift /host/spi-builder-workspace/Sources/Sword/Dependency.swift /host/spi-builder-workspace/Sources/Sword/Injected.swift -primary-file /host/spi-builder-workspace/Sources/Sword/InstanceStore.swift /host/spi-builder-workspace/Sources/Sword/Module.swift /host/spi-builder-workspace/Sources/Sword/Provider.swift /host/spi-builder-workspace/Sources/Sword/Subcomponent.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/sword.build/Debug-webassembly-wasm32/Sword-t.build/Objects-normal/wasm32/InstanceStore.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/sword.build/Debug-webassembly-wasm32/Sword-t.build/Objects-normal/wasm32/InstanceStore.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/sword.build/Debug-webassembly-wasm32/Sword-t.build/Objects-normal/wasm32/InstanceStore.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/sword.build/Debug-webassembly-wasm32/Sword-t.build/Objects-normal/wasm32/InstanceStore.dia -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 -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/SwordMacros\#SwordMacros -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/sword.build/Debug-webassembly-wasm32/Sword-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/sword.build/Debug-webassembly-wasm32/Sword-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/sword.build/Debug-webassembly-wasm32/Sword-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Sword -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/sword.build/Debug-webassembly-wasm32/Sword-t.build/Objects-normal/wasm32/Sword_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 -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/sword.build/Debug-webassembly-wasm32/Sword-t.build/Objects-normal/wasm32/InstanceStore.o -index-unit-output-path /sword.build/Debug-webassembly-wasm32/Sword-t.build/Objects-normal/wasm32/InstanceStore.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/Sources/Sword/InstanceStore.swift:8:40: [1;31merror: [1;39mcannot find 'NSMapTable' in scope[0;0m
[0;36m6 |[0;0m
[0;36m7 |[0;0m private var singleInstances = [String: AnyObject]()
[0;36m8 |[0;0m private var weakReferenceInstances = [4;39mNSMapTable[0;0m<NSString, AnyObject>(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'NSMapTable' in scope[0;0m
[0;36m9 |[0;0m keyOptions: .copyIn,
[0;36m10 |[0;0m valueOptions: .weakMemory
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/Sword/Assisted.swift /host/spi-builder-workspace/Sources/Sword/Component.swift /host/spi-builder-workspace/Sources/Sword/Dependency.swift /host/spi-builder-workspace/Sources/Sword/Injected.swift /host/spi-builder-workspace/Sources/Sword/InstanceStore.swift /host/spi-builder-workspace/Sources/Sword/Module.swift /host/spi-builder-workspace/Sources/Sword/Provider.swift /host/spi-builder-workspace/Sources/Sword/Subcomponent.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 -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/SwordMacros\#SwordMacros -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/sword.build/Debug-webassembly-wasm32/Sword-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/sword.build/Debug-webassembly-wasm32/Sword-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/sword.build/Debug-webassembly-wasm32/Sword-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Sword -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/sword.build/Debug-webassembly-wasm32/Sword-t.build/Objects-normal/wasm32/Sword_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/sword.build/Debug-webassembly-wasm32/Sword-t.build/Objects-normal/wasm32/Modules/Sword.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/sword.build/Debug-webassembly-wasm32/Sword-t.build/Objects-normal/wasm32/Modules/Sword.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/sword.build/Debug-webassembly-wasm32/Sword-t.build/Objects-normal/wasm32/Sword-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/sword.build/Debug-webassembly-wasm32/Sword-t.build/Objects-normal/wasm32/Sword-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/sword.build/Debug-webassembly-wasm32/Sword-t.build/Objects-normal/wasm32/Sword-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/sword.build/Debug-webassembly-wasm32/Sword-t.build/Objects-normal/wasm32/Modules/Sword.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm