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 NDArray, reference master (d2513d), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 12:54:12 UTC.

Swift 6 data race errors: 4

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/t-ae/ndarray.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/t-ae/ndarray
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d2513d8 SR-10230
Cloned https://github.com/t-ae/ndarray.git
Revision (git rev-parse @):
d2513d897c1853654a5df4eb6549485ec3f7fca6
SUCCESS checkout https://github.com/t-ae/ndarray.git at master
Fetching https://github.com/t-ae/xorswift.git
[1/784] Fetching xorswift
Fetched https://github.com/t-ae/xorswift.git from cache (0.79s)
Computing version for https://github.com/t-ae/xorswift.git
Computed https://github.com/t-ae/xorswift.git at 2.0.1 (0.64s)
Creating working copy for https://github.com/t-ae/xorswift.git
Working copy of https://github.com/t-ae/xorswift.git resolved at 2.0.1
========================================
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": "ndarray",
      "name": "NDArray",
      "url": "https://github.com/t-ae/ndarray.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ndarray",
      "dependencies": [
        {
          "identity": "xorswift",
          "name": "Xorswift",
          "url": "https://github.com/t-ae/xorswift.git",
          "version": "2.0.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/xorswift",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/t-ae/ndarray.git
[1/2231] Fetching ndarray
Fetched https://github.com/t-ae/ndarray.git from cache (0.86s)
Fetching https://github.com/t-ae/xorswift.git from cache
Fetched https://github.com/t-ae/xorswift.git from cache (0.48s)
Computing version for https://github.com/t-ae/xorswift.git
Computed https://github.com/t-ae/xorswift.git at 2.0.1 (0.02s)
Creating working copy for https://github.com/t-ae/ndarray.git
Working copy of https://github.com/t-ae/ndarray.git resolved at master (d2513d8)
Creating working copy for https://github.com/t-ae/xorswift.git
Working copy of https://github.com/t-ae/xorswift.git resolved at 2.0.1
warning: '.resolve-product-dependencies': dependency 'ndarray' is not used by any target
Found 1 product dependencies
  - Xorswift
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/t-ae/ndarray.git
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
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/9] Compiling Xorswift Uniform.swift
[6/9] Compiling Xorswift XorshiftGenerator.swift
[7/9] Compiling Xorswift Normal.swift
[8/9] Emitting module Xorswift
[9/9] Compiling Xorswift FloatDouble.swift
[10/36] Compiling NDArray Stack.swift
[11/36] Compiling NDArray Transformation.swift
[12/38] Compiling NDArray Reduce.swift
[13/38] Compiling NDArray Select.swift
[14/38] Compiling NDArray Sort.swift
[15/38] Compiling NDArray CopySign.swift
[16/38] Compiling NDArray Covariance.swift
[17/38] Compiling NDArray Creation.swift
[18/38] Compiling NDArray ArrayLiteral.swift
[19/38] Compiling NDArray Broadcast.swift
[20/38] Compiling NDArray Indexing.swift
[21/38] Compiling NDArray Scalar.swift
[22/38] Compiling NDArray Sequence.swift
[23/38] Compiling NDArray Subscript.swift
[24/38] Compiling NDArray Arithmetic.swift
[25/38] Compiling NDArray Clip.swift
[26/38] Compiling NDArray CompoundAssignment.swift
[27/38] Compiling NDArray MatrixMultiplication.swift
[28/38] Compiling NDArray Power.swift
[29/38] Compiling NDArray Random.swift
[30/38] Emitting module NDArray
[31/38] Compiling NDArray FloatingPointFunctions.swift
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Functions/LinearAlgebra.swift:52:14: warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
 50 |
 51 |     var n = __CLPK_integer(size)
 52 |     let _n = UnsafeMutablePointer(&n)
    |              |                    |- note: implicit argument conversion from '__CLPK_integer' (aka 'Int32') to 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') produces a pointer valid only for the duration of the call to 'init(_:)'
    |              |                    `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |              `- warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
 53 |
 54 |     var info: __CLPK_integer = 0
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Functions/LinearAlgebra.swift:106:14: warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
104 |
105 |     var n = __CLPK_integer(size)
106 |     let _n = UnsafeMutablePointer(&n)
    |              |                    |- note: implicit argument conversion from '__CLPK_integer' (aka 'Int32') to 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') produces a pointer valid only for the duration of the call to 'init(_:)'
    |              |                    `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |              `- warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
107 |     var pivots = [__CLPK_integer](repeating: 0, count: size)
108 |     var workspace = [__CLPK_real](repeating: 0, count: size)
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Functions/LinearAlgebra.swift:261:18: warning: initialization of 'UnsafeMutablePointer<Float>' results in a dangling pointer
259 |     var dummy: Float = 0
260 |     var lddummy: __CLPK_integer = 1
261 |     let _dummy = UnsafeMutablePointer(&dummy)
    |                  |                    |- note: implicit argument conversion from 'Float' to 'UnsafeMutablePointer<Float>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                  |                    `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                  `- warning: initialization of 'UnsafeMutablePointer<Float>' results in a dangling pointer
262 |     let _lddummy = UnsafeMutablePointer(&lddummy)
263 |
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Functions/LinearAlgebra.swift:262:20: warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
260 |     var lddummy: __CLPK_integer = 1
261 |     let _dummy = UnsafeMutablePointer(&dummy)
262 |     let _lddummy = UnsafeMutablePointer(&lddummy)
    |                    |                    |- note: implicit argument conversion from '__CLPK_integer' (aka 'Int32') to 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') produces a pointer valid only for the duration of the call to 'init(_:)'
    |                    |                    `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                    `- warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
263 |
264 |     let lwork = 3*min(m, n) + 2*max(max(m, n), 6*min(m, n)) // not optimal size
[32/38] Compiling NDArray HigherOrderFunctions.swift
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Functions/LinearAlgebra.swift:52:14: warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
 50 |
 51 |     var n = __CLPK_integer(size)
 52 |     let _n = UnsafeMutablePointer(&n)
    |              |                    |- note: implicit argument conversion from '__CLPK_integer' (aka 'Int32') to 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') produces a pointer valid only for the duration of the call to 'init(_:)'
    |              |                    `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |              `- warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
 53 |
 54 |     var info: __CLPK_integer = 0
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Functions/LinearAlgebra.swift:106:14: warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
104 |
105 |     var n = __CLPK_integer(size)
106 |     let _n = UnsafeMutablePointer(&n)
    |              |                    |- note: implicit argument conversion from '__CLPK_integer' (aka 'Int32') to 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') produces a pointer valid only for the duration of the call to 'init(_:)'
    |              |                    `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |              `- warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
107 |     var pivots = [__CLPK_integer](repeating: 0, count: size)
108 |     var workspace = [__CLPK_real](repeating: 0, count: size)
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Functions/LinearAlgebra.swift:261:18: warning: initialization of 'UnsafeMutablePointer<Float>' results in a dangling pointer
259 |     var dummy: Float = 0
260 |     var lddummy: __CLPK_integer = 1
261 |     let _dummy = UnsafeMutablePointer(&dummy)
    |                  |                    |- note: implicit argument conversion from 'Float' to 'UnsafeMutablePointer<Float>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                  |                    `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                  `- warning: initialization of 'UnsafeMutablePointer<Float>' results in a dangling pointer
262 |     let _lddummy = UnsafeMutablePointer(&lddummy)
263 |
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Functions/LinearAlgebra.swift:262:20: warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
260 |     var lddummy: __CLPK_integer = 1
261 |     let _dummy = UnsafeMutablePointer(&dummy)
262 |     let _lddummy = UnsafeMutablePointer(&lddummy)
    |                    |                    |- note: implicit argument conversion from '__CLPK_integer' (aka 'Int32') to 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') produces a pointer valid only for the duration of the call to 'init(_:)'
    |                    |                    `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                    `- warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
263 |
264 |     let lwork = 3*min(m, n) + 2*max(max(m, n), 6*min(m, n)) // not optimal size
[33/38] Compiling NDArray LinearAlgebra.swift
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Functions/LinearAlgebra.swift:52:14: warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
 50 |
 51 |     var n = __CLPK_integer(size)
 52 |     let _n = UnsafeMutablePointer(&n)
    |              |                    |- note: implicit argument conversion from '__CLPK_integer' (aka 'Int32') to 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') produces a pointer valid only for the duration of the call to 'init(_:)'
    |              |                    `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |              `- warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
 53 |
 54 |     var info: __CLPK_integer = 0
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Functions/LinearAlgebra.swift:106:14: warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
104 |
105 |     var n = __CLPK_integer(size)
106 |     let _n = UnsafeMutablePointer(&n)
    |              |                    |- note: implicit argument conversion from '__CLPK_integer' (aka 'Int32') to 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') produces a pointer valid only for the duration of the call to 'init(_:)'
    |              |                    `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |              `- warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
107 |     var pivots = [__CLPK_integer](repeating: 0, count: size)
108 |     var workspace = [__CLPK_real](repeating: 0, count: size)
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Functions/LinearAlgebra.swift:261:18: warning: initialization of 'UnsafeMutablePointer<Float>' results in a dangling pointer
259 |     var dummy: Float = 0
260 |     var lddummy: __CLPK_integer = 1
261 |     let _dummy = UnsafeMutablePointer(&dummy)
    |                  |                    |- note: implicit argument conversion from 'Float' to 'UnsafeMutablePointer<Float>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                  |                    `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                  `- warning: initialization of 'UnsafeMutablePointer<Float>' results in a dangling pointer
262 |     let _lddummy = UnsafeMutablePointer(&lddummy)
263 |
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Functions/LinearAlgebra.swift:262:20: warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
260 |     var lddummy: __CLPK_integer = 1
261 |     let _dummy = UnsafeMutablePointer(&dummy)
262 |     let _lddummy = UnsafeMutablePointer(&lddummy)
    |                    |                    |- note: implicit argument conversion from '__CLPK_integer' (aka 'Int32') to 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') produces a pointer valid only for the duration of the call to 'init(_:)'
    |                    |                    `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                    `- warning: initialization of 'UnsafeMutablePointer<__CLPK_integer>' (aka 'UnsafeMutablePointer<Int32>') results in a dangling pointer
263 |
264 |     let lwork = 3*min(m, n) + 2*max(max(m, n), 6*min(m, n)) // not optimal size
[34/38] Compiling NDArray IterationUtils.swift
[35/38] Compiling NDArray NDArray.swift
[36/38] Compiling NDArray NDArrayUtils.swift
[37/38] Compiling NDArray vDSPUtils.swift
[38/38] Compiling NDArray vecLibUtils.swift
[39/41] Compiling TestHelper XCTAssertEqualWithAccuracy.swift
[40/41] Emitting module TestHelper
/Users/admin/builder/spi-builder-workspace/Tests/TestHelper/IrisDataset.swift:4:23: warning: static property 'x_train' is not concurrency-safe because non-'Sendable' type 'NDArray' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | public struct Iris {
  4 |     public static let x_train = NDArray([
    |                       `- warning: static property 'x_train' is not concurrency-safe because non-'Sendable' type 'NDArray' may have shared mutable state; this is an error in the Swift 6 language mode
  5 |         [6.0, 3.3999999999999999, 4.5, 1.6000000000000001],
  6 |         [4.7999999999999998, 3.1000000000000001, 1.6000000000000001, 0.20000000000000001],
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Core/NDArray.swift:1:15: note: struct 'NDArray' does not conform to the 'Sendable' protocol
 1 | public struct NDArray {
   |               `- note: struct 'NDArray' does not conform to the 'Sendable' protocol
 2 |     /// Shape of NDArray.
 3 |     public internal(set) var shape: [Int]
/Users/admin/builder/spi-builder-workspace/Tests/TestHelper/IrisDataset.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NDArray'
  1 | import NDArray
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NDArray'
  2 |
  3 | public struct Iris {
  4 |     public static let x_train = NDArray([
    |                       |- note: annotate 'x_train' 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
  5 |         [6.0, 3.3999999999999999, 4.5, 1.6000000000000001],
  6 |         [4.7999999999999998, 3.1000000000000001, 1.6000000000000001, 0.20000000000000001],
/Users/admin/builder/spi-builder-workspace/Tests/TestHelper/IrisDataset.swift:96:23: warning: static property 'y_train' is not concurrency-safe because non-'Sendable' type 'NDArray' may have shared mutable state; this is an error in the Swift 6 language mode
 94 |         [4.5999999999999996, 3.2000000000000002, 1.3999999999999999, 0.20000000000000001]
 95 |     ])
 96 |     public static let y_train = NDArray([1, 0, 2, 1, 1, 1, 1, 2, 0, 0, 2, 1, 0, 0, 1, 0, 2, 1, 0, 1, 2, 1, 0, 2, 2, 2, 2, 0, 0, 2, 2, 0, 2, 0, 2, 2, 0, 0, 2, 0, 0, 0, 1, 2, 2, 0, 0, 0, 1, 1, 0, 0, 1, 0, 2, 1, 2, 1, 0, 2, 0, 2, 0, 0, 2, 0, 2, 1, 1, 1, 2, 2, 1, 1, 0, 1, 2, 2, 0, 1, 1, 1, 1, 0, 0, 0, 2, 1, 2, 0])
    |                       |- warning: static property 'y_train' is not concurrency-safe because non-'Sendable' type 'NDArray' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'y_train' 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
 97 |
 98 |     public static let x_test = NDArray([
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Core/NDArray.swift:1:15: note: struct 'NDArray' does not conform to the 'Sendable' protocol
 1 | public struct NDArray {
   |               `- note: struct 'NDArray' does not conform to the 'Sendable' protocol
 2 |     /// Shape of NDArray.
 3 |     public internal(set) var shape: [Int]
/Users/admin/builder/spi-builder-workspace/Tests/TestHelper/IrisDataset.swift:98:23: warning: static property 'x_test' is not concurrency-safe because non-'Sendable' type 'NDArray' may have shared mutable state; this is an error in the Swift 6 language mode
 96 |     public static let y_train = NDArray([1, 0, 2, 1, 1, 1, 1, 2, 0, 0, 2, 1, 0, 0, 1, 0, 2, 1, 0, 1, 2, 1, 0, 2, 2, 2, 2, 0, 0, 2, 2, 0, 2, 0, 2, 2, 0, 0, 2, 0, 0, 0, 1, 2, 2, 0, 0, 0, 1, 1, 0, 0, 1, 0, 2, 1, 2, 1, 0, 2, 0, 2, 0, 0, 2, 0, 2, 1, 1, 1, 2, 2, 1, 1, 0, 1, 2, 2, 0, 1, 1, 1, 1, 0, 0, 0, 2, 1, 2, 0])
 97 |
 98 |     public static let x_test = NDArray([
    |                       |- warning: static property 'x_test' is not concurrency-safe because non-'Sendable' type 'NDArray' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'x_test' 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
 99 |         [5.7999999999999998, 2.7999999999999998, 5.0999999999999996, 2.3999999999999999],
100 |         [6.0, 2.2000000000000002, 4.0, 1.0],
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Core/NDArray.swift:1:15: note: struct 'NDArray' does not conform to the 'Sendable' protocol
 1 | public struct NDArray {
   |               `- note: struct 'NDArray' does not conform to the 'Sendable' protocol
 2 |     /// Shape of NDArray.
 3 |     public internal(set) var shape: [Int]
/Users/admin/builder/spi-builder-workspace/Tests/TestHelper/IrisDataset.swift:160:23: warning: static property 'y_test' is not concurrency-safe because non-'Sendable' type 'NDArray' may have shared mutable state; this is an error in the Swift 6 language mode
158 |         [6.5, 3.0, 5.2000000000000002, 2.0]
159 |     ])
160 |     public static let y_test = NDArray([2, 1, 0, 2, 0, 2, 0, 1, 1, 1, 2, 1, 1, 1, 1, 0, 1, 1, 0, 0, 2, 1, 0, 0, 2, 0, 0, 1, 1, 0, 2, 1, 0, 2, 2, 1, 0, 1, 1, 1, 2, 0, 2, 0, 0, 1, 2, 2, 2, 2, 1, 2, 1, 1, 2, 2, 2, 2, 1, 2])
    |                       |- warning: static property 'y_test' is not concurrency-safe because non-'Sendable' type 'NDArray' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'y_test' 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 | }
162 |
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Core/NDArray.swift:1:15: note: struct 'NDArray' does not conform to the 'Sendable' protocol
 1 | public struct NDArray {
   |               `- note: struct 'NDArray' does not conform to the 'Sendable' protocol
 2 |     /// Shape of NDArray.
 3 |     public internal(set) var shape: [Int]
[41/41] Compiling TestHelper IrisDataset.swift
/Users/admin/builder/spi-builder-workspace/Tests/TestHelper/IrisDataset.swift:4:23: warning: static property 'x_train' is not concurrency-safe because non-'Sendable' type 'NDArray' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | public struct Iris {
  4 |     public static let x_train = NDArray([
    |                       `- warning: static property 'x_train' is not concurrency-safe because non-'Sendable' type 'NDArray' may have shared mutable state; this is an error in the Swift 6 language mode
  5 |         [6.0, 3.3999999999999999, 4.5, 1.6000000000000001],
  6 |         [4.7999999999999998, 3.1000000000000001, 1.6000000000000001, 0.20000000000000001],
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Core/NDArray.swift:1:15: note: struct 'NDArray' does not conform to the 'Sendable' protocol
 1 | public struct NDArray {
   |               `- note: struct 'NDArray' does not conform to the 'Sendable' protocol
 2 |     /// Shape of NDArray.
 3 |     public internal(set) var shape: [Int]
/Users/admin/builder/spi-builder-workspace/Tests/TestHelper/IrisDataset.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NDArray'
  1 | import NDArray
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NDArray'
  2 |
  3 | public struct Iris {
  4 |     public static let x_train = NDArray([
    |                       |- note: annotate 'x_train' 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
  5 |         [6.0, 3.3999999999999999, 4.5, 1.6000000000000001],
  6 |         [4.7999999999999998, 3.1000000000000001, 1.6000000000000001, 0.20000000000000001],
/Users/admin/builder/spi-builder-workspace/Tests/TestHelper/IrisDataset.swift:96:23: warning: static property 'y_train' is not concurrency-safe because non-'Sendable' type 'NDArray' may have shared mutable state; this is an error in the Swift 6 language mode
 94 |         [4.5999999999999996, 3.2000000000000002, 1.3999999999999999, 0.20000000000000001]
 95 |     ])
 96 |     public static let y_train = NDArray([1, 0, 2, 1, 1, 1, 1, 2, 0, 0, 2, 1, 0, 0, 1, 0, 2, 1, 0, 1, 2, 1, 0, 2, 2, 2, 2, 0, 0, 2, 2, 0, 2, 0, 2, 2, 0, 0, 2, 0, 0, 0, 1, 2, 2, 0, 0, 0, 1, 1, 0, 0, 1, 0, 2, 1, 2, 1, 0, 2, 0, 2, 0, 0, 2, 0, 2, 1, 1, 1, 2, 2, 1, 1, 0, 1, 2, 2, 0, 1, 1, 1, 1, 0, 0, 0, 2, 1, 2, 0])
    |                       |- warning: static property 'y_train' is not concurrency-safe because non-'Sendable' type 'NDArray' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'y_train' 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
 97 |
 98 |     public static let x_test = NDArray([
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Core/NDArray.swift:1:15: note: struct 'NDArray' does not conform to the 'Sendable' protocol
 1 | public struct NDArray {
   |               `- note: struct 'NDArray' does not conform to the 'Sendable' protocol
 2 |     /// Shape of NDArray.
 3 |     public internal(set) var shape: [Int]
/Users/admin/builder/spi-builder-workspace/Tests/TestHelper/IrisDataset.swift:98:23: warning: static property 'x_test' is not concurrency-safe because non-'Sendable' type 'NDArray' may have shared mutable state; this is an error in the Swift 6 language mode
 96 |     public static let y_train = NDArray([1, 0, 2, 1, 1, 1, 1, 2, 0, 0, 2, 1, 0, 0, 1, 0, 2, 1, 0, 1, 2, 1, 0, 2, 2, 2, 2, 0, 0, 2, 2, 0, 2, 0, 2, 2, 0, 0, 2, 0, 0, 0, 1, 2, 2, 0, 0, 0, 1, 1, 0, 0, 1, 0, 2, 1, 2, 1, 0, 2, 0, 2, 0, 0, 2, 0, 2, 1, 1, 1, 2, 2, 1, 1, 0, 1, 2, 2, 0, 1, 1, 1, 1, 0, 0, 0, 2, 1, 2, 0])
 97 |
 98 |     public static let x_test = NDArray([
    |                       |- warning: static property 'x_test' is not concurrency-safe because non-'Sendable' type 'NDArray' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'x_test' 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
 99 |         [5.7999999999999998, 2.7999999999999998, 5.0999999999999996, 2.3999999999999999],
100 |         [6.0, 2.2000000000000002, 4.0, 1.0],
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Core/NDArray.swift:1:15: note: struct 'NDArray' does not conform to the 'Sendable' protocol
 1 | public struct NDArray {
   |               `- note: struct 'NDArray' does not conform to the 'Sendable' protocol
 2 |     /// Shape of NDArray.
 3 |     public internal(set) var shape: [Int]
/Users/admin/builder/spi-builder-workspace/Tests/TestHelper/IrisDataset.swift:160:23: warning: static property 'y_test' is not concurrency-safe because non-'Sendable' type 'NDArray' may have shared mutable state; this is an error in the Swift 6 language mode
158 |         [6.5, 3.0, 5.2000000000000002, 2.0]
159 |     ])
160 |     public static let y_test = NDArray([2, 1, 0, 2, 0, 2, 0, 1, 1, 1, 2, 1, 1, 1, 1, 0, 1, 1, 0, 0, 2, 1, 0, 0, 2, 0, 0, 1, 1, 0, 2, 1, 0, 2, 2, 1, 0, 1, 1, 1, 2, 0, 2, 0, 0, 1, 2, 2, 2, 2, 1, 2, 1, 1, 2, 2, 2, 2, 1, 2])
    |                       |- warning: static property 'y_test' is not concurrency-safe because non-'Sendable' type 'NDArray' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'y_test' 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 | }
162 |
/Users/admin/builder/spi-builder-workspace/Sources/NDArray/Core/NDArray.swift:1:15: note: struct 'NDArray' does not conform to the 'Sendable' protocol
 1 | public struct NDArray {
   |               `- note: struct 'NDArray' does not conform to the 'Sendable' protocol
 2 |     /// Shape of NDArray.
 3 |     public internal(set) var shape: [Int]
Build complete! (19.06s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "xorswift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/t-ae/xorswift.git"
    }
  ],
  "manifest_display_name" : "NDArray",
  "name" : "NDArray",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "NDArray",
      "targets" : [
        "NDArray"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TestHelper",
      "module_type" : "SwiftTarget",
      "name" : "TestHelper",
      "path" : "Tests/TestHelper",
      "sources" : [
        "IrisDataset.swift",
        "XCTAssertEqualWithAccuracy.swift"
      ],
      "target_dependencies" : [
        "NDArray"
      ],
      "type" : "library"
    },
    {
      "c99name" : "PerformanceTests",
      "module_type" : "SwiftTarget",
      "name" : "PerformanceTests",
      "path" : "Tests/PerformanceTests",
      "sources" : [
        "GradientDescentExample.swift",
        "HamiltonianMonteCarloExample.swift",
        "IrisClassificationExample.swift",
        "PerformanceTests.swift"
      ],
      "target_dependencies" : [
        "NDArray",
        "TestHelper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "NDArrayTests",
      "module_type" : "SwiftTarget",
      "name" : "NDArrayTests",
      "path" : "Tests/NDArrayTests",
      "sources" : [
        "ArithmeticTests.swift",
        "ArrayLiteralTests.swift",
        "ClipTests.swift",
        "CompoundAssignmentTests.swift",
        "CopySignTests.swift",
        "CovarianceTests.swift",
        "CreationTests.swift",
        "FloatingPointFunctionsTests.swift",
        "HigherOrderFunctionsTests.swift",
        "LinearAlgebraTests.swift",
        "MatrixMultiplicationTests.swift",
        "NDArrayTests.swift",
        "PowerTests.swift",
        "RandomTests.swift",
        "ReduceTests.swift",
        "SelectTests.swift",
        "SequenceTests.swift",
        "SortTests.swift",
        "StackTests.swift",
        "SubscriptTests.swift",
        "TransformationTests.swift",
        "UtilsTests.swift"
      ],
      "target_dependencies" : [
        "NDArray",
        "TestHelper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "NDArray",
      "module_type" : "SwiftTarget",
      "name" : "NDArray",
      "path" : "Sources/NDArray",
      "product_dependencies" : [
        "Xorswift"
      ],
      "product_memberships" : [
        "NDArray"
      ],
      "sources" : [
        "Core/ArrayLiteral.swift",
        "Core/Broadcast.swift",
        "Core/Indexing.swift",
        "Core/IterationUtils.swift",
        "Core/NDArray.swift",
        "Core/NDArrayUtils.swift",
        "Core/Scalar.swift",
        "Core/Sequence.swift",
        "Core/Subscript.swift",
        "Functions/Arithmetic.swift",
        "Functions/Clip.swift",
        "Functions/CompoundAssignment.swift",
        "Functions/CopySign.swift",
        "Functions/Covariance.swift",
        "Functions/Creation.swift",
        "Functions/FloatingPointFunctions.swift",
        "Functions/HigherOrderFunctions.swift",
        "Functions/LinearAlgebra.swift",
        "Functions/MatrixMultiplication.swift",
        "Functions/Power.swift",
        "Functions/Random.swift",
        "Functions/Reduce.swift",
        "Functions/Select.swift",
        "Functions/Sort.swift",
        "Functions/Stack.swift",
        "Functions/Transformation.swift",
        "Utils/vDSPUtils.swift",
        "Utils/vecLibUtils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Done.