The Swift Package Index logo.Swift Package Index

Build Information

Successful build of DL4S, reference 0.4.1 (1f90f8), with Swift 6.4 for macOS (SPM) on 19 Sep 2026 12:59:05 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/palle-k/DL4S.git
Reference: 0.4.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/palle-k/DL4S
 * tag               0.4.1      -> FETCH_HEAD
HEAD is now at 1f90f87 docs update
Cloned https://github.com/palle-k/DL4S.git
Revision (git rev-parse @):
1f90f8790bc23c2cfcd4c94f27cf6ef011d78cba
SUCCESS checkout https://github.com/palle-k/DL4S.git at 0.4.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/palle-k/DL4S.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Pre-planning 1 / 96]
[Planning deferred tasks]
[21 / 33]
[24 / 34] MKL
[25 / 34] DL4S
[35 / 109]
[38 / 109]
[46 / 109]
[48 / 109]
[49 / 109]
[54 / 109]
[56 / 109]
[58 / 109]
[61 / 109]
[65 / 109]
[67 / 109]
[70 / 109]
[71 / 109]
[80 / 109]
[82 / 109]
[83 / 109]
[86 / 109]
[88 / 109]
[100 / 109] DL4S
[101 / 109] DL4S
[106 / 109] DL4S
Build complete! (12.02 sec)
warning: /Users/admin/builder/spi-builder-workspace/Sources/DL4S/NN/Layer/Sequential.swift:91:2 '@_functionBuilder' has been renamed to '@resultBuilder': FixIt(sourceRange: XCBuild.SwiftBuildMessage.DiagnosticInfo.SourceRange(path: "/Users/admin/builder/spi-builder-workspace/Sources/DL4S/NN/Layer/Sequential.swift", startLine: 91, startColumn: 2, endLine: 91, endColumn: 18), textToInsert: "resultBuilder")
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/NN/Layer/Sequential.swift:91:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 89 |
 90 | /// A layer builder can be used to create sequences of layers
 91 | @_functionBuilder
    |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 92 | public enum LayerBuilder {}
 93 |
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Assertions.swift:29:1: warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
27 |
28 |
29 | extension FileHandle: TextOutputStream {
   | |- warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
30 |     public func write(_ string: String) {
31 |         self.write(string.data(using: .utf8)!)
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:28:1: warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 26 | import Foundation
 27 |
 28 | extension UnsafeMutableRawBufferPointer: Hashable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 29 |     public static func == (lhs: UnsafeMutableRawBufferPointer, rhs: UnsafeMutableRawBufferPointer) -> Bool {
 30 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:91:1: warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 89 | }
 90 |
 91 | extension UnsafeMutableBufferPointer: Equatable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 92 |     public static func == (lhs: UnsafeMutableBufferPointer<Element>, rhs: UnsafeMutableBufferPointer<Element>) -> Bool {
 93 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Util.swift:93:1: warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 91 | }
 92 |
 93 | extension Slice: Equatable where Element: Hashable {
    | |- warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 94 |     public static func == (lhs: Slice<Base>, rhs: Slice<Base>) -> Bool {
 95 |         return lhs.count == rhs.count && !zip(lhs, rhs).map(==).contains(false)
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Util.swift:99:1: warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 97 | }
 98 |
 99 | extension Slice: Hashable where Element: Hashable {
    | |- warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
100 |     public func hash(into hasher: inout Hasher) {
101 |         for element in self {
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Util.swift:251:37: warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
248 |
249 |
250 | public struct Progress<Element>: Sequence {
    |                        `- note: 'Element' previously declared here
251 |     private struct ProgressIterator<Element>: IteratorProtocol {
    |                                     `- warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
252 |         var baseIterator: AnyIterator<Element>
253 |         let totalUnitCount: Int
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Numerics/Int32.swift:29:1: warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 27 |
 28 |
 29 | extension Int32: NumericType {
    | |- warning: extension declares a conformance of imported type 'Int32' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 30 |     public func format(maxDecimals: Int) -> String {
 31 |         return "\(self)"
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/NN/Layer/Sequential.swift:91:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 89 |
 90 | /// A layer builder can be used to create sequences of layers
 91 | @_functionBuilder
    |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
 92 | public enum LayerBuilder {}
 93 |
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:28:1: warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 26 | import Foundation
 27 |
 28 | extension UnsafeMutableRawBufferPointer: Hashable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableRawBufferPointer' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 29 |     public static func == (lhs: UnsafeMutableRawBufferPointer, rhs: UnsafeMutableRawBufferPointer) -> Bool {
 30 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:91:1: warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 89 | }
 90 |
 91 | extension UnsafeMutableBufferPointer: Equatable {
    | |- warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 92 |     public static func == (lhs: UnsafeMutableBufferPointer<Element>, rhs: UnsafeMutableBufferPointer<Element>) -> Bool {
 93 |         return lhs.baseAddress == rhs.baseAddress && lhs.count == rhs.count
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Memory Management/Allocator.swift:63:27: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 61 |         precondition(self.count >= count, "Out of bounds write")
 62 |         //memcpy(self.baseAddress!, ptr.baseAddress!, count * MemoryLayout<Element>.stride)
 63 |         self.baseAddress!.assign(from: ptr.baseAddress!, count: count)
    |                           |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
    |                           `- note: use 'update(from:count:)' instead
 64 |     }
 65 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Assertions.swift:29:1: warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
27 |
28 |
29 | extension FileHandle: TextOutputStream {
   | |- warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
30 |     public func write(_ string: String) {
31 |         self.write(string.data(using: .utf8)!)
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:933:41: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 931 |             }
 932 |
 933 |             dstMem.advanced(by: dstIdx).assign(from: sourceMem.advanced(by: srcIdx), count: copyCount)
     |                                         |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
     |                                         `- note: use 'update(from:count:)' instead
 934 |         }
 935 |     }
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1018:42: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
1016 |                 }
1017 |
1018 |                 dst.advanced(by: dstIdx).assign(from: src.advanced(by: srcIdx), count: copyCount)
     |                                          |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
     |                                          `- note: use 'update(from:count:)' instead
1019 |             }
1020 |
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Engine/CPU/CPUEngine.swift:1098:50: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
1096 |             let dstIdx = count - srcIdx - 1
1097 |
1098 |             dstPtr.advanced(by: dstIdx * stride).assign(from: srcPtr.advanced(by: srcIdx * stride), count: stride)
     |                                                  |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
     |                                                  `- note: use 'update(from:count:)' instead
1099 |         }
1100 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Util.swift:93:1: warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 91 | }
 92 |
 93 | extension Slice: Equatable where Element: Hashable {
    | |- warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 94 |     public static func == (lhs: Slice<Base>, rhs: Slice<Base>) -> Bool {
 95 |         return lhs.count == rhs.count && !zip(lhs, rhs).map(==).contains(false)
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Util.swift:99:1: warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 97 | }
 98 |
 99 | extension Slice: Hashable where Element: Hashable {
    | |- warning: extension declares a conformance of imported type 'Slice' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
100 |     public func hash(into hasher: inout Hasher) {
101 |         for element in self {
/Users/admin/builder/spi-builder-workspace/Sources/DL4S/Util.swift:251:37: warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
248 |
249 |
250 | public struct Progress<Element>: Sequence {
    |                        `- note: 'Element' previously declared here
251 |     private struct ProgressIterator<Element>: IteratorProtocol {
    |                                     `- warning: generic parameter 'Element' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
252 |         var baseIterator: AnyIterator<Element>
253 |         let totalUnitCount: Int
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DL4S",
  "name" : "DL4S",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "DL4S",
      "targets" : [
        "DL4S",
        "MKL"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MKL",
      "module_type" : "ClangTarget",
      "name" : "MKL",
      "path" : "Sources/MKL",
      "product_memberships" : [
        "DL4S"
      ],
      "sources" : [
        "placeholder.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "DL4STests",
      "module_type" : "SwiftTarget",
      "name" : "DL4STests",
      "path" : "Tests/DL4STests",
      "sources" : [
        "ConvTests.swift",
        "EngineV2Tests.swift",
        "GradientTests.swift",
        "MNISTTests.swift",
        "MemTests.swift",
        "ModelTests.swift",
        "TransformerTests.swift",
        "UtilTests.swift",
        "VecTests.swift",
        "VectorXORTest.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "DL4S"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DL4S",
      "module_type" : "SwiftTarget",
      "name" : "DL4S",
      "path" : "Sources/DL4S",
      "product_memberships" : [
        "DL4S"
      ],
      "sources" : [
        "Assertions.swift",
        "Engine/Buffer.swift",
        "Engine/CPU/CPU.swift",
        "Engine/CPU/CPUEngine.swift",
        "Engine/CPU/Numeric/CPUDouble.swift",
        "Engine/CPU/Numeric/CPUFloat.swift",
        "Engine/CPU/Numeric/CPUGeneric.swift",
        "Engine/CPU/Numeric/CPUInt32.swift",
        "Engine/CPU/Numeric/CPUNumeric.swift",
        "Engine/Engine.swift",
        "Engine/GPU/GPU.swift",
        "Memory Management/Allocator.swift",
        "Memory Management/MemoryOps.swift",
        "NN/Layer/Activation.swift",
        "NN/Layer/BasicRNN.swift",
        "NN/Layer/BatchNorm.swift",
        "NN/Layer/BidirectionalRNN.swift",
        "NN/Layer/Convolution.swift",
        "NN/Layer/Dense.swift",
        "NN/Layer/Dropout.swift",
        "NN/Layer/Embedding.swift",
        "NN/Layer/GRU.swift",
        "NN/Layer/LSTM.swift",
        "NN/Layer/Layer.swift",
        "NN/Layer/LayerNorm.swift",
        "NN/Layer/Pooling.swift",
        "NN/Layer/RNN.swift",
        "NN/Layer/Residual.swift",
        "NN/Layer/Sequential.swift",
        "NN/Layer/ShapeLayer.swift",
        "NN/Models/AlexNet.swift",
        "NN/Models/ResNet.swift",
        "NN/Models/Transformer/MultiHeadAttention.swift",
        "NN/Models/Transformer/PointwiseFeedForward.swift",
        "NN/Models/Transformer/PositionalEncoding.swift",
        "NN/Models/Transformer/ScaledDotProductAttention.swift",
        "NN/Models/Transformer/Transformer.swift",
        "NN/Models/Transformer/TransformerDecoder.swift",
        "NN/Models/Transformer/TransformerDecoderBlock.swift",
        "NN/Models/Transformer/TransformerEncoder.swift",
        "NN/Models/Transformer/TransformerEncoderBlock.swift",
        "NN/Models/Transformer/TransformerUtil.swift",
        "NN/Models/VGG/VGG.swift",
        "NN/Models/VGG/VGG11.swift",
        "NN/Models/VGG/VGG13.swift",
        "NN/Models/VGG/VGG16.swift",
        "NN/Models/VGG/VGG19.swift",
        "NN/Optimizer/Adadelta.swift",
        "NN/Optimizer/Adagrad.swift",
        "NN/Optimizer/Adam.swift",
        "NN/Optimizer/LearningRate.swift",
        "NN/Optimizer/Momentum.swift",
        "NN/Optimizer/Optim.swift",
        "NN/Optimizer/RMSProp.swift",
        "NN/Optimizer/SGD.swift",
        "Numerics/Double.swift",
        "Numerics/Float.swift",
        "Numerics/Int32.swift",
        "Numerics/NumericType.swift",
        "Random.swift",
        "SummaryWriter.swift",
        "Tensor/Context.swift",
        "Tensor/Graph.swift",
        "Tensor/Operators/Binary.swift",
        "Tensor/Operators/Conv.swift",
        "Tensor/Operators/Loss.swift",
        "Tensor/Operators/Matrix.swift",
        "Tensor/Operators/Reduce.swift",
        "Tensor/Operators/Scatter.swift",
        "Tensor/Operators/Shape.swift",
        "Tensor/Operators/Stack.swift",
        "Tensor/Operators/Subscript.swift",
        "Tensor/Operators/Unary.swift",
        "Tensor/Operators/UtilOps.swift",
        "Tensor/Tensor.swift",
        "Tensor/TensorExt.swift",
        "Util.swift"
      ],
      "target_dependencies" : [
        "MKL"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.