Build Information
Successful build of CommandLineKit, reference v4.1.2 (b83f09
), with Swift 6.0 for Linux on 15 Sep 2024 03:31:51 UTC.
Swift 6 data race errors: 2
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" 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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/basvankuijck/CommandLine.git
Reference: v4.1.2
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/basvankuijck/CommandLine
* tag v4.1.2 -> FETCH_HEAD
HEAD is now at b83f09a Fixed sources
Cloned https://github.com/basvankuijck/CommandLine.git
Revision (git rev-parse @):
b83f09a25224c29b820f9e8d1311569736021820
SUCCESS checkout https://github.com/basvankuijck/CommandLine.git at v4.1.2
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/basvankuijck/CommandLine.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" 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
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling CommandLineKit StringExtensions.swift
[4/6] Compiling CommandLineKit Option.swift
[5/6] Compiling CommandLineKit CommandLine.swift
/host/spi-builder-workspace/CommandLineKit/CommandLine.swift:158:10: warning: associated value 'invalidValueForOption' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
156 |
157 | /** Thrown if the value for an Option is invalid (e.g. a string is passed to an IntOption) */
158 | case invalidValueForOption(Option, [String])
| `- warning: associated value 'invalidValueForOption' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
159 |
160 | /** Thrown if an Option with required: true is missing */
/host/spi-builder-workspace/CommandLineKit/Option.swift:21:14: note: class 'Option' does not conform to the 'Sendable' protocol
19 | * The base class for a command-line option.
20 | */
21 | public class Option {
| `- note: class 'Option' does not conform to the 'Sendable' protocol
22 | public let shortFlag: String?
23 | public let longFlag: String?
/host/spi-builder-workspace/CommandLineKit/CommandLine.swift:161:10: warning: associated value 'missingRequiredOptions' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
159 |
160 | /** Thrown if an Option with required: true is missing */
161 | case missingRequiredOptions([Option])
| `- warning: associated value 'missingRequiredOptions' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
162 |
163 | public var description: String {
/host/spi-builder-workspace/CommandLineKit/Option.swift:21:14: note: class 'Option' does not conform to the 'Sendable' protocol
19 | * The base class for a command-line option.
20 | */
21 | public class Option {
| `- note: class 'Option' does not conform to the 'Sendable' protocol
22 | public let shortFlag: String?
23 | public let longFlag: String?
/host/spi-builder-workspace/CommandLineKit/CommandLine.swift:37:14: 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
35 | static let stream = StderrOutputStream()
36 | func write(_ s: String) {
37 | fputs(s, stderr)
| `- 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
38 | }
39 | }
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[6/6] Emitting module CommandLineKit
/host/spi-builder-workspace/CommandLineKit/CommandLine.swift:158:10: warning: associated value 'invalidValueForOption' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
156 |
157 | /** Thrown if the value for an Option is invalid (e.g. a string is passed to an IntOption) */
158 | case invalidValueForOption(Option, [String])
| `- warning: associated value 'invalidValueForOption' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
159 |
160 | /** Thrown if an Option with required: true is missing */
/host/spi-builder-workspace/CommandLineKit/Option.swift:21:14: note: class 'Option' does not conform to the 'Sendable' protocol
19 | * The base class for a command-line option.
20 | */
21 | public class Option {
| `- note: class 'Option' does not conform to the 'Sendable' protocol
22 | public let shortFlag: String?
23 | public let longFlag: String?
/host/spi-builder-workspace/CommandLineKit/CommandLine.swift:161:10: warning: associated value 'missingRequiredOptions' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
159 |
160 | /** Thrown if an Option with required: true is missing */
161 | case missingRequiredOptions([Option])
| `- warning: associated value 'missingRequiredOptions' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
162 |
163 | public var description: String {
/host/spi-builder-workspace/CommandLineKit/Option.swift:21:14: note: class 'Option' does not conform to the 'Sendable' protocol
19 | * The base class for a command-line option.
20 | */
21 | public class Option {
| `- note: class 'Option' does not conform to the 'Sendable' protocol
22 | public let shortFlag: String?
23 | public let longFlag: String?
Build complete! (9.36s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "CommandLineKit",
"name" : "CommandLineKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "CommandLineKit",
"targets" : [
"CommandLineKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CommandLineKit",
"module_type" : "SwiftTarget",
"name" : "CommandLineKit",
"path" : ".",
"product_memberships" : [
"CommandLineKit"
],
"sources" : [
"CommandLineKit/CommandLine.swift",
"CommandLineKit/Option.swift",
"CommandLineKit/StringExtensions.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.