The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of BigInt, reference 2.1.0 (bd3f45), with Swift 6.0 for Linux on 17 Sep 2024 02:44:16 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mgriebling/BigInt.git
Reference: 2.1.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/mgriebling/BigInt
 * tag               2.1.0      -> FETCH_HEAD
HEAD is now at bd3f45f Correct REAME.
Cloned https://github.com/mgriebling/BigInt.git
Revision (git rev-parse @):
bd3f45f402138bd391669a3cc9118413f21d3dcc
SUCCESS checkout https://github.com/mgriebling/BigInt.git at 2.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/mgriebling/BigInt.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/15] Compiling BigInt Karatsuba.swift
[4/16] Compiling BigInt Factorial.swift
[5/16] Compiling BigInt GCD.swift
[6/16] Compiling BigInt Limbs.swift
[7/16] Compiling BigInt ExpMod.swift
[8/16] Compiling BigInt FFT.swift
[9/16] Compiling BigInt ToomCook.swift
[10/16] Compiling BigInt BigFrac.swift
[11/16] Compiling BigInt BigInt-Extensions.swift
[12/16] Compiling BigInt BurnikelZiegler.swift
/host/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 |     /*
[13/16] Compiling BigInt CRT.swift
/host/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 |     /*
[14/16] Emitting module BigInt
/host/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() {
/host/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 |     /*
[15/16] Compiling BigInt BigInt.swift
/host/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 |     /*
/host/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] Compiling BigInt BitSieve.swift
/host/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 |     /*
/host/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() {
Build complete! (12.71s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BigInt",
  "name" : "BigInt",
  "path" : "/host/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"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.