The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build FlightLog, reference 1.0.0 (5f89e3), with Swift 6.2 (beta) for Android on 19 Jun 2025 23:06:12 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" 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.64.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:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/453jerry/FlightLog.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" 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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/8] Emitting module FlightLog
[4/8] Compiling FlightLog Log.swift
[5/8] Compiling FlightLog FileManagerProtocol.swift
[6/8] Compiling FlightLog FileHandleFactory.swift
[7/8] Compiling FlightLog LogReorder.swift
/host/spi-builder-workspace/Sources/FlightLog/LogReorder.swift:71:9: error: cannot find 'dup2' in scope
69 |         setvbuf(stdout, nil, _IONBF, 0)
70 |         setvbuf(stderr, nil, _IONBF, 0)
71 |         dup2(logFileHandle.fileDescriptor, STDOUT_FILENO)
   |         `- error: cannot find 'dup2' in scope
72 |         dup2(logFileHandle.fileDescriptor, STDERR_FILENO)
73 |
/host/spi-builder-workspace/Sources/FlightLog/LogReorder.swift:71:44: error: cannot find 'STDOUT_FILENO' in scope
69 |         setvbuf(stdout, nil, _IONBF, 0)
70 |         setvbuf(stderr, nil, _IONBF, 0)
71 |         dup2(logFileHandle.fileDescriptor, STDOUT_FILENO)
   |                                            `- error: cannot find 'STDOUT_FILENO' in scope
72 |         dup2(logFileHandle.fileDescriptor, STDERR_FILENO)
73 |
/host/spi-builder-workspace/Sources/FlightLog/LogReorder.swift:72:9: error: cannot find 'dup2' in scope
70 |         setvbuf(stderr, nil, _IONBF, 0)
71 |         dup2(logFileHandle.fileDescriptor, STDOUT_FILENO)
72 |         dup2(logFileHandle.fileDescriptor, STDERR_FILENO)
   |         `- error: cannot find 'dup2' in scope
73 |
74 |         self.logFilePath = filePath
/host/spi-builder-workspace/Sources/FlightLog/LogReorder.swift:72:44: error: cannot find 'STDERR_FILENO' in scope
70 |         setvbuf(stderr, nil, _IONBF, 0)
71 |         dup2(logFileHandle.fileDescriptor, STDOUT_FILENO)
72 |         dup2(logFileHandle.fileDescriptor, STDERR_FILENO)
   |                                            `- error: cannot find 'STDERR_FILENO' in scope
73 |
74 |         self.logFilePath = filePath
[8/8] Compiling FlightLog Utility.swift
/host/spi-builder-workspace/Sources/FlightLog/Utility.swift:26:21: error: cannot find 'CTL_KERN' in scope
24 |     public static func getProcessStartDate() -> Date {
25 |         let pid = ProcessInfo.processInfo.processIdentifier
26 |         var mib = [ CTL_KERN, KERN_PROC, KERN_PROC_PID, pid ]
   |                     `- error: cannot find 'CTL_KERN' in scope
27 |         var proc = kinfo_proc.init()
28 |         var size = MemoryLayout<kinfo_proc>.size
/host/spi-builder-workspace/Sources/FlightLog/Utility.swift:26:31: error: cannot find 'KERN_PROC' in scope
24 |     public static func getProcessStartDate() -> Date {
25 |         let pid = ProcessInfo.processInfo.processIdentifier
26 |         var mib = [ CTL_KERN, KERN_PROC, KERN_PROC_PID, pid ]
   |                               `- error: cannot find 'KERN_PROC' in scope
27 |         var proc = kinfo_proc.init()
28 |         var size = MemoryLayout<kinfo_proc>.size
/host/spi-builder-workspace/Sources/FlightLog/Utility.swift:26:42: error: cannot find 'KERN_PROC_PID' in scope
24 |     public static func getProcessStartDate() -> Date {
25 |         let pid = ProcessInfo.processInfo.processIdentifier
26 |         var mib = [ CTL_KERN, KERN_PROC, KERN_PROC_PID, pid ]
   |                                          `- error: cannot find 'KERN_PROC_PID' in scope
27 |         var proc = kinfo_proc.init()
28 |         var size = MemoryLayout<kinfo_proc>.size
/host/spi-builder-workspace/Sources/FlightLog/Utility.swift:27:20: error: cannot find 'kinfo_proc' in scope
25 |         let pid = ProcessInfo.processInfo.processIdentifier
26 |         var mib = [ CTL_KERN, KERN_PROC, KERN_PROC_PID, pid ]
27 |         var proc = kinfo_proc.init()
   |                    `- error: cannot find 'kinfo_proc' in scope
28 |         var size = MemoryLayout<kinfo_proc>.size
29 |         sysctl(&mib, 4, &proc, &size, nil, 0)
/host/spi-builder-workspace/Sources/FlightLog/Utility.swift:28:33: error: cannot find type 'kinfo_proc' in scope
26 |         var mib = [ CTL_KERN, KERN_PROC, KERN_PROC_PID, pid ]
27 |         var proc = kinfo_proc.init()
28 |         var size = MemoryLayout<kinfo_proc>.size
   |                                 `- error: cannot find type 'kinfo_proc' in scope
29 |         sysctl(&mib, 4, &proc, &size, nil, 0)
30 |
/host/spi-builder-workspace/Sources/FlightLog/Utility.swift:29:9: error: cannot find 'sysctl' in scope
27 |         var proc = kinfo_proc.init()
28 |         var size = MemoryLayout<kinfo_proc>.size
29 |         sysctl(&mib, 4, &proc, &size, nil, 0)
   |         `- error: cannot find 'sysctl' in scope
30 |
31 |         return Date.init(
/host/spi-builder-workspace/Sources/FlightLog/Utility.swift:29:39: error: 'nil' requires a contextual type
27 |         var proc = kinfo_proc.init()
28 |         var size = MemoryLayout<kinfo_proc>.size
29 |         sysctl(&mib, 4, &proc, &size, nil, 0)
   |                                       `- error: 'nil' requires a contextual type
30 |
31 |         return Date.init(
BUILD FAILURE 6.2 android