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 CRDT, reference main (31e9ef), with Swift 6.2 (beta) for Wasm on 19 Jun 2025 16:56:15 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/heckj/CRDT.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/heckj/CRDT
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 31e9ef0 adding .mailmap
Cloned https://github.com/heckj/CRDT.git
Revision (git rev-parse @):
31e9ef063daba69552753dabd5c359e8e91e1e27
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/heckj/CRDT.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/heckj/CRDT.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-collections-benchmark
[1/498] Fetching swift-collections-benchmark
[76/2580] Fetching swift-collections-benchmark, swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (1.00s)
Fetched https://github.com/apple/swift-collections-benchmark from cache (1.00s)
Computing version for https://github.com/apple/swift-collections-benchmark
Computed https://github.com/apple/swift-collections-benchmark at 0.0.4 (1.54s)
Fetching https://github.com/apple/swift-system
Fetching https://github.com/apple/swift-argument-parser
[1/4436] Fetching swift-system
[4437/19816] Fetching swift-system, swift-argument-parser
Fetched https://github.com/apple/swift-system from cache (0.94s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.95s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.5.0 (1.58s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (0.75s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.4 (4.64s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3413] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.62s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.35s)
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/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.4
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-collections-benchmark
Working copy of https://github.com/apple/swift-collections-benchmark resolved at 0.0.4
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.5.0
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin Swift-DocC Preview
[3/3] Compiling plugin Swift-DocC
Building for debugging...
[3/19] Write sources
[9/19] Compiling CSystem shims.c
[9/19] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/63] Emitting module SystemPackage
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[13/66] Compiling SystemPackage Util+StringArray.swift
[14/66] Compiling SystemPackage Util.swift
[15/66] Compiling SystemPackage UtilConsumers.swift
[16/66] Compiling SystemPackage FileOperations.swift
/host/spi-builder-workspace/Sources/CRDT/ApproxSizeable.swift:5:8: error: no such module 'Foundation'
 3 | //
 4 |
 5 | import Foundation
   |        `- error: no such module 'Foundation'
 6 |
 7 | #if DEBUG
[17/66] Compiling SystemPackage FilePath.swift
/host/spi-builder-workspace/Sources/CRDT/ApproxSizeable.swift:5:8: error: no such module 'Foundation'
 3 | //
 4 |
 5 | import Foundation
   |        `- error: no such module 'Foundation'
 6 |
 7 | #if DEBUG
[18/67] Compiling CRDT WallclockTimestamp.swift
/host/spi-builder-workspace/Sources/CRDT/ApproxSizeable.swift:5:8: error: no such module 'Foundation'
 3 | //
 4 |
 5 | import Foundation
   |        `- error: no such module 'Foundation'
 6 |
 7 | #if DEBUG
[19/67] Compiling CRDT Replicable.swift
/host/spi-builder-workspace/Sources/CRDT/ApproxSizeable.swift:5:8: error: no such module 'Foundation'
 3 | //
 4 |
 5 | import Foundation
   |        `- error: no such module 'Foundation'
 6 |
 7 | #if DEBUG
[20/67] Compiling SystemPackage MachPort.swift
[21/67] Compiling SystemPackage PlatformString.swift
[22/67] Compiling SystemPackage SystemString.swift
[23/67] Compiling SystemPackage FilePathParsing.swift
/host/spi-builder-workspace/Sources/CRDT/ApproxSizeable.swift:5:8: error: no such module 'Foundation'
 3 | //
 4 |
 5 | import Foundation
   |        `- error: no such module 'Foundation'
 6 |
 7 | #if DEBUG
[24/67] Compiling SystemPackage FilePathString.swift
/host/spi-builder-workspace/Sources/CRDT/ApproxSizeable.swift:5:8: error: no such module 'Foundation'
 3 | //
 4 |
 5 | import Foundation
   |        `- error: no such module 'Foundation'
 6 |
 7 | #if DEBUG
error: emit-module command failed with exit code 1 (use -v to see invocation)
[25/67] Emitting module CRDT
/host/spi-builder-workspace/Sources/CRDT/ApproxSizeable.swift:5:8: error: no such module 'Foundation'
 3 | //
 4 |
 5 | import Foundation
   |        `- error: no such module 'Foundation'
 6 |
 7 | #if DEBUG
[26/67] Compiling SystemPackage Errno.swift
/host/spi-builder-workspace/Sources/CRDT/ApproxSizeable.swift:5:8: error: no such module 'Foundation'
 3 | //
 4 |
 5 | import Foundation
   |        `- error: no such module 'Foundation'
 6 |
 7 | #if DEBUG
[27/67] Compiling SystemPackage ErrnoWindows.swift
/host/spi-builder-workspace/Sources/CRDT/ApproxSizeable.swift:5:8: error: no such module 'Foundation'
 3 | //
 4 |
 5 | import Foundation
   |        `- error: no such module 'Foundation'
 6 |
 7 | #if DEBUG
[28/67] Compiling SystemPackage FilePathComponentView.swift
/host/spi-builder-workspace/Sources/CRDT/ApproxSizeable.swift:5:8: error: no such module 'Foundation'
 3 | //
 4 |
 5 | import Foundation
   |        `- error: no such module 'Foundation'
 6 |
 7 | #if DEBUG
[29/67] Compiling SystemPackage FilePathComponents.swift
/host/spi-builder-workspace/Sources/CRDT/ApproxSizeable.swift:5:8: error: no such module 'Foundation'
 3 | //
 4 |
 5 | import Foundation
   |        `- error: no such module 'Foundation'
 6 |
 7 | #if DEBUG
[30/67] Compiling SystemPackage FilePathSyntax.swift
/host/spi-builder-workspace/Sources/CRDT/ApproxSizeable.swift:5:8: error: no such module 'Foundation'
 3 | //
 4 |
 5 | import Foundation
   |        `- error: no such module 'Foundation'
 6 |
 7 | #if DEBUG
[31/67] Compiling SystemPackage FilePathTemp.swift
/host/spi-builder-workspace/Sources/CRDT/ApproxSizeable.swift:5:8: error: no such module 'Foundation'
 3 | //
 4 |
 5 | import Foundation
   |        `- error: no such module 'Foundation'
 6 |
 7 | #if DEBUG
[32/67] Compiling SystemPackage FileDescriptor.swift
/host/spi-builder-workspace/Sources/CRDT/ApproxSizeable.swift:5:8: error: no such module 'Foundation'
 3 | //
 4 |
 5 | import Foundation
   |        `- error: no such module 'Foundation'
 6 |
 7 | #if DEBUG
[33/67] Compiling SystemPackage FileHelpers.swift
/host/spi-builder-workspace/Sources/CRDT/ApproxSizeable.swift:5:8: error: no such module 'Foundation'
 3 | //
 4 |
 5 | import Foundation
   |        `- error: no such module 'Foundation'
 6 |
 7 | #if DEBUG
BUILD FAILURE 6.2 wasm