The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PeripheryKit, reference main (a02676), with Swift 6.1 for Android on 29 May 2025 12:29:10 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/CmST0us/PeripheryKit.git
https://github.com/CmST0us/PeripheryKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "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"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[1/1] Compiling plugin DownloadCPeriphery
Building for debugging...
[1/24] Write sources
[3/24] Compiling Cperiphery led.c
[4/24] Compiling Cperiphery version.c
[5/24] Compiling Cperiphery mmio.c
[6/24] Compiling Cperiphery gpio_cdev_v2.c
[7/24] Compiling Cperiphery gpio_sysfs.c
[8/24] Compiling Cperiphery gpio_cdev_v1.c
[9/24] Compiling Cperiphery shims.c
[10/24] Compiling Cperiphery pwm.c
[11/24] Compiling Cperiphery spi.c
[12/24] Compiling Cperiphery serial.c
[13/24] Compiling Cperiphery gpio.c
[14/24] Write swift-version-24593BA9C3E375BF.txt
[15/24] Compiling Cperiphery i2c.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 Delay.swift
[22/35] Compiling PeripheryKit GPIO.swift
[23/35] Compiling PeripheryKit GPIOEventDispatcher.swift
/host/spi-builder-workspace/Sources/PeripheryKit/GPIOEventDispatcher.swift:38:19: error: cannot find type 'pollfd' in scope
 36 |         gpiosLock.lock()
 37 |
 38 |         var fds: [pollfd] = gpios.map { gpio in
    |                   `- error: cannot find type 'pollfd' in scope
 39 |             return pollfd(fd: gpio.fd,
 40 |                           events: gpio.pin.isSysfs ? Int16(POLLPRI | POLLERR) : Int16(POLLIN | POLLRDNORM),
/host/spi-builder-workspace/Sources/PeripheryKit/GPIOEventDispatcher.swift:43:19: error: cannot find 'poll' in scope
 41 |                           revents: 0)
 42 |         }
 43 |         let ret = poll(&fds, nfds_t(fds.count), pollTimeout)
    |                   `- error: cannot find 'poll' in scope
 44 |         if ret < 0 {
 45 |             isRunning = false
/host/spi-builder-workspace/Sources/PeripheryKit/GPIOEventDispatcher.swift:43:30: error: cannot find 'nfds_t' in scope
 41 |                           revents: 0)
 42 |         }
 43 |         let ret = poll(&fds, nfds_t(fds.count), pollTimeout)
    |                              `- error: cannot find 'nfds_t' in scope
 44 |         if ret < 0 {
 45 |             isRunning = false
/host/spi-builder-workspace/Sources/PeripheryKit/GPIOEventDispatcher.swift:64:13: warning: capture of 'self' with non-sendable type 'GPIOEventDispatcher?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | public class GPIOEventDispatcher {
    |              `- note: class 'GPIOEventDispatcher' does not conform to the 'Sendable' protocol
 11 |
 12 |     private let workingQueue: DispatchQueue
    :
 62 |
 63 |         workingQueue.async { [weak self] in
 64 |             self?.doPoll()
    |             `- warning: capture of 'self' with non-sendable type 'GPIOEventDispatcher?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 65 |         }
 66 |     }
[24/35] Compiling PeripheryKit PWM.swift
/host/spi-builder-workspace/Sources/PeripheryKit/PWM.swift:50:13: warning: capture of 'self' with non-sendable type 'PWMModulation?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  9 | import Cperiphery
 10 |
 11 | public class PWMModulation {
    |              `- note: class 'PWMModulation' does not conform to the 'Sendable' protocol
 12 |
 13 |     private let workingQueue: DispatchQueue
    :
 48 |
 49 |         workingQueue.async { [weak self] in
 50 |             self?.doModulation()
    |             `- warning: capture of 'self' with non-sendable type 'PWMModulation?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 51 |         }
 52 |     }
/host/spi-builder-workspace/Sources/PeripheryKit/PWM.swift:68:13: warning: capture of 'self' with non-sendable type 'PWMModulation?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  9 | import Cperiphery
 10 |
 11 | public class PWMModulation {
    |              `- note: class 'PWMModulation' does not conform to the 'Sendable' protocol
 12 |
 13 |     private let workingQueue: DispatchQueue
    :
 66 |         Delay.nanosecond(Int(lowTime * 1_000_000_000))
 67 |         workingQueue.async { [weak self] in
 68 |             self?.doModulation()
    |             `- warning: capture of 'self' with non-sendable type 'PWMModulation?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 69 |         }
 70 |     }
[25/35] Compiling PeripheryKit I2C.swift
[26/35] Compiling PeripheryKit LED.swift
[27/35] Compiling PeripheryKit Int+Data.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin DownloadCPeriphery
Building for debugging...
[1/10] Write swift-version-24593BA9C3E375BF.txt
[3/20] Compiling PeripheryKit PWM.swift
[4/20] Compiling PeripheryKit Data+Int.swift
[5/21] Compiling PeripheryKit Int+Data.swift
[6/21] Compiling PeripheryKit LED.swift
[7/21] Compiling PeripheryKit I2C.swift
[8/21] Compiling PeripheryKit Delay.swift
[9/21] Compiling PeripheryKit GPIO.swift
[10/21] Emitting module PeripheryKit
[11/21] Compiling PeripheryKit Button.swift
[12/21] Compiling PeripheryKit Buzzer.swift
[13/21] Compiling PeripheryKit GPIOEventDispatcher.swift
/host/spi-builder-workspace/Sources/PeripheryKit/GPIOEventDispatcher.swift:38:19: error: cannot find type 'pollfd' in scope
 36 |         gpiosLock.lock()
 37 |
 38 |         var fds: [pollfd] = gpios.map { gpio in
    |                   `- error: cannot find type 'pollfd' in scope
 39 |             return pollfd(fd: gpio.fd,
 40 |                           events: gpio.pin.isSysfs ? Int16(POLLPRI | POLLERR) : Int16(POLLIN | POLLRDNORM),
/host/spi-builder-workspace/Sources/PeripheryKit/GPIOEventDispatcher.swift:43:19: error: cannot find 'poll' in scope
 41 |                           revents: 0)
 42 |         }
 43 |         let ret = poll(&fds, nfds_t(fds.count), pollTimeout)
    |                   `- error: cannot find 'poll' in scope
 44 |         if ret < 0 {
 45 |             isRunning = false
/host/spi-builder-workspace/Sources/PeripheryKit/GPIOEventDispatcher.swift:43:30: error: cannot find 'nfds_t' in scope
 41 |                           revents: 0)
 42 |         }
 43 |         let ret = poll(&fds, nfds_t(fds.count), pollTimeout)
    |                              `- error: cannot find 'nfds_t' in scope
 44 |         if ret < 0 {
 45 |             isRunning = false
BUILD FAILURE 6.1 android