The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SwiftyGPIO, reference 2.0.0-beta10 (d9b049), with Swift 6.4 for Linux on 19 Sep 2026 21:35:05 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/uraimo/SwiftyGPIO.git
Reference: 2.0.0-beta10
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/uraimo/SwiftyGPIO
 * tag               2.0.0-beta10 -> FETCH_HEAD
HEAD is now at d9b0494 Workaround for #96, Issue with poll on boot
Cloned https://github.com/uraimo/SwiftyGPIO.git
Revision (git rev-parse @):
d9b04944a4c0639d606e9a0fcfef41c8ebcf6d2c
SUCCESS checkout https://github.com/uraimo/SwiftyGPIO.git at 2.0.0-beta10
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/uraimo/SwiftyGPIO.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Building for debugging...
[Planning deferred tasks]
[28 / 36] SwiftyGPIO
[33 / 36] SwiftyGPIO
/host/spi-builder-workspace/Sources/SwiftyGPIO/Generic/SPI.swift:94:46: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
 92 |
 93 |         var tr = spi_ioc_transfer(
 94 |             tx_buf: UInt64( UInt(bitPattern: UnsafeMutablePointer(mutating: tx)) ),
    |                                              |                              |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
    |                                              |                              `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                                              `- warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
 95 |             rx_buf: UInt64( UInt(bitPattern: UnsafeMutablePointer(mutating: rx)) ),
 96 |             len: UInt32(tx.count),
/host/spi-builder-workspace/Sources/SwiftyGPIO/Generic/SPI.swift:95:46: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
 93 |         var tr = spi_ioc_transfer(
 94 |             tx_buf: UInt64( UInt(bitPattern: UnsafeMutablePointer(mutating: tx)) ),
 95 |             rx_buf: UInt64( UInt(bitPattern: UnsafeMutablePointer(mutating: rx)) ),
    |                                              |                              |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
    |                                              |                              `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                                              `- warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
 96 |             len: UInt32(tx.count),
 97 |             speed_hz: speed,
/host/spi-builder-workspace/Sources/SwiftyGPIO/Generic/UART.swift:94:19: warning: initialization of 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
 92 |     public func readLine() throws -> String {
 93 |         var buf = [CChar](repeating:0, count: 4097) //4096 chars at max in canonical mode
 94 |         var ptr = UnsafeMutablePointer<CChar>(&buf)
    |                   |                           |- note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
    |                   |                           `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                   `- warning: initialization of 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
 95 |         var pos = 0
 96 |
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
/host/spi-builder-workspace/Sources/SwiftyGPIO/Generic/1Wire.swift:76:19: warning: initialization of 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
 74 |     private func readLine(_ fd: Int32) throws -> String? {
 75 |         var buf = [CChar](repeating:0, count: 128)
 76 |         var ptr = UnsafeMutablePointer<CChar>(&buf)
    |                   |                           |- note: implicit argument conversion from '[CChar]' (aka 'Array<Int8>') to 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') produces a pointer valid only for the duration of the call to 'init(_:)'
    |                   |                           `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                   `- warning: initialization of 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
 77 |         var pos = 0
 78 |
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[34 / 37] SwiftyGPIO
Build complete! (5.44 secs)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftyGPIO",
  "name" : "SwiftyGPIO",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftyGPIO",
      "targets" : [
        "SwiftyGPIO"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftyGPIOTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyGPIOTests",
      "path" : "Tests/SwiftyGPIOTests",
      "sources" : [
        "SwiftyGPIOTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SwiftyGPIO"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftyGPIO",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyGPIO",
      "path" : "Sources/SwiftyGPIO",
      "product_memberships" : [
        "SwiftyGPIO"
      ],
      "sources" : [
        "Generic/1Wire.swift",
        "Generic/ADC.swift",
        "Generic/GPIO.swift",
        "Generic/I2C.swift",
        "Generic/SPI.swift",
        "Generic/UART.swift",
        "Presets.swift",
        "SunXi.swift",
        "SwiftyGPIO.swift",
        "Vendor/Mailbox.swift",
        "Vendor/RaspberryGPIO.swift",
        "Vendor/RaspberryPWM.swift",
        "Vendor/RaspberrySPI.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Done.