Build Information
Failed to build CommandLineKit, reference master (513a95
), with Swift 6.0 for Linux on 29 Nov 2024 10:02:34 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/objecthub/swift-commandlinekit.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/objecthub/swift-commandlinekit
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 513a953 Migrate to Xcode 15. Simplify implementation of CommandLineKitDemo.
Cloned https://github.com/objecthub/swift-commandlinekit.git
Revision (git rev-parse @):
513a953b4483fd0bb686e06eabd076a8e72625da
SUCCESS checkout https://github.com/objecthub/swift-commandlinekit.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/objecthub/swift-commandlinekit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/CommandLineKitDemo/Info.plist
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/23] Emitting module CommandLineKit
/host/spi-builder-workspace/Sources/CommandLineKit/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
39 | /// a string with the `apply(to:)` function.
40 | ///
41 | public struct TextProperties: Hashable {
| `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
42 | let textColor: TextColor?
43 | let backgroundColor: BackgroundColor?
44 | let textStyles: Set<TextStyle>
45 |
46 | public static let none = TextProperties()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
47 |
48 | public init(textColor: TextColor? = nil,
/host/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:53:14: warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
42 |
43 | /// The description of the error.
44 | public enum Kind {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
45 | case unknownFlag(String)
46 | case missingValue
:
51 |
52 | /// The error kind.
53 | public let kind: Kind
| `- warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
54 |
55 | /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
/host/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:57:14: warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
55 | /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
56 | /// parsing the command-line as a whole.
57 | public let flag: Flag?
| `- warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
58 |
59 | /// Initializes a new flag error from an error kind and a corresponding flag.
/host/spi-builder-workspace/Sources/CommandLineKit/Flag.swift:46:14: note: class 'Flag' does not conform to the 'Sendable' protocol
44 | /// Method `isOption` can be used to distinguish between options and arguments.
45 | ///
46 | public class Flag {
| `- note: class 'Flag' does not conform to the 'Sendable' protocol
47 |
48 | /// The short name of the flag.
[5/25] Compiling CommandLineKit TextProperties.swift
/host/spi-builder-workspace/Sources/CommandLineKit/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
39 | /// a string with the `apply(to:)` function.
40 | ///
41 | public struct TextProperties: Hashable {
| `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
42 | let textColor: TextColor?
43 | let backgroundColor: BackgroundColor?
44 | let textStyles: Set<TextStyle>
45 |
46 | public static let none = TextProperties()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
47 |
48 | public init(textColor: TextColor? = nil,
[6/25] Compiling CommandLineKit TextStyle.swift
/host/spi-builder-workspace/Sources/CommandLineKit/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
39 | /// a string with the `apply(to:)` function.
40 | ///
41 | public struct TextProperties: Hashable {
| `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
42 | let textColor: TextColor?
43 | let backgroundColor: BackgroundColor?
44 | let textStyles: Set<TextStyle>
45 |
46 | public static let none = TextProperties()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
47 |
48 | public init(textColor: TextColor? = nil,
[7/25] Compiling CommandLineKit EditState.swift
/host/spi-builder-workspace/Sources/CommandLineKit/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
39 | /// a string with the `apply(to:)` function.
40 | ///
41 | public struct TextProperties: Hashable {
| `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
42 | let textColor: TextColor?
43 | let backgroundColor: BackgroundColor?
44 | let textStyles: Set<TextStyle>
45 |
46 | public static let none = TextProperties()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
47 |
48 | public init(textColor: TextColor? = nil,
[8/25] Compiling CommandLineKit Flag.swift
/host/spi-builder-workspace/Sources/CommandLineKit/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
39 | /// a string with the `apply(to:)` function.
40 | ///
41 | public struct TextProperties: Hashable {
| `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
42 | let textColor: TextColor?
43 | let backgroundColor: BackgroundColor?
44 | let textStyles: Set<TextStyle>
45 |
46 | public static let none = TextProperties()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
47 |
48 | public init(textColor: TextColor? = nil,
[9/25] Compiling CommandLineKit Terminal.swift
[10/25] Compiling CommandLineKit TextColor.swift
[11/25] Compiling CommandLineKit Flags.swift
/host/spi-builder-workspace/Sources/CommandLineKit/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
39 | /// a string with the `apply(to:)` function.
40 | ///
41 | public struct TextProperties: Hashable {
| `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
42 | let textColor: TextColor?
43 | let backgroundColor: BackgroundColor?
44 | let textStyles: Set<TextStyle>
45 |
46 | public static let none = TextProperties()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
47 |
48 | public init(textColor: TextColor? = nil,
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:197:15: 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
195 | parenProperties: TextProperties) throws -> String {
196 | var line: String = ""
197 | if fileno(stdout) == self.outputFile {
| `- 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
198 | fflush(stdout)
199 | }
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:198:14: 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
196 | var line: String = ""
197 | if fileno(stdout) == self.outputFile {
198 | 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
199 | }
200 | try self.withRawMode {
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[12/25] Compiling CommandLineKit LineReader.swift
/host/spi-builder-workspace/Sources/CommandLineKit/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
39 | /// a string with the `apply(to:)` function.
40 | ///
41 | public struct TextProperties: Hashable {
| `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
42 | let textColor: TextColor?
43 | let backgroundColor: BackgroundColor?
44 | let textStyles: Set<TextStyle>
45 |
46 | public static let none = TextProperties()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
47 |
48 | public init(textColor: TextColor? = nil,
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:197:15: 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
195 | parenProperties: TextProperties) throws -> String {
196 | var line: String = ""
197 | if fileno(stdout) == self.outputFile {
| `- 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
198 | fflush(stdout)
199 | }
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:198:14: 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
196 | var line: String = ""
197 | if fileno(stdout) == self.outputFile {
198 | 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
199 | }
200 | try self.withRawMode {
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[13/25] Compiling CommandLineKit FlagError.swift
/host/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:53:14: warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
42 |
43 | /// The description of the error.
44 | public enum Kind {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
45 | case unknownFlag(String)
46 | case missingValue
:
51 |
52 | /// The error kind.
53 | public let kind: Kind
| `- warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
54 |
55 | /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
/host/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:57:14: warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
55 | /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
56 | /// parsing the command-line as a whole.
57 | public let flag: Flag?
| `- warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
58 |
59 | /// Initializes a new flag error from an error kind and a corresponding flag.
/host/spi-builder-workspace/Sources/CommandLineKit/Flag.swift:46:14: note: class 'Flag' does not conform to the 'Sendable' protocol
44 | /// Method `isOption` can be used to distinguish between options and arguments.
45 | ///
46 | public class Flag {
| `- note: class 'Flag' does not conform to the 'Sendable' protocol
47 |
48 | /// The short name of the flag.
[14/25] Compiling CommandLineKit FlagWrapper.swift
/host/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:53:14: warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
42 |
43 | /// The description of the error.
44 | public enum Kind {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
45 | case unknownFlag(String)
46 | case missingValue
:
51 |
52 | /// The error kind.
53 | public let kind: Kind
| `- warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
54 |
55 | /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
/host/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:57:14: warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
55 | /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
56 | /// parsing the command-line as a whole.
57 | public let flag: Flag?
| `- warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
58 |
59 | /// Initializes a new flag error from an error kind and a corresponding flag.
/host/spi-builder-workspace/Sources/CommandLineKit/Flag.swift:46:14: note: class 'Flag' does not conform to the 'Sendable' protocol
44 | /// Method `isOption` can be used to distinguish between options and arguments.
45 | ///
46 | public class Flag {
| `- note: class 'Flag' does not conform to the 'Sendable' protocol
47 |
48 | /// The short name of the flag.
[15/25] Compiling CommandLineKit LineReaderError.swift
[16/25] Compiling CommandLineKit LineReaderHistory.swift
[17/25] Compiling CommandLineKit AnsiCodes.swift
[18/25] Compiling CommandLineKit BackgroundColor.swift
[19/25] Compiling CommandLineKit Command.swift
[20/25] Compiling CommandLineKit ControlCharacters.swift
[21/25] Compiling CommandLineKit ConvertibleFromString.swift
[22/26] Wrapping AST for CommandLineKit for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[24/29] Compiling CommandLineKitDemo main.swift
[25/29] Emitting module CommandLineKitDemo
/host/spi-builder-workspace/Sources/CommandLineKitDemo/LinuxMain.swift:35:1: error: 'main' attribute cannot be used in a module that contains top-level code
33 |
34 | #if os(Linux)
35 | @main struct CommandLineKitDemo {
| `- error: 'main' attribute cannot be used in a module that contains top-level code
36 | static func main() {
37 | demo()
/host/spi-builder-workspace/Sources/CommandLineKitDemo/main.swift:34:1: note: top-level code defined in this source file
32 | //
33 |
34 | import Foundation
| |- note: top-level code defined in this source file
| `- note: pass '-parse-as-library' to compiler invocation if this is intentional
35 | import CommandLineKit
36 |
[26/29] Compiling CommandLineKitDemo LinuxMain.swift
/host/spi-builder-workspace/Sources/CommandLineKitDemo/LinuxMain.swift:35:1: error: 'main' attribute cannot be used in a module that contains top-level code
33 |
34 | #if os(Linux)
35 | @main struct CommandLineKitDemo {
| `- error: 'main' attribute cannot be used in a module that contains top-level code
36 | static func main() {
37 | demo()
/host/spi-builder-workspace/Sources/CommandLineKitDemo/main.swift:34:1: note: top-level code defined in this source file
32 | //
33 |
34 | import Foundation
| |- note: top-level code defined in this source file
| `- note: pass '-parse-as-library' to compiler invocation if this is intentional
35 | import CommandLineKit
36 |
BUILD FAILURE 6.0 linux