The Swift Package Index logo.Swift Package Index

Build Information

Successful build of NDArray, reference master (d2513d), with Swift 6.2 for macOS (SPM) on 18 Jun 2025 02:22:22 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/t-ae/ndarray.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-1EA4D86E10B52AF.txt
[5/9] Compiling Xorswift XorshiftGenerator.swift
[6/9] Emitting module Xorswift
[7/9] Compiling Xorswift Normal.swift
[8/9] Compiling Xorswift Uniform.swift
[9/9] Compiling Xorswift FloatDouble.swift
[10/36] Compiling NDArray ArrayLiteral.swift
[11/36] Compiling NDArray Broadcast.swift
[12/36] Compiling NDArray Indexing.swift
[13/36] Emitting module NDArray
[14/38] Compiling NDArray Stack.swift
[15/38] Compiling NDArray Transformation.swift
[16/38] Compiling NDArray Scalar.swift
[17/38] Compiling NDArray Sequence.swift
[18/38] Compiling NDArray Subscript.swift
[19/38] Compiling NDArray Arithmetic.swift
[20/38] Compiling NDArray Clip.swift
[21/38] Compiling NDArray CompoundAssignment.swift
[22/38] Compiling NDArray MatrixMultiplication.swift
[23/38] Compiling NDArray Power.swift
[24/38] Compiling NDArray Random.swift
[25/38] Compiling NDArray Reduce.swift
[26/38] Compiling NDArray Select.swift
[27/38] Compiling NDArray Sort.swift
[28/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 [#TemporaryPointers]
 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 [#TemporaryPointers]
 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 [#TemporaryPointers]
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 [#TemporaryPointers]
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 [#TemporaryPointers]
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 [#TemporaryPointers]
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 [#TemporaryPointers]
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 [#TemporaryPointers]
263 |
264 |     let lwork = 3*min(m, n) + 2*max(max(m, n), 6*min(m, n)) // not optimal size
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[29/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 [#TemporaryPointers]
 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 [#TemporaryPointers]
 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 [#TemporaryPointers]
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 [#TemporaryPointers]
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 [#TemporaryPointers]
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 [#TemporaryPointers]
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 [#TemporaryPointers]
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 [#TemporaryPointers]
263 |
264 |     let lwork = 3*min(m, n) + 2*max(max(m, n), 6*min(m, n)) // not optimal size
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[30/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 [#TemporaryPointers]
 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 [#TemporaryPointers]
 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 [#TemporaryPointers]
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 [#TemporaryPointers]
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 [#TemporaryPointers]
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 [#TemporaryPointers]
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 [#TemporaryPointers]
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 [#TemporaryPointers]
263 |
264 |     let lwork = 3*min(m, n) + 2*max(max(m, n), 6*min(m, n)) // not optimal size
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[31/38] Compiling NDArray IterationUtils.swift
[32/38] Compiling NDArray NDArray.swift
[33/38] Compiling NDArray NDArrayUtils.swift
[34/38] Compiling NDArray CopySign.swift
[35/38] Compiling NDArray Covariance.swift
[36/38] Compiling NDArray Creation.swift
[37/38] Compiling NDArray vDSPUtils.swift
[38/38] Compiling NDArray vecLibUtils.swift
[39/41] Compiling TestHelper IrisDataset.swift
[40/41] Emitting module TestHelper
[41/41] Compiling TestHelper XCTAssertEqualWithAccuracy.swift
Build complete! (14.40s)
Fetching https://github.com/t-ae/xorswift.git
[1/784] Fetching xorswift
Fetched https://github.com/t-ae/xorswift.git from cache (0.68s)
Computing version for https://github.com/t-ae/xorswift.git
Computed https://github.com/t-ae/xorswift.git at 2.0.1 (1.22s)
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
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.