Build Information
Successful build of NumberKit, reference master (33af3f
), with Swift 6.1 for Linux on 28 Apr 2025 15:39:44 UTC.
Swift 6 data race errors: 8
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/objecthub/swift-numberkit.git
Reference: master
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/objecthub/swift-numberkit
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 33af3f9 Delete swiftpm files
Cloned https://github.com/objecthub/swift-numberkit.git
Revision (git rev-parse @):
33af3f9011e45dcd8ee696492d30dbcd5a8a67f3
SUCCESS checkout https://github.com/objecthub/swift-numberkit.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/objecthub/swift-numberkit.git
https://github.com/objecthub/swift-numberkit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "NumberKit",
"name" : "NumberKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "NumberKit",
"targets" : [
"NumberKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "NumberKitTests",
"module_type" : "SwiftTarget",
"name" : "NumberKitTests",
"path" : "Tests/NumberKitTests",
"sources" : [
"BigIntTests.swift",
"CodableTests.swift",
"ComplexTests.swift",
"IntegerNumberTests.swift",
"IntegerTests.swift",
"NumberUtilTests.swift",
"RationalTests.swift"
],
"target_dependencies" : [
"NumberKit"
],
"type" : "test"
},
{
"c99name" : "NumberKit",
"module_type" : "SwiftTarget",
"name" : "NumberKit",
"path" : "Sources/NumberKit",
"product_memberships" : [
"NumberKit"
],
"sources" : [
"BigInt.swift",
"Complex.swift",
"FloatingPointNumber.swift",
"Integer.swift",
"IntegerNumber.swift",
"NumberUtil.swift",
"Rational.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling NumberKit NumberUtil.swift
[4/10] Compiling NumberKit Integer.swift
[5/10] Compiling NumberKit FloatingPointNumber.swift
[6/10] Compiling NumberKit IntegerNumber.swift
[7/10] Compiling NumberKit Rational.swift
[8/10] Emitting module NumberKit
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:75:23: warning: static property 'bin' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
72 | /// - Note: It is currently not possible to define custom `Base` objects. It needs
73 | /// to be figured out first what safety checks need to be put in place.
74 | public final class Base {
| `- note: class 'Base' does not conform to the 'Sendable' protocol
75 | public static let bin = BigInt.binBase
| |- warning: static property 'bin' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bin' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | public static let oct = BigInt.octBase
77 | public static let dec = BigInt.decBase
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:76:23: warning: static property 'oct' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
72 | /// - Note: It is currently not possible to define custom `Base` objects. It needs
73 | /// to be figured out first what safety checks need to be put in place.
74 | public final class Base {
| `- note: class 'Base' does not conform to the 'Sendable' protocol
75 | public static let bin = BigInt.binBase
76 | public static let oct = BigInt.octBase
| |- warning: static property 'oct' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'oct' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
77 | public static let dec = BigInt.decBase
78 | public static let hex = BigInt.hexBase
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:77:23: warning: static property 'dec' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
72 | /// - Note: It is currently not possible to define custom `Base` objects. It needs
73 | /// to be figured out first what safety checks need to be put in place.
74 | public final class Base {
| `- note: class 'Base' does not conform to the 'Sendable' protocol
75 | public static let bin = BigInt.binBase
76 | public static let oct = BigInt.octBase
77 | public static let dec = BigInt.decBase
| |- warning: static property 'dec' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dec' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 | public static let hex = BigInt.hexBase
79 |
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:78:23: warning: static property 'hex' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
72 | /// - Note: It is currently not possible to define custom `Base` objects. It needs
73 | /// to be figured out first what safety checks need to be put in place.
74 | public final class Base {
| `- note: class 'Base' does not conform to the 'Sendable' protocol
75 | public static let bin = BigInt.binBase
76 | public static let oct = BigInt.octBase
77 | public static let dec = BigInt.decBase
78 | public static let hex = BigInt.hexBase
| |- warning: static property 'hex' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'hex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
79 |
80 | fileprivate let digitSpace: [Character]
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:94:21: warning: static property 'binBase' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
72 | /// - Note: It is currently not possible to define custom `Base` objects. It needs
73 | /// to be figured out first what safety checks need to be put in place.
74 | public final class Base {
| `- note: class 'Base' does not conform to the 'Sendable' protocol
75 | public static let bin = BigInt.binBase
76 | public static let oct = BigInt.octBase
:
92 |
93 | /// Representing base 2 (binary)
94 | public static let binBase = Base(
| |- warning: static property 'binBase' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'binBase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
95 | digitSpace: ["0", "1"],
96 | digitMap: ["0": 0, "1": 1]
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:100:21: warning: static property 'octBase' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
72 | /// - Note: It is currently not possible to define custom `Base` objects. It needs
73 | /// to be figured out first what safety checks need to be put in place.
74 | public final class Base {
| `- note: class 'Base' does not conform to the 'Sendable' protocol
75 | public static let bin = BigInt.binBase
76 | public static let oct = BigInt.octBase
:
98 |
99 | /// Representing base 8 (octal)
100 | public static let octBase = Base(
| |- warning: static property 'octBase' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'octBase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | digitSpace: ["0", "1", "2", "3", "4", "5", "6", "7"],
102 | digitMap: ["0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7]
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:106:21: warning: static property 'decBase' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
72 | /// - Note: It is currently not possible to define custom `Base` objects. It needs
73 | /// to be figured out first what safety checks need to be put in place.
74 | public final class Base {
| `- note: class 'Base' does not conform to the 'Sendable' protocol
75 | public static let bin = BigInt.binBase
76 | public static let oct = BigInt.octBase
:
104 |
105 | /// Representing base 10 (decimal)
106 | public static let decBase = Base(
| |- warning: static property 'decBase' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'decBase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 | digitSpace: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
108 | digitMap: ["0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9]
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:112:21: warning: static property 'hexBase' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
72 | /// - Note: It is currently not possible to define custom `Base` objects. It needs
73 | /// to be figured out first what safety checks need to be put in place.
74 | public final class Base {
| `- note: class 'Base' does not conform to the 'Sendable' protocol
75 | public static let bin = BigInt.binBase
76 | public static let oct = BigInt.octBase
:
110 |
111 | /// Representing base 16 (hex)
112 | public static let hexBase = Base(
| |- warning: static property 'hexBase' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'hexBase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | digitSpace: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"],
114 | digitMap: ["0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9,
[9/10] Compiling NumberKit Complex.swift
[10/10] Compiling NumberKit BigInt.swift
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:75:23: warning: static property 'bin' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
72 | /// - Note: It is currently not possible to define custom `Base` objects. It needs
73 | /// to be figured out first what safety checks need to be put in place.
74 | public final class Base {
| `- note: class 'Base' does not conform to the 'Sendable' protocol
75 | public static let bin = BigInt.binBase
| |- warning: static property 'bin' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bin' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | public static let oct = BigInt.octBase
77 | public static let dec = BigInt.decBase
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:76:23: warning: static property 'oct' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
72 | /// - Note: It is currently not possible to define custom `Base` objects. It needs
73 | /// to be figured out first what safety checks need to be put in place.
74 | public final class Base {
| `- note: class 'Base' does not conform to the 'Sendable' protocol
75 | public static let bin = BigInt.binBase
76 | public static let oct = BigInt.octBase
| |- warning: static property 'oct' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'oct' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
77 | public static let dec = BigInt.decBase
78 | public static let hex = BigInt.hexBase
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:77:23: warning: static property 'dec' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
72 | /// - Note: It is currently not possible to define custom `Base` objects. It needs
73 | /// to be figured out first what safety checks need to be put in place.
74 | public final class Base {
| `- note: class 'Base' does not conform to the 'Sendable' protocol
75 | public static let bin = BigInt.binBase
76 | public static let oct = BigInt.octBase
77 | public static let dec = BigInt.decBase
| |- warning: static property 'dec' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dec' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 | public static let hex = BigInt.hexBase
79 |
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:78:23: warning: static property 'hex' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
72 | /// - Note: It is currently not possible to define custom `Base` objects. It needs
73 | /// to be figured out first what safety checks need to be put in place.
74 | public final class Base {
| `- note: class 'Base' does not conform to the 'Sendable' protocol
75 | public static let bin = BigInt.binBase
76 | public static let oct = BigInt.octBase
77 | public static let dec = BigInt.decBase
78 | public static let hex = BigInt.hexBase
| |- warning: static property 'hex' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'hex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
79 |
80 | fileprivate let digitSpace: [Character]
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:94:21: warning: static property 'binBase' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
72 | /// - Note: It is currently not possible to define custom `Base` objects. It needs
73 | /// to be figured out first what safety checks need to be put in place.
74 | public final class Base {
| `- note: class 'Base' does not conform to the 'Sendable' protocol
75 | public static let bin = BigInt.binBase
76 | public static let oct = BigInt.octBase
:
92 |
93 | /// Representing base 2 (binary)
94 | public static let binBase = Base(
| |- warning: static property 'binBase' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'binBase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
95 | digitSpace: ["0", "1"],
96 | digitMap: ["0": 0, "1": 1]
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:100:21: warning: static property 'octBase' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
72 | /// - Note: It is currently not possible to define custom `Base` objects. It needs
73 | /// to be figured out first what safety checks need to be put in place.
74 | public final class Base {
| `- note: class 'Base' does not conform to the 'Sendable' protocol
75 | public static let bin = BigInt.binBase
76 | public static let oct = BigInt.octBase
:
98 |
99 | /// Representing base 8 (octal)
100 | public static let octBase = Base(
| |- warning: static property 'octBase' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'octBase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | digitSpace: ["0", "1", "2", "3", "4", "5", "6", "7"],
102 | digitMap: ["0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7]
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:106:21: warning: static property 'decBase' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
72 | /// - Note: It is currently not possible to define custom `Base` objects. It needs
73 | /// to be figured out first what safety checks need to be put in place.
74 | public final class Base {
| `- note: class 'Base' does not conform to the 'Sendable' protocol
75 | public static let bin = BigInt.binBase
76 | public static let oct = BigInt.octBase
:
104 |
105 | /// Representing base 10 (decimal)
106 | public static let decBase = Base(
| |- warning: static property 'decBase' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'decBase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 | digitSpace: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
108 | digitMap: ["0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9]
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:112:21: warning: static property 'hexBase' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
72 | /// - Note: It is currently not possible to define custom `Base` objects. It needs
73 | /// to be figured out first what safety checks need to be put in place.
74 | public final class Base {
| `- note: class 'Base' does not conform to the 'Sendable' protocol
75 | public static let bin = BigInt.binBase
76 | public static let oct = BigInt.octBase
:
110 |
111 | /// Representing base 16 (hex)
112 | public static let hexBase = Base(
| |- warning: static property 'hexBase' is not concurrency-safe because non-'Sendable' type 'BigInt.Base' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'hexBase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | digitSpace: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"],
114 | digitMap: ["0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9,
Build complete! (6.31s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "NumberKit",
"name" : "NumberKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "NumberKit",
"targets" : [
"NumberKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "NumberKitTests",
"module_type" : "SwiftTarget",
"name" : "NumberKitTests",
"path" : "Tests/NumberKitTests",
"sources" : [
"BigIntTests.swift",
"CodableTests.swift",
"ComplexTests.swift",
"IntegerNumberTests.swift",
"IntegerTests.swift",
"NumberUtilTests.swift",
"RationalTests.swift"
],
"target_dependencies" : [
"NumberKit"
],
"type" : "test"
},
{
"c99name" : "NumberKit",
"module_type" : "SwiftTarget",
"name" : "NumberKit",
"path" : "Sources/NumberKit",
"product_memberships" : [
"NumberKit"
],
"sources" : [
"BigInt.swift",
"Complex.swift",
"FloatingPointNumber.swift",
"Integer.swift",
"IntegerNumber.swift",
"NumberUtil.swift",
"Rational.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.