The Swift Package Index logo.Swift Package Index

Build Information

Failed to build FlightLog, reference main (5f89e3), with Swift 6.3 for Android on 13 Apr 2026 11:50:36 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/453jerry/FlightLog.git
Reference: main
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
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/453jerry/FlightLog.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--4F562202D5529B1.txt
[3/8] Emitting module FlightLog
[4/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
[5/8] Compiling FlightLog FileManagerProtocol.swift
[6/8] Compiling FlightLog FileHandleFactory.swift
[7/8] Compiling FlightLog Log.swift
[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.3 android