Build Information
Successful build of swiftbar with Swift 6.0 for Linux.
Swift 6 data race errors: 4
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/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/theBreadCompany/swiftbar.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/theBreadCompany/swiftbar
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2c6f628 make it compile on Linux as well
Cloned https://github.com/theBreadCompany/swiftbar.git
Revision (git rev-parse @):
2c6f628c95557e633bc260324e017d848fdb6d8c
SUCCESS checkout https://github.com/theBreadCompany/swiftbar.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/theBreadCompany/swiftbar.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/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/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/11] Compiling swiftbar Progressbar.swift
/host/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:64:31: warning: static property 'simpleBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
35 | which is basically a function receiving several parameters and returning the 'rendered' bar
36 | */
37 | public struct Style: Codable {
| `- note: consider making struct 'Style' conform to the 'Sendable' protocol
38 |
39 | private static var implementations = Dictionary<String, Creator>()
:
62 |
63 | public typealias Creator = (Int, Configuration) -> String
64 | public static let simpleBar = Style("simpleBar", createdWith: { progress, config in
| |- warning: static property 'simpleBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'simpleBar' 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
65 | let counterContent = " [\(progress)/\(config.total)]"
66 | let barWidth = config.maxWidth - (counterContent.count)
/host/spi-builder-workspace/Sources/swiftbar/Progressbar.swift:104: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
102 | private func printProgress() {
103 | print("\u{1B}[1A\u{1B}[K" + self.currentState())
104 | fflush(stdout)
| `- 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
105 | }
106 | }
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[5/11] Emitting module swiftbar
/host/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:39:32: warning: static property 'implementations' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 | public struct Style: Codable {
38 |
39 | private static var implementations = Dictionary<String, Creator>()
| |- warning: static property 'implementations' 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 'implementations' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'implementations' 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
40 |
41 | public init(_ name: String, createdWith creator: @escaping Creator) {
/host/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:64:31: warning: static property 'simpleBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
35 | which is basically a function receiving several parameters and returning the 'rendered' bar
36 | */
37 | public struct Style: Codable {
| `- note: consider making struct 'Style' conform to the 'Sendable' protocol
38 |
39 | private static var implementations = Dictionary<String, Creator>()
:
62 |
63 | public typealias Creator = (Int, Configuration) -> String
64 | public static let simpleBar = Style("simpleBar", createdWith: { progress, config in
| |- warning: static property 'simpleBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'simpleBar' 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
65 | let counterContent = " [\(progress)/\(config.total)]"
66 | let barWidth = config.maxWidth - (counterContent.count)
/host/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:76:31: warning: static property 'preciseBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
35 | which is basically a function receiving several parameters and returning the 'rendered' bar
36 | */
37 | public struct Style: Codable {
| `- note: consider making struct 'Style' conform to the 'Sendable' protocol
38 |
39 | private static var implementations = Dictionary<String, Creator>()
:
74 | return barContent
75 | })
76 | public static let preciseBar = Style("preciseBar", createdWith: { progress, config in
| |- warning: static property 'preciseBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'preciseBar' 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
77 | let counterContent = " [\(progress)/\(config.total)]"
78 | let percentCounter = "[\(Int(Float(progress) / Float(config.total) * 100))%] "
[6/11] Compiling swiftbar ProgressingCollection.swift
[7/11] Compiling swiftbar ProgressbarConfiguration.swift
/host/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:39:32: warning: static property 'implementations' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 | public struct Style: Codable {
38 |
39 | private static var implementations = Dictionary<String, Creator>()
| |- warning: static property 'implementations' 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 'implementations' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'implementations' 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
40 |
41 | public init(_ name: String, createdWith creator: @escaping Creator) {
/host/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:64:31: warning: static property 'simpleBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
35 | which is basically a function receiving several parameters and returning the 'rendered' bar
36 | */
37 | public struct Style: Codable {
| `- note: consider making struct 'Style' conform to the 'Sendable' protocol
38 |
39 | private static var implementations = Dictionary<String, Creator>()
:
62 |
63 | public typealias Creator = (Int, Configuration) -> String
64 | public static let simpleBar = Style("simpleBar", createdWith: { progress, config in
| |- warning: static property 'simpleBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'simpleBar' 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
65 | let counterContent = " [\(progress)/\(config.total)]"
66 | let barWidth = config.maxWidth - (counterContent.count)
/host/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:76:31: warning: static property 'preciseBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
35 | which is basically a function receiving several parameters and returning the 'rendered' bar
36 | */
37 | public struct Style: Codable {
| `- note: consider making struct 'Style' conform to the 'Sendable' protocol
38 |
39 | private static var implementations = Dictionary<String, Creator>()
:
74 | return barContent
75 | })
76 | public static let preciseBar = Style("preciseBar", createdWith: { progress, config in
| |- warning: static property 'preciseBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'preciseBar' 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
77 | let counterContent = " [\(progress)/\(config.total)]"
78 | let percentCounter = "[\(Int(Float(progress) / Float(config.total) * 100))%] "
[8/12] Wrapping AST for swiftbar for debugging
[10/14] Emitting module Example
/host/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:76:31: warning: static property 'preciseBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
35 | which is basically a function receiving several parameters and returning the 'rendered' bar
36 | */
37 | public struct Style: Codable {
| `- note: consider making struct 'Style' conform to the 'Sendable' protocol
38 |
39 | private static var implementations = Dictionary<String, Creator>()
:
74 | return barContent
75 | })
76 | public static let preciseBar = Style("preciseBar", createdWith: { progress, config in
| |- warning: static property 'preciseBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'preciseBar' 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
77 | let counterContent = " [\(progress)/\(config.total)]"
78 | let percentCounter = "[\(Int(Float(progress) / Float(config.total) * 100))%] "
[11/14] Compiling Example main.swift
/host/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:76:31: warning: static property 'preciseBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
35 | which is basically a function receiving several parameters and returning the 'rendered' bar
36 | */
37 | public struct Style: Codable {
| `- note: consider making struct 'Style' conform to the 'Sendable' protocol
38 |
39 | private static var implementations = Dictionary<String, Creator>()
:
74 | return barContent
75 | })
76 | public static let preciseBar = Style("preciseBar", createdWith: { progress, config in
| |- warning: static property 'preciseBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'preciseBar' 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
77 | let counterContent = " [\(progress)/\(config.total)]"
78 | let percentCounter = "[\(Int(Float(progress) / Float(config.total) * 100))%] "
[12/15] Wrapping AST for Example for debugging
[13/15] Write Objects.LinkFileList
[14/15] Linking Example
Build complete! (11.48s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "swiftbar",
"name" : "swiftbar",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "swiftbar",
"targets" : [
"swiftbar"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Example",
"targets" : [
"Example"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "swiftbarTests",
"module_type" : "SwiftTarget",
"name" : "swiftbarTests",
"path" : "Tests/swiftbarTests",
"sources" : [
"swiftbarTests.swift"
],
"target_dependencies" : [
"swiftbar"
],
"type" : "test"
},
{
"c99name" : "swiftbar",
"module_type" : "SwiftTarget",
"name" : "swiftbar",
"path" : "Sources/swiftbar",
"product_memberships" : [
"swiftbar",
"Example"
],
"sources" : [
"Progressbar.swift",
"ProgressbarConfiguration.swift",
"ProgressingCollection.swift"
],
"type" : "library"
},
{
"c99name" : "Example",
"module_type" : "SwiftTarget",
"name" : "Example",
"path" : "Sources/Example",
"product_memberships" : [
"Example"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"swiftbar"
],
"type" : "executable"
}
],
"tools_version" : "5.0"
}
Done.