The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SingleBoard, reference main (6866fb), with Swift 6.2 for Linux on 19 Jun 2025 09:30:35 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/Kaiede/SingleBoard.git
Reference: main
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/Kaiede/SingleBoard
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6866fb3 Update README.md
Cloned https://github.com/Kaiede/SingleBoard.git
Revision (git rev-parse @):
6866fb3ddc9c76c1875279c7981ba489c98f7ff1
SUCCESS checkout https://github.com/Kaiede/SingleBoard.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/Kaiede/SingleBoard.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/13] Compiling SingleBoard Chip_Board.swift
[6/13] Compiling SingleBoard Pine_Board.swift
[7/13] Compiling SingleBoard Raspberry_Board.swift
[8/13] Emitting module SingleBoard
[9/14] Compiling SingleBoard SingleBoard.swift
[10/14] Compiling SingleBoard GPIO.swift
[11/14] Compiling SingleBoard Extensions.swift
[12/14] Compiling SingleBoard I2C.swift
/host/spi-builder-workspace/Sources/SingleBoard/Common/I2C.swift:219:28: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
217 |     fileprivate func readData(at address: UInt8, length: Int) -> Data? {
218 |         var data = Data(count: length)
219 |         let success = data.withUnsafeMutableBytes {
    |                            `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
220 |             (dataBuffer) in
221 |             return i2cIoctl(.read, address: address, length: UInt16(length), data: dataBuffer)
/host/spi-builder-workspace/Sources/SingleBoard/Common/I2C.swift:243:30: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
241 |     fileprivate func writeData(at address: UInt8, value: Data) -> Bool {
242 |         var internalValue = value
243 |         return internalValue.withUnsafeMutableBytes {
    |                              `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
244 |             (dataBuffer) in
245 |             return i2cIoctl(.write, address: address, length: UInt16(value.count), data: dataBuffer)
/host/spi-builder-workspace/Sources/SingleBoard/Common/I2C.swift:297:28: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
295 |     fileprivate func readData(command: UInt8) -> Data? {
296 |         var data = Data(count: SysI2CBus.I2C_MAX_LENGTH+1)
297 |         let success = data.withUnsafeMutableBytes {
    |                            `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
298 |             (dataBuffer) in
299 |             return smbusIoctl(.read, command: command, dataKind: .blockData, data: dataBuffer)
/host/spi-builder-workspace/Sources/SingleBoard/Common/I2C.swift:323:21: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
321 |         data[0] = value
322 |
323 |         return data.withUnsafeMutableBytes {
    |                     `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
324 |             (dataBuffer) in
325 |             return smbusIoctl(.write, command: command, dataKind: .byteData, data: dataBuffer)
/host/spi-builder-workspace/Sources/SingleBoard/Common/I2C.swift:334:21: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
332 |         data[1] = UInt8(value >> 8)
333 |
334 |         return data.withUnsafeMutableBytes {
    |                     `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
335 |             (dataBuffer) in
336 |             return smbusIoctl(.write, command: command, dataKind: .wordData, data: dataBuffer)
/host/spi-builder-workspace/Sources/SingleBoard/Common/I2C.swift:345:21: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
343 |         data.append(UInt8(value.count))
344 |         data.append(data)
345 |         return data.withUnsafeMutableBytes {
    |                     `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
346 |             (dataBuffer) in
347 |             return smbusIoctl(.write, command: command, dataKind: .blockData, data: dataBuffer)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[13/14] Compiling SingleBoard Raspberry_Registers.swift
[14/14] Compiling SingleBoard Raspberry_PWM.swift
[16/19] Compiling PCA9685 PCA9685.swift
[17/19] Emitting module PCA9685
[19/20] Compiling MCP4725 MCP4725.swift
[20/20] Emitting module MCP4725
Build complete! (14.97s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SingleBoard",
  "name" : "SingleBoard",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SingleBoard",
      "targets" : [
        "SingleBoard"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "PCA9685",
      "targets" : [
        "PCA9685"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MCP4725",
      "targets" : [
        "MCP4725"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SingleBoardTests",
      "module_type" : "SwiftTarget",
      "name" : "SingleBoardTests",
      "path" : "Tests/SingleBoardTests",
      "sources" : [
        "RaspberryPi/RegisterTests.swift",
        "SingleBoardTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SingleBoard"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SingleBoard",
      "module_type" : "SwiftTarget",
      "name" : "SingleBoard",
      "path" : "Sources/SingleBoard",
      "product_memberships" : [
        "SingleBoard",
        "PCA9685",
        "MCP4725"
      ],
      "sources" : [
        "Boards/Chip_Board.swift",
        "Boards/Pine_Board.swift",
        "Boards/Raspberry_Board.swift",
        "Boards/Raspberry_PWM.swift",
        "Boards/Raspberry_Registers.swift",
        "Common/Extensions.swift",
        "Common/GPIO.swift",
        "Common/I2C.swift",
        "SingleBoard.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "PCA9685",
      "module_type" : "SwiftTarget",
      "name" : "PCA9685",
      "path" : "Sources/PCA9685",
      "product_memberships" : [
        "PCA9685"
      ],
      "sources" : [
        "PCA9685.swift"
      ],
      "target_dependencies" : [
        "SingleBoard"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MCP4725",
      "module_type" : "SwiftTarget",
      "name" : "MCP4725",
      "path" : "Sources/MCP4725",
      "product_memberships" : [
        "MCP4725"
      ],
      "sources" : [
        "MCP4725.swift"
      ],
      "target_dependencies" : [
        "SingleBoard"
      ],
      "type" : "library"
    }
  ],
  "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
Done.