The Swift Package Index logo.Swift Package Index

Build Information

Successful build of NDArray, reference master (49c5f1), with Swift 6.2 for Linux on 18 Jun 2025 03:28:16 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cgarciae/ndarray.git
Reference: master
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/cgarciae/ndarray
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 49c5f1e update readme
Cloned https://github.com/cgarciae/ndarray.git
Revision (git rev-parse @):
49c5f1ec9958a73afde90842c57995d8de9f57b7
SUCCESS checkout https://github.com/cgarciae/ndarray.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/cgarciae/ndarray.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
warning: 'spi-builder-workspace': The target named 'Debug' was identified as an executable target but a non-executable product with this name already exists.
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/26] Emitting module NDArray
/host/spi-builder-workspace/Sources/NDArray/NDArrayTypes/BaseNDArray/BaseNDArray.swift:89:17: warning: variable 'data' was never mutated; consider changing to 'let' constant
 87 |     public mutating func withScalarSetter(_ body: (@escaping NDArray<Scalar>.ScalarSetter) -> Void) {
 88 |         data.value.withUnsafeMutableBufferPointer { dataIn in
 89 |             var data = dataIn
    |                 `- warning: variable 'data' was never mutated; consider changing to 'let' constant
 90 |             defer { dataIn = data }
 91 |
/host/spi-builder-workspace/Sources/NDArray/NDArrayTypes/BaseNDArray/BaseNDArray.swift:104:17: warning: variable 'data' was never mutated; consider changing to 'let' constant
102 |     public mutating func withScalarGetterSetter(_ body: (@escaping NDArray<Scalar>.ScalarGetterSetter) -> Void) {
103 |         data.value.withUnsafeMutableBufferPointer { dataIn in
104 |             var data = dataIn
    |                 `- warning: variable 'data' was never mutated; consider changing to 'let' constant
105 |             defer { dataIn = data }
106 |
/host/spi-builder-workspace/Sources/NDArray/utils.swift:143:28: warning: capture of non-Sendable type 'S.Iterator.Type' in an isolated closure; this is an error in the Swift 6 language mode
141 |
142 |         DISPATCH.async {
143 |             for element in rangeMap(range) {
    |                            `- warning: capture of non-Sendable type 'S.Iterator.Type' in an isolated closure; this is an error in the Swift 6 language mode
144 |                 body(element)
145 |             }
/host/spi-builder-workspace/Sources/NDArray/utils.swift:143:28: warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
141 |
142 |         DISPATCH.async {
143 |             for element in rangeMap(range) {
    |                            `- warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
144 |                 body(element)
145 |             }
/host/spi-builder-workspace/Sources/NDArray/utils.swift:133:5: warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
131 |     _ range: Range<Int>,
132 |     workers: Int = CPU_COUNT,
133 |     rangeMap: @escaping (Range<Int>) -> S,
    |     `- warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
134 |     body: @escaping (E) -> Void
135 | ) where S.Element == E {
[5/29] Compiling NDArray Expressible.swift
/host/spi-builder-workspace/Sources/NDArray/NDArrayTypes/BaseNDArray/BaseNDArray.swift:89:17: warning: variable 'data' was never mutated; consider changing to 'let' constant
 87 |     public mutating func withScalarSetter(_ body: (@escaping NDArray<Scalar>.ScalarSetter) -> Void) {
 88 |         data.value.withUnsafeMutableBufferPointer { dataIn in
 89 |             var data = dataIn
    |                 `- warning: variable 'data' was never mutated; consider changing to 'let' constant
 90 |             defer { dataIn = data }
 91 |
/host/spi-builder-workspace/Sources/NDArray/NDArrayTypes/BaseNDArray/BaseNDArray.swift:104:17: warning: variable 'data' was never mutated; consider changing to 'let' constant
102 |     public mutating func withScalarGetterSetter(_ body: (@escaping NDArray<Scalar>.ScalarGetterSetter) -> Void) {
103 |         data.value.withUnsafeMutableBufferPointer { dataIn in
104 |             var data = dataIn
    |                 `- warning: variable 'data' was never mutated; consider changing to 'let' constant
105 |             defer { dataIn = data }
106 |
[6/29] Compiling NDArray NDArray.swift
/host/spi-builder-workspace/Sources/NDArray/NDArrayTypes/BaseNDArray/BaseNDArray.swift:89:17: warning: variable 'data' was never mutated; consider changing to 'let' constant
 87 |     public mutating func withScalarSetter(_ body: (@escaping NDArray<Scalar>.ScalarSetter) -> Void) {
 88 |         data.value.withUnsafeMutableBufferPointer { dataIn in
 89 |             var data = dataIn
    |                 `- warning: variable 'data' was never mutated; consider changing to 'let' constant
 90 |             defer { dataIn = data }
 91 |
/host/spi-builder-workspace/Sources/NDArray/NDArrayTypes/BaseNDArray/BaseNDArray.swift:104:17: warning: variable 'data' was never mutated; consider changing to 'let' constant
102 |     public mutating func withScalarGetterSetter(_ body: (@escaping NDArray<Scalar>.ScalarGetterSetter) -> Void) {
103 |         data.value.withUnsafeMutableBufferPointer { dataIn in
104 |             var data = dataIn
    |                 `- warning: variable 'data' was never mutated; consider changing to 'let' constant
105 |             defer { dataIn = data }
106 |
[7/29] Compiling NDArray ArrayShape.swift
/host/spi-builder-workspace/Sources/NDArray/NDArrayTypes/BaseNDArray/BaseNDArray.swift:89:17: warning: variable 'data' was never mutated; consider changing to 'let' constant
 87 |     public mutating func withScalarSetter(_ body: (@escaping NDArray<Scalar>.ScalarSetter) -> Void) {
 88 |         data.value.withUnsafeMutableBufferPointer { dataIn in
 89 |             var data = dataIn
    |                 `- warning: variable 'data' was never mutated; consider changing to 'let' constant
 90 |             defer { dataIn = data }
 91 |
/host/spi-builder-workspace/Sources/NDArray/NDArrayTypes/BaseNDArray/BaseNDArray.swift:104:17: warning: variable 'data' was never mutated; consider changing to 'let' constant
102 |     public mutating func withScalarGetterSetter(_ body: (@escaping NDArray<Scalar>.ScalarGetterSetter) -> Void) {
103 |         data.value.withUnsafeMutableBufferPointer { dataIn in
104 |             var data = dataIn
    |                 `- warning: variable 'data' was never mutated; consider changing to 'let' constant
105 |             defer { dataIn = data }
106 |
[8/29] Compiling NDArray BaseNDArray.swift
/host/spi-builder-workspace/Sources/NDArray/NDArrayTypes/BaseNDArray/BaseNDArray.swift:89:17: warning: variable 'data' was never mutated; consider changing to 'let' constant
 87 |     public mutating func withScalarSetter(_ body: (@escaping NDArray<Scalar>.ScalarSetter) -> Void) {
 88 |         data.value.withUnsafeMutableBufferPointer { dataIn in
 89 |             var data = dataIn
    |                 `- warning: variable 'data' was never mutated; consider changing to 'let' constant
 90 |             defer { dataIn = data }
 91 |
/host/spi-builder-workspace/Sources/NDArray/NDArrayTypes/BaseNDArray/BaseNDArray.swift:104:17: warning: variable 'data' was never mutated; consider changing to 'let' constant
102 |     public mutating func withScalarGetterSetter(_ body: (@escaping NDArray<Scalar>.ScalarGetterSetter) -> Void) {
103 |         data.value.withUnsafeMutableBufferPointer { dataIn in
104 |             var data = dataIn
    |                 `- warning: variable 'data' was never mutated; consider changing to 'let' constant
105 |             defer { dataIn = data }
106 |
[9/29] Compiling NDArray mean.swift
[10/29] Compiling NDArray min.swift
[11/29] Compiling NDArray mul.swift
[12/29] Compiling NDArray sum.swift
[13/29] Compiling NDArray Divisible.swift
[14/29] Compiling NDArray NDArrayFloatingPoint.swift
[15/29] Compiling NDArray NDArrayProtocol.swift
/host/spi-builder-workspace/Sources/NDArray/utils.swift:143:28: warning: capture of non-Sendable type 'S.Iterator.Type' in an isolated closure; this is an error in the Swift 6 language mode
141 |
142 |         DISPATCH.async {
143 |             for element in rangeMap(range) {
    |                            `- warning: capture of non-Sendable type 'S.Iterator.Type' in an isolated closure; this is an error in the Swift 6 language mode
144 |                 body(element)
145 |             }
/host/spi-builder-workspace/Sources/NDArray/utils.swift:143:28: warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
141 |
142 |         DISPATCH.async {
143 |             for element in rangeMap(range) {
    |                            `- warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
144 |                 body(element)
145 |             }
/host/spi-builder-workspace/Sources/NDArray/utils.swift:133:5: warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
131 |     _ range: Range<Int>,
132 |     workers: Int = CPU_COUNT,
133 |     rangeMap: @escaping (Range<Int>) -> S,
    |     `- warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
134 |     body: @escaping (E) -> Void
135 | ) where S.Element == E {
[16/29] Compiling NDArray Ref.swift
/host/spi-builder-workspace/Sources/NDArray/utils.swift:143:28: warning: capture of non-Sendable type 'S.Iterator.Type' in an isolated closure; this is an error in the Swift 6 language mode
141 |
142 |         DISPATCH.async {
143 |             for element in rangeMap(range) {
    |                            `- warning: capture of non-Sendable type 'S.Iterator.Type' in an isolated closure; this is an error in the Swift 6 language mode
144 |                 body(element)
145 |             }
/host/spi-builder-workspace/Sources/NDArray/utils.swift:143:28: warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
141 |
142 |         DISPATCH.async {
143 |             for element in rangeMap(range) {
    |                            `- warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
144 |                 body(element)
145 |             }
/host/spi-builder-workspace/Sources/NDArray/utils.swift:133:5: warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
131 |     _ range: Range<Int>,
132 |     workers: Int = CPU_COUNT,
133 |     rangeMap: @escaping (Range<Int>) -> S,
    |     `- warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
134 |     body: @escaping (E) -> Void
135 | ) where S.Element == E {
[17/29] Compiling NDArray utils.swift
/host/spi-builder-workspace/Sources/NDArray/utils.swift:143:28: warning: capture of non-Sendable type 'S.Iterator.Type' in an isolated closure; this is an error in the Swift 6 language mode
141 |
142 |         DISPATCH.async {
143 |             for element in rangeMap(range) {
    |                            `- warning: capture of non-Sendable type 'S.Iterator.Type' in an isolated closure; this is an error in the Swift 6 language mode
144 |                 body(element)
145 |             }
/host/spi-builder-workspace/Sources/NDArray/utils.swift:143:28: warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
141 |
142 |         DISPATCH.async {
143 |             for element in rangeMap(range) {
    |                            `- warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
144 |                 body(element)
145 |             }
/host/spi-builder-workspace/Sources/NDArray/utils.swift:133:5: warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
131 |     _ range: Range<Int>,
132 |     workers: Int = CPU_COUNT,
133 |     rangeMap: @escaping (Range<Int>) -> S,
    |     `- warning: capture of non-Sendable type 'S.Type' in an isolated closure; this is an error in the Swift 6 language mode
134 |     body: @escaping (E) -> Void
135 | ) where S.Element == E {
[18/29] Compiling NDArray broadcast.swift
[19/29] Compiling NDArray description.swift
[20/29] Compiling NDArray div.swift
[21/29] Compiling NDArray dot.swift
[22/29] Compiling NDArray elementWise.swift
[23/29] Compiling NDArray max.swift
[24/29] Compiling NDArray reduce.swift
[25/29] Compiling NDArray sub.swift
[26/29] Compiling NDArray subscript.swift
[27/29] Compiling NDArray Dimension.swift
[28/29] Compiling NDArray ScalarNDArray.swift
[29/29] Compiling NDArray add.swift
[31/32] Emitting module Debug
[32/32] Compiling Debug main.swift
Build complete! (18.04s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "NDArray",
  "name" : "NDArray",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "NDArray",
      "targets" : [
        "NDArray"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Debug",
      "targets" : [
        "Debug"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "NDArrayTests",
      "module_type" : "SwiftTarget",
      "name" : "NDArrayTests",
      "path" : "Tests/NDArrayTests",
      "sources" : [
        "DimensionTests.swift",
        "NDArrayTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "NDArray"
      ],
      "type" : "test"
    },
    {
      "c99name" : "NDArray",
      "module_type" : "SwiftTarget",
      "name" : "NDArray",
      "path" : "Sources/NDArray",
      "product_memberships" : [
        "NDArray",
        "Debug"
      ],
      "sources" : [
        "Extensions/Expressible.swift",
        "NDArray.swift",
        "NDArrayTypes/BaseNDArray/ArrayShape.swift",
        "NDArrayTypes/BaseNDArray/BaseNDArray.swift",
        "NDArrayTypes/BaseNDArray/Dimension.swift",
        "NDArrayTypes/ScalarNDArray.swift",
        "Ops/add.swift",
        "Ops/broadcast.swift",
        "Ops/description.swift",
        "Ops/div.swift",
        "Ops/dot.swift",
        "Ops/elementWise.swift",
        "Ops/max.swift",
        "Ops/mean.swift",
        "Ops/min.swift",
        "Ops/mul.swift",
        "Ops/reduce.swift",
        "Ops/sub.swift",
        "Ops/subscript.swift",
        "Ops/sum.swift",
        "Protocols/Divisible.swift",
        "Protocols/NDArrayFloatingPoint.swift",
        "Protocols/NDArrayProtocol.swift",
        "Ref.swift",
        "utils.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Debug",
      "module_type" : "SwiftTarget",
      "name" : "Debug",
      "path" : "Sources/Debug",
      "product_memberships" : [
        "Debug"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "NDArray"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.1"
}
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
warning: 'spi-builder-workspace': The target named 'Debug' was identified as an executable target but a non-executable product with this name already exists.
Done.