The Swift Package Index logo.Swift Package Index

Build Information

Successful build of PeripheryKit, reference main (a02676), with Swift 6.2 for Linux on 21 Jun 2025 18:15:55 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/CmST0us/PeripheryKit.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/CmST0us/PeripheryKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a02676d package: remote sysroot copy plugin package: add static and shared product target Cperiphery: bump to 1.0.0 version
Cloned https://github.com/CmST0us/PeripheryKit.git
Revision (git rev-parse @):
a02676dd096523ec792fab3574ae490b421f0364
SUCCESS checkout https://github.com/CmST0us/PeripheryKit.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/CmST0us/PeripheryKit.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
[1/1] Compiling plugin DownloadCPeriphery
Building for debugging...
[1/24] Write sources
[3/24] Compiling Cperiphery version.c
[4/24] Compiling Cperiphery shims.c
[5/24] Compiling Cperiphery i2c.c
[6/24] Compiling Cperiphery pwm.c
[7/24] Compiling Cperiphery gpio_sysfs.c
[8/24] Write swift-version-24593BA9C3E375BF.txt
[9/24] Compiling Cperiphery led.c
[10/24] Compiling Cperiphery spi.c
[11/24] Compiling Cperiphery gpio_cdev_v2.c
[12/24] Compiling Cperiphery serial.c
[13/24] Compiling Cperiphery mmio.c
[14/24] Compiling Cperiphery gpio.c
[15/24] Compiling Cperiphery gpio_cdev_v1.c
[17/34] Compiling PeripheryKit Data+Int.swift
[18/35] Emitting module PeripheryKit
[19/35] Compiling PeripheryKit Button.swift
[20/35] Compiling PeripheryKit Buzzer.swift
[21/35] Compiling PeripheryKit LED.swift
[22/35] Compiling PeripheryKit PWM.swift
[23/35] Compiling PeripheryKit GPIOEventDispatcher.swift
[24/35] Compiling PeripheryKit Delay.swift
[25/35] Compiling PeripheryKit GPIO.swift
[26/35] Compiling PeripheryKit I2C.swift
[27/35] Compiling PeripheryKit Int+Data.swift
[28/36] Wrapping AST for PeripheryKit for debugging
[29/36] Write Objects.LinkFileList
[31/38] Archiving libPeripheryKit_static.a
[32/38] Linking libPeripheryKit_shared.so
[34/38] Compiling pio pio.swift
/host/spi-builder-workspace/Sources/pio/pio.swift:162:17: warning: mutation of captured var 'bpm' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
160 |                 buzzer.play(track: Music.twinkle)
161 |
162 |                 bpm += 40
    |                 `- warning: mutation of captured var 'bpm' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
163 |                 buzzer.bpm = bpm
164 |
/host/spi-builder-workspace/Sources/pio/pio.swift:163:30: warning: reference to captured var 'bpm' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
161 |
162 |                 bpm += 40
163 |                 buzzer.bpm = bpm
    |                              `- warning: reference to captured var 'bpm' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
164 |
165 |                 halfStep += 12
/host/spi-builder-workspace/Sources/pio/pio.swift:165:17: warning: mutation of captured var 'halfStep' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
163 |                 buzzer.bpm = bpm
164 |
165 |                 halfStep += 12
    |                 `- warning: mutation of captured var 'halfStep' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
166 |                 buzzer.fixedHalfStep = halfStep
167 |
/host/spi-builder-workspace/Sources/pio/pio.swift:166:40: warning: reference to captured var 'halfStep' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
164 |
165 |                 halfStep += 12
166 |                 buzzer.fixedHalfStep = halfStep
    |                                        `- warning: reference to captured var 'halfStep' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
167 |
168 |                 Thread.sleep(forTimeInterval: 1)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[35/38] Emitting module pio
[36/39] Wrapping AST for pio for debugging
[37/39] Write Objects.LinkFileList
[38/39] Linking pio
Build complete! (23.06s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PeripheryKit",
  "name" : "PeripheryKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PeripheryKit_static",
      "targets" : [
        "PeripheryKit"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "PeripheryKit_shared",
      "targets" : [
        "PeripheryKit"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    },
    {
      "name" : "pio",
      "targets" : [
        "pio"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "pio",
      "module_type" : "SwiftTarget",
      "name" : "pio",
      "path" : "Sources/pio",
      "product_memberships" : [
        "pio"
      ],
      "sources" : [
        "pio.swift"
      ],
      "target_dependencies" : [
        "PeripheryKit"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "PeripheryKitTests",
      "module_type" : "SwiftTarget",
      "name" : "PeripheryKitTests",
      "path" : "Tests/PeripheryKitTests",
      "sources" : [
        "PeripheryKitTests.swift"
      ],
      "target_dependencies" : [
        "PeripheryKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PeripheryKit",
      "module_type" : "SwiftTarget",
      "name" : "PeripheryKit",
      "path" : "Sources/PeripheryKit",
      "product_memberships" : [
        "PeripheryKit_static",
        "PeripheryKit_shared",
        "pio"
      ],
      "sources" : [
        "Button.swift",
        "Buzzer.swift",
        "Delay.swift",
        "GPIO.swift",
        "GPIOEventDispatcher.swift",
        "I2C.swift",
        "LED.swift",
        "PWM.swift",
        "Utils/Data+Int.swift",
        "Utils/Int+Data.swift"
      ],
      "target_dependencies" : [
        "Cperiphery"
      ],
      "type" : "library"
    },
    {
      "c99name" : "DownloadCPeriphery",
      "module_type" : "PluginTarget",
      "name" : "DownloadCPeriphery",
      "path" : "Plugins/DownloadCPeriphery",
      "plugin_capability" : {
        "intent" : {
          "description" : "Download c-periphery",
          "type" : "custom",
          "verb" : "download-c-periphery"
        },
        "permissions" : [
          {
            "network_scope" : {
              "all" : {
                "ports" : [
                  443
                ]
              }
            },
            "reason" : "Download packages",
            "type" : "allowNetworkConnections"
          },
          {
            "network_scope" : {
              "none" : {
              }
            },
            "reason" : "Write packages",
            "type" : "writeToPackageDirectory"
          }
        ],
        "type" : "command"
      },
      "sources" : [
        "DownloadCPeriphery.swift"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "Cperiphery",
      "module_type" : "ClangTarget",
      "name" : "Cperiphery",
      "path" : "Sources/Cperiphery",
      "product_memberships" : [
        "PeripheryKit_static",
        "PeripheryKit_shared",
        "pio"
      ],
      "sources" : [
        "gpio.c",
        "gpio_cdev_v1.c",
        "gpio_cdev_v2.c",
        "gpio_sysfs.c",
        "i2c.c",
        "led.c",
        "mmio.c",
        "pwm.c",
        "serial.c",
        "shims.c",
        "spi.c",
        "version.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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.