Build Information
Successful build of BigInt, reference master (19716c
), with Swift 6.0 for macOS (SPM) on 17 Sep 2024 02:51:15 UTC.
Swift 6 data race errors: 2
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mgriebling/BigInt.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mgriebling/BigInt
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 19716cd Tag for latest release
Cloned https://github.com/mgriebling/BigInt.git
Revision (git rev-parse @):
19716cd6f6f24aa3ca21c6f2927a62b19f702a0c
SUCCESS checkout https://github.com/mgriebling/BigInt.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/mgriebling/BigInt.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-117DEE11B69C53C9.txt
[3/15] Compiling BigInt FFT.swift
[4/16] Compiling BigInt ExpMod.swift
[5/16] Compiling BigInt GCD.swift
[6/16] Compiling BigInt Factorial.swift
[7/16] Compiling BigInt Karatsuba.swift
[8/16] Compiling BigInt Limbs.swift
[9/16] Compiling BigInt BurnikelZiegler.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigInt/BurnikelZiegler.swift:11:16: warning: static property 'BZ_DIV_LIMIT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | // Divisor limb limit for Burnikel-Ziegler division
11 | static var BZ_DIV_LIMIT = 60
| |- warning: static property 'BZ_DIV_LIMIT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BZ_DIV_LIMIT' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'BZ_DIV_LIMIT' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | /*
[10/16] Compiling BigInt CRT.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigInt/BurnikelZiegler.swift:11:16: warning: static property 'BZ_DIV_LIMIT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | // Divisor limb limit for Burnikel-Ziegler division
11 | static var BZ_DIV_LIMIT = 60
| |- warning: static property 'BZ_DIV_LIMIT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BZ_DIV_LIMIT' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'BZ_DIV_LIMIT' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | /*
[11/16] Compiling BigInt BigFrac.swift
[12/16] Compiling BigInt BigInt-Extensions.swift
[13/16] Compiling BigInt ToomCook.swift
[14/16] Compiling BigInt BigInt.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigInt/BurnikelZiegler.swift:11:16: warning: static property 'BZ_DIV_LIMIT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | // Divisor limb limit for Burnikel-Ziegler division
11 | static var BZ_DIV_LIMIT = 60
| |- warning: static property 'BZ_DIV_LIMIT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BZ_DIV_LIMIT' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'BZ_DIV_LIMIT' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | /*
/Users/admin/builder/spi-builder-workspace/Sources/BigInt/BitSieve.swift:19:16: warning: static property 'smallSieve' is not concurrency-safe because non-'Sendable' type 'BitSieve' may have shared mutable state; this is an error in the Swift 6 language mode
10 | * BitSieve class from Java BigInteger translated to Swift
11 | */
12 | class BitSieve {
| `- note: class 'BitSieve' does not conform to the 'Sendable' protocol
13 |
14 | var bits: [UInt64]
:
17 | let prob: Int
18 |
19 | static let smallSieve = BitSieve()
| |- warning: static property 'smallSieve' is not concurrency-safe because non-'Sendable' type 'BitSieve' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'smallSieve' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | init() {
[15/16] Compiling BigInt BitSieve.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigInt/BurnikelZiegler.swift:11:16: warning: static property 'BZ_DIV_LIMIT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | // Divisor limb limit for Burnikel-Ziegler division
11 | static var BZ_DIV_LIMIT = 60
| |- warning: static property 'BZ_DIV_LIMIT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BZ_DIV_LIMIT' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'BZ_DIV_LIMIT' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | /*
/Users/admin/builder/spi-builder-workspace/Sources/BigInt/BitSieve.swift:19:16: warning: static property 'smallSieve' is not concurrency-safe because non-'Sendable' type 'BitSieve' may have shared mutable state; this is an error in the Swift 6 language mode
10 | * BitSieve class from Java BigInteger translated to Swift
11 | */
12 | class BitSieve {
| `- note: class 'BitSieve' does not conform to the 'Sendable' protocol
13 |
14 | var bits: [UInt64]
:
17 | let prob: Int
18 |
19 | static let smallSieve = BitSieve()
| |- warning: static property 'smallSieve' is not concurrency-safe because non-'Sendable' type 'BitSieve' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'smallSieve' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | init() {
[16/16] Emitting module BigInt
/Users/admin/builder/spi-builder-workspace/Sources/BigInt/BitSieve.swift:19:16: warning: static property 'smallSieve' is not concurrency-safe because non-'Sendable' type 'BitSieve' may have shared mutable state; this is an error in the Swift 6 language mode
10 | * BitSieve class from Java BigInteger translated to Swift
11 | */
12 | class BitSieve {
| `- note: class 'BitSieve' does not conform to the 'Sendable' protocol
13 |
14 | var bits: [UInt64]
:
17 | let prob: Int
18 |
19 | static let smallSieve = BitSieve()
| |- warning: static property 'smallSieve' is not concurrency-safe because non-'Sendable' type 'BitSieve' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'smallSieve' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | init() {
/Users/admin/builder/spi-builder-workspace/Sources/BigInt/BurnikelZiegler.swift:11:16: warning: static property 'BZ_DIV_LIMIT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | // Divisor limb limit for Burnikel-Ziegler division
11 | static var BZ_DIV_LIMIT = 60
| |- warning: static property 'BZ_DIV_LIMIT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BZ_DIV_LIMIT' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'BZ_DIV_LIMIT' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | /*
Build complete! (9.89s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "BigInt",
"name" : "BigInt",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.3"
},
{
"name" : "ios",
"version" : "16.4"
},
{
"name" : "tvos",
"version" : "16.4"
},
{
"name" : "watchos",
"version" : "9.4"
}
],
"products" : [
{
"name" : "BigInt",
"targets" : [
"BigInt"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "BigIntTests",
"module_type" : "SwiftTarget",
"name" : "BigIntTests",
"path" : "Tests/BigIntTests",
"sources" : [
"AdditionTest.swift",
"BinomialTest.swift",
"BitTest.swift",
"CRTTest.swift",
"ComparisonTest.swift",
"ConstructorTest.swift",
"DivExactTest.swift",
"DivModBZTest.swift",
"DivModTest.swift",
"ExpModTest.swift",
"FFTTest.swift",
"FactorialTest.swift",
"FibonacciTest.swift",
"FractionTest.swift",
"GcdExtendedTest.swift",
"GcdTest.swift",
"IntMinMaxTest.swift",
"JacobiTest.swift",
"KaratsubaTest.swift",
"KroneckerTest.swift",
"LcmTest.swift",
"LimbTest.swift",
"ModInverseTest.swift",
"MulSquareTest.swift",
"MultiplicationTest.swift",
"PerformanceTest.swift",
"PrimeTest.swift",
"RootTest.swift",
"ShiftTest.swift",
"SubtractionTest.swift",
"ToByteArrayTest.swift",
"ToStringTest.swift",
"ToomCookTest.swift"
],
"target_dependencies" : [
"BigInt"
],
"type" : "test"
},
{
"c99name" : "BigInt",
"module_type" : "SwiftTarget",
"name" : "BigInt",
"path" : "Sources/BigInt",
"product_memberships" : [
"BigInt"
],
"sources" : [
"BigFrac.swift",
"BigInt-Extensions.swift",
"BigInt.swift",
"BitSieve.swift",
"BurnikelZiegler.swift",
"CRT.swift",
"ExpMod.swift",
"FFT.swift",
"Factorial.swift",
"GCD.swift",
"Karatsuba.swift",
"Limbs.swift",
"ToomCook.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.