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 Locks, reference 1.0.1 (e5c133), with Swift 6.2 for Wasm on 5 Sep 2025 07:27:31 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/adamwulf/Locks.git
Reference: 1.0.1
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/adamwulf/Locks
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at e5c1338 Add method to atomically toggle a boolean
Cloned https://github.com/adamwulf/Locks.git
Revision (git rev-parse @):
e5c133845f3ad1a890a8823374c2694f969884e2
SUCCESS checkout https://github.com/adamwulf/Locks.git at 1.0.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/adamwulf/Locks.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:3160178686d03086db4c1712d78c1980537bb37521128c64baade7f466b6b4aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/themomax/swift-docc-plugin
[1/647] Fetching swift-docc-plugin
Fetched https://github.com/themomax/swift-docc-plugin from cache (0.35s)
Fetching https://github.com/apple/swift-docc-symbolkit
[1/3502] Fetching swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit from cache (0.40s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.88s)
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/themomax/swift-docc-plugin
Working copy of https://github.com/themomax/swift-docc-plugin resolved at add-extended-types-flag (c234e51)
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
 29 |         func addTargetDependencies(_ target: Target) {
 30 |             for dependency in target.dependencies {
 31 |                 switch dependency {
    |                 |- warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
    |                 `- note: handle unknown values using "@unknown default"
 32 |                 case .product(let product):
 33 |                     addTargets(product.targets)
[1/1] Compiling plugin Swift-DocC Preview
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
 29 |         func addTargetDependencies(_ target: Target) {
 30 |             for dependency in target.dependencies {
 31 |                 switch dependency {
    |                 |- warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
    |                 `- note: handle unknown values using "@unknown default"
 32 |                 case .product(let product):
 33 |                     addTargets(product.targets)
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/14] Compiling Locks ThreadLocal.swift
/host/spi-builder-workspace/Sources/Locks/AtomicDictionary.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | /// A thread-safe dictionary that can be used to store key-value pairs
[6/15] Compiling Locks Mutex.swift
/host/spi-builder-workspace/Sources/Locks/AtomicDictionary.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | /// A thread-safe dictionary that can be used to store key-value pairs
[7/15] Compiling Locks UnfairLock.swift
/host/spi-builder-workspace/Sources/Locks/AtomicDictionary.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | /// A thread-safe dictionary that can be used to store key-value pairs
[8/15] Compiling Locks RecursiveMutex.swift
/host/spi-builder-workspace/Sources/Locks/AtomicDictionary.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | /// A thread-safe dictionary that can be used to store key-value pairs
[9/15] Compiling Locks ReadWriteLock.swift
/host/spi-builder-workspace/Sources/Locks/AtomicDictionary.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | /// A thread-safe dictionary that can be used to store key-value pairs
[10/15] Compiling Locks NSLocking+Extensions.swift
/host/spi-builder-workspace/Sources/Locks/AtomicDictionary.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | /// A thread-safe dictionary that can be used to store key-value pairs
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/15] Emitting module Locks
/host/spi-builder-workspace/Sources/Locks/AtomicDictionary.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | /// A thread-safe dictionary that can be used to store key-value pairs
[12/15] Compiling Locks AtomicDictionary.swift
/host/spi-builder-workspace/Sources/Locks/AtomicDictionary.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | /// A thread-safe dictionary that can be used to store key-value pairs
[13/15] Compiling Locks AtomicSet.swift
/host/spi-builder-workspace/Sources/Locks/AtomicDictionary.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | /// A thread-safe dictionary that can be used to store key-value pairs
[14/15] Compiling Locks AtomicWrapper+Extensions.swift
/host/spi-builder-workspace/Sources/Locks/AtomicDictionary.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | /// A thread-safe dictionary that can be used to store key-value pairs
[15/15] Compiling Locks AtomicWrapper.swift
/host/spi-builder-workspace/Sources/Locks/AtomicDictionary.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | /// A thread-safe dictionary that can be used to store key-value pairs
BUILD FAILURE 6.2 wasm