Build Information
Successful build of Path.swift, reference master (dbdc3a
), with Swift 6.0 for Linux on 3 Nov 2024 18:34:46 UTC.
Swift 6 data race errors: 1
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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mxcl/path.swift.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/mxcl/path.swift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at dbdc3ae participate in tea protocol
Cloned https://github.com/mxcl/path.swift.git
Revision (git rev-parse @):
dbdc3aeef664eebd1f6fed6b1fc3789114498d85
SUCCESS checkout https://github.com/mxcl/path.swift.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/mxcl/path.swift.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:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
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/12] Emitting module Path
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Path.swift:7:5: warning: let '_realpath' is not concurrency-safe because non-'Sendable' type '(UnsafePointer<CChar>?, UnsafeMutablePointer<CChar>?) -> UnsafeMutablePointer<CChar>?' (aka '(Optional<UnsafePointer<Int8>>, Optional<UnsafeMutablePointer<Int8>>) -> Optional<UnsafeMutablePointer<Int8>>') may have shared mutable state; this is an error in the Swift 6 language mode
5 | #else
6 | import func Glibc.realpath
7 | let _realpath = Glibc.realpath
| |- warning: let '_realpath' is not concurrency-safe because non-'Sendable' type '(UnsafePointer<CChar>?, UnsafeMutablePointer<CChar>?) -> UnsafeMutablePointer<CChar>?' (aka '(Optional<UnsafePointer<Int8>>, Optional<UnsafeMutablePointer<Int8>>) -> Optional<UnsafeMutablePointer<Int8>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_realpath' 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
8 | #endif
9 |
[4/13] Compiling Path Pathish.swift
[5/13] Compiling Path PathToBool.swift
[6/13] Compiling Path Extensions.swift
[7/13] Compiling Path Path+Attributes.swift
[8/13] Compiling Path Path+StringConvertibles.swift
[9/13] Compiling Path Path+Codable.swift
[10/13] Compiling Path Path+CommonDirectories.swift
[11/13] Compiling Path Path+ls.swift
/host/spi-builder-workspace/Sources/Path+ls.swift:175:57: 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
173 | func ls(_ options: ListDirectoryOptions? = nil) -> [Path] {
174 | guard let urls = try? FileManager.default.contentsOfDirectory(at: url, includingPropertiesForKeys: nil) else {
175 | fputs("warning: could not list: \(self)\n", 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
176 | return []
177 | }
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[12/13] Compiling Path Path.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Path.swift:7:5: warning: let '_realpath' is not concurrency-safe because non-'Sendable' type '(UnsafePointer<CChar>?, UnsafeMutablePointer<CChar>?) -> UnsafeMutablePointer<CChar>?' (aka '(Optional<UnsafePointer<Int8>>, Optional<UnsafeMutablePointer<Int8>>) -> Optional<UnsafeMutablePointer<Int8>>') may have shared mutable state; this is an error in the Swift 6 language mode
5 | #else
6 | import func Glibc.realpath
7 | let _realpath = Glibc.realpath
| |- warning: let '_realpath' is not concurrency-safe because non-'Sendable' type '(UnsafePointer<CChar>?, UnsafeMutablePointer<CChar>?) -> UnsafeMutablePointer<CChar>?' (aka '(Optional<UnsafePointer<Int8>>, Optional<UnsafeMutablePointer<Int8>>) -> Optional<UnsafeMutablePointer<Int8>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_realpath' 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
8 | #endif
9 |
[13/13] Compiling Path Path+FileManager.swift
Build complete! (20.07s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Path.swift",
"name" : "Path.swift",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Path",
"targets" : [
"Path"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4",
"4.2",
"5"
],
"targets" : [
{
"c99name" : "PathTests",
"module_type" : "SwiftTarget",
"name" : "PathTests",
"path" : "Tests/PathTests",
"sources" : [
"PathTests+ls().swift",
"PathTests.swift",
"TemporaryDirectory.swift",
"XCTestManifests.swift",
"etc.swift"
],
"target_dependencies" : [
"Path"
],
"type" : "test"
},
{
"c99name" : "Path",
"module_type" : "SwiftTarget",
"name" : "Path",
"path" : "Sources",
"product_memberships" : [
"Path"
],
"sources" : [
"Extensions.swift",
"Path+Attributes.swift",
"Path+Codable.swift",
"Path+CommonDirectories.swift",
"Path+FileManager.swift",
"Path+StringConvertibles.swift",
"Path+ls.swift",
"Path.swift",
"PathToBool.swift",
"Pathish.swift"
],
"type" : "library"
}
],
"tools_version" : "4.2"
}
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
Done.