Build Information
Failed to build PythonKit, reference 0.0.1 (977002
), with Swift 6.1 for Android on 29 May 2025 02:23:36 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kongzii/PythonKit.git
Reference: 0.0.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/kongzii/PythonKit
* tag 0.0.1 -> FETCH_HEAD
HEAD is now at 977002d Versioned LoggerKit
Cloned https://github.com/kongzii/PythonKit.git
Revision (git rev-parse @):
977002d1f5cad96c84360d0ad4496ec614c58975
SUCCESS checkout https://github.com/kongzii/PythonKit.git at 0.0.1
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/kongzii/PythonKit.git
https://github.com/kongzii/PythonKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "loggerkit",
"requirement" : {
"exact" : [
"0.0.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/kongzii/LoggerKit.git"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "0.0.1",
"upper_bound" : "0.1.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
}
],
"manifest_display_name" : "PythonKit",
"name" : "PythonKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "PythonTool",
"targets" : [
"PythonTool"
],
"type" : {
"executable" : null
}
},
{
"name" : "PythonKit",
"targets" : [
"PythonKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PythonTool",
"module_type" : "SwiftTarget",
"name" : "PythonTool",
"path" : "PythonTool",
"product_dependencies" : [
"LoggerKit",
"ArgumentParser"
],
"product_memberships" : [
"PythonTool"
],
"sources" : [
"OperatingSystemVersion.swift",
"main.swift"
],
"target_dependencies" : [
"PythonKit"
],
"type" : "executable"
},
{
"c99name" : "PythonKitTests",
"module_type" : "SwiftTarget",
"name" : "PythonKitTests",
"path" : "Tests/PythonKitTests",
"sources" : [
"NumpyConversionTests.swift",
"PythonRuntimeTests.swift"
],
"target_dependencies" : [
"PythonKit"
],
"type" : "test"
},
{
"c99name" : "PythonKit",
"module_type" : "SwiftTarget",
"name" : "PythonKit",
"path" : "PythonKit",
"product_memberships" : [
"PythonTool",
"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-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/kongzii/LoggerKit.git
Fetching https://github.com/apple/swift-argument-parser
[1/369] Fetching loggerkit
Fetched https://github.com/kongzii/LoggerKit.git from cache (0.41s)
[1/15351] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.94s)
Computing version for https://github.com/kongzii/LoggerKit.git
Computed https://github.com/kongzii/LoggerKit.git at 0.0.0 (1.50s)
Fetching https://github.com/onevcat/Rainbow
[1/1196] Fetching rainbow
Fetched https://github.com/onevcat/Rainbow from cache (0.29s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.0.6 (0.84s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 3.2.0 (2.26s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.0.6
Creating working copy for https://github.com/kongzii/LoggerKit.git
Working copy of https://github.com/kongzii/LoggerKit.git resolved at 0.0.0
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 3.2.0
Building for debugging...
[0/13] Write sources
[5/13] Write swift-version-24593BA9C3E375BF.txt
[7/57] Compiling PythonKit PythonLibrary.swift
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:31:24: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PythonLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
28 | //===----------------------------------------------------------------------===//
29 |
30 | public struct PythonLibrary {
| `- note: consider making struct 'PythonLibrary' conform to the 'Sendable' protocol
31 | private static let shared = PythonLibrary()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PythonLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | private static let pythonLegacySymbolName = "PyString_AsString"
33 | private static var librarySymbolsLoaded = false
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:33:24: warning: static property 'librarySymbolsLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | private static let shared = PythonLibrary()
32 | private static let pythonLegacySymbolName = "PyString_AsString"
33 | private static var librarySymbolsLoaded = false
| |- warning: static property 'librarySymbolsLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'librarySymbolsLoaded' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'librarySymbolsLoaded' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | private let pythonLibraryHandle: UnsafeMutableRawPointer
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:175:34: error: cannot find 'librarySearchPaths' in scope
173 | static let libraryPaths: [String] = {
174 | var libraryPaths: [String] = []
175 | for librarySearchPath in librarySearchPaths {
| `- error: cannot find 'librarySearchPaths' in scope
176 | for libraryName in libraryNames {
177 | for libraryPathExtension in libraryPathExtensions {
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:176:32: error: cannot find 'libraryNames' in scope
174 | var libraryPaths: [String] = []
175 | for librarySearchPath in librarySearchPaths {
176 | for libraryName in libraryNames {
| `- error: cannot find 'libraryNames' in scope
177 | for libraryPathExtension in libraryPathExtensions {
178 | let libraryPath =
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:177:45: error: cannot find 'libraryPathExtensions' in scope
175 | for librarySearchPath in librarySearchPaths {
176 | for libraryName in libraryNames {
177 | for libraryPathExtension in libraryPathExtensions {
| `- error: cannot find 'libraryPathExtensions' in scope
178 | let libraryPath =
179 | librarySearchPath + libraryName + libraryPathExtension
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:135:31: error: cannot find 'getenv' in scope
133 |
134 | var value: String? {
135 | guard let value = getenv(key) else { return nil }
| `- error: cannot find 'getenv' in scope
136 | return String(cString: value)
137 | }
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:221:32: error: cannot find 'libraryVersionSeparator' in scope
219 | let libraryVersionString = versionString
220 | .split(separator: PythonVersion.versionSeparator)
221 | .joined(separator: libraryVersionSeparator)
| `- error: cannot find 'libraryVersionSeparator' in scope
222 | let path = path.split(separator: libraryPathVersionCharacter)
223 | .joined(separator: libraryVersionString)
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:237:12: error: instance member 'pythonLibraryHandle' cannot be used on type 'PythonLibrary'
235 | #endif
236 |
237 | if pythonLibraryHandle != nil {
| `- error: instance member 'pythonLibraryHandle' cannot be used on type 'PythonLibrary'
238 | log("Library at '\(path)' was sucessfully loaded.")
239 | }
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:240:16: error: instance member 'pythonLibraryHandle' cannot be used on type 'PythonLibrary'
238 | log("Library at '\(path)' was sucessfully loaded.")
239 | }
240 | return pythonLibraryHandle
| `- error: instance member 'pythonLibraryHandle' cannot be used on type 'PythonLibrary'
241 | }
242 | }
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:248:9: error: cannot find 'fputs' in scope
246 | static func log(_ message: String) {
247 | guard Environment.loaderLogging.value != nil else { return }
248 | fputs(message + "\n", stderr)
| `- error: cannot find 'fputs' in scope
249 | }
250 | }
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:248:31: error: cannot find 'stderr' in scope
246 | static func log(_ message: String) {
247 | guard Environment.loaderLogging.value != nil else { return }
248 | fputs(message + "\n", stderr)
| `- error: cannot find 'stderr' in scope
249 | }
250 | }
[8/57] Compiling PythonKit PythonLibrary+Symbols.swift
/host/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:181: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
179 | legacyName: "PyString_FromStringAndSize")
180 |
181 | 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
182 | PythonLibrary.loadSymbol(name: "_Py_ZeroStruct")
183 |
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:184: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
182 | PythonLibrary.loadSymbol(name: "_Py_ZeroStruct")
183 |
184 | 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
185 | PythonLibrary.loadSymbol(name: "_Py_TrueStruct")
186 |
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:187: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
185 | PythonLibrary.loadSymbol(name: "_Py_TrueStruct")
186 |
187 | 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
188 | PythonLibrary.loadSymbol(name: "PyBool_Type")
189 |
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:190: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
188 | PythonLibrary.loadSymbol(name: "PyBool_Type")
189 |
190 | 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
191 | PythonLibrary.loadSymbol(name: "PySlice_Type")
192 |
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
[9/57] Compiling PythonKit Python.swift
/host/spi-builder-workspace/PythonKit/Python.swift:40:17: error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
26 | /// Typealias used when passing or returning a `PyObject` pointer with
27 | /// implied ownership.
28 | typealias OwnedPyObjectPointer = PyObjectPointer
| `- note: type declared here
29 |
30 | /// A primitive reference to a Python C API `PyObject`.
:
38 | @usableFromInline @_fixed_layout
39 | final class PyReference {
40 | private var pointer: OwnedPyObjectPointer
| `- error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
41 |
42 | // This `PyReference`, once deleted, will make no delta change to the
/host/spi-builder-workspace/PythonKit/Python.swift:211:10: warning: associated value 'exception(_:traceback:)' of 'Sendable'-conforming enum 'PythonError' has non-sendable type 'PythonObject'; this is an error in the Swift 6 language mode
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
:
209 | public enum PythonError : Error, Equatable {
210 | /// A Python runtime exception, produced by calling a Python function.
211 | case exception(PythonObject, traceback: PythonObject?)
| `- warning: associated value 'exception(_:traceback:)' of 'Sendable'-conforming enum 'PythonError' has non-sendable type 'PythonObject'; this is an error in the Swift 6 language mode
212 |
213 | /// A failed call on a `PythonObject`.
/host/spi-builder-workspace/PythonKit/Python.swift:211:10: warning: associated value 'exception(_:traceback:)' of 'Sendable'-conforming enum 'PythonError' has non-sendable type 'PythonObject'; this is an error in the Swift 6 language mode
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
:
209 | public enum PythonError : Error, Equatable {
210 | /// A Python runtime exception, produced by calling a Python function.
211 | case exception(PythonObject, traceback: PythonObject?)
| `- warning: associated value 'exception(_:traceback:)' of 'Sendable'-conforming enum 'PythonError' has non-sendable type 'PythonObject'; this is an error in the Swift 6 language mode
212 |
213 | /// A failed call on a `PythonObject`.
/host/spi-builder-workspace/PythonKit/Python.swift:219:10: warning: associated value 'invalidCall' of 'Sendable'-conforming enum 'PythonError' has non-sendable type 'PythonObject'; this is an error in the Swift 6 language mode
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
:
217 | /// object.
218 | /// - An invalid keyword argument was specified.
219 | case invalidCall(PythonObject)
| `- warning: associated value 'invalidCall' of 'Sendable'-conforming enum 'PythonError' has non-sendable type 'PythonObject'; this is an error in the Swift 6 language mode
220 |
221 | /// A module import error.
/host/spi-builder-workspace/PythonKit/Python.swift:630: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
628 | /// print(Python.type(list) == Python.list) // Prints true.
629 | @_fixed_layout
630 | 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
631 |
632 | /// An interface for Python.
:
638 | /// called `Python`.
639 | @dynamicMemberLookup
640 | public struct PythonInterface {
| `- note: consider making struct 'PythonInterface' conform to the 'Sendable' protocol
641 | /// A dictionary of the Python builtins.
642 | public let builtins: PythonObject
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/57] Compiling PythonKit NumpyConversion.swift
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:21:13: warning: let 'np' is not concurrency-safe because non-'Sendable' type 'PythonObject' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// Note: Global variables are lazy, so the following declaration won't produce
20 | /// a Python import error until it is first used.
21 | private let np = Python.import("numpy")
| |- warning: let 'np' is not concurrency-safe because non-'Sendable' type 'PythonObject' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'np' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | private let ctypes = Python.import("ctypes")
23 |
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:22:13: warning: let 'ctypes' is not concurrency-safe because non-'Sendable' type 'PythonObject' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// a Python import error until it is first used.
21 | private let np = Python.import("numpy")
22 | private let ctypes = Python.import("ctypes")
| |- warning: let 'ctypes' is not concurrency-safe because non-'Sendable' type 'PythonObject' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ctypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | /// A type that can be initialized from a `numpy.ndarray` instance represented
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:40:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | extension Bool : NumpyScalarCompatible {
40 | public static let numpyScalarTypes = [np.bool_, Python.bool]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | public static var ctype: PythonObject { return ctypes.c_bool }
42 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:45:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | extension UInt8 : NumpyScalarCompatible {
45 | public static let numpyScalarTypes = [np.uint8]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | public static var ctype: PythonObject { return ctypes.c_uint8 }
47 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:50:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | extension Int8 : NumpyScalarCompatible {
50 | public static let numpyScalarTypes = [np.int8]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | public static var ctype: PythonObject { return ctypes.c_int8 }
52 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:55:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
53 |
54 | extension UInt16 : NumpyScalarCompatible {
55 | public static let numpyScalarTypes = [np.uint16]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | public static var ctype: PythonObject { return ctypes.c_uint16 }
57 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:60:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | extension Int16 : NumpyScalarCompatible {
60 | public static let numpyScalarTypes = [np.int16]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | public static var ctype: PythonObject { return ctypes.c_int16 }
62 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:65:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
63 |
64 | extension UInt32 : NumpyScalarCompatible {
65 | public static let numpyScalarTypes = [np.uint32]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 | public static var ctype: PythonObject { return ctypes.c_uint32 }
67 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:70:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | extension Int32 : NumpyScalarCompatible {
70 | public static let numpyScalarTypes = [np.int32]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | public static var ctype: PythonObject { return ctypes.c_int32 }
72 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:75:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | extension UInt64 : NumpyScalarCompatible {
75 | public static let numpyScalarTypes = [np.uint64]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | public static var ctype: PythonObject { return ctypes.c_uint64 }
77 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:80:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
78 |
79 | extension Int64 : NumpyScalarCompatible {
80 | public static let numpyScalarTypes = [np.int64]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | public static var ctype: PythonObject { return ctypes.c_int64 }
82 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:85:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
83 |
84 | extension Float : NumpyScalarCompatible {
85 | public static let numpyScalarTypes = [np.float32]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | public static var ctype: PythonObject { return ctypes.c_float }
87 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:90:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
88 |
89 | extension Double : NumpyScalarCompatible {
90 | public static let numpyScalarTypes = [np.float64]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 | public static var ctype: PythonObject { return ctypes.c_double }
92 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:140:34: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
138 | dummyPointer.deallocate()
139 | withUnsafeMutableBufferPointer { buffPtr in
140 | buffPtr.baseAddress!.assign(from: ptr, count: scalarCount)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
141 | }
142 | }
[11/57] Emitting module PythonKit
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:21:13: warning: let 'np' is not concurrency-safe because non-'Sendable' type 'PythonObject' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// Note: Global variables are lazy, so the following declaration won't produce
20 | /// a Python import error until it is first used.
21 | private let np = Python.import("numpy")
| |- warning: let 'np' is not concurrency-safe because non-'Sendable' type 'PythonObject' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'np' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | private let ctypes = Python.import("ctypes")
23 |
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:22:13: warning: let 'ctypes' is not concurrency-safe because non-'Sendable' type 'PythonObject' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// a Python import error until it is first used.
21 | private let np = Python.import("numpy")
22 | private let ctypes = Python.import("ctypes")
| |- warning: let 'ctypes' is not concurrency-safe because non-'Sendable' type 'PythonObject' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'ctypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | /// A type that can be initialized from a `numpy.ndarray` instance represented
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:40:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | extension Bool : NumpyScalarCompatible {
40 | public static let numpyScalarTypes = [np.bool_, Python.bool]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | public static var ctype: PythonObject { return ctypes.c_bool }
42 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:45:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | extension UInt8 : NumpyScalarCompatible {
45 | public static let numpyScalarTypes = [np.uint8]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | public static var ctype: PythonObject { return ctypes.c_uint8 }
47 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:50:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | extension Int8 : NumpyScalarCompatible {
50 | public static let numpyScalarTypes = [np.int8]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | public static var ctype: PythonObject { return ctypes.c_int8 }
52 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:55:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
53 |
54 | extension UInt16 : NumpyScalarCompatible {
55 | public static let numpyScalarTypes = [np.uint16]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | public static var ctype: PythonObject { return ctypes.c_uint16 }
57 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:60:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | extension Int16 : NumpyScalarCompatible {
60 | public static let numpyScalarTypes = [np.int16]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | public static var ctype: PythonObject { return ctypes.c_int16 }
62 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:65:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
63 |
64 | extension UInt32 : NumpyScalarCompatible {
65 | public static let numpyScalarTypes = [np.uint32]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 | public static var ctype: PythonObject { return ctypes.c_uint32 }
67 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:70:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | extension Int32 : NumpyScalarCompatible {
70 | public static let numpyScalarTypes = [np.int32]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | public static var ctype: PythonObject { return ctypes.c_int32 }
72 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:75:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | extension UInt64 : NumpyScalarCompatible {
75 | public static let numpyScalarTypes = [np.uint64]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | public static var ctype: PythonObject { return ctypes.c_uint64 }
77 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:80:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
78 |
79 | extension Int64 : NumpyScalarCompatible {
80 | public static let numpyScalarTypes = [np.int64]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | public static var ctype: PythonObject { return ctypes.c_int64 }
82 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:85:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
83 |
84 | extension Float : NumpyScalarCompatible {
85 | public static let numpyScalarTypes = [np.float32]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | public static var ctype: PythonObject { return ctypes.c_float }
87 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:90:23: warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
88 |
89 | extension Double : NumpyScalarCompatible {
90 | public static let numpyScalarTypes = [np.float64]
| |- warning: static property 'numpyScalarTypes' is not concurrency-safe because non-'Sendable' type '[PythonObject]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numpyScalarTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 | public static var ctype: PythonObject { return ctypes.c_double }
92 | }
/host/spi-builder-workspace/PythonKit/Python.swift:89:15: note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
/host/spi-builder-workspace/PythonKit/Python.swift:40:17: error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
26 | /// Typealias used when passing or returning a `PyObject` pointer with
27 | /// implied ownership.
28 | typealias OwnedPyObjectPointer = PyObjectPointer
| `- note: type declared here
29 |
30 | /// A primitive reference to a Python C API `PyObject`.
:
38 | @usableFromInline @_fixed_layout
39 | final class PyReference {
40 | private var pointer: OwnedPyObjectPointer
| `- error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
41 |
42 | // This `PyReference`, once deleted, will make no delta change to the
/host/spi-builder-workspace/PythonKit/Python.swift:211:10: warning: associated value 'exception(_:traceback:)' of 'Sendable'-conforming enum 'PythonError' has non-sendable type 'PythonObject'; this is an error in the Swift 6 language mode
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
:
209 | public enum PythonError : Error, Equatable {
210 | /// A Python runtime exception, produced by calling a Python function.
211 | case exception(PythonObject, traceback: PythonObject?)
| `- warning: associated value 'exception(_:traceback:)' of 'Sendable'-conforming enum 'PythonError' has non-sendable type 'PythonObject'; this is an error in the Swift 6 language mode
212 |
213 | /// A failed call on a `PythonObject`.
/host/spi-builder-workspace/PythonKit/Python.swift:211:10: warning: associated value 'exception(_:traceback:)' of 'Sendable'-conforming enum 'PythonError' has non-sendable type 'PythonObject'; this is an error in the Swift 6 language mode
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
:
209 | public enum PythonError : Error, Equatable {
210 | /// A Python runtime exception, produced by calling a Python function.
211 | case exception(PythonObject, traceback: PythonObject?)
| `- warning: associated value 'exception(_:traceback:)' of 'Sendable'-conforming enum 'PythonError' has non-sendable type 'PythonObject'; this is an error in the Swift 6 language mode
212 |
213 | /// A failed call on a `PythonObject`.
/host/spi-builder-workspace/PythonKit/Python.swift:219:10: warning: associated value 'invalidCall' of 'Sendable'-conforming enum 'PythonError' has non-sendable type 'PythonObject'; this is an error in the Swift 6 language mode
87 | @dynamicCallable
88 | @dynamicMemberLookup
89 | public struct PythonObject {
| `- note: consider making struct 'PythonObject' conform to the 'Sendable' protocol
90 | /// The underlying `PyReference`.
91 | fileprivate var reference: PyReference
:
217 | /// object.
218 | /// - An invalid keyword argument was specified.
219 | case invalidCall(PythonObject)
| `- warning: associated value 'invalidCall' of 'Sendable'-conforming enum 'PythonError' has non-sendable type 'PythonObject'; this is an error in the Swift 6 language mode
220 |
221 | /// A module import error.
/host/spi-builder-workspace/PythonKit/Python.swift:630: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
628 | /// print(Python.type(list) == Python.list) // Prints true.
629 | @_fixed_layout
630 | 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
631 |
632 | /// An interface for Python.
:
638 | /// called `Python`.
639 | @dynamicMemberLookup
640 | public struct PythonInterface {
| `- note: consider making struct 'PythonInterface' conform to the 'Sendable' protocol
641 | /// A dictionary of the Python builtins.
642 | public let builtins: PythonObject
/host/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:181: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
179 | legacyName: "PyString_FromStringAndSize")
180 |
181 | 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
182 | PythonLibrary.loadSymbol(name: "_Py_ZeroStruct")
183 |
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:184: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
182 | PythonLibrary.loadSymbol(name: "_Py_ZeroStruct")
183 |
184 | 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
185 | PythonLibrary.loadSymbol(name: "_Py_TrueStruct")
186 |
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:187: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
185 | PythonLibrary.loadSymbol(name: "_Py_TrueStruct")
186 |
187 | 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
188 | PythonLibrary.loadSymbol(name: "PyBool_Type")
189 |
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:190: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
188 | PythonLibrary.loadSymbol(name: "PyBool_Type")
189 |
190 | 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
191 | PythonLibrary.loadSymbol(name: "PySlice_Type")
192 |
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:31:24: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PythonLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
28 | //===----------------------------------------------------------------------===//
29 |
30 | public struct PythonLibrary {
| `- note: consider making struct 'PythonLibrary' conform to the 'Sendable' protocol
31 | private static let shared = PythonLibrary()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PythonLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | private static let pythonLegacySymbolName = "PyString_AsString"
33 | private static var librarySymbolsLoaded = false
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:33:24: warning: static property 'librarySymbolsLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | private static let shared = PythonLibrary()
32 | private static let pythonLegacySymbolName = "PyString_AsString"
33 | private static var librarySymbolsLoaded = false
| |- warning: static property 'librarySymbolsLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'librarySymbolsLoaded' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'librarySymbolsLoaded' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | private let pythonLibraryHandle: UnsafeMutableRawPointer
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:175:34: error: cannot find 'librarySearchPaths' in scope
173 | static let libraryPaths: [String] = {
174 | var libraryPaths: [String] = []
175 | for librarySearchPath in librarySearchPaths {
| `- error: cannot find 'librarySearchPaths' in scope
176 | for libraryName in libraryNames {
177 | for libraryPathExtension in libraryPathExtensions {
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:176:32: error: cannot find 'libraryNames' in scope
174 | var libraryPaths: [String] = []
175 | for librarySearchPath in librarySearchPaths {
176 | for libraryName in libraryNames {
| `- error: cannot find 'libraryNames' in scope
177 | for libraryPathExtension in libraryPathExtensions {
178 | let libraryPath =
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:177:45: error: cannot find 'libraryPathExtensions' in scope
175 | for librarySearchPath in librarySearchPaths {
176 | for libraryName in libraryNames {
177 | for libraryPathExtension in libraryPathExtensions {
| `- error: cannot find 'libraryPathExtensions' in scope
178 | let libraryPath =
179 | librarySearchPath + libraryName + libraryPathExtension
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/8] Write swift-version-24593BA9C3E375BF.txt
[2/52] Compiling PythonKit PythonLibrary+Symbols.swift
[3/52] Compiling PythonKit PythonLibrary.swift
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:175:34: error: cannot find 'librarySearchPaths' in scope
173 | static let libraryPaths: [String] = {
174 | var libraryPaths: [String] = []
175 | for librarySearchPath in librarySearchPaths {
| `- error: cannot find 'librarySearchPaths' in scope
176 | for libraryName in libraryNames {
177 | for libraryPathExtension in libraryPathExtensions {
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:176:32: error: cannot find 'libraryNames' in scope
174 | var libraryPaths: [String] = []
175 | for librarySearchPath in librarySearchPaths {
176 | for libraryName in libraryNames {
| `- error: cannot find 'libraryNames' in scope
177 | for libraryPathExtension in libraryPathExtensions {
178 | let libraryPath =
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:177:45: error: cannot find 'libraryPathExtensions' in scope
175 | for librarySearchPath in librarySearchPaths {
176 | for libraryName in libraryNames {
177 | for libraryPathExtension in libraryPathExtensions {
| `- error: cannot find 'libraryPathExtensions' in scope
178 | let libraryPath =
179 | librarySearchPath + libraryName + libraryPathExtension
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:135:31: error: cannot find 'getenv' in scope
133 |
134 | var value: String? {
135 | guard let value = getenv(key) else { return nil }
| `- error: cannot find 'getenv' in scope
136 | return String(cString: value)
137 | }
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:221:32: error: cannot find 'libraryVersionSeparator' in scope
219 | let libraryVersionString = versionString
220 | .split(separator: PythonVersion.versionSeparator)
221 | .joined(separator: libraryVersionSeparator)
| `- error: cannot find 'libraryVersionSeparator' in scope
222 | let path = path.split(separator: libraryPathVersionCharacter)
223 | .joined(separator: libraryVersionString)
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:237:12: error: instance member 'pythonLibraryHandle' cannot be used on type 'PythonLibrary'
235 | #endif
236 |
237 | if pythonLibraryHandle != nil {
| `- error: instance member 'pythonLibraryHandle' cannot be used on type 'PythonLibrary'
238 | log("Library at '\(path)' was sucessfully loaded.")
239 | }
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:240:16: error: instance member 'pythonLibraryHandle' cannot be used on type 'PythonLibrary'
238 | log("Library at '\(path)' was sucessfully loaded.")
239 | }
240 | return pythonLibraryHandle
| `- error: instance member 'pythonLibraryHandle' cannot be used on type 'PythonLibrary'
241 | }
242 | }
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:248:9: error: cannot find 'fputs' in scope
246 | static func log(_ message: String) {
247 | guard Environment.loaderLogging.value != nil else { return }
248 | fputs(message + "\n", stderr)
| `- error: cannot find 'fputs' in scope
249 | }
250 | }
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:248:31: error: cannot find 'stderr' in scope
246 | static func log(_ message: String) {
247 | guard Environment.loaderLogging.value != nil else { return }
248 | fputs(message + "\n", stderr)
| `- error: cannot find 'stderr' in scope
249 | }
250 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/52] Emitting module PythonKit
/host/spi-builder-workspace/PythonKit/Python.swift:40:17: error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
26 | /// Typealias used when passing or returning a `PyObject` pointer with
27 | /// implied ownership.
28 | typealias OwnedPyObjectPointer = PyObjectPointer
| `- note: type declared here
29 |
30 | /// A primitive reference to a Python C API `PyObject`.
:
38 | @usableFromInline @_fixed_layout
39 | final class PyReference {
40 | private var pointer: OwnedPyObjectPointer
| `- error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
41 |
42 | // This `PyReference`, once deleted, will make no delta change to the
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:175:34: error: cannot find 'librarySearchPaths' in scope
173 | static let libraryPaths: [String] = {
174 | var libraryPaths: [String] = []
175 | for librarySearchPath in librarySearchPaths {
| `- error: cannot find 'librarySearchPaths' in scope
176 | for libraryName in libraryNames {
177 | for libraryPathExtension in libraryPathExtensions {
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:176:32: error: cannot find 'libraryNames' in scope
174 | var libraryPaths: [String] = []
175 | for librarySearchPath in librarySearchPaths {
176 | for libraryName in libraryNames {
| `- error: cannot find 'libraryNames' in scope
177 | for libraryPathExtension in libraryPathExtensions {
178 | let libraryPath =
/host/spi-builder-workspace/PythonKit/PythonLibrary.swift:177:45: error: cannot find 'libraryPathExtensions' in scope
175 | for librarySearchPath in librarySearchPaths {
176 | for libraryName in libraryNames {
177 | for libraryPathExtension in libraryPathExtensions {
| `- error: cannot find 'libraryPathExtensions' in scope
178 | let libraryPath =
179 | librarySearchPath + libraryName + libraryPathExtension
[5/52] Compiling PythonKit NumpyConversion.swift
/host/spi-builder-workspace/PythonKit/NumpyConversion.swift:140:34: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
138 | dummyPointer.deallocate()
139 | withUnsafeMutableBufferPointer { buffPtr in
140 | buffPtr.baseAddress!.assign(from: ptr, count: scalarCount)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
141 | }
142 | }
[6/52] Compiling PythonKit Python.swift
/host/spi-builder-workspace/PythonKit/Python.swift:40:17: error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
26 | /// Typealias used when passing or returning a `PyObject` pointer with
27 | /// implied ownership.
28 | typealias OwnedPyObjectPointer = PyObjectPointer
| `- note: type declared here
29 |
30 | /// A primitive reference to a Python C API `PyObject`.
:
38 | @usableFromInline @_fixed_layout
39 | final class PyReference {
40 | private var pointer: OwnedPyObjectPointer
| `- error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
41 |
42 | // This `PyReference`, once deleted, will make no delta change to the
BUILD FAILURE 6.1 android