Build Information
Successful build of SwiftRegex, reference 6.1.3 (60fde2
), with Swift 6.1 for Linux on 30 Apr 2025 16:49:41 UTC.
Swift 6 data race errors: 8
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.61.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/johnno1962/SwiftRegex5.git
Reference: 6.1.3
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/johnno1962/SwiftRegex5
* tag 6.1.3 -> FETCH_HEAD
HEAD is now at 60fde2e Missing count parameter.
Cloned https://github.com/johnno1962/SwiftRegex5.git
Revision (git rev-parse @):
60fde2e2e3b691abb35ba4b67e3f0adc82f6d1f5
SUCCESS checkout https://github.com/johnno1962/SwiftRegex5.git at 6.1.3
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/johnno1962/SwiftRegex5.git
https://github.com/johnno1962/SwiftRegex5.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "SwiftRegex",
"name" : "SwiftRegex",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "10.0"
}
],
"products" : [
{
"name" : "SwiftRegex",
"targets" : [
"SwiftRegex"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftRegexD",
"targets" : [
"SwiftRegexD"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftRegexTests",
"module_type" : "SwiftTarget",
"name" : "SwiftRegexTests",
"path" : "SwiftRegex5Tests",
"sources" : [
"SwiftRegex5Tests.swift"
],
"target_dependencies" : [
"SwiftRegex"
],
"type" : "test"
},
{
"c99name" : "SwiftRegexD",
"module_type" : "SwiftTarget",
"name" : "SwiftRegexD",
"path" : "Sources/SwiftRegexD",
"product_memberships" : [
"SwiftRegexD"
],
"sources" : [
"TupleRegex.swift"
],
"type" : "library"
},
{
"c99name" : "SwiftRegex",
"module_type" : "SwiftTarget",
"name" : "SwiftRegex",
"path" : "Sources/SwiftRegex",
"product_memberships" : [
"SwiftRegex"
],
"sources" : [
"TupleRegex.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/7] Emitting module SwiftRegexD
/host/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:31:23: warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | public struct RegexOptioned: RegexLiteral, Hashable {
30 |
31 | public static var defaultOptions: NSRegularExpression.Options = []
| |- warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultOptions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public static var unmatchedGroup = ""
33 |
/host/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:32:23: warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | public static var defaultOptions: NSRegularExpression.Options = []
32 | public static var unmatchedGroup = ""
| |- warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'unmatchedGroup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'unmatchedGroup' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | let pattern: String
/host/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:287:13: warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
285 | public typealias RegexImpl = TupleRegex
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
| |- warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'regexCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'regexCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 | private var cacheLock = NSLock()
289 |
/host/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:288:13: warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
288 | private var cacheLock = NSLock()
| |- warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cacheLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'cacheLock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 |
290 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
[5/7] Compiling SwiftRegexD TupleRegex.swift
/host/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:31:23: warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | public struct RegexOptioned: RegexLiteral, Hashable {
30 |
31 | public static var defaultOptions: NSRegularExpression.Options = []
| |- warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultOptions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public static var unmatchedGroup = ""
33 |
/host/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:32:23: warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | public static var defaultOptions: NSRegularExpression.Options = []
32 | public static var unmatchedGroup = ""
| |- warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'unmatchedGroup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'unmatchedGroup' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | let pattern: String
/host/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:287:13: warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
285 | public typealias RegexImpl = TupleRegex
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
| |- warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'regexCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'regexCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 | private var cacheLock = NSLock()
289 |
/host/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:288:13: warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
288 | private var cacheLock = NSLock()
| |- warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cacheLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'cacheLock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 |
290 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
[6/8] Emitting module SwiftRegex
/host/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:31:23: warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | public struct RegexOptioned: RegexLiteral, Hashable {
30 |
31 | public static var defaultOptions: NSRegularExpression.Options = []
| |- warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultOptions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public static var unmatchedGroup = ""
33 |
/host/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:32:23: warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | public static var defaultOptions: NSRegularExpression.Options = []
32 | public static var unmatchedGroup = ""
| |- warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'unmatchedGroup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'unmatchedGroup' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | let pattern: String
/host/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:287:13: warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
285 | public typealias RegexImpl = TupleRegex
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
| |- warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'regexCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'regexCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 | private var cacheLock = NSLock()
289 |
/host/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:288:13: warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
288 | private var cacheLock = NSLock()
| |- warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cacheLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'cacheLock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 |
290 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
[7/8] Compiling SwiftRegex TupleRegex.swift
/host/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:31:23: warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | public struct RegexOptioned: RegexLiteral, Hashable {
30 |
31 | public static var defaultOptions: NSRegularExpression.Options = []
| |- warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultOptions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public static var unmatchedGroup = ""
33 |
/host/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:32:23: warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | public static var defaultOptions: NSRegularExpression.Options = []
32 | public static var unmatchedGroup = ""
| |- warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'unmatchedGroup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'unmatchedGroup' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | let pattern: String
/host/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:287:13: warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
285 | public typealias RegexImpl = TupleRegex
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
| |- warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'regexCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'regexCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 | private var cacheLock = NSLock()
289 |
/host/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:288:13: warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
288 | private var cacheLock = NSLock()
| |- warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cacheLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'cacheLock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 |
290 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
Build complete! (7.36s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftRegex",
"name" : "SwiftRegex",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "10.0"
}
],
"products" : [
{
"name" : "SwiftRegex",
"targets" : [
"SwiftRegex"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftRegexD",
"targets" : [
"SwiftRegexD"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftRegexTests",
"module_type" : "SwiftTarget",
"name" : "SwiftRegexTests",
"path" : "SwiftRegex5Tests",
"sources" : [
"SwiftRegex5Tests.swift"
],
"target_dependencies" : [
"SwiftRegex"
],
"type" : "test"
},
{
"c99name" : "SwiftRegexD",
"module_type" : "SwiftTarget",
"name" : "SwiftRegexD",
"path" : "Sources/SwiftRegexD",
"product_memberships" : [
"SwiftRegexD"
],
"sources" : [
"TupleRegex.swift"
],
"type" : "library"
},
{
"c99name" : "SwiftRegex",
"module_type" : "SwiftTarget",
"name" : "SwiftRegex",
"path" : "Sources/SwiftRegex",
"product_memberships" : [
"SwiftRegex"
],
"sources" : [
"TupleRegex.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.