Build Information
Successful build of GPX with Swift 6.0 for Linux.
Swift 6 data race errors: 2
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sammy-SC/GPX.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/sammy-SC/GPX
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at c94934e Bump Swift version number + package version number
Cloned https://github.com/sammy-SC/GPX.git
Revision (git rev-parse @):
c94934e12c7f9f9180cf2d73957a41b477069232
SUCCESS checkout https://github.com/sammy-SC/GPX.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/sammy-SC/GPX.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" 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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling GPX Location.swift
[4/11] Compiling GPX GPXNode.swift
[5/11] Compiling GPX TrackSegment.swift
[6/11] Compiling GPX Root.swift
[7/11] Compiling GPX Track.swift
[8/11] Compiling GPX String+Helpers.swift
[9/11] Emitting module GPX
/host/spi-builder-workspace/Sources/GPX/Date+Helpers.swift:3:13: warning: let 'formatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | private let formatter = DateFormatter()
| `- warning: let 'formatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | extension Date {
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/GPX/Date+Helpers.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | private let formatter = DateFormatter()
| |- note: annotate 'formatter' 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
4 |
5 | extension Date {
/host/spi-builder-workspace/Sources/GPX/Date+Helpers.swift:15:16: warning: static property 'UTC' is not concurrency-safe because non-'Sendable' type 'TimeZone' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | extension TimeZone {
15 | static let UTC = TimeZone(identifier: "UTC")!
| |- warning: static property 'UTC' is not concurrency-safe because non-'Sendable' type 'TimeZone' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'UTC' 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
16 | }
17 |
Foundation.TimeZone:1:15: note: struct 'TimeZone' does not conform to the 'Sendable' protocol
1 | public struct TimeZone : Hashable, Equatable, ReferenceConvertible {
| `- note: struct 'TimeZone' does not conform to the 'Sendable' protocol
2 | public typealias ReferenceType = NSTimeZone
3 | public static var current: TimeZone { get }
[10/11] Compiling GPX Date+Helpers.swift
/host/spi-builder-workspace/Sources/GPX/Date+Helpers.swift:3:13: warning: let 'formatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | private let formatter = DateFormatter()
| `- warning: let 'formatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | extension Date {
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/GPX/Date+Helpers.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | private let formatter = DateFormatter()
| |- note: annotate 'formatter' 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
4 |
5 | extension Date {
/host/spi-builder-workspace/Sources/GPX/Date+Helpers.swift:15:16: warning: static property 'UTC' is not concurrency-safe because non-'Sendable' type 'TimeZone' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | extension TimeZone {
15 | static let UTC = TimeZone(identifier: "UTC")!
| |- warning: static property 'UTC' is not concurrency-safe because non-'Sendable' type 'TimeZone' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'UTC' 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
16 | }
17 |
Foundation.TimeZone:1:15: note: struct 'TimeZone' does not conform to the 'Sendable' protocol
1 | public struct TimeZone : Hashable, Equatable, ReferenceConvertible {
| `- note: struct 'TimeZone' does not conform to the 'Sendable' protocol
2 | public typealias ReferenceType = NSTimeZone
3 | public static var current: TimeZone { get }
[11/11] Compiling GPX TrackedPoint.swift
Build complete! (8.67s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "GPX",
"name" : "GPX",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "GPX",
"targets" : [
"GPX"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4"
],
"targets" : [
{
"c99name" : "GPXTests",
"module_type" : "SwiftTarget",
"name" : "GPXTests",
"path" : "Tests/GPXTests",
"sources" : [
"Factories.swift",
"RootTests.swift",
"TrackSegmentTests.swift",
"TrackTests.swift",
"TrackedPointTests.swift"
],
"target_dependencies" : [
"GPX"
],
"type" : "test"
},
{
"c99name" : "GPX",
"module_type" : "SwiftTarget",
"name" : "GPX",
"path" : "Sources/GPX",
"product_memberships" : [
"GPX"
],
"sources" : [
"Date+Helpers.swift",
"GPXNode.swift",
"Location.swift",
"Root.swift",
"String+Helpers.swift",
"Track.swift",
"TrackSegment.swift",
"TrackedPoint.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Done.