This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 SGLMath with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 5

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Beta.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.43.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftGL/Math.git
Reference: 3.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
warning: templates not found in /usr/share/git-core/templates
From https://github.com/SwiftGL/Math
 * tag               3.0.0      -> FETCH_HEAD
HEAD is now at 8bdd2e5 Merge pull request #4 from ctreffs/master
Cloned https://github.com/SwiftGL/Math.git
Revision (git rev-parse @):
8bdd2e542f28828d0c224c1ea8e046c6f652ec40
SUCCESS checkout https://github.com/SwiftGL/Math.git at 3.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/SwiftGL/Math.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Beta.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[2/7] Write swizgen-entitlement.plist
[3/7] Write swift-version-6A63A117629E05AE.txt
[5/31] Emitting module SGLMath
/Users/admin/builder/spi-builder-workspace/Sources/SGLMath/Vector2.swift:196:17: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 20 | // MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
 21 |
 22 | public struct Vector2<T: ArithmeticType>: VectorType {
    |                       `- note: 'T' previously declared here
 23 |     public typealias Element = T
 24 |     public typealias FloatVector = Vector2<Float>
    :
194 |     }
195 |
196 |     public init<T: VectorType>(_ v: T, _ op:(_:T.Element) -> Element) where T.BooleanVector == BooleanVector {
    |                 `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
197 |             self.x = op(v[0])
198 |             self.y = op(v[1])
/Users/admin/builder/spi-builder-workspace/Sources/SGLMath/Vector3.swift:230:17: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 20 | // MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
 21 |
 22 | public struct Vector3<T: ArithmeticType>: VectorType {
    |                       `- note: 'T' previously declared here
 23 |     public typealias Element = T
 24 |     public typealias FloatVector = Vector3<Float>
    :
228 |     }
229 |
230 |     public init<T: VectorType>(_ v: T, _ op:(_:T.Element) -> Element) where T.BooleanVector == BooleanVector {
    |                 `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
231 |             self.x = op(v[0])
232 |             self.y = op(v[1])
/Users/admin/builder/spi-builder-workspace/Sources/SGLMath/Vector4.swift:280:17: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 20 | // MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
 21 |
 22 | public struct Vector4<T: ArithmeticType>: VectorType {
    |                       `- note: 'T' previously declared here
 23 |     public typealias Element = T
 24 |     public typealias FloatVector = Vector4<Float>
    :
278 |     }
279 |
280 |     public init<T: VectorType>(_ v: T, _ op:(_:T.Element) -> Element) where T.BooleanVector == BooleanVector {
    |                 `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
281 |         self.x = op(v[0])
282 |         self.y = op(v[1])
/Users/admin/builder/spi-builder-workspace/Sources/SGLMath/glm.swift:27:12: warning: var 'glmLeftHanded' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 25 | // Options may be changed at run time.
 26 | // This is global and not thread local.
 27 | public var glmLeftHanded = false
    |            |- warning: var 'glmLeftHanded' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'glmLeftHanded' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'glmLeftHanded' 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
 28 | public var glmDepthZeroToOne = false
 29 |
/Users/admin/builder/spi-builder-workspace/Sources/SGLMath/glm.swift:28:12: warning: var 'glmDepthZeroToOne' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 26 | // This is global and not thread local.
 27 | public var glmLeftHanded = false
 28 | public var glmDepthZeroToOne = false
    |            |- warning: var 'glmDepthZeroToOne' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'glmDepthZeroToOne' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'glmDepthZeroToOne' 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
 29 |
 30 | // Integer matrices
[6/33] Compiling SGLMath Matrix3x3.swift
[7/33] Compiling SGLMath Matrix3x4.swift
[8/33] Compiling SGLMath Matrix4x2.swift
[9/33] Compiling SGLMath Vector4.swift
/Users/admin/builder/spi-builder-workspace/Sources/SGLMath/Vector4.swift:280:17: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 20 | // MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
 21 |
 22 | public struct Vector4<T: ArithmeticType>: VectorType {
    |                       `- note: 'T' previously declared here
 23 |     public typealias Element = T
 24 |     public typealias FloatVector = Vector4<Float>
    :
278 |     }
279 |
280 |     public init<T: VectorType>(_ v: T, _ op:(_:T.Element) -> Element) where T.BooleanVector == BooleanVector {
    |                 `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
281 |         self.x = op(v[0])
282 |         self.y = op(v[1])
[10/33] Compiling SGLMath Vector4b.swift
/Users/admin/builder/spi-builder-workspace/Sources/SGLMath/Vector4.swift:280:17: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 20 | // MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
 21 |
 22 | public struct Vector4<T: ArithmeticType>: VectorType {
    |                       `- note: 'T' previously declared here
 23 |     public typealias Element = T
 24 |     public typealias FloatVector = Vector4<Float>
    :
278 |     }
279 |
280 |     public init<T: VectorType>(_ v: T, _ op:(_:T.Element) -> Element) where T.BooleanVector == BooleanVector {
    |                 `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
281 |         self.x = op(v[0])
282 |         self.y = op(v[1])
[11/33] Compiling SGLMath Operators.swift
[12/33] Compiling SGLMath Protocols.swift
[13/33] Compiling SGLMath Matrix2x3.swift
[14/33] Compiling SGLMath Matrix2x4.swift
[15/33] Compiling SGLMath Matrix3x2.swift
[16/33] Compiling SGLMath Quaternion.swift
[17/33] Compiling SGLMath Swizzle.swift
[18/33] Compiling SGLMath Vector3.swift
/Users/admin/builder/spi-builder-workspace/Sources/SGLMath/Vector3.swift:230:17: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 20 | // MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
 21 |
 22 | public struct Vector3<T: ArithmeticType>: VectorType {
    |                       `- note: 'T' previously declared here
 23 |     public typealias Element = T
 24 |     public typealias FloatVector = Vector3<Float>
    :
228 |     }
229 |
230 |     public init<T: VectorType>(_ v: T, _ op:(_:T.Element) -> Element) where T.BooleanVector == BooleanVector {
    |                 `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
231 |             self.x = op(v[0])
232 |             self.y = op(v[1])
[19/33] Compiling SGLMath Vector3b.swift
/Users/admin/builder/spi-builder-workspace/Sources/SGLMath/Vector3.swift:230:17: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 20 | // MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
 21 |
 22 | public struct Vector3<T: ArithmeticType>: VectorType {
    |                       `- note: 'T' previously declared here
 23 |     public typealias Element = T
 24 |     public typealias FloatVector = Vector3<Float>
    :
228 |     }
229 |
230 |     public init<T: VectorType>(_ v: T, _ op:(_:T.Element) -> Element) where T.BooleanVector == BooleanVector {
    |                 `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
231 |             self.x = op(v[0])
232 |             self.y = op(v[1])
[20/33] Compiling SGLMath Vector2.swift
/Users/admin/builder/spi-builder-workspace/Sources/SGLMath/Vector2.swift:196:17: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 20 | // MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
 21 |
 22 | public struct Vector2<T: ArithmeticType>: VectorType {
    |                       `- note: 'T' previously declared here
 23 |     public typealias Element = T
 24 |     public typealias FloatVector = Vector2<Float>
    :
194 |     }
195 |
196 |     public init<T: VectorType>(_ v: T, _ op:(_:T.Element) -> Element) where T.BooleanVector == BooleanVector {
    |                 `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
197 |             self.x = op(v[0])
198 |             self.y = op(v[1])
[21/33] Compiling SGLMath Vector2b.swift
/Users/admin/builder/spi-builder-workspace/Sources/SGLMath/Vector2.swift:196:17: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 20 | // MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
 21 |
 22 | public struct Vector2<T: ArithmeticType>: VectorType {
    |                       `- note: 'T' previously declared here
 23 |     public typealias Element = T
 24 |     public typealias FloatVector = Vector2<Float>
    :
194 |     }
195 |
196 |     public init<T: VectorType>(_ v: T, _ op:(_:T.Element) -> Element) where T.BooleanVector == BooleanVector {
    |                 `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
197 |             self.x = op(v[0])
198 |             self.y = op(v[1])
[22/33] Compiling SGLMath Complex.swift
[23/33] Compiling SGLMath Internal.swift
[24/33] Compiling SGLMath Matrix2x2.swift
[25/33] Compiling SGLMath Matrix4x3.swift
[26/33] Compiling SGLMath Matrix4x4.swift
[27/33] Compiling Tools main.swift
[28/33] Emitting module Tools
[28/33] Write Objects.LinkFileList
[29/33] Linking swizgen
[30/33] Applying swizgen
[32/33] Compiling SGLMath glm.swift
/Users/admin/builder/spi-builder-workspace/Sources/SGLMath/glm.swift:27:12: warning: var 'glmLeftHanded' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 25 | // Options may be changed at run time.
 26 | // This is global and not thread local.
 27 | public var glmLeftHanded = false
    |            |- warning: var 'glmLeftHanded' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'glmLeftHanded' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'glmLeftHanded' 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
 28 | public var glmDepthZeroToOne = false
 29 |
/Users/admin/builder/spi-builder-workspace/Sources/SGLMath/glm.swift:28:12: warning: var 'glmDepthZeroToOne' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 26 | // This is global and not thread local.
 27 | public var glmLeftHanded = false
 28 | public var glmDepthZeroToOne = false
    |            |- warning: var 'glmDepthZeroToOne' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'glmDepthZeroToOne' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'glmDepthZeroToOne' 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
 29 |
 30 | // Integer matrices
[33/33] Compiling SGLMath glsl.swift
/Users/admin/builder/spi-builder-workspace/Sources/SGLMath/glm.swift:27:12: warning: var 'glmLeftHanded' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 25 | // Options may be changed at run time.
 26 | // This is global and not thread local.
 27 | public var glmLeftHanded = false
    |            |- warning: var 'glmLeftHanded' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'glmLeftHanded' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'glmLeftHanded' 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
 28 | public var glmDepthZeroToOne = false
 29 |
/Users/admin/builder/spi-builder-workspace/Sources/SGLMath/glm.swift:28:12: warning: var 'glmDepthZeroToOne' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 26 | // This is global and not thread local.
 27 | public var glmLeftHanded = false
 28 | public var glmDepthZeroToOne = false
    |            |- warning: var 'glmDepthZeroToOne' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'glmDepthZeroToOne' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'glmDepthZeroToOne' 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
 29 |
 30 | // Integer matrices
Build complete! (12.64s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SGLMath",
  "name" : "SGLMath",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SGLMath",
      "targets" : [
        "SGLMath"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "swizgen",
      "targets" : [
        "Tools"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Tools",
      "module_type" : "SwiftTarget",
      "name" : "Tools",
      "path" : "Sources/Tools",
      "product_memberships" : [
        "swizgen"
      ],
      "sources" : [
        "main.swift"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "SGLMathTests",
      "module_type" : "SwiftTarget",
      "name" : "SGLMathTests",
      "path" : "Tests/SGLMathTests",
      "sources" : [
        "EqualWithAccuracy.swift",
        "FunctionsTests.swift",
        "Matrix2x2Tests.swift",
        "Matrix3x3Tests.swift",
        "Matrix4x4Tests.swift",
        "SwizzleTests.swift",
        "Vector2Tests.swift",
        "Vector4Tests.swift",
        "XCTestManifests.swift",
        "glmMatrixTests.swift"
      ],
      "target_dependencies" : [
        "SGLMath"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SGLMath",
      "module_type" : "SwiftTarget",
      "name" : "SGLMath",
      "path" : "Sources/SGLMath",
      "product_memberships" : [
        "SGLMath"
      ],
      "sources" : [
        "Complex.swift",
        "Internal.swift",
        "Matrix2x2.swift",
        "Matrix2x3.swift",
        "Matrix2x4.swift",
        "Matrix3x2.swift",
        "Matrix3x3.swift",
        "Matrix3x4.swift",
        "Matrix4x2.swift",
        "Matrix4x3.swift",
        "Matrix4x4.swift",
        "Operators.swift",
        "Protocols.swift",
        "Quaternion.swift",
        "Swizzle.swift",
        "Vector2.swift",
        "Vector2b.swift",
        "Vector3.swift",
        "Vector3b.swift",
        "Vector4.swift",
        "Vector4b.swift",
        "glm.swift",
        "glsl.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.