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 main (01eb42), with Swift 6.2 (beta) for Wasm on 23 Jun 2025 15:33:52 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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: 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.2
Building package at path:  $PWD
https://github.com/rockname/sword.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/jpsim/Yams.git
[1/1411] Fetching pathkit
Fetching https://github.com/davecom/SwiftGraph
Fetched https://github.com/kylef/PathKit.git from cache (0.42s)
[1/10874] Fetching yams
[871/26254] Fetching yams, swift-argument-parser
[4645/29447] Fetching yams, swift-argument-parser, swiftgraph
Fetched https://github.com/davecom/SwiftGraph from cache (0.82s)
[21905/26254] Fetching yams, swift-argument-parser
Fetching https://github.com/apple/swift-syntax.git
Fetched https://github.com/apple/swift-argument-parser from cache (1.57s)
[8156/10874] Fetching yams
[10875/81801] Fetching yams, swift-syntax
Fetched https://github.com/jpsim/Yams.git from cache (2.47s)
[710/70927] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (8.07s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 1.0.1 (13.77s)
Fetching https://github.com/kylef/Spectre.git
[1/1021] Fetching spectre
Fetched https://github.com/kylef/Spectre.git from cache (0.42s)
Computing version for https://github.com/davecom/SwiftGraph
Computed https://github.com/davecom/SwiftGraph at 3.1.0 (4.35s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 600.0.1 (1.13s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.10.1 (0.69s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (0.70s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.4.0 (0.80s)
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/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.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/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 600.0.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
[28/112] Compiling _SwiftSyntaxCShims dummy.c
[28/112] Write sources
[31/112] Compiling _SwiftSyntaxCShims dummy.c
[31/112] Write sources
[47/112] Compiling writer.c
[48/112] Write swift-version-24593BA9C3E375BF.txt
[49/112] Compiling reader.c
[50/112] Compiling parser.c
[51/112] Compiling writer.c
[52/112] Compiling api.c
[53/116] Compiling reader.c
[54/125] Compiling emitter.c
[56/126] Emitting module SwiftSyntax600
[57/126] Emitting module SwiftSyntax510
[57/128] Compiling scanner.c
[60/150] 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 {
[61/150] Compiling SwiftSyntax600 Empty.swift
[62/151] Emitting module SwiftSyntax510
[63/151] Compiling SwiftSyntax510 Empty.swift
[66/154] Compiling SwiftSyntax509 Empty.swift
[67/154] Emitting module SwiftSyntax509
[68/155] 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 {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[69/155] 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 {
[70/155] 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 {
[71/155] Compiling SwiftSyntax510 Empty.swift
[72/156] Compiling SwordFoundation Scope.swift
[73/156] Compiling Yams Tag.swift
[74/156] Compiling Yams YamlAnchorProviding.swift
[75/156] Emitting module SwiftSyntax509
[76/156] Compiling SwiftSyntax509 Empty.swift
[77/156] Compiling SwiftSyntax600 Empty.swift
[78/156] Emitting module SwiftSyntax600
[79/156] Emitting module SwordFoundation
BUILD FAILURE 6.2 wasm