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 SwiftMath, reference 3.3.1 (13a224), with Swift 6.1 for Linux on 27 Apr 2025 02:45:44 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/SwiftGFX/SwiftMath.git
Reference: 3.3.1
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/SwiftGFX/SwiftMath
 * tag               3.3.1      -> FETCH_HEAD
HEAD is now at 13a224a Exclude files from target to remove warnings (#12)
Cloned https://github.com/SwiftGFX/SwiftMath.git
Revision (git rev-parse @):
13a224a655cbef1ef0e39d7d22e31a4ff6bc9937
SUCCESS checkout https://github.com/SwiftGFX/SwiftMath.git at 3.3.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/SwiftGFX/SwiftMath.git
https://github.com/SwiftGFX/SwiftMath.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftMath",
  "name" : "SwiftMath",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftMath",
      "targets" : [
        "SwiftMath"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftMathTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftMathTests",
      "path" : "Tests/SwiftMathTests",
      "sources" : [
        "AngleTests.swift",
        "Matrix3x3Tests.swift",
        "Matrix4x4Tests.swift",
        "RectTests.swift",
        "Vector2Tests.swift",
        "XCTestManifests.swift",
        "functionsTests.swift"
      ],
      "target_dependencies" : [
        "SwiftMath"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftMath",
      "module_type" : "SwiftTarget",
      "name" : "SwiftMath",
      "path" : ".",
      "product_memberships" : [
        "SwiftMath"
      ],
      "sources" : [
        "Sources/Angle.swift",
        "Sources/Matrix3x3+nosimd.swift",
        "Sources/Matrix3x3+simd.swift",
        "Sources/Matrix3x3.swift",
        "Sources/Matrix4x4+Extensions.swift",
        "Sources/Matrix4x4+nosimd.swift",
        "Sources/Matrix4x4+simd.swift",
        "Sources/Matrix4x4.swift",
        "Sources/Point.swift",
        "Sources/Rect.swift",
        "Sources/String+Math.swift",
        "Sources/Vector2+nosimd.swift",
        "Sources/Vector2+simd.swift",
        "Sources/Vector2.swift",
        "Sources/Vector3+nosimd.swift",
        "Sources/Vector3+simd.swift",
        "Sources/Vector3.swift",
        "Sources/Vector4+nosimd.swift",
        "Sources/Vector4+simd.swift",
        "Sources/Vector4.swift",
        "Sources/Vectorf+Components.swift",
        "Sources/easing.swift",
        "Sources/float3x3+Extensions.swift",
        "Sources/float4x4+Extensions.swift",
        "Sources/functions.swift",
        "Sources/platform.swift",
        "Sources/random.swift",
        "Sources/utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/5] Write sources
[1/5] Write swift-version-24593BA9C3E375BF.txt
[3/31] Compiling SwiftMath float3x3+Extensions.swift
[4/31] Compiling SwiftMath float4x4+Extensions.swift
[5/31] Compiling SwiftMath functions.swift
[6/34] Compiling SwiftMath Angle.swift
[7/34] Compiling SwiftMath Matrix3x3+nosimd.swift
[8/34] Compiling SwiftMath Matrix3x3+simd.swift
[9/34] Compiling SwiftMath Matrix3x3.swift
[10/34] Emitting module SwiftMath
/host/spi-builder-workspace/Sources/Rect.swift:84:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Rect' may have shared mutable state; this is an error in the Swift 6 language mode
 52 | // - rect intersection
 53 | // - offset, scale
 54 | public struct Rect {
    |               `- note: consider making struct 'Rect' conform to the 'Sendable' protocol
 55 |     public var origin: Point
 56 |     // TODO: Gracefully handle negative size case or forbid it
    :
 82 |     }
 83 |
 84 |     public static let zero = Rect(origin: Point.zero, size: Vector2f.zero)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Rect' 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
 85 | }
 86 |
[11/34] Compiling SwiftMath Matrix4x4+Extensions.swift
[12/34] Compiling SwiftMath Matrix4x4+nosimd.swift
[13/34] Compiling SwiftMath Matrix4x4+simd.swift
[14/34] Compiling SwiftMath Matrix4x4.swift
[15/34] Compiling SwiftMath platform.swift
[16/34] Compiling SwiftMath random.swift
[17/34] Compiling SwiftMath utils.swift
[18/34] Compiling SwiftMath Vector4.swift
[19/34] Compiling SwiftMath Vectorf+Components.swift
[20/34] Compiling SwiftMath easing.swift
[21/34] Compiling SwiftMath Vector2+simd.swift
[22/34] Compiling SwiftMath Vector2.swift
[23/34] Compiling SwiftMath Vector3+nosimd.swift
[24/34] Compiling SwiftMath Vector3+simd.swift
[25/34] Compiling SwiftMath Vector3.swift
[26/34] Compiling SwiftMath Vector4+nosimd.swift
[27/34] Compiling SwiftMath Vector4+simd.swift
[28/34] Compiling SwiftMath Point.swift
/host/spi-builder-workspace/Sources/Rect.swift:84:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Rect' may have shared mutable state; this is an error in the Swift 6 language mode
 52 | // - rect intersection
 53 | // - offset, scale
 54 | public struct Rect {
    |               `- note: consider making struct 'Rect' conform to the 'Sendable' protocol
 55 |     public var origin: Point
 56 |     // TODO: Gracefully handle negative size case or forbid it
    :
 82 |     }
 83 |
 84 |     public static let zero = Rect(origin: Point.zero, size: Vector2f.zero)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Rect' 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
 85 | }
 86 |
[29/34] Compiling SwiftMath Rect.swift
/host/spi-builder-workspace/Sources/Rect.swift:84:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Rect' may have shared mutable state; this is an error in the Swift 6 language mode
 52 | // - rect intersection
 53 | // - offset, scale
 54 | public struct Rect {
    |               `- note: consider making struct 'Rect' conform to the 'Sendable' protocol
 55 |     public var origin: Point
 56 |     // TODO: Gracefully handle negative size case or forbid it
    :
 82 |     }
 83 |
 84 |     public static let zero = Rect(origin: Point.zero, size: Vector2f.zero)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Rect' 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
 85 | }
 86 |
[30/34] Compiling SwiftMath String+Math.swift
/host/spi-builder-workspace/Sources/Rect.swift:84:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Rect' may have shared mutable state; this is an error in the Swift 6 language mode
 52 | // - rect intersection
 53 | // - offset, scale
 54 | public struct Rect {
    |               `- note: consider making struct 'Rect' conform to the 'Sendable' protocol
 55 |     public var origin: Point
 56 |     // TODO: Gracefully handle negative size case or forbid it
    :
 82 |     }
 83 |
 84 |     public static let zero = Rect(origin: Point.zero, size: Vector2f.zero)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Rect' 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
 85 | }
 86 |
[31/34] Compiling SwiftMath Vector2+nosimd.swift
/host/spi-builder-workspace/Sources/Rect.swift:84:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Rect' may have shared mutable state; this is an error in the Swift 6 language mode
 52 | // - rect intersection
 53 | // - offset, scale
 54 | public struct Rect {
    |               `- note: consider making struct 'Rect' conform to the 'Sendable' protocol
 55 |     public var origin: Point
 56 |     // TODO: Gracefully handle negative size case or forbid it
    :
 82 |     }
 83 |
 84 |     public static let zero = Rect(origin: Point.zero, size: Vector2f.zero)
    |                       |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Rect' 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
 85 | }
 86 |
[32/35] Wrapping AST for SwiftMath for debugging
[33/35] Write Objects.LinkFileList
[34/35] Archiving libSwiftMath.a
Build complete! (9.38s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftMath",
  "name" : "SwiftMath",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftMath",
      "targets" : [
        "SwiftMath"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftMathTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftMathTests",
      "path" : "Tests/SwiftMathTests",
      "sources" : [
        "AngleTests.swift",
        "Matrix3x3Tests.swift",
        "Matrix4x4Tests.swift",
        "RectTests.swift",
        "Vector2Tests.swift",
        "XCTestManifests.swift",
        "functionsTests.swift"
      ],
      "target_dependencies" : [
        "SwiftMath"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftMath",
      "module_type" : "SwiftTarget",
      "name" : "SwiftMath",
      "path" : ".",
      "product_memberships" : [
        "SwiftMath"
      ],
      "sources" : [
        "Sources/Angle.swift",
        "Sources/Matrix3x3+nosimd.swift",
        "Sources/Matrix3x3+simd.swift",
        "Sources/Matrix3x3.swift",
        "Sources/Matrix4x4+Extensions.swift",
        "Sources/Matrix4x4+nosimd.swift",
        "Sources/Matrix4x4+simd.swift",
        "Sources/Matrix4x4.swift",
        "Sources/Point.swift",
        "Sources/Rect.swift",
        "Sources/String+Math.swift",
        "Sources/Vector2+nosimd.swift",
        "Sources/Vector2+simd.swift",
        "Sources/Vector2.swift",
        "Sources/Vector3+nosimd.swift",
        "Sources/Vector3+simd.swift",
        "Sources/Vector3.swift",
        "Sources/Vector4+nosimd.swift",
        "Sources/Vector4+simd.swift",
        "Sources/Vector4.swift",
        "Sources/Vectorf+Components.swift",
        "Sources/easing.swift",
        "Sources/float3x3+Extensions.swift",
        "Sources/float4x4+Extensions.swift",
        "Sources/functions.swift",
        "Sources/platform.swift",
        "Sources/random.swift",
        "Sources/utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
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.