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 master (f4c0c4), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 22:36:19 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.1
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 f4c0c41 Update to add leif-ibsen fixes from latest 1.21.0 release.
Cloned https://github.com/mgriebling/BigInt.git
Revision (git rev-parse @):
f4c0c41dd681b2c3d770b9a83cb5e0e3e30ee708
SUCCESS checkout https://github.com/mgriebling/BigInt.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/mgriebling/BigInt.git
https://github.com/mgriebling/BigInt.git
{
  "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"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    }
  ],
  "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",
        "ExtensionTest.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",
        "Pow2Test.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.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/15] Compiling BigInt Karatsuba.swift
[4/15] Compiling BigInt GCD.swift
[5/15] Compiling BigInt BurnikelZiegler.swift
[6/15] Compiling BigInt CRT.swift
[7/15] Compiling BigInt FFT.swift
[8/15] Compiling BigInt ExpMod.swift
[9/15] Compiling BigInt Factorial.swift
[10/15] Compiling BigInt Limbs.swift
[11/16] Compiling BigInt ToomCook.swift
[12/16] Compiling BigInt BigFrac.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigInt/BigFrac.swift:160:23: warning: static property 'ZERO' is not concurrency-safe because non-'Sendable' type 'BFraction' may have shared mutable state; this is an error in the Swift 6 language mode
   6 | //
   7 |
   8 | public struct BFraction: CustomStringConvertible, Comparable, Equatable {
     |               `- note: consider making struct 'BFraction' conform to the 'Sendable' protocol
   9 |
  10 |     mutating func normalize() {
     :
 158 |
 159 |     /// BFraction(0, 1)
 160 |     public static let ZERO = BFraction(BInt.ZERO, BInt.ONE)
     |                       |- warning: static property 'ZERO' is not concurrency-safe because non-'Sendable' type 'BFraction' may have shared mutable state; this is an error in the Swift 6 language mode
     |                       |- note: add '@MainActor' to make static property 'ZERO' part of global actor 'MainActor'
     |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 161 |     /// BFraction(1, 1)
 162 |     public static let ONE = BFraction(BInt.ONE, BInt.ONE)
/Users/admin/builder/spi-builder-workspace/Sources/BigInt/BigFrac.swift:162:23: warning: static property 'ONE' is not concurrency-safe because non-'Sendable' type 'BFraction' may have shared mutable state; this is an error in the Swift 6 language mode
   6 | //
   7 |
   8 | public struct BFraction: CustomStringConvertible, Comparable, Equatable {
     |               `- note: consider making struct 'BFraction' conform to the 'Sendable' protocol
   9 |
  10 |     mutating func normalize() {
     :
 160 |     public static let ZERO = BFraction(BInt.ZERO, BInt.ONE)
 161 |     /// BFraction(1, 1)
 162 |     public static let ONE = BFraction(BInt.ONE, BInt.ONE)
     |                       |- warning: static property 'ONE' is not concurrency-safe because non-'Sendable' type 'BFraction' may have shared mutable state; this is an error in the Swift 6 language mode
     |                       |- note: add '@MainActor' to make static property 'ONE' part of global actor 'MainActor'
     |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 163 |
 164 |
[13/16] Compiling BigInt BigInt-Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/BigInt/BigFrac.swift:160:23: warning: static property 'ZERO' is not concurrency-safe because non-'Sendable' type 'BFraction' may have shared mutable state; this is an error in the Swift 6 language mode
   6 | //
   7 |
   8 | public struct BFraction: CustomStringConvertible, Comparable, Equatable {
     |               `- note: consider making struct 'BFraction' conform to the 'Sendable' protocol
   9 |
  10 |     mutating func normalize() {
     :
 158 |
 159 |     /// BFraction(0, 1)
 160 |     public static let ZERO = BFraction(BInt.ZERO, BInt.ONE)
     |                       |- warning: static property 'ZERO' is not concurrency-safe because non-'Sendable' type 'BFraction' may have shared mutable state; this is an error in the Swift 6 language mode
     |                       |- note: add '@MainActor' to make static property 'ZERO' part of global actor 'MainActor'
     |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 161 |     /// BFraction(1, 1)
 162 |     public static let ONE = BFraction(BInt.ONE, BInt.ONE)
/Users/admin/builder/spi-builder-workspace/Sources/BigInt/BigFrac.swift:162:23: warning: static property 'ONE' is not concurrency-safe because non-'Sendable' type 'BFraction' may have shared mutable state; this is an error in the Swift 6 language mode
   6 | //
   7 |
   8 | public struct BFraction: CustomStringConvertible, Comparable, Equatable {
     |               `- note: consider making struct 'BFraction' conform to the 'Sendable' protocol
   9 |
  10 |     mutating func normalize() {
     :
 160 |     public static let ZERO = BFraction(BInt.ZERO, BInt.ONE)
 161 |     /// BFraction(1, 1)
 162 |     public static let ONE = BFraction(BInt.ONE, BInt.ONE)
     |                       |- warning: static property 'ONE' is not concurrency-safe because non-'Sendable' type 'BFraction' may have shared mutable state; this is an error in the Swift 6 language mode
     |                       |- note: add '@MainActor' to make static property 'ONE' part of global actor 'MainActor'
     |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 163 |
 164 |
[14/16] Emitting module BigInt
/Users/admin/builder/spi-builder-workspace/Sources/BigInt/BigFrac.swift:160:23: warning: static property 'ZERO' is not concurrency-safe because non-'Sendable' type 'BFraction' may have shared mutable state; this is an error in the Swift 6 language mode
   6 | //
   7 |
   8 | public struct BFraction: CustomStringConvertible, Comparable, Equatable {
     |               `- note: consider making struct 'BFraction' conform to the 'Sendable' protocol
   9 |
  10 |     mutating func normalize() {
     :
 158 |
 159 |     /// BFraction(0, 1)
 160 |     public static let ZERO = BFraction(BInt.ZERO, BInt.ONE)
     |                       |- warning: static property 'ZERO' is not concurrency-safe because non-'Sendable' type 'BFraction' may have shared mutable state; this is an error in the Swift 6 language mode
     |                       |- note: add '@MainActor' to make static property 'ZERO' part of global actor 'MainActor'
     |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 161 |     /// BFraction(1, 1)
 162 |     public static let ONE = BFraction(BInt.ONE, BInt.ONE)
/Users/admin/builder/spi-builder-workspace/Sources/BigInt/BigFrac.swift:162:23: warning: static property 'ONE' is not concurrency-safe because non-'Sendable' type 'BFraction' may have shared mutable state; this is an error in the Swift 6 language mode
   6 | //
   7 |
   8 | public struct BFraction: CustomStringConvertible, Comparable, Equatable {
     |               `- note: consider making struct 'BFraction' conform to the 'Sendable' protocol
   9 |
  10 |     mutating func normalize() {
     :
 160 |     public static let ZERO = BFraction(BInt.ZERO, BInt.ONE)
 161 |     /// BFraction(1, 1)
 162 |     public static let ONE = BFraction(BInt.ONE, BInt.ONE)
     |                       |- warning: static property 'ONE' is not concurrency-safe because non-'Sendable' type 'BFraction' may have shared mutable state; this is an error in the Swift 6 language mode
     |                       |- note: add '@MainActor' to make static property 'ONE' part of global actor 'MainActor'
     |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 163 |
 164 |
/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: add '@MainActor' to make static property 'smallSieve' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |
 21 |     init() {
[15/16] Compiling BigInt BigInt.swift
/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: add '@MainActor' to make static property 'smallSieve' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |
 21 |     init() {
[16/16] Compiling BigInt BitSieve.swift
/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: add '@MainActor' to make static property 'smallSieve' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |
 21 |     init() {
Build complete! (5.85s)
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"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    }
  ],
  "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",
        "ExtensionTest.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",
        "Pow2Test.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.9"
}
Done.