Build Information
Failed to build PeripheryKit, reference main (a02676
), with Swift 6.2 (beta) for Android on 21 Jun 2025 18:15:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 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: android
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-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-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 gpio_cdev_v2.c
[5/24] Write swift-version-8C5A4AE7A8CE2BA.txt
[6/24] Compiling Cperiphery i2c.c
[7/24] Compiling Cperiphery gpio.c
[8/24] Compiling Cperiphery gpio_sysfs.c
[9/24] Compiling Cperiphery gpio_cdev_v1.c
[10/24] Compiling Cperiphery shims.c
[11/24] Compiling Cperiphery mmio.c
[11/24] Compiling Cperiphery serial.c
[13/24] Compiling Cperiphery spi.c
[14/24] Compiling Cperiphery pwm.c
[15/24] Compiling Cperiphery led.c
[17/34] Compiling PeripheryKit Delay.swift
[18/34] Compiling PeripheryKit GPIO.swift
[19/34] 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
[20/35] Emitting module PeripheryKit
[21/35] Compiling PeripheryKit Button.swift
[22/35] Compiling PeripheryKit Buzzer.swift
[23/35] Compiling PeripheryKit Data+Int.swift
[24/35] Compiling PeripheryKit LED.swift
[25/35] Compiling PeripheryKit PWM.swift
[26/35] Compiling PeripheryKit I2C.swift
[27/35] Compiling PeripheryKit Int+Data.swift
BUILD FAILURE 6.2 android