Build Information
Successful build of PythonKit, reference v0.5.1 (6fee76
), with Swift 6.1 for Linux on 29 Apr 2025 08:29:52 UTC.
Swift 6 data race errors: 15
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pvieito/PythonKit.git
Reference: v0.5.1
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/pvieito/PythonKit
* tag v0.5.1 -> FETCH_HEAD
HEAD is now at 6fee761 Fix warnings.
Cloned https://github.com/pvieito/PythonKit.git
Revision (git rev-parse @):
6fee7617cfa910fbac7035276e295ba967adbbb4
SUCCESS checkout https://github.com/pvieito/PythonKit.git at v0.5.1
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/pvieito/PythonKit.git
https://github.com/pvieito/PythonKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "PythonKit",
"name" : "PythonKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "PythonKit",
"targets" : [
"PythonKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PythonKitTests",
"module_type" : "SwiftTarget",
"name" : "PythonKitTests",
"path" : "Tests/PythonKitTests",
"sources" : [
"NumpyConversionTests.swift",
"PythonFunctionTests.swift",
"PythonRuntimeTests.swift"
],
"target_dependencies" : [
"PythonKit"
],
"type" : "test"
},
{
"c99name" : "PythonKit",
"module_type" : "SwiftTarget",
"name" : "PythonKit",
"path" : "PythonKit",
"product_memberships" : [
"PythonKit"
],
"sources" : [
"NumpyConversion.swift",
"Python.swift",
"PythonLibrary+Symbols.swift",
"PythonLibrary.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/7] Emitting module PythonKit
/host/spi-builder-workspace/PythonKit/Python.swift:663:12: warning: let 'Python' is not concurrency-safe because non-'Sendable' type 'PythonInterface' may have shared mutable state; this is an error in the Swift 6 language mode
661 | /// print(Python.type(list) == Python.list) // Prints true.
662 | @_fixed_layout
663 | public let Python = PythonInterface()
| |- warning: let 'Python' is not concurrency-safe because non-'Sendable' type 'PythonInterface' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'Python' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
664 |
665 | /// An interface for Python.
:
671 | /// called `Python`.
672 | @dynamicMemberLookup
673 | public struct PythonInterface {
| `- note: consider making struct 'PythonInterface' conform to the 'Sendable' protocol
674 | /// A dictionary of the Python builtins.
675 | public let builtins: PythonObject
/host/spi-builder-workspace/PythonKit/Python.swift:1733:16: warning: static property 'sharedMethodDefinition' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<PyMethodDef>' may have shared mutable state; this is an error in the Swift 6 language mode
1731 |
1732 | fileprivate extension PythonFunction {
1733 | static let sharedMethodDefinition: UnsafeMutablePointer<PyMethodDef> = {
| |- warning: static property 'sharedMethodDefinition' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<PyMethodDef>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedMethodDefinition' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1734 | let name: StaticString = "pythonkit_swift_function"
1735 | // `utf8Start` is a property of StaticString, thus, it has a stable pointer.
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/PythonKit/Python.swift:1755:16: warning: static property 'sharedMethodWithKeywordsDefinition' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<PyMethodDef>' may have shared mutable state; this is an error in the Swift 6 language mode
1753 | }()
1754 |
1755 | static let sharedMethodWithKeywordsDefinition: UnsafeMutablePointer<PyMethodDef> = {
| |- warning: static property 'sharedMethodWithKeywordsDefinition' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<PyMethodDef>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedMethodWithKeywordsDefinition' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1756 | let name: StaticString = "pythonkit_swift_function_with_keywords"
1757 | // `utf8Start` is a property of StaticString, thus, it has a stable pointer.
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/PythonKit/Python.swift:92:21: warning: stored property 'reference' of 'Sendable'-conforming struct 'PythonObject' has non-sendable type 'PyReference'; this is an error in the Swift 6 language mode
38 | // implement move semantics.
39 | @usableFromInline @_fixed_layout
40 | final class PyReference {
| `- note: class 'PyReference' does not conform to the 'Sendable' protocol
41 | private var pointer: OwnedPyObjectPointer
42 |
:
90 | public struct PythonObject {
91 | /// The underlying `PyReference`.
92 | fileprivate var reference: PyReference
| `- warning: stored property 'reference' of 'Sendable'-conforming struct 'PythonObject' has non-sendable type 'PyReference'; this is an error in the Swift 6 language mode
93 |
94 | @usableFromInline
/host/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:228:5: warning: let '_Py_ZeroStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
226 | legacyName: "PyString_AsStringAndSize")
227 |
228 | let _Py_ZeroStruct: PyObjectPointer =
| |- warning: let '_Py_ZeroStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let '_Py_ZeroStruct' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
229 | PythonLibrary.loadSymbol(name: "_Py_ZeroStruct")
230 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/host/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:231:5: warning: let '_Py_TrueStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
229 | PythonLibrary.loadSymbol(name: "_Py_ZeroStruct")
230 |
231 | let _Py_TrueStruct: PyObjectPointer =
| |- warning: let '_Py_TrueStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let '_Py_TrueStruct' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
232 | PythonLibrary.loadSymbol(name: "_Py_TrueStruct")
233 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/host/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:234:5: warning: let 'PyBool_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
232 | PythonLibrary.loadSymbol(name: "_Py_TrueStruct")
233 |
234 | let PyBool_Type: PyObjectPointer =
| |- warning: let 'PyBool_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'PyBool_Type' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 | PythonLibrary.loadSymbol(name: "PyBool_Type")
236 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/host/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:237:5: warning: let 'PySlice_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
235 | PythonLibrary.loadSymbol(name: "PyBool_Type")
236 |
237 | let PySlice_Type: PyObjectPointer =
| |- warning: let 'PySlice_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'PySlice_Type' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 | PythonLibrary.loadSymbol(name: "PySlice_Type")
239 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:53:24: warning: static property 'defaultLibraryHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
51 | private static let defaultLibraryHandle = UnsafeMutableRawPointer(bitPattern: -2) // RTLD_DEFAULT
52 | #else
53 | private static let defaultLibraryHandle: UnsafeMutableRawPointer? = nil // RTLD_DEFAULT
| |- warning: static property 'defaultLibraryHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultLibraryHandle' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | #endif
55 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:56:24: warning: static property 'isPythonLibraryLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
54 | #endif
55 |
56 | private static var isPythonLibraryLoaded = false
| |- warning: static property 'isPythonLibraryLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isPythonLibraryLoaded' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isPythonLibraryLoaded' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | private static var _pythonLibraryHandle: UnsafeMutableRawPointer?
58 | private static var pythonLibraryHandle: UnsafeMutableRawPointer? {
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:57:24: warning: static property '_pythonLibraryHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | private static var isPythonLibraryLoaded = false
57 | private static var _pythonLibraryHandle: UnsafeMutableRawPointer?
| |- warning: static property '_pythonLibraryHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_pythonLibraryHandle' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_pythonLibraryHandle' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | private static var pythonLibraryHandle: UnsafeMutableRawPointer? {
59 | try! PythonLibrary.loadLibrary()
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:107:24: warning: static property 'libraryNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
105 | private static var libraryVersionSeparator = "."
106 | #elseif os(Linux)
107 | private static var libraryNames = ["libpython:", "libpython:m"]
| |- warning: static property 'libraryNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'libraryNames' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'libraryNames' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 | private static var libraryPathExtensions = [".so"]
109 | private static var librarySearchPaths = [""]
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:108:24: warning: static property 'libraryPathExtensions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
106 | #elseif os(Linux)
107 | private static var libraryNames = ["libpython:", "libpython:m"]
108 | private static var libraryPathExtensions = [".so"]
| |- warning: static property 'libraryPathExtensions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'libraryPathExtensions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'libraryPathExtensions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | private static var librarySearchPaths = [""]
110 | private static var libraryVersionSeparator = "."
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:109:24: warning: static property 'librarySearchPaths' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
107 | private static var libraryNames = ["libpython:", "libpython:m"]
108 | private static var libraryPathExtensions = [".so"]
109 | private static var librarySearchPaths = [""]
| |- warning: static property 'librarySearchPaths' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'librarySearchPaths' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'librarySearchPaths' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
110 | private static var libraryVersionSeparator = "."
111 | #elseif os(Windows)
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:110:24: warning: static property 'libraryVersionSeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
108 | private static var libraryPathExtensions = [".so"]
109 | private static var librarySearchPaths = [""]
110 | private static var libraryVersionSeparator = "."
| |- warning: static property 'libraryVersionSeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'libraryVersionSeparator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'libraryVersionSeparator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | #elseif os(Windows)
112 | private static var libraryNames = ["python:"]
[4/7] Compiling PythonKit NumpyConversion.swift
[5/7] Compiling PythonKit Python.swift
/host/spi-builder-workspace/PythonKit/Python.swift:663:12: warning: let 'Python' is not concurrency-safe because non-'Sendable' type 'PythonInterface' may have shared mutable state; this is an error in the Swift 6 language mode
661 | /// print(Python.type(list) == Python.list) // Prints true.
662 | @_fixed_layout
663 | public let Python = PythonInterface()
| |- warning: let 'Python' is not concurrency-safe because non-'Sendable' type 'PythonInterface' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'Python' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
664 |
665 | /// An interface for Python.
:
671 | /// called `Python`.
672 | @dynamicMemberLookup
673 | public struct PythonInterface {
| `- note: consider making struct 'PythonInterface' conform to the 'Sendable' protocol
674 | /// A dictionary of the Python builtins.
675 | public let builtins: PythonObject
/host/spi-builder-workspace/PythonKit/Python.swift:1733:16: warning: static property 'sharedMethodDefinition' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<PyMethodDef>' may have shared mutable state; this is an error in the Swift 6 language mode
1731 |
1732 | fileprivate extension PythonFunction {
1733 | static let sharedMethodDefinition: UnsafeMutablePointer<PyMethodDef> = {
| |- warning: static property 'sharedMethodDefinition' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<PyMethodDef>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedMethodDefinition' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1734 | let name: StaticString = "pythonkit_swift_function"
1735 | // `utf8Start` is a property of StaticString, thus, it has a stable pointer.
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/PythonKit/Python.swift:1755:16: warning: static property 'sharedMethodWithKeywordsDefinition' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<PyMethodDef>' may have shared mutable state; this is an error in the Swift 6 language mode
1753 | }()
1754 |
1755 | static let sharedMethodWithKeywordsDefinition: UnsafeMutablePointer<PyMethodDef> = {
| |- warning: static property 'sharedMethodWithKeywordsDefinition' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<PyMethodDef>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sharedMethodWithKeywordsDefinition' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1756 | let name: StaticString = "pythonkit_swift_function_with_keywords"
1757 | // `utf8Start` is a property of StaticString, thus, it has a stable pointer.
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/PythonKit/Python.swift:92:21: warning: stored property 'reference' of 'Sendable'-conforming struct 'PythonObject' has non-sendable type 'PyReference'; this is an error in the Swift 6 language mode
38 | // implement move semantics.
39 | @usableFromInline @_fixed_layout
40 | final class PyReference {
| `- note: class 'PyReference' does not conform to the 'Sendable' protocol
41 | private var pointer: OwnedPyObjectPointer
42 |
:
90 | public struct PythonObject {
91 | /// The underlying `PyReference`.
92 | fileprivate var reference: PyReference
| `- warning: stored property 'reference' of 'Sendable'-conforming struct 'PythonObject' has non-sendable type 'PyReference'; this is an error in the Swift 6 language mode
93 |
94 | @usableFromInline
[6/7] Compiling PythonKit PythonLibrary+Symbols.swift
/host/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:228:5: warning: let '_Py_ZeroStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
226 | legacyName: "PyString_AsStringAndSize")
227 |
228 | let _Py_ZeroStruct: PyObjectPointer =
| |- warning: let '_Py_ZeroStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let '_Py_ZeroStruct' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
229 | PythonLibrary.loadSymbol(name: "_Py_ZeroStruct")
230 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/host/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:231:5: warning: let '_Py_TrueStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
229 | PythonLibrary.loadSymbol(name: "_Py_ZeroStruct")
230 |
231 | let _Py_TrueStruct: PyObjectPointer =
| |- warning: let '_Py_TrueStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let '_Py_TrueStruct' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
232 | PythonLibrary.loadSymbol(name: "_Py_TrueStruct")
233 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/host/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:234:5: warning: let 'PyBool_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
232 | PythonLibrary.loadSymbol(name: "_Py_TrueStruct")
233 |
234 | let PyBool_Type: PyObjectPointer =
| |- warning: let 'PyBool_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'PyBool_Type' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 | PythonLibrary.loadSymbol(name: "PyBool_Type")
236 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
/host/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:237:5: warning: let 'PySlice_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
235 | PythonLibrary.loadSymbol(name: "PyBool_Type")
236 |
237 | let PySlice_Type: PyObjectPointer =
| |- warning: let 'PySlice_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'PySlice_Type' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 | PythonLibrary.loadSymbol(name: "PySlice_Type")
239 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
| `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 | public typealias Pointee = UInt8
3 | public let _rawValue: Builtin.RawPointer
[7/7] Compiling PythonKit PythonLibrary.swift
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:53:24: warning: static property 'defaultLibraryHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
51 | private static let defaultLibraryHandle = UnsafeMutableRawPointer(bitPattern: -2) // RTLD_DEFAULT
52 | #else
53 | private static let defaultLibraryHandle: UnsafeMutableRawPointer? = nil // RTLD_DEFAULT
| |- warning: static property 'defaultLibraryHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultLibraryHandle' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | #endif
55 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:56:24: warning: static property 'isPythonLibraryLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
54 | #endif
55 |
56 | private static var isPythonLibraryLoaded = false
| |- warning: static property 'isPythonLibraryLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isPythonLibraryLoaded' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isPythonLibraryLoaded' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | private static var _pythonLibraryHandle: UnsafeMutableRawPointer?
58 | private static var pythonLibraryHandle: UnsafeMutableRawPointer? {
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:57:24: warning: static property '_pythonLibraryHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | private static var isPythonLibraryLoaded = false
57 | private static var _pythonLibraryHandle: UnsafeMutableRawPointer?
| |- warning: static property '_pythonLibraryHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_pythonLibraryHandle' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_pythonLibraryHandle' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | private static var pythonLibraryHandle: UnsafeMutableRawPointer? {
59 | try! PythonLibrary.loadLibrary()
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:107:24: warning: static property 'libraryNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
105 | private static var libraryVersionSeparator = "."
106 | #elseif os(Linux)
107 | private static var libraryNames = ["libpython:", "libpython:m"]
| |- warning: static property 'libraryNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'libraryNames' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'libraryNames' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 | private static var libraryPathExtensions = [".so"]
109 | private static var librarySearchPaths = [""]
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:108:24: warning: static property 'libraryPathExtensions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
106 | #elseif os(Linux)
107 | private static var libraryNames = ["libpython:", "libpython:m"]
108 | private static var libraryPathExtensions = [".so"]
| |- warning: static property 'libraryPathExtensions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'libraryPathExtensions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'libraryPathExtensions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | private static var librarySearchPaths = [""]
110 | private static var libraryVersionSeparator = "."
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:109:24: warning: static property 'librarySearchPaths' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
107 | private static var libraryNames = ["libpython:", "libpython:m"]
108 | private static var libraryPathExtensions = [".so"]
109 | private static var librarySearchPaths = [""]
| |- warning: static property 'librarySearchPaths' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'librarySearchPaths' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'librarySearchPaths' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
110 | private static var libraryVersionSeparator = "."
111 | #elseif os(Windows)
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:110:24: warning: static property 'libraryVersionSeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
108 | private static var libraryPathExtensions = [".so"]
109 | private static var librarySearchPaths = [""]
110 | private static var libraryVersionSeparator = "."
| |- warning: static property 'libraryVersionSeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'libraryVersionSeparator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'libraryVersionSeparator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | #elseif os(Windows)
112 | private static var libraryNames = ["python:"]
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:307:31: 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
305 | private static func log(_ message: String) {
306 | guard Environment.loaderLogging.value != nil else { return }
307 | fputs(message + "\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
308 | }
309 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
Build complete! (4.54s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "PythonKit",
"name" : "PythonKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "PythonKit",
"targets" : [
"PythonKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PythonKitTests",
"module_type" : "SwiftTarget",
"name" : "PythonKitTests",
"path" : "Tests/PythonKitTests",
"sources" : [
"NumpyConversionTests.swift",
"PythonFunctionTests.swift",
"PythonRuntimeTests.swift"
],
"target_dependencies" : [
"PythonKit"
],
"type" : "test"
},
{
"c99name" : "PythonKit",
"module_type" : "SwiftTarget",
"name" : "PythonKit",
"path" : "PythonKit",
"product_memberships" : [
"PythonKit"
],
"sources" : [
"NumpyConversion.swift",
"Python.swift",
"PythonLibrary+Symbols.swift",
"PythonLibrary.swift"
],
"type" : "library"
}
],
"tools_version" : "5.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
Done.