Build Information
Successful build of SwiftSQLite with Swift 6.0 for Linux.
Swift 6 data race errors: 4
Build Command
bash -c docker run --rm -v "checkouts-4609320-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/moshegottlieb/SwiftSQLite.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/moshegottlieb/SwiftSQLite
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 1976f2d Updated version number on example
Cloned https://github.com/moshegottlieb/SwiftSQLite.git
Revision (git rev-parse @):
1976f2d8d8b0412151078d2b94770eb9f4daef2b
SUCCESS checkout https://github.com/moshegottlieb/SwiftSQLite.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/moshegottlieb/SwiftSQLite.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-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 SwiftSQLite SQLValue.swift
[4/11] Compiling SwiftSQLite Date+SQL.swift
[5/11] Compiling SwiftSQLite SQLResult.swift
[6/11] Compiling SwiftSQLite DatabaseError.swift
[7/11] Compiling SwiftSQLite Database+Function.swift
[8/11] Emitting module SwiftSQLite
/host/spi-builder-workspace/Sources/SwiftSQLite/Database.swift:15:23: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// Set a default logger
15 | public static var logger: Log?
| |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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 | /// Open mode
/host/spi-builder-workspace/Sources/SwiftSQLite/Database.swift:26:27: warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Open mode
18 | public struct OpenMode : OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
19 | public init(rawValue:Int32){
20 | self.rawValue = rawValue
:
24 |
25 | /// The database is opened in read-only mode. If the database does not already exist, an error is returned.
26 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
| |- warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readOnly' 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
27 | /// The database is opened for reading and writing if possible, or reading only if the file is write protected by the operating system. In either case the database must already exist, otherwise an error is returned.
28 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
/host/spi-builder-workspace/Sources/SwiftSQLite/Database.swift:28:27: warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Open mode
18 | public struct OpenMode : OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
19 | public init(rawValue:Int32){
20 | self.rawValue = rawValue
:
26 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
27 | /// The database is opened for reading and writing if possible, or reading only if the file is write protected by the operating system. In either case the database must already exist, otherwise an error is returned.
28 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
| |- warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readWrite' 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
29 | /// The database is opened for reading and writing, and is created if it does not already exist.
30 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
/host/spi-builder-workspace/Sources/SwiftSQLite/Database.swift:30:27: warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Open mode
18 | public struct OpenMode : OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
19 | public init(rawValue:Int32){
20 | self.rawValue = rawValue
:
28 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
29 | /// The database is opened for reading and writing, and is created if it does not already exist.
30 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
| |- warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'create' 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
31 | }
32 |
[9/11] Compiling SwiftSQLite Log.swift
[10/11] Compiling SwiftSQLite Database.swift
/host/spi-builder-workspace/Sources/SwiftSQLite/Database.swift:15:23: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// Set a default logger
15 | public static var logger: Log?
| |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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 | /// Open mode
/host/spi-builder-workspace/Sources/SwiftSQLite/Database.swift:26:27: warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Open mode
18 | public struct OpenMode : OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
19 | public init(rawValue:Int32){
20 | self.rawValue = rawValue
:
24 |
25 | /// The database is opened in read-only mode. If the database does not already exist, an error is returned.
26 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
| |- warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readOnly' 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
27 | /// The database is opened for reading and writing if possible, or reading only if the file is write protected by the operating system. In either case the database must already exist, otherwise an error is returned.
28 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
/host/spi-builder-workspace/Sources/SwiftSQLite/Database.swift:28:27: warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Open mode
18 | public struct OpenMode : OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
19 | public init(rawValue:Int32){
20 | self.rawValue = rawValue
:
26 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
27 | /// The database is opened for reading and writing if possible, or reading only if the file is write protected by the operating system. In either case the database must already exist, otherwise an error is returned.
28 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
| |- warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readWrite' 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
29 | /// The database is opened for reading and writing, and is created if it does not already exist.
30 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
/host/spi-builder-workspace/Sources/SwiftSQLite/Database.swift:30:27: warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// Open mode
18 | public struct OpenMode : OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
19 | public init(rawValue:Int32){
20 | self.rawValue = rawValue
:
28 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
29 | /// The database is opened for reading and writing, and is created if it does not already exist.
30 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
| |- warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'Database.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'create' 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
31 | }
32 |
[11/11] Compiling SwiftSQLite Statement.swift
Build complete! (13.20s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftSQLite",
"name" : "SwiftSQLite",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftSQLite",
"targets" : [
"SwiftSQLite"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftSQLiteTests",
"module_type" : "SwiftTarget",
"name" : "SwiftSQLiteTests",
"path" : "Tests/SwiftSQLiteTests",
"sources" : [
"SwiftSQLiteTests.swift"
],
"target_dependencies" : [
"SwiftSQLite"
],
"type" : "test"
},
{
"c99name" : "SwiftSQLite",
"module_type" : "SwiftTarget",
"name" : "SwiftSQLite",
"path" : "Sources/SwiftSQLite",
"product_memberships" : [
"SwiftSQLite"
],
"sources" : [
"Database+Function.swift",
"Database.swift",
"DatabaseError.swift",
"Date+SQL.swift",
"Log.swift",
"SQLResult.swift",
"SQLValue.swift",
"Statement.swift"
],
"target_dependencies" : [
"SQLite3"
],
"type" : "library"
},
{
"c99name" : "SQLite3",
"module_type" : "SystemLibraryTarget",
"name" : "SQLite3",
"path" : "Sources/SQLite3",
"product_memberships" : [
"SwiftSQLite"
],
"sources" : [
],
"type" : "system-target"
}
],
"tools_version" : "5.5"
}
Done.