The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LSM303 with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/flx/lsm303.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/flx/lsm303
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 11ae6a4 Working Version 1.0
Cloned https://github.com/flx/lsm303.git
Revision (git rev-parse @):
11ae6a4ef12219b4710b491ac8d55dfb32026bc5
SUCCESS checkout https://github.com/flx/lsm303.git at 1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/flx/lsm303.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/uraimo/SwiftyGPIO.git
[1/2364] Fetching swiftygpio
Fetched https://github.com/uraimo/SwiftyGPIO.git from cache (0.28s)
Computing version for https://github.com/uraimo/SwiftyGPIO.git
Computed https://github.com/uraimo/SwiftyGPIO.git at 1.1.0 (0.43s)
Creating working copy for https://github.com/uraimo/SwiftyGPIO.git
Working copy of https://github.com/uraimo/SwiftyGPIO.git resolved at 1.1.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/13] Compiling SwiftyGPIO Presets.swift
[5/14] Emitting module SwiftyGPIO
[6/14] Compiling SwiftyGPIO 1Wire.swift
[7/14] Compiling SwiftyGPIO ADC.swift
[8/14] Compiling SwiftyGPIO PWM.swift
[9/14] Compiling SwiftyGPIO I2C.swift
/host/spi-builder-workspace/.build/checkouts/SwiftyGPIO/Sources/Mailbox.swift:184:47: error: cannot find 'gnu_dev_makedev' in scope
        if mknod(filename, S_IFCHR|0600, UInt(gnu_dev_makedev(100, 0))) < 0 {
                                              ^~~~~~~~~~~~~~~
[10/14] Compiling SwiftyGPIO Mailbox.swift
/host/spi-builder-workspace/.build/checkouts/SwiftyGPIO/Sources/Mailbox.swift:184:47: error: cannot find 'gnu_dev_makedev' in scope
        if mknod(filename, S_IFCHR|0600, UInt(gnu_dev_makedev(100, 0))) < 0 {
                                              ^~~~~~~~~~~~~~~
[11/14] Compiling SwiftyGPIO SunXi.swift
[12/14] Compiling SwiftyGPIO SPI.swift
[13/14] Compiling SwiftyGPIO SwiftyGPIO.swift
[14/14] Compiling SwiftyGPIO UART.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Compiling SwiftyGPIO Mailbox.swift
/host/spi-builder-workspace/.build/checkouts/SwiftyGPIO/Sources/Mailbox.swift:184:47: error: cannot find 'gnu_dev_makedev' in scope
        if mknod(filename, S_IFCHR|0600, UInt(gnu_dev_makedev(100, 0))) < 0 {
                                              ^~~~~~~~~~~~~~~
[3/4] Compiling SwiftyGPIO I2C.swift
[4/4] Emitting module SwiftyGPIO
[5/11] Compiling SwiftyGPIO UART.swift
[6/11] Compiling SwiftyGPIO SPI.swift
[7/11] Compiling SwiftyGPIO Presets.swift
[8/11] Compiling SwiftyGPIO SwiftyGPIO.swift
[9/11] Compiling SwiftyGPIO 1Wire.swift
[10/11] Compiling SwiftyGPIO PWM.swift
[11/11] Compiling SwiftyGPIO ADC.swift
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2