Build Information
Failed to build CRDT, reference 0.5.0 (04ff7d
), with Swift 6.2 (beta) for Wasm on 19 Jun 2025 16:56:10 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/heckj/CRDT.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/heckj/CRDT
* tag 0.5.0 -> FETCH_HEAD
HEAD is now at 04ff7d1 doc update
Cloned https://github.com/heckj/CRDT.git
Revision (git rev-parse @):
04ff7d1dfdc36558efc6c5be9f9c158e1c0b5f00
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/heckj/CRDT.git at 0.5.0
========================================
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-4609320-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/apple/swift-collections-benchmark
Fetching https://github.com/apple/swift-docc-plugin
[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 (0.41s)
Fetched https://github.com/apple/swift-collections-benchmark from cache (0.46s)
Computing version for https://github.com/apple/swift-collections-benchmark
Computed https://github.com/apple/swift-collections-benchmark at 0.0.4 (1.18s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-system
[1/4436] Fetching swift-system
[4437/19816] Fetching swift-system, swift-argument-parser
Fetched https://github.com/apple/swift-system from cache (0.43s)
[154/15380] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.20s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.5.0 (1.59s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (0.36s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.4 (0.43s)
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.39s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.88s)
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-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-system
Working copy of https://github.com/apple/swift-system resolved at 1.5.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
[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
[10/19] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/62] 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/65] Compiling SystemPackage Util+StringArray.swift
[14/65] Compiling SystemPackage Util.swift
[15/65] Compiling SystemPackage UtilConsumers.swift
[16/65] 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
[17/65] 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
[18/65] 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
[19/65] 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
[20/66] Compiling SystemPackage FileOperations.swift
[21/66] Compiling SystemPackage FilePath.swift
[24/66] Compiling CRDT PNCounter.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
[25/66] 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
[26/66] Compiling SystemPackage MachPort.swift
[27/66] Compiling SystemPackage PlatformString.swift
[28/66] Compiling SystemPackage SystemString.swift
[29/66] 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
[30/66] Compiling SystemPackage Errno.swift
[31/66] Compiling SystemPackage ErrnoWindows.swift
[32/66] Compiling SystemPackage FileDescriptor.swift
[33/66] Compiling SystemPackage FileHelpers.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
/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
/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
/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
/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
[38/66] 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
/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
/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
[43/66] Compiling SystemPackage FilePathSyntax.swift
[44/66] Compiling SystemPackage FilePathTemp.swift
[45/66] Compiling SystemPackage FilePathTempPosix.swift
/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)
[46/66] Compiling SystemPackage FilePathTempWindows.swift
/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)
[47/66] Compiling SystemPackage FilePathWindows.swift
/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)
[48/66] Compiling SystemPackage FilePermissions.swift
/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)
[49/66] Emitting module ArgumentParserToolInfo
BUILD FAILURE 6.2 wasm