Build Information
Failed to build FlightLog with Swift 5.8 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.28.9
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/453jerry/FlightLog.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/453jerry/FlightLog
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 5f89e3b test(logrecordertest): fix test case to support old version of watchOS and tvOS
Cloned https://github.com/453jerry/FlightLog.git
Revision (git rev-parse @):
5f89e3b4efa7a6f55de5c80d34cc86063bdeeafc
SUCCESS checkout https://github.com/453jerry/FlightLog.git at 1.0.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
Building package at path: $workDir
https://github.com/453jerry/FlightLog.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Building for debugging...
[1/6] Compiling FlightLog Log.swift
[2/6] Compiling FlightLog LogReorder.swift
[3/6] Compiling FlightLog FileHandleFactory.swift
[4/6] Emitting module FlightLog
[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)
^
[0/1] Planning build
Building for debugging...
[1/2] Emitting module FlightLog
[2/2] 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)
^
BUILD FAILURE 5.8 linux