The Swift Package Index logo.Swift Package Index

Build Information

Failed to build FlightLog with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/453jerry/FlightLog.git
Reference: 1.0.0
Cloned https://github.com/453jerry/FlightLog.git into spi-builder-workspace
SUCCESS checkout https://github.com/453jerry/FlightLog.git at 1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/6] Compiling FlightLog LogReorder.swift
[2/6] Emitting module FlightLog
[3/6] Compiling FlightLog Log.swift
[4/6] Compiling FlightLog FileHandleFactory.swift
[5/6] Compiling FlightLog FileManagerProtocol.swift
[6/6] Compiling FlightLog Utility.swift
/host/spi-builder-workspace/Sources/FlightLog/Utility.swift:26:21: error: cannot find 'CTL_KERN' in scope
        var mib = [ CTL_KERN, KERN_PROC, KERN_PROC_PID, pid ]
                    ^~~~~~~~
/host/spi-builder-workspace/Sources/FlightLog/Utility.swift:26:31: error: cannot find 'KERN_PROC' in scope
        var mib = [ CTL_KERN, KERN_PROC, KERN_PROC_PID, pid ]
                              ^~~~~~~~~
/host/spi-builder-workspace/Sources/FlightLog/Utility.swift:26:42: error: cannot find 'KERN_PROC_PID' in scope
        var mib = [ CTL_KERN, KERN_PROC, KERN_PROC_PID, pid ]
                                         ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/FlightLog/Utility.swift:27:20: error: cannot find 'kinfo_proc' in scope
        var proc = kinfo_proc.init()
                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FlightLog/Utility.swift:28:33: error: cannot find type 'kinfo_proc' in scope
        var size = MemoryLayout<kinfo_proc>.size
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FlightLog/Utility.swift:29:9: error: cannot find 'sysctl' in scope
        sysctl(&mib, 4, &proc, &size, nil, 0)
        ^~~~~~
/host/spi-builder-workspace/Sources/FlightLog/Utility.swift:29:39: error: 'nil' requires a contextual type
        sysctl(&mib, 4, &proc, &size, nil, 0)
                                      ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2