Build Information
Failed to build xcprojectlint, reference main (e0f3d9
), with Swift 6.0 for Linux on 29 Nov 2024 05:44:33 UTC.
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 -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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/americanexpress/xcprojectlint.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/americanexpress/xcprojectlint
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at e0f3d93 Monterey updates (#38)
Cloned https://github.com/americanexpress/xcprojectlint.git
Revision (git rev-parse @):
e0f3d9383d8f56d76b5b1dd9819f1ba32a3b3bc1
SUCCESS checkout https://github.com/americanexpress/xcprojectlint.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/americanexpress/xcprojectlint.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 -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
Fetching https://github.com/apple/swift-tools-support-core.git
Fetching https://github.com/apple/swift-argument-parser
[1/6547] Fetching swift-tools-support-core
[6548/18942] Fetching swift-tools-support-core, swift-argument-parser
Fetched https://github.com/apple/swift-tools-support-core.git from cache (0.65s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.66s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.39s)
Computing version for https://github.com/apple/swift-tools-support-core.git
Computed https://github.com/apple/swift-tools-support-core.git at 0.7.1 (0.50s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-tools-support-core.git
Working copy of https://github.com/apple/swift-tools-support-core.git resolved at 0.7.1
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/22] Write sources
[8/22] Compiling TSCclibc libc.c
[9/22] Compiling TSCclibc process.c
[9/22] Write swift-version-24593BA9C3E375BF.txt
[12/26] Emitting module ArgumentParserToolInfo
[13/26] Compiling ArgumentParserToolInfo ToolInfo.swift
[14/27] Wrapping AST for ArgumentParserToolInfo for debugging
[16/65] Emitting module TSCLibc
[17/65] Compiling TSCLibc libc.swift
[18/66] Wrapping AST for TSCLibc for debugging
[20/106] Emitting module TSCBasic
[21/111] Compiling TSCBasic CodableResult.swift
[22/111] Compiling TSCBasic CollectionAlgorithms.swift
[23/111] Compiling TSCBasic CollectionExtensions.swift
[24/111] Compiling TSCBasic Condition.swift
[25/111] Compiling TSCBasic DeltaAlgorithm.swift
[26/116] Emitting module ArgumentParser
[27/116] Compiling TSCBasic Await.swift
[28/116] Compiling TSCBasic Base64URL.swift
[29/116] Compiling TSCBasic ByteString.swift
[30/116] Compiling TSCBasic CStringArray.swift
[31/116] Compiling TSCBasic CacheableSequence.swift
[32/116] Compiling TSCBasic Closable.swift
[33/116] Compiling TSCBasic HashAlgorithms.swift
[34/116] Compiling TSCBasic JSON.swift
[35/116] Compiling TSCBasic JSONMapper.swift
[36/116] Compiling TSCBasic KeyedPair.swift
[37/116] Compiling TSCBasic LazyCache.swift
[38/116] Compiling TSCBasic Lock.swift
[39/116] Compiling ArgumentParser CollectionExtensions.swift
[40/116] Compiling ArgumentParser Platform.swift
[41/116] Compiling ArgumentParser SequenceExtensions.swift
[42/116] Compiling ArgumentParser StringExtensions.swift
[43/116] Compiling ArgumentParser Tree.swift
[49/116] Compiling TSCBasic DiagnosticsEngine.swift
[56/116] Compiling TSCBasic Result.swift
[57/116] Compiling TSCBasic SortedArray.swift
[58/116] Compiling TSCBasic StringConversions.swift
[59/116] Compiling TSCBasic SynchronizedQueue.swift
[60/116] Compiling TSCBasic TemporaryFile.swift
[68/116] Compiling TSCBasic OSLog.swift
[69/116] Compiling TSCBasic ObjectIdentifierProtocol.swift
[70/116] Compiling TSCBasic OrderedDictionary.swift
[71/116] Compiling TSCBasic OrderedSet.swift
[72/116] Compiling TSCBasic FileSystem.swift
[73/116] Compiling TSCBasic GraphAlgorithms.swift
[77/116] Compiling TSCBasic Path.swift
[78/116] Compiling TSCBasic DictionaryExtensions.swift
[79/116] Compiling TSCBasic DictionaryLiteralExtensions.swift
[80/116] Compiling TSCBasic EditDistance.swift
[81/116] Compiling TSCBasic FileInfo.swift
[84/116] Compiling TSCBasic PathShims.swift
[85/116] Compiling TSCBasic Process.swift
[86/116] Compiling TSCBasic ProcessEnv.swift
[87/117] Wrapping AST for ArgumentParser for debugging
[92/117] Compiling TSCBasic WritableByteStream.swift
[93/117] Compiling TSCBasic misc.swift
[110/118] Wrapping AST for TSCBasic for debugging
[112/153] Compiling TSCUtility Tracing.swift
[113/153] Compiling TSCUtility Triple.swift
[114/153] Compiling TSCUtility URL.swift
[115/153] Compiling TSCUtility Verbosity.swift
[116/157] Compiling TSCUtility OSLog.swift
[117/157] Compiling TSCUtility OrderedZip.swift
[118/157] Compiling TSCUtility PkgConfig.swift
[119/157] Compiling TSCUtility Platform.swift
[120/157] Compiling TSCUtility PolymorphicCodable.swift
[121/157] Emitting module TSCUtility
[122/157] Compiling TSCUtility Bitstream.swift
[123/157] Compiling TSCUtility BitstreamReader.swift
[124/157] Compiling TSCUtility BitstreamWriter.swift
[125/157] Compiling TSCUtility BuildFlags.swift
[126/157] Compiling TSCUtility CollectionExtensions.swift
[127/157] Compiling TSCUtility Archiver.swift
[128/157] Compiling TSCUtility ArgumentParser.swift
[129/157] Compiling TSCUtility ArgumentParserShellCompletion.swift
[130/157] Compiling TSCUtility Array+Extensions.swift
[131/157] Compiling TSCUtility Bits.swift
[132/157] Compiling TSCUtility Context.swift
[133/157] Compiling TSCUtility Diagnostics.swift
[134/157] Compiling TSCUtility FSWatch.swift
[135/157] Compiling TSCUtility FloatingPointExtensions.swift
[136/157] Compiling TSCUtility Git.swift
[137/157] Compiling TSCUtility Hex.swift
[138/157] Compiling TSCUtility IndexStore.swift
[139/157] Compiling TSCUtility InterruptHandler.swift
[140/157] Compiling TSCUtility JSONMessageStreamingParser.swift
[141/157] Compiling TSCUtility Netrc.swift
[142/157] Compiling TSCUtility ProgressAnimation.swift
[143/157] Compiling TSCUtility SerializedDiagnostics.swift
[144/157] Compiling TSCUtility SimplePersistence.swift
[145/157] Compiling TSCUtility StringExtensions.swift
[146/157] Compiling TSCUtility StringMangling.swift
[147/157] Compiling TSCUtility Version.swift
[148/157] Compiling TSCUtility Versioning.swift
[149/157] Compiling TSCUtility dlopen.swift
[150/157] Compiling TSCUtility misc.swift
[151/158] Wrapping AST for TSCUtility for debugging
[152/158] Write Objects.LinkFileList
[153/158] Linking libSwiftToolsSupport.so
[155/172] Compiling xcprojectlint_package Validation.swift
[156/173] Compiling xcprojectlint_package Report.swift
/host/spi-builder-workspace/Sources/xcprojectlint-package/Report.swift:46:21: warning: static property 'usage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | public static var usage = "Either 'error' or 'warning'"
| |- warning: static property 'usage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'usage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'usage' 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 |
[157/173] Compiling xcprojectlint_package Usage.swift
/host/spi-builder-workspace/Sources/xcprojectlint-package/Report.swift:46:21: warning: static property 'usage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | public static var usage = "Either 'error' or 'warning'"
| |- warning: static property 'usage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'usage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'usage' 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 |
[158/173] Compiling xcprojectlint_package NoDanglingSourceFiles.swift
[159/173] Compiling xcprojectlint_package NoEmptyGroups.swift
[160/173] Compiling xcprojectlint_package ErrorReporter.swift
[161/173] Compiling xcprojectlint_package FilesExistOnDisk.swift
[162/173] Compiling xcprojectlint_package Version.swift
[163/173] Compiling xcprojectlint_package DiskLayoutMatchesProject.swift
/host/spi-builder-workspace/Sources/xcprojectlint-package/DiskLayoutMatchesProject.swift:47:13: warning: var '_skipFolders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 | }
46 |
47 | private var _skipFolders: [String]?
| |- warning: var '_skipFolders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_skipFolders' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_skipFolders' 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
48 |
49 | public func diskLayoutMatchesProject(_ project: Project, logEntry: String, skipFolders: [String]?) -> Report {
[164/173] Compiling xcprojectlint_package EnsureAlphaOrder.swift
/host/spi-builder-workspace/Sources/xcprojectlint-package/DiskLayoutMatchesProject.swift:47:13: warning: var '_skipFolders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 | }
46 |
47 | private var _skipFolders: [String]?
| |- warning: var '_skipFolders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_skipFolders' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_skipFolders' 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
48 |
49 | public func diskLayoutMatchesProject(_ project: Project, logEntry: String, skipFolders: [String]?) -> Report {
[165/173] Emitting module xcprojectlint_package
/host/spi-builder-workspace/Sources/xcprojectlint-package/DiskLayoutMatchesProject.swift:47:13: warning: var '_skipFolders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 | }
46 |
47 | private var _skipFolders: [String]?
| |- warning: var '_skipFolders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_skipFolders' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_skipFolders' 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
48 |
49 | public func diskLayoutMatchesProject(_ project: Project, logEntry: String, skipFolders: [String]?) -> Report {
/host/spi-builder-workspace/Sources/xcprojectlint-package/Report.swift:46:21: warning: static property 'usage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | public static var usage = "Either 'error' or 'warning'"
| |- warning: static property 'usage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'usage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'usage' 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 |
[166/173] Compiling xcprojectlint_package CheckForInternalProjectSettings.swift
[167/173] Compiling xcprojectlint_package CheckForWhitespaceSpecifications.swift
[168/173] Compiling xcprojectlint_package Project.swift
[169/173] Compiling xcprojectlint_package ProjectParser.swift
[170/174] Wrapping AST for xcprojectlint-package for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[172/176] Emitting module xcprojectlint
/host/spi-builder-workspace/Sources/xcprojectlint/XcodeProjectLint.swift:19:1: error: 'main' attribute cannot be used in a module that contains top-level code
13 | */
14 |
15 | import ArgumentParser
| |- note: top-level code defined in this source file
| `- note: pass '-parse-as-library' to compiler invocation if this is intentional
16 | import Foundation
17 | import xcprojectlint_package
18 |
19 | @main
| `- error: 'main' attribute cannot be used in a module that contains top-level code
20 | struct xcprojectlint: ParsableCommand {
21 | static var configuration = CommandConfiguration(
/host/spi-builder-workspace/Sources/xcprojectlint/XcodeProjectLint.swift:21:14: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | @main
20 | struct xcprojectlint: ParsableCommand {
21 | static var configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'configuration' 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
22 | abstract: "A linter for Xcode project files.",
23 | version: "\(currentVersion)"
/host/spi-builder-workspace/Sources/xcprojectlint/XcodeProjectLint.swift:29:52: warning: reference to static property 'usage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
27 | @Option(
28 | name: .long,
29 | help: ArgumentHelp(stringLiteral: ReportKind.usage)
| `- warning: reference to static property 'usage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
30 | )
31 | var report: ReportKind
/host/spi-builder-workspace/Sources/xcprojectlint-package/Report.swift:46:21: note: static property declared here
44 | }
45 |
46 | public static var usage = "Either 'error' or 'warning'"
| `- note: static property declared here
47 | }
48 |
[173/176] Compiling xcprojectlint XcodeProjectLint.swift
/host/spi-builder-workspace/Sources/xcprojectlint/XcodeProjectLint.swift:19:1: error: 'main' attribute cannot be used in a module that contains top-level code
13 | */
14 |
15 | import ArgumentParser
| |- note: top-level code defined in this source file
| `- note: pass '-parse-as-library' to compiler invocation if this is intentional
16 | import Foundation
17 | import xcprojectlint_package
18 |
19 | @main
| `- error: 'main' attribute cannot be used in a module that contains top-level code
20 | struct xcprojectlint: ParsableCommand {
21 | static var configuration = CommandConfiguration(
/host/spi-builder-workspace/Sources/xcprojectlint/XcodeProjectLint.swift:21:14: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | @main
20 | struct xcprojectlint: ParsableCommand {
21 | static var configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'configuration' 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
22 | abstract: "A linter for Xcode project files.",
23 | version: "\(currentVersion)"
/host/spi-builder-workspace/Sources/xcprojectlint/XcodeProjectLint.swift:29:52: warning: reference to static property 'usage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
27 | @Option(
28 | name: .long,
29 | help: ArgumentHelp(stringLiteral: ReportKind.usage)
| `- warning: reference to static property 'usage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
30 | )
31 | var report: ReportKind
/host/spi-builder-workspace/Sources/xcprojectlint-package/Report.swift:46:21: note: static property declared here
44 | }
45 |
46 | public static var usage = "Either 'error' or 'warning'"
| `- note: static property declared here
47 | }
48 |
BUILD FAILURE 6.0 linux