Build Information
Successful build of HeliumLogger with Swift 6.0 for Linux.
Swift 6 data race errors: 5
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/Kitura/HeliumLogger.git
Reference: master
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/Kitura/HeliumLogger
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at fc2a715 CI update and remove swift 4.x support (#82)
Cloned https://github.com/Kitura/HeliumLogger.git
Revision (git rev-parse @):
fc2a71597ae974da5282d751bcc11965964bccce
SUCCESS checkout https://github.com/Kitura/HeliumLogger.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/Kitura/HeliumLogger.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
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/apple/swift-log.git
[1/771] Fetching loggerapi
[772/4132] Fetching loggerapi, swift-log
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.31s)
Fetched https://github.com/apple/swift-log.git from cache (0.31s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 2.0.0 (0.42s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.4 (0.44s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.4
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 2.0.0
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/9] Emitting module Logging
[6/9] Compiling Logging Locks.swift
[7/9] Compiling Logging MetadataProvider.swift
[8/9] Compiling Logging LogHandler.swift
[9/9] Compiling Logging Logging.swift
[11/12] Emitting module LoggerAPI
[12/12] Compiling LoggerAPI Logger.swift
[14/17] Compiling HeliumLogger HeliumStreamLogger.swift
[15/17] Compiling HeliumLogger HeliumLogHandler.swift
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogHandler.swift:60:24: warning: static property 'defaultLogger' is not concurrency-safe because non-'Sendable' type 'HeliumLogger' may have shared mutable state; this is an error in the Swift 6 language mode
58 | }
59 |
60 | private static let defaultLogger = HeliumLogger()
| |- warning: static property 'defaultLogger' is not concurrency-safe because non-'Sendable' type 'HeliumLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultLogger' 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
61 |
62 | /// Creates a `HeliumLogHandler` instance for use with the SwiftLog logging system.
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:69:14: note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
67 |
68 | /// A lightweight implementation of the `LoggerAPI` protocol.
69 | public class HeliumLogger {
| `- note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
70 |
71 | /// A Boolean value that indicates whether the logger output should be colorized.
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogHandler.swift:79:17: warning: stored property 'logger' of 'Sendable'-conforming struct 'HeliumLogHandler' has non-sendable type 'HeliumLogger'; this is an error in the Swift 6 language mode
77 | /// A lightweight implementation of SwiftLog's `LogHandler` protocol.
78 | public struct HeliumLogHandler: LogHandler {
79 | private let logger: HeliumLogger
| `- warning: stored property 'logger' of 'Sendable'-conforming struct 'HeliumLogHandler' has non-sendable type 'HeliumLogger'; this is an error in the Swift 6 language mode
80 |
81 | private let label: String
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:69:14: note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
67 |
68 | /// A lightweight implementation of the `LoggerAPI` protocol.
69 | public class HeliumLogger {
| `- note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
70 |
71 | /// A Boolean value that indicates whether the logger output should be colorized.
[16/17] Compiling HeliumLogger HeliumLogger.swift
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:50:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
34 | /// The set of substitution "variables" that can be used when formatting the
35 | /// messages to be logged.
36 | public enum HeliumLoggerFormatValues: String {
| `- note: consider making enum 'HeliumLoggerFormatValues' conform to the 'Sendable' protocol
37 | /// The message being logged.
38 | case message = "(%msg)"
:
48 | case date = "(%date)"
49 |
50 | static let all: [HeliumLoggerFormatValues] = [
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
51 | .message, .function, .line, .file, .logType, .date
52 | ]
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:63:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerSwiftLogFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
55 | /// The additional set of substitution "variables" that can be used when formatting the
56 | /// messages to be logged with SwiftLog.
57 | public enum HeliumLoggerSwiftLogFormatValues: String {
| `- note: consider making enum 'HeliumLoggerSwiftLogFormatValues' conform to the 'Sendable' protocol
58 | /// The logging metadata used by SwiftLog.
59 | case metadata = "(%metadata)"
:
61 | case label = "(%label)"
62 |
63 | static let all: [HeliumLoggerSwiftLogFormatValues] = [
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerSwiftLogFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
64 | .metadata, .label
65 | ]
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:151:24: warning: static property 'tokenRegex' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
149 | #endif
150 |
151 | private static var tokenRegex: NSRegularExpression? = {
| |- warning: static property 'tokenRegex' 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 'tokenRegex' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokenRegex' 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
152 | do {
153 | return try NSRegularExpression(pattern: "\\(%\\w+\\)", options: [])
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:245:16: 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
243 | public class func use(_ type: LoggerMessageType = .verbose) {
244 | Log.logger = HeliumLogger(type)
245 | setbuf(stdout, nil)
| `- 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
246 | }
247 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[17/17] Emitting module HeliumLogger
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogHandler.swift:60:24: warning: static property 'defaultLogger' is not concurrency-safe because non-'Sendable' type 'HeliumLogger' may have shared mutable state; this is an error in the Swift 6 language mode
58 | }
59 |
60 | private static let defaultLogger = HeliumLogger()
| |- warning: static property 'defaultLogger' is not concurrency-safe because non-'Sendable' type 'HeliumLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultLogger' 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
61 |
62 | /// Creates a `HeliumLogHandler` instance for use with the SwiftLog logging system.
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:69:14: note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
67 |
68 | /// A lightweight implementation of the `LoggerAPI` protocol.
69 | public class HeliumLogger {
| `- note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
70 |
71 | /// A Boolean value that indicates whether the logger output should be colorized.
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogHandler.swift:79:17: warning: stored property 'logger' of 'Sendable'-conforming struct 'HeliumLogHandler' has non-sendable type 'HeliumLogger'; this is an error in the Swift 6 language mode
77 | /// A lightweight implementation of SwiftLog's `LogHandler` protocol.
78 | public struct HeliumLogHandler: LogHandler {
79 | private let logger: HeliumLogger
| `- warning: stored property 'logger' of 'Sendable'-conforming struct 'HeliumLogHandler' has non-sendable type 'HeliumLogger'; this is an error in the Swift 6 language mode
80 |
81 | private let label: String
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:69:14: note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
67 |
68 | /// A lightweight implementation of the `LoggerAPI` protocol.
69 | public class HeliumLogger {
| `- note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
70 |
71 | /// A Boolean value that indicates whether the logger output should be colorized.
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:50:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
34 | /// The set of substitution "variables" that can be used when formatting the
35 | /// messages to be logged.
36 | public enum HeliumLoggerFormatValues: String {
| `- note: consider making enum 'HeliumLoggerFormatValues' conform to the 'Sendable' protocol
37 | /// The message being logged.
38 | case message = "(%msg)"
:
48 | case date = "(%date)"
49 |
50 | static let all: [HeliumLoggerFormatValues] = [
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
51 | .message, .function, .line, .file, .logType, .date
52 | ]
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:63:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerSwiftLogFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
55 | /// The additional set of substitution "variables" that can be used when formatting the
56 | /// messages to be logged with SwiftLog.
57 | public enum HeliumLoggerSwiftLogFormatValues: String {
| `- note: consider making enum 'HeliumLoggerSwiftLogFormatValues' conform to the 'Sendable' protocol
58 | /// The logging metadata used by SwiftLog.
59 | case metadata = "(%metadata)"
:
61 | case label = "(%label)"
62 |
63 | static let all: [HeliumLoggerSwiftLogFormatValues] = [
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerSwiftLogFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
64 | .metadata, .label
65 | ]
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:151:24: warning: static property 'tokenRegex' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
149 | #endif
150 |
151 | private static var tokenRegex: NSRegularExpression? = {
| |- warning: static property 'tokenRegex' 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 'tokenRegex' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'tokenRegex' 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
152 | do {
153 | return try NSRegularExpression(pattern: "\\(%\\w+\\)", options: [])
Build complete! (11.36s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "loggerapi",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/LoggerAPI.git"
}
],
"manifest_display_name" : "HeliumLogger",
"name" : "HeliumLogger",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "HeliumLogger",
"targets" : [
"HeliumLogger"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HeliumLoggerTests",
"module_type" : "SwiftTarget",
"name" : "HeliumLoggerTests",
"path" : "Tests/HeliumLoggerTests",
"sources" : [
"TestLogger.swift",
"TestStreamLogger.swift",
"TestSwiftLog.swift",
"VerifyLinuxTestCount.swift"
],
"target_dependencies" : [
"HeliumLogger"
],
"type" : "test"
},
{
"c99name" : "HeliumLogger",
"module_type" : "SwiftTarget",
"name" : "HeliumLogger",
"path" : "Sources/HeliumLogger",
"product_dependencies" : [
"Logging",
"LoggerAPI"
],
"product_memberships" : [
"HeliumLogger"
],
"sources" : [
"HeliumLogHandler.swift",
"HeliumLogger.swift",
"HeliumStreamLogger.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.