The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build LinuxMainGen, reference 0.2.0 (d7751d), with Swift 6.0 for Linux on 27 Nov 2024 03:09:15 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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/rb-de0/linuxmaingen.git
Reference: 0.2.0
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/rb-de0/linuxmaingen
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at d7751d5 Add support nested test classes
Cloned https://github.com/rb-de0/linuxmaingen.git
Revision (git rev-parse @):
d7751d57ff9dc12260436a732cb099c33ab8c137
SUCCESS checkout https://github.com/rb-de0/linuxmaingen.git at 0.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/rb-de0/linuxmaingen.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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/jpsim/SourceKitten.git
Fetching https://github.com/kareman/Moderator.git
Fetching https://github.com/kareman/FileSmith.git
[1/658] Fetching moderator
[146/2344] Fetching moderator, filesmith
[1394/18360] Fetching moderator, filesmith, sourcekitten
Fetched https://github.com/kareman/FileSmith.git from cache (0.62s)
[3652/16674] Fetching moderator, sourcekitten
Fetched https://github.com/kareman/Moderator.git from cache (1.69s)
Fetched https://github.com/jpsim/SourceKitten.git from cache (2.12s)
Computing version for https://github.com/kareman/Moderator.git
Computed https://github.com/kareman/Moderator.git at 0.5.1 (0.93s)
Computing version for https://github.com/kareman/FileSmith.git
Computed https://github.com/kareman/FileSmith.git at 0.3.0 (4.30s)
Fetching https://github.com/kareman/SwiftShell.git
[1/4863] Fetching swiftshell
Fetched https://github.com/kareman/SwiftShell.git from cache (0.63s)
Computing version for https://github.com/kareman/SwiftShell.git
Computed https://github.com/kareman/SwiftShell.git at 5.1.0 (0.80s)
Computing version for https://github.com/jpsim/SourceKitten.git
Computed https://github.com/jpsim/SourceKitten.git at 0.36.0 (1.04s)
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/apple/swift-argument-parser.git
[1/9936] Fetching yams
[697/22331] Fetching yams, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.30s)
[7552/9936] Fetching yams
Fetching https://github.com/drmohundro/SWXMLHash.git
Fetched https://github.com/jpsim/Yams.git from cache (2.38s)
[1/2820] Fetching swxmlhash
Fetched https://github.com/drmohundro/SWXMLHash.git from cache (0.45s)
Computing version for https://github.com/drmohundro/SWXMLHash.git
Computed https://github.com/drmohundro/SWXMLHash.git at 7.0.2 (0.88s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.1.3 (0.89s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.0 (0.89s)
Creating working copy for https://github.com/jpsim/SourceKitten.git
Working copy of https://github.com/jpsim/SourceKitten.git resolved at 0.36.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.5.0
Creating working copy for https://github.com/kareman/SwiftShell.git
Working copy of https://github.com/kareman/SwiftShell.git resolved at 5.1.0
Creating working copy for https://github.com/drmohundro/SWXMLHash.git
Working copy of https://github.com/drmohundro/SWXMLHash.git resolved at 7.0.2
Creating working copy for https://github.com/kareman/Moderator.git
Working copy of https://github.com/kareman/Moderator.git resolved at 0.5.1
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.1.3
Creating working copy for https://github.com/kareman/FileSmith.git
Working copy of https://github.com/kareman/FileSmith.git resolved at 0.3.0
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/26] Write sources
[8/26] Compiling SourceKit SourceKit.c
[9/26] Compiling Clang_C Clang_C.c
[10/26] Compiling writer.c
[11/26] Compiling reader.c
[12/26] Compiling parser.c
[13/26] Compiling api.c
[14/26] Compiling emitter.c
[15/26] Write swift-version-24593BA9C3E375BF.txt
[16/26] Compiling scanner.c
[18/78] Compiling Moderator Parsers.swift
[19/78] Compiling Moderator SwiftCompat.swift
[20/78] Compiling SwiftShell Lazy-split.swift
[21/78] Compiling SwiftShell Stream.swift
[22/79] Compiling Yams Resolver.swift
[23/79] Compiling SWXMLHash TextElement.swift
[24/79] Compiling SWXMLHash XMLAttribute.swift
[25/82] Emitting module SWXMLHash
[26/82] Compiling Yams Mark.swift
[27/82] Compiling Yams Node.Mapping.swift
[28/82] Compiling Yams Node.Scalar.swift
[29/82] Compiling Yams Node.Sequence.swift
[30/83] Compiling Moderator Moderator.swift
[31/83] Emitting module Moderator
[32/83] Compiling SWXMLHash XMLContent.swift
[33/83] Compiling SWXMLHash XMLElement.swift
[34/83] Compiling SWXMLHash XMLHash.swift
[35/83] Emitting module SwiftShell
[36/83] Compiling Yams Emitter.swift
[37/83] Compiling Yams Encoder.swift
[41/84] Compiling Yams Constructor.swift
[42/84] Compiling Yams Decoder.swift
[43/84] Compiling Yams String+Yams.swift
[44/84] Compiling Yams Tag.swift
[45/84] Compiling Yams Node.swift
[46/84] Compiling Yams Parser.swift
[47/84] Compiling Yams Representer.swift
[48/84] Compiling SWXMLHash XMLValueDeserialization.swift
[49/84] Compiling SWXMLHash Bool+XMLDeserialization.swift
[50/84] Compiling SWXMLHash Double+XMLDeserialization.swift
[51/84] Compiling SWXMLHash Float+XMLDeserialization.swift
[57/84] Compiling SwiftShell Process.swift
[58/84] Compiling SwiftShell Array.swift
[59/84] Compiling SwiftShell Files.swift
[60/84] Compiling SwiftShell Context.swift
[62/84] Compiling SwiftShell String.swift
[63/85] Emitting module Yams
[73/85] Compiling Yams YamlError.swift
[75/86] Compiling SWXMLHash XMLHashOptions.swift
[76/86] Compiling SWXMLHash XMLIndexer.swift
[77/86] Compiling SWXMLHash shim.swift
[78/87] Wrapping AST for SwiftShell for debugging
[79/87] Wrapping AST for Moderator for debugging
[80/87] Wrapping AST for Yams for debugging
[81/95] Wrapping AST for SWXMLHash for debugging
[83/138] Compiling FileSmith SymbolicLinks.swift
[84/138] Compiling FileSmith Errors.swift
[85/138] Compiling FileSmith File.swift
[86/138] Compiling FileSmith Directory.swift
[87/138] Compiling FileSmith Attributes.swift
[88/138] Emitting module FileSmith
[89/138] Compiling SourceKittenFramework SyntaxToken.swift
[90/138] Compiling SourceKittenFramework Text.swift
[91/138] Compiling SourceKittenFramework UID.swift
[92/138] Compiling SourceKittenFramework UIDRepresentable.swift
[93/138] Compiling SourceKittenFramework UncheckedSendable.swift
[94/138] Compiling SourceKittenFramework Version.swift
[95/144] Compiling FileSmith General.swift
[96/144] Compiling FileSmith Paths.swift
[97/145] Wrapping AST for FileSmith for debugging
[99/145] Compiling SourceKittenFramework SwiftDeclarationKind.swift
[100/145] Compiling SourceKittenFramework SwiftDocKey.swift
[101/145] Compiling SourceKittenFramework SwiftDocs.swift
[102/145] Compiling SourceKittenFramework SwiftVersion.swift
[103/145] Compiling SourceKittenFramework SyntaxKind.swift
[104/145] Compiling SourceKittenFramework SyntaxMap.swift
[105/145] Emitting module SourceKittenFramework
[106/145] Compiling SourceKittenFramework Language.swift
[107/145] Compiling SourceKittenFramework LibraryWrapperGenerator.swift
[108/145] Compiling SourceKittenFramework Line.swift
[109/145] Compiling SourceKittenFramework LinuxCompatibility.swift
[110/145] Compiling SourceKittenFramework Module.swift
[111/145] Compiling SourceKittenFramework ObjCDeclarationKind.swift
[112/145] Compiling SourceKittenFramework Dictionary+Merge.swift
[113/145] Compiling SourceKittenFramework Documentation.swift
[114/145] Compiling SourceKittenFramework Exec.swift
[115/145] Compiling SourceKittenFramework File+Hashable.swift
[116/145] Compiling SourceKittenFramework File.swift
[117/145] Compiling SourceKittenFramework JSONOutput.swift
[118/145] Compiling SourceKittenFramework ByteCount.swift
[119/145] Compiling SourceKittenFramework ByteRange.swift
[120/145] Compiling SourceKittenFramework Clang+SourceKitten.swift
[121/145] Compiling SourceKittenFramework ClangTranslationUnit.swift
[122/145] Compiling SourceKittenFramework CodeCompletionItem.swift
[123/145] Compiling SourceKittenFramework CursorInfo+Parsing.swift
[124/145] Compiling SourceKittenFramework WindowsError.swift
[125/145] Compiling SourceKittenFramework Xcode.swift
[126/145] Compiling SourceKittenFramework XcodeBuildSetting.swift
[127/145] Compiling SourceKittenFramework library_wrapper.swift
[128/145] Compiling SourceKittenFramework library_wrapper_Clang_C.swift
[129/145] Compiling SourceKittenFramework library_wrapper_SourceKit.swift
[130/145] Compiling SourceKittenFramework OffsetMap.swift
[131/145] Compiling SourceKittenFramework Parameter.swift
[132/145] Compiling SourceKittenFramework Request.swift
[133/145] Compiling SourceKittenFramework SourceDeclaration.swift
[134/145] Compiling SourceKittenFramework SourceKitObject.swift
[135/145] Compiling SourceKittenFramework SourceLocation.swift
[136/145] Compiling SourceKittenFramework StatementKind.swift
[137/145] Compiling SourceKittenFramework String+SourceKitten.swift
[138/145] Compiling SourceKittenFramework StringView+SourceKitten.swift
[139/145] Compiling SourceKittenFramework StringView.swift
[140/145] Compiling SourceKittenFramework Structure.swift
[141/145] Compiling SourceKittenFramework SwiftDeclarationAttributeKind.swift
[142/146] Wrapping AST for SourceKittenFramework for debugging
[144/154] Compiling LinuxMainGen String+Util.swift
[145/154] Emitting module LinuxMainGen
/host/spi-builder-workspace/Sources/LinuxMainGen/main.swift:38:18: warning: reference to class property 'stderror' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | } catch {
38 |     WritableFile.stderror.print(error)
   |                  `- warning: reference to class property 'stderror' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
39 |     WritableFile.stderror.print()
40 |     WritableFile.stderror.print(arguments.usagetext)
/host/spi-builder-workspace/.build/checkouts/FileSmith/Sources/FileSmith/File.swift:215:20: note: class property declared here
213 |
214 | 	/// A WritableStream which writes to standard error.
215 | 	static public var stderror: WritableStream = {
    |                    `- note: class property declared here
216 | 		WritableFile(path: "/dev/stderr", filehandle: FileHandle.standardError)
217 | 	}()
/host/spi-builder-workspace/Sources/LinuxMainGen/main.swift:39:18: warning: reference to class property 'stderror' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
37 | } catch {
38 |     WritableFile.stderror.print(error)
39 |     WritableFile.stderror.print()
   |                  `- warning: reference to class property 'stderror' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
40 |     WritableFile.stderror.print(arguments.usagetext)
41 |     exit(Int32(error._code))
/host/spi-builder-workspace/.build/checkouts/FileSmith/Sources/FileSmith/File.swift:215:20: note: class property declared here
213 |
214 | 	/// A WritableStream which writes to standard error.
215 | 	static public var stderror: WritableStream = {
    |                    `- note: class property declared here
216 | 		WritableFile(path: "/dev/stderr", filehandle: FileHandle.standardError)
217 | 	}()
/host/spi-builder-workspace/Sources/LinuxMainGen/main.swift:40:18: warning: reference to class property 'stderror' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
38 |     WritableFile.stderror.print(error)
39 |     WritableFile.stderror.print()
40 |     WritableFile.stderror.print(arguments.usagetext)
   |                  `- warning: reference to class property 'stderror' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
41 |     exit(Int32(error._code))
42 | }
/host/spi-builder-workspace/.build/checkouts/FileSmith/Sources/FileSmith/File.swift:215:20: note: class property declared here
213 |
214 | 	/// A WritableStream which writes to standard error.
215 | 	static public var stderror: WritableStream = {
    |                    `- note: class property declared here
216 | 		WritableFile(path: "/dev/stderr", filehandle: FileHandle.standardError)
217 | 	}()
[146/154] Compiling LinuxMainGen SourceParser.swift
[147/154] Compiling LinuxMainGen Structure+Value.swift
[148/154] Compiling LinuxMainGen TestClass.swift
[149/154] Compiling LinuxMainGen main.swift
/host/spi-builder-workspace/Sources/LinuxMainGen/main.swift:38:18: warning: reference to class property 'stderror' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | } catch {
38 |     WritableFile.stderror.print(error)
   |                  `- warning: reference to class property 'stderror' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
39 |     WritableFile.stderror.print()
40 |     WritableFile.stderror.print(arguments.usagetext)
/host/spi-builder-workspace/.build/checkouts/FileSmith/Sources/FileSmith/File.swift:215:20: note: class property declared here
213 |
214 | 	/// A WritableStream which writes to standard error.
215 | 	static public var stderror: WritableStream = {
    |                    `- note: class property declared here
216 | 		WritableFile(path: "/dev/stderr", filehandle: FileHandle.standardError)
217 | 	}()
/host/spi-builder-workspace/Sources/LinuxMainGen/main.swift:39:18: warning: reference to class property 'stderror' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
37 | } catch {
38 |     WritableFile.stderror.print(error)
39 |     WritableFile.stderror.print()
   |                  `- warning: reference to class property 'stderror' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
40 |     WritableFile.stderror.print(arguments.usagetext)
41 |     exit(Int32(error._code))
/host/spi-builder-workspace/.build/checkouts/FileSmith/Sources/FileSmith/File.swift:215:20: note: class property declared here
213 |
214 | 	/// A WritableStream which writes to standard error.
215 | 	static public var stderror: WritableStream = {
    |                    `- note: class property declared here
216 | 		WritableFile(path: "/dev/stderr", filehandle: FileHandle.standardError)
217 | 	}()
/host/spi-builder-workspace/Sources/LinuxMainGen/main.swift:40:18: warning: reference to class property 'stderror' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
38 |     WritableFile.stderror.print(error)
39 |     WritableFile.stderror.print()
40 |     WritableFile.stderror.print(arguments.usagetext)
   |                  `- warning: reference to class property 'stderror' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
41 |     exit(Int32(error._code))
42 | }
/host/spi-builder-workspace/.build/checkouts/FileSmith/Sources/FileSmith/File.swift:215:20: note: class property declared here
213 |
214 | 	/// A WritableStream which writes to standard error.
215 | 	static public var stderror: WritableStream = {
    |                    `- note: class property declared here
216 | 		WritableFile(path: "/dev/stderr", filehandle: FileHandle.standardError)
217 | 	}()
[150/154] Compiling LinuxMainGen SourceWriter.swift
/host/spi-builder-workspace/Sources/LinuxMainGen/SourceWriter.swift:40:59: error: value of type 'NSString' has no member 'byteRangeToNSRange'
 38 |                 }
 39 |
 40 |                 if let range = testClass.file.contents.ns.byteRangeToNSRange(start: offset, length: length) {
    |                                                           `- error: value of type 'NSString' has no member 'byteRangeToNSRange'
 41 |                     contents = testClass.file.contents.ns.replacingCharacters(in: range, with: "")
 42 |                     let file = try FileSmith.WritableFile(open: path)
[151/154] Compiling LinuxMainGen Structure+Util.swift
BUILD FAILURE 6.0 linux