The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of SwiftyGPIO, reference 2.0.0-beta10 (d9b049), with Swift 6.2 (beta) for Linux on 20 Jun 2025 18:53:30 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/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.2
Building package at path:  $PWD
https://github.com/uraimo/SwiftyGPIO.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/15] Compiling SwiftyGPIO SwiftyGPIO.swift
[4/15] Compiling SwiftyGPIO Mailbox.swift
[5/16] Compiling SwiftyGPIO GPIO.swift
[6/16] Compiling SwiftyGPIO I2C.swift
[7/16] Compiling SwiftyGPIO 1Wire.swift
/host/spi-builder-workspace/Sources/SwiftyGPIO/Generic/1Wire.swift:76:19: warning: initialization of 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') results in a dangling pointer [#TemporaryPointers]
 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 [#TemporaryPointers]
 77 |         var pos = 0
 78 |
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[8/16] Compiling SwiftyGPIO ADC.swift
/host/spi-builder-workspace/Sources/SwiftyGPIO/Generic/1Wire.swift:76:19: warning: initialization of 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') results in a dangling pointer [#TemporaryPointers]
 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 [#TemporaryPointers]
 77 |         var pos = 0
 78 |
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[9/16] Emitting module SwiftyGPIO
[10/16] Compiling SwiftyGPIO Presets.swift
[11/16] Compiling SwiftyGPIO SunXi.swift
[12/16] Compiling SwiftyGPIO RaspberryPWM.swift
[13/16] Compiling SwiftyGPIO RaspberryGPIO.swift
[14/16] Compiling SwiftyGPIO SPI.swift
/host/spi-builder-workspace/Sources/SwiftyGPIO/Generic/SPI.swift:94:46: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
 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 [#TemporaryPointers]
 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 [#TemporaryPointers]
 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 [#TemporaryPointers]
 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 [#TemporaryPointers]
 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 [#TemporaryPointers]
 95 |         var pos = 0
 96 |
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[15/16] Compiling SwiftyGPIO UART.swift
/host/spi-builder-workspace/Sources/SwiftyGPIO/Generic/SPI.swift:94:46: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
 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 [#TemporaryPointers]
 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 [#TemporaryPointers]
 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 [#TemporaryPointers]
 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 [#TemporaryPointers]
 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 [#TemporaryPointers]
 95 |         var pos = 0
 96 |
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[16/16] Compiling SwiftyGPIO RaspberrySPI.swift
Build complete! (16.51s)
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.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.