Build Information
Failed to build swift-scru64, reference v1.0.0 (6db8ca), with Swift 6.1 for Wasm on 28 May 2025 21:15:25 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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/scru64/swift-scru64.git
Reference: v1.0.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/scru64/swift-scru64
* tag v1.0.0 -> FETCH_HEAD
HEAD is now at 6db8ca0 v1.0.0 Released
Cloned https://github.com/scru64/swift-scru64.git
Revision (git rev-parse @):
6db8ca088779423bb59989c3765926e127487c87
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/scru64/swift-scru64.git at v1.0.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/scru64/swift-scru64.git
https://github.com/scru64/swift-scru64.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "swift-scru64",
"name" : "swift-scru64",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Scru64",
"targets" : [
"Scru64"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Scru64Tests",
"module_type" : "SwiftTarget",
"name" : "Scru64Tests",
"path" : "Tests/Scru64Tests",
"sources" : [
"Scru64CounterModeTests.swift",
"Scru64GeneratorTests.swift",
"Scru64GlobalGeneratorTests.swift",
"Scru64IdTests.swift",
"Scru64NodeSpecTests.swift",
"Scru64Tests.swift"
],
"target_dependencies" : [
"Scru64"
],
"type" : "test"
},
{
"c99name" : "Scru64",
"module_type" : "SwiftTarget",
"name" : "Scru64",
"path" : "Sources/Scru64",
"product_memberships" : [
"Scru64"
],
"sources" : [
"Scru64.swift",
"Scru64CounterMode.swift",
"Scru64Generator.swift",
"Scru64GlobalGenerator.swift",
"Scru64Id.swift",
"Scru64NodeSpec.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling Scru64 Scru64NodeSpec.swift
[4/9] Compiling Scru64 Scru64.swift
[5/9] Emitting module Scru64
/host/spi-builder-workspace/Sources/Scru64/Scru64GlobalGenerator.swift:14:22: warning: static property 'instanceRaw' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Scru64GlobalGenerator {
13 | private static let lock = NSLock()
14 | private static var instanceRaw: Scru64Generator<Scru64CounterModeDefault>? = nil
| |- warning: static property 'instanceRaw' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instanceRaw' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'instanceRaw' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | static var instance: Scru64Generator<Scru64CounterModeDefault> {
/host/spi-builder-workspace/Sources/Scru64/Scru64Id.swift:85:9: warning: stored property 'value' of 'Sendable'-conforming generic struct 'RangeError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
82 |
83 | /// An error converting an integer into a SCRU64 ID.
84 | struct RangeError<T>: Error, CustomStringConvertible {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
85 | let value: T
| `- warning: stored property 'value' of 'Sendable'-conforming generic struct 'RangeError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
86 | var description: String {
87 | "could not convert integer to SCRU64 ID: `\(T.self)` out of range: \(value)"
[6/9] Compiling Scru64 Scru64Id.swift
/host/spi-builder-workspace/Sources/Scru64/Scru64Id.swift:85:9: warning: stored property 'value' of 'Sendable'-conforming generic struct 'RangeError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
82 |
83 | /// An error converting an integer into a SCRU64 ID.
84 | struct RangeError<T>: Error, CustomStringConvertible {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
85 | let value: T
| `- warning: stored property 'value' of 'Sendable'-conforming generic struct 'RangeError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
86 | var description: String {
87 | "could not convert integer to SCRU64 ID: `\(T.self)` out of range: \(value)"
[7/9] Compiling Scru64 Scru64GlobalGenerator.swift
/host/spi-builder-workspace/Sources/Scru64/Scru64GlobalGenerator.swift:14:22: warning: static property 'instanceRaw' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Scru64GlobalGenerator {
13 | private static let lock = NSLock()
14 | private static var instanceRaw: Scru64Generator<Scru64CounterModeDefault>? = nil
| |- warning: static property 'instanceRaw' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instanceRaw' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'instanceRaw' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | static var instance: Scru64Generator<Scru64CounterModeDefault> {
[8/9] Compiling Scru64 Scru64CounterMode.swift
[9/9] Compiling Scru64 Scru64Generator.swift
/host/spi-builder-workspace/Sources/Scru64/Scru64Generator.swift:109:9: error: cannot find 'Thread' in scope
107 | return value
108 | } else {
109 | Thread.sleep(forTimeInterval: 64 / 1000)
| `- error: cannot find 'Thread' in scope
110 | }
111 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling Scru64 Scru64GlobalGenerator.swift
[3/8] Compiling Scru64 Scru64CounterMode.swift
[4/8] Compiling Scru64 Scru64.swift
[5/8] Emitting module Scru64
[6/8] Compiling Scru64 Scru64Generator.swift
/host/spi-builder-workspace/Sources/Scru64/Scru64Generator.swift:109:9: error: cannot find 'Thread' in scope
107 | return value
108 | } else {
109 | Thread.sleep(forTimeInterval: 64 / 1000)
| `- error: cannot find 'Thread' in scope
110 | }
111 | }
[7/8] Compiling Scru64 Scru64NodeSpec.swift
[8/8] Compiling Scru64 Scru64Id.swift
BUILD FAILURE 6.1 wasm