The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build sword, reference 0.5.0 (01eb42), with Swift 6.2 (beta) for Wasm on 23 Jun 2025 15:32:58 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rockname/sword.git
Reference: 0.5.0
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
 * tag               0.5.0      -> FETCH_HEAD
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 0.5.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/rockname/sword.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/kylef/PathKit.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-syntax.git
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/davecom/SwiftGraph
[1/1411] Fetching pathkit
[1412/4604] Fetching pathkit, swiftgraph
Fetched https://github.com/kylef/PathKit.git from cache (0.65s)
[448/3193] Fetching swiftgraph
[576/14067] Fetching swiftgraph, yams
[3406/29447] Fetching swiftgraph, yams, swift-argument-parser
Fetched https://github.com/davecom/SwiftGraph from cache (1.06s)
[3549/26254] Fetching yams, swift-argument-parser
[6952/97181] Fetching yams, swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser from cache (2.26s)
[18744/81801] Fetching yams, swift-syntax
Fetched https://github.com/jpsim/Yams.git from cache (4.85s)
Fetched https://github.com/apple/swift-syntax.git from cache (9.20s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 1.0.1 (13.19s)
Fetching https://github.com/kylef/Spectre.git
[1/1021] Fetching spectre
Fetched https://github.com/kylef/Spectre.git from cache (1.08s)
Computing version for https://github.com/davecom/SwiftGraph
Computed https://github.com/davecom/SwiftGraph at 3.1.0 (3.87s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 600.0.1 (0.82s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.10.1 (0.47s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (0.44s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.4.0 (0.58s)
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/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
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/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.1
/host/spi-builder-workspace/Plugins/SwordBuildToolPlugin/SwordBuildToolPlugin.swift:11:28: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
 9 |
10 |     let inputDirectories = dependencies.compactMap { dependency in
11 |       dependency.directory.string.replacingOccurrences(
   |                            `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
12 |         of: context.package.directoryURL.path(),
13 |         with: ""
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[1/1] Compiling plugin SwordBuildToolPlugin
[2/2] Compiling plugin GenerateManual
Building for debugging...
[2/112] Write sources
[27/112] Compiling _SwiftSyntaxCShims dummy.c
[29/112] Write sources
[47/112] Write swift-version-24593BA9C3E375BF.txt
[48/112] Compiling reader.c
[49/112] Compiling writer.c
[51/118] Compiling parser.c
[52/120] Compiling api.c
[53/124] Compiling emitter.c
[55/126] Emitting module SwiftSyntax600
[55/128] Compiling scanner.c
[58/150] Compiling SwiftSyntax600 Empty.swift
[59/150] Emitting module SwiftSyntax600
[61/151] Compiling Yams Tag.swift
[62/151] Compiling Yams YamlAnchorProviding.swift
[63/153] Emitting module SwiftSyntax510
[64/153] Compiling SwiftSyntax510 Empty.swift
[65/156] Emitting module SwiftSyntax509
[66/156] Compiling SwiftSyntax509 Empty.swift
[69/237] Emitting module SwiftSyntax509
[70/237] Compiling SwiftSyntax509 Empty.swift
[71/238] Compiling SwiftSyntax600 Empty.swift
[74/239] Compiling SwordFoundation Scope.swift
/host/spi-builder-workspace/Sources/SwordFoundation/Key.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | package struct Key: Hashable, Codable {
[75/239] Compiling SwordFoundation Type.swift
/host/spi-builder-workspace/Sources/SwordFoundation/Key.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | package struct Key: Hashable, Codable {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[76/239] Emitting module SwordFoundation
/host/spi-builder-workspace/Sources/SwordFoundation/Key.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | package struct Key: Hashable, Codable {
[77/239] Compiling SwordFoundation Key.swift
/host/spi-builder-workspace/Sources/SwordFoundation/Key.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | package struct Key: Hashable, Codable {
[78/239] Compiling SwiftSyntax510 Empty.swift
[79/239] Emitting module SwiftSyntax510
[81/240] Compiling SwordFoundation Scope.swift
BUILD FAILURE 6.2 wasm