Build Information
Failed to build FlightLog with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/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/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.10
Building package at path: $workDir
https://github.com/453jerry/FlightLog.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling FlightLog FileManagerProtocol.swift
[4/8] 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)
^
[5/8] Compiling FlightLog FileHandleFactory.swift
[6/8] Compiling FlightLog LogReorder.swift
[7/8] Emitting module FlightLog
[8/8] Compiling FlightLog Log.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/3] 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)
^
[3/3] Emitting module FlightLog
error: fatalError
BUILD FAILURE 5.10 linux