The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PeripheryKit, reference main (a02676), with Swift 6.3 for Android on 14 Apr 2026 18:18:04 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/CmST0us/PeripheryKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
[1/1] Compiling plugin DownloadCPeriphery
Building for debugging...
[1/24] Compiling Cperiphery pwm.c
[2/24] Compiling Cperiphery mmio.c
[3/24] Write sources
[5/24] Compiling Cperiphery version.c
[6/24] Compiling Cperiphery i2c.c
[7/24] Compiling Cperiphery gpio_sysfs.c
[8/24] Compiling Cperiphery led.c
[9/24] Compiling Cperiphery gpio_cdev_v2.c
[10/24] Compiling Cperiphery serial.c
[11/24] Compiling Cperiphery shims.c
[12/24] Write swift-version--4F562202D5529B1.txt
[13/24] Compiling Cperiphery gpio.c
[14/24] Compiling Cperiphery spi.c
[15/24] Compiling Cperiphery gpio_cdev_v1.c
[17/34] Emitting module PeripheryKit
[18/35] Compiling PeripheryKit Int+Data.swift
[19/35] Compiling PeripheryKit Button.swift
[20/35] Compiling PeripheryKit Buzzer.swift
[21/35] Compiling PeripheryKit PWM.swift
[22/35] Compiling PeripheryKit LED.swift
[23/35] Compiling PeripheryKit I2C.swift
[24/35] Compiling PeripheryKit Delay.swift
[25/35] Compiling PeripheryKit GPIO.swift
[26/35] Compiling PeripheryKit Data+Int.swift
[27/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:39:20: error: cannot find 'pollfd' in scope
 37 |
 38 |         var fds: [pollfd] = gpios.map { gpio in
 39 |             return pollfd(fd: gpio.fd,
    |                    `- error: cannot find 'pollfd' in scope
 40 |                           events: gpio.pin.isSysfs ? Int16(POLLPRI | POLLERR) : Int16(POLLIN | POLLRDNORM),
 41 |                           revents: 0)
/host/spi-builder-workspace/Sources/PeripheryKit/GPIOEventDispatcher.swift:40:60: error: cannot find 'POLLPRI' in scope
 38 |         var fds: [pollfd] = gpios.map { gpio in
 39 |             return pollfd(fd: gpio.fd,
 40 |                           events: gpio.pin.isSysfs ? Int16(POLLPRI | POLLERR) : Int16(POLLIN | POLLRDNORM),
    |                                                            `- error: cannot find 'POLLPRI' in scope
 41 |                           revents: 0)
 42 |         }
/host/spi-builder-workspace/Sources/PeripheryKit/GPIOEventDispatcher.swift:40:70: error: cannot find 'POLLERR' in scope
 38 |         var fds: [pollfd] = gpios.map { gpio in
 39 |             return pollfd(fd: gpio.fd,
 40 |                           events: gpio.pin.isSysfs ? Int16(POLLPRI | POLLERR) : Int16(POLLIN | POLLRDNORM),
    |                                                                      `- error: cannot find 'POLLERR' in scope
 41 |                           revents: 0)
 42 |         }
/host/spi-builder-workspace/Sources/PeripheryKit/GPIOEventDispatcher.swift:40:87: error: cannot find 'POLLIN' in scope
 38 |         var fds: [pollfd] = gpios.map { gpio in
 39 |             return pollfd(fd: gpio.fd,
 40 |                           events: gpio.pin.isSysfs ? Int16(POLLPRI | POLLERR) : Int16(POLLIN | POLLRDNORM),
    |                                                                                       `- error: cannot find 'POLLIN' in scope
 41 |                           revents: 0)
 42 |         }
/host/spi-builder-workspace/Sources/PeripheryKit/GPIOEventDispatcher.swift:40:96: error: cannot find 'POLLRDNORM' in scope
 38 |         var fds: [pollfd] = gpios.map { gpio in
 39 |             return pollfd(fd: gpio.fd,
 40 |                           events: gpio.pin.isSysfs ? Int16(POLLPRI | POLLERR) : Int16(POLLIN | POLLRDNORM),
    |                                                                                                `- error: cannot find 'POLLRDNORM' in scope
 41 |                           revents: 0)
 42 |         }
/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:53:25: error: cannot find 'lseek' in scope
 51 |                 if eventFd.revents != 0 {
 52 |                     if eventGPIO.pin.isSysfs {
 53 |                         lseek(eventGPIO.fd, 0, SEEK_SET)
    |                         `- error: cannot find 'lseek' in scope
 54 |                     }
 55 |                     eventGPIO.gpioEventHandle?(eventGPIO)
BUILD FAILURE 6.3 android