This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build FlightLog with Swift 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/453jerry/FlightLog.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling FlightLog LogReorder.swift
/host/spi-builder-workspace/Sources/FlightLog/LogReorder.swift:11:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LogRecorder' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public class LogRecorder {
   |              `- note: class 'LogRecorder' does not conform to the 'Sendable' protocol
11 |     public static let shared = LogRecorder()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LogRecorder' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     public let rootPath: String
/host/spi-builder-workspace/Sources/FlightLog/LogReorder.swift:69:17: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
67 |         }
68 |
69 |         setvbuf(stdout, nil, _IONBF, 0)
   |                 `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
70 |         setvbuf(stderr, nil, _IONBF, 0)
71 |         dup2(logFileHandle.fileDescriptor, STDOUT_FILENO)
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
/host/spi-builder-workspace/Sources/FlightLog/LogReorder.swift:70:17: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
68 |
69 |         setvbuf(stdout, nil, _IONBF, 0)
70 |         setvbuf(stderr, nil, _IONBF, 0)
   |                 `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
71 |         dup2(logFileHandle.fileDescriptor, STDOUT_FILENO)
72 |         dup2(logFileHandle.fileDescriptor, STDERR_FILENO)
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
[4/8] Compiling FlightLog FileHandleFactory.swift
[5/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(
[6/8] Emitting module FlightLog
/host/spi-builder-workspace/Sources/FlightLog/Log.swift:42:16: warning: static property 'ignorLevelValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
40 |     }
41 |
42 |     static var ignorLevelValue: UInt8 = 0x0
   |                |- warning: static property 'ignorLevelValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'ignorLevelValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'ignorLevelValue' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 |     public static func setIngore(levels: [Log]) {
/host/spi-builder-workspace/Sources/FlightLog/Log.swift:51:23: warning: static property 'outputMethod' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
49 |     }
50 |
51 |     public static var outputMethod: OutputMethod = .print
   |                       |- warning: static property 'outputMethod' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'outputMethod' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'outputMethod' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 |     /// 记录日志
/host/spi-builder-workspace/Sources/FlightLog/LogReorder.swift:11:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LogRecorder' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public class LogRecorder {
   |              `- note: class 'LogRecorder' does not conform to the 'Sendable' protocol
11 |     public static let shared = LogRecorder()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LogRecorder' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     public let rootPath: String
[7/8] Compiling FlightLog Log.swift
/host/spi-builder-workspace/Sources/FlightLog/Log.swift:42:16: warning: static property 'ignorLevelValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
40 |     }
41 |
42 |     static var ignorLevelValue: UInt8 = 0x0
   |                |- warning: static property 'ignorLevelValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'ignorLevelValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'ignorLevelValue' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 |     public static func setIngore(levels: [Log]) {
/host/spi-builder-workspace/Sources/FlightLog/Log.swift:51:23: warning: static property 'outputMethod' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
49 |     }
50 |
51 |     public static var outputMethod: OutputMethod = .print
   |                       |- warning: static property 'outputMethod' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'outputMethod' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'outputMethod' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 |     /// 记录日志
[8/8] Compiling FlightLog FileManagerProtocol.swift
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.