The Swift Package Index logo.Swift Package Index

Build Information

Failed to build UDev, reference 1.0.0 (42fc28), with Swift 6.2 for Android on 18 Sep 2025 05:28:34 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/D4yvid/swift-udev.git
Reference: 1.0.0
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/D4yvid/swift-udev
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 42fc283 feat: initial commit
Cloned https://github.com/D4yvid/swift-udev.git
Revision (git rev-parse @):
42fc28365b1dfee7690c049b57274117bb0b84a6
SUCCESS checkout https://github.com/D4yvid/swift-udev.git at 1.0.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/D4yvid/swift-udev.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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
warning: you may be able to install libudev using your system-packager:
    apt-get install libudev-dev
warning: you may be able to install libudev using your system-packager:
    apt-get install libudev-dev
Building for debugging...
[0/5] Write sources
[1/5] Write swift-version-8C5A4AE7A8CE2BA.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/11] Emitting module UDev
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "bridge.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CUDev/bridge.h:6:10: error: 'libudev.h' file not found
 4 | #pragma once
 5 |
 6 | #include <libudev.h>
   |          `- error: 'libudev.h' file not found
 7 |
 8 | /// No need for C wrappers
/host/spi-builder-workspace/Sources/UDev/Device.swift:1:8: error: could not build C module 'CUDev'
  1 | import CUDev
    |        `- error: could not build C module 'CUDev'
  2 | import Foundation
  3 |
[4/11] Compiling UDev Device.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "bridge.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CUDev/bridge.h:6:10: error: 'libudev.h' file not found
 4 | #pragma once
 5 |
 6 | #include <libudev.h>
   |          `- error: 'libudev.h' file not found
 7 |
 8 | /// No need for C wrappers
/host/spi-builder-workspace/Sources/UDev/Device.swift:1:8: error: could not build C module 'CUDev'
  1 | import CUDev
    |        `- error: could not build C module 'CUDev'
  2 | import Foundation
  3 |
[5/11] Compiling UDev DeviceError.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "bridge.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CUDev/bridge.h:6:10: error: 'libudev.h' file not found
 4 | #pragma once
 5 |
 6 | #include <libudev.h>
   |          `- error: 'libudev.h' file not found
 7 |
 8 | /// No need for C wrappers
/host/spi-builder-workspace/Sources/UDev/Device.swift:1:8: error: could not build C module 'CUDev'
  1 | import CUDev
    |        `- error: could not build C module 'CUDev'
  2 | import Foundation
  3 |
[6/11] Compiling UDev DeviceMonitor.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "bridge.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CUDev/bridge.h:6:10: error: 'libudev.h' file not found
 4 | #pragma once
 5 |
 6 | #include <libudev.h>
   |          `- error: 'libudev.h' file not found
 7 |
 8 | /// No need for C wrappers
/host/spi-builder-workspace/Sources/UDev/Device.swift:1:8: error: could not build C module 'CUDev'
  1 | import CUDev
    |        `- error: could not build C module 'CUDev'
  2 | import Foundation
  3 |
[7/11] Compiling UDev Devices.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "bridge.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CUDev/bridge.h:6:10: error: 'libudev.h' file not found
 4 | #pragma once
 5 |
 6 | #include <libudev.h>
   |          `- error: 'libudev.h' file not found
 7 |
 8 | /// No need for C wrappers
/host/spi-builder-workspace/Sources/UDev/Device.swift:1:8: error: could not build C module 'CUDev'
  1 | import CUDev
    |        `- error: could not build C module 'CUDev'
  2 | import Foundation
  3 |
[8/11] Compiling UDev DeviceEnumerator.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "bridge.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CUDev/bridge.h:6:10: error: 'libudev.h' file not found
 4 | #pragma once
 5 |
 6 | #include <libudev.h>
   |          `- error: 'libudev.h' file not found
 7 |
 8 | /// No need for C wrappers
/host/spi-builder-workspace/Sources/UDev/Device.swift:1:8: error: could not build C module 'CUDev'
  1 | import CUDev
    |        `- error: could not build C module 'CUDev'
  2 | import Foundation
  3 |
BUILD FAILURE 6.2 android