The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of BigInt, reference 2.3.0 (f4c0c4), with Swift 6.0 for macOS (SPM) on 2 Dec 2024 15:16:26 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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.58.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mgriebling/BigInt.git
Reference: 2.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mgriebling/BigInt
 * tag               2.3.0      -> FETCH_HEAD
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 2.3.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "bigint",
      "name": "BigInt",
      "url": "https://github.com/mgriebling/BigInt.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BigInt",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/mgriebling/BigInt.git
[1/7504] Fetching bigint
Fetched https://github.com/mgriebling/BigInt.git from cache (1.75s)
Creating working copy for https://github.com/mgriebling/BigInt.git
Working copy of https://github.com/mgriebling/BigInt.git resolved at 2.3.0 (f4c0c41)
warning: '.resolve-product-dependencies': dependency 'bigint' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
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.1.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--7754E27361AE5C74.txt
[3/15] Compiling BigInt GCD.swift
[4/15] Compiling BigInt ExpMod.swift
[5/15] Compiling BigInt Karatsuba.swift
[6/15] Compiling BigInt Factorial.swift
[7/15] Compiling BigInt BurnikelZiegler.swift
[8/15] Compiling BigInt CRT.swift
[9/15] Compiling BigInt Limbs.swift
[10/15] Compiling BigInt FFT.swift
[11/16] Compiling BigInt ToomCook.swift
[12/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: annotate 'ZERO' 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
 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: annotate 'ONE' 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
 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: 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() {
[13/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: annotate 'ZERO' 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
 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: annotate 'ONE' 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
 163 |
 164 |
[14/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: annotate 'ZERO' 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
 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: annotate 'ONE' 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
 163 |
 164 |
[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: 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
/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() {
Build complete! (12.49s)
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.