Build Information
Successful build of BrainFlow, reference 0.0.1-dev.20260608.1 (56cbdc), with Swift 6.1 for Linux on 29 Jun 2026 15:20:25 UTC.
Swift 6 data race errors: 6
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/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>&1Build Log
========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tsvvladimir/brainflow-swift.git
Reference: 0.0.1-dev.20260608.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/tsvvladimir/brainflow-swift
* tag 0.0.1-dev.20260608.1 -> FETCH_HEAD
HEAD is now at 56cbdc6 Release BrainFlow Swift dev package
Cloned https://github.com/tsvvladimir/brainflow-swift.git
Revision (git rev-parse @):
56cbdc6651427f12c20e5a2ab750eb7903d04581
SUCCESS checkout https://github.com/tsvvladimir/brainflow-swift.git at 0.0.1-dev.20260608.1
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/tsvvladimir/brainflow-swift.git
https://github.com/tsvvladimir/brainflow-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/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 saguaro1/spi-images
Digest: sha256:0f094b998e61bb35b7a666f42e392cfb12929ea8fa9160622b1badd8b73d5c87
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.1-latest
Downloading binary artifact https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/MLModule.xcframework.zip
Downloading binary artifact https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/BoardController.xcframework.zip
Downloading binary artifact https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/DataHandler.xcframework.zip
[797/452313] Downloading https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/MLModule.xcframework.zip
[53917/2778235] Downloading https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/MLModule.xcframework.zip, https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/BoardController.xcframework.zip
[181934/4386609] Downloading https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/MLModule.xcframework.zip, https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/BoardController.xcframework.zip, https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/DataHandler.xcframework.zip
Downloaded https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/MLModule.xcframework.zip (0.31s)
[1172005/3934296] Downloading https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/BoardController.xcframework.zip, https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/DataHandler.xcframework.zip
Downloaded https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/DataHandler.xcframework.zip (0.42s)
[1742821/2325922] Downloading https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/BoardController.xcframework.zip
Downloaded https://github.com/tsvvladimir/brainflow-swift/releases/download/0.0.1-dev.20260608.1/BoardController.xcframework.zip (0.57s)
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Emitting module BrainFlow
/host/spi-builder-workspace/Sources/BrainFlow/BoardShim.swift:593:24: warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
591 |
592 | private static let lock = NSLock()
593 | private static var cached: BoardShimNative?
| |- warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cached' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cached' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
594 |
595 | static func withBoard<T>(_ body: (BoardShimNative) throws -> T) throws -> T {
/host/spi-builder-workspace/Sources/BrainFlow/BrainFlowNative.swift:139:16: warning: static property 'boardController' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
137 |
138 | enum NativeLibraries {
139 | static let boardController = LazyNativeLibrary(names: [
| |- warning: static property 'boardController' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'boardController' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 | platformLibraryName(base: "BoardController"),
141 | "BoardController"
:
161 | }
162 |
163 | final class LazyNativeLibrary {
| `- note: class 'LazyNativeLibrary' does not conform to the 'Sendable' protocol
164 | private let names: [String]
165 | private let lock = NSLock()
/host/spi-builder-workspace/Sources/BrainFlow/BrainFlowNative.swift:143:16: warning: static property 'dataHandler' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
141 | "BoardController"
142 | ])
143 | static let dataHandler = LazyNativeLibrary(names: [
| |- warning: static property 'dataHandler' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dataHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 | platformLibraryName(base: "DataHandler"),
145 | "DataHandler"
:
161 | }
162 |
163 | final class LazyNativeLibrary {
| `- note: class 'LazyNativeLibrary' does not conform to the 'Sendable' protocol
164 | private let names: [String]
165 | private let lock = NSLock()
/host/spi-builder-workspace/Sources/BrainFlow/BrainFlowNative.swift:147:16: warning: static property 'mlModule' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
145 | "DataHandler"
146 | ])
147 | static let mlModule = LazyNativeLibrary(names: [
| |- warning: static property 'mlModule' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mlModule' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 | platformLibraryName(base: "MLModule"),
149 | "MLModule"
:
161 | }
162 |
163 | final class LazyNativeLibrary {
| `- note: class 'LazyNativeLibrary' does not conform to the 'Sendable' protocol
164 | private let names: [String]
165 | private let lock = NSLock()
/host/spi-builder-workspace/Sources/BrainFlow/DataFilter.swift:765:24: warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
763 |
764 | private static let lock = NSLock()
765 | private static var cached: DataFilterNative?
| |- warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cached' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cached' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
766 |
767 | static func withData<T>(_ body: (DataFilterNative) throws -> T) throws -> T {
/host/spi-builder-workspace/Sources/BrainFlow/MLModel.swift:115:24: warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
113 |
114 | private static let lock = NSLock()
115 | private static var cached: MLModelNative?
| |- warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cached' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cached' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
116 |
117 | static func withML<T>(_ body: (MLModelNative) throws -> T) throws -> T {
[4/11] Compiling BrainFlow MLModel.swift
/host/spi-builder-workspace/Sources/BrainFlow/MLModel.swift:115:24: warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
113 |
114 | private static let lock = NSLock()
115 | private static var cached: MLModelNative?
| |- warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cached' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cached' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
116 |
117 | static func withML<T>(_ body: (MLModelNative) throws -> T) throws -> T {
[5/11] Compiling BrainFlow BrainFlowTypes.swift
[6/11] Compiling BrainFlow DataFilter.swift
/host/spi-builder-workspace/Sources/BrainFlow/DataFilter.swift:765:24: warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
763 |
764 | private static let lock = NSLock()
765 | private static var cached: DataFilterNative?
| |- warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cached' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cached' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
766 |
767 | static func withData<T>(_ body: (DataFilterNative) throws -> T) throws -> T {
[7/11] Compiling BrainFlow BrainFlowParams.swift
[8/11] Compiling BrainFlow BrainFlowNative.swift
/host/spi-builder-workspace/Sources/BrainFlow/BrainFlowNative.swift:139:16: warning: static property 'boardController' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
137 |
138 | enum NativeLibraries {
139 | static let boardController = LazyNativeLibrary(names: [
| |- warning: static property 'boardController' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'boardController' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 | platformLibraryName(base: "BoardController"),
141 | "BoardController"
:
161 | }
162 |
163 | final class LazyNativeLibrary {
| `- note: class 'LazyNativeLibrary' does not conform to the 'Sendable' protocol
164 | private let names: [String]
165 | private let lock = NSLock()
/host/spi-builder-workspace/Sources/BrainFlow/BrainFlowNative.swift:143:16: warning: static property 'dataHandler' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
141 | "BoardController"
142 | ])
143 | static let dataHandler = LazyNativeLibrary(names: [
| |- warning: static property 'dataHandler' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dataHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 | platformLibraryName(base: "DataHandler"),
145 | "DataHandler"
:
161 | }
162 |
163 | final class LazyNativeLibrary {
| `- note: class 'LazyNativeLibrary' does not conform to the 'Sendable' protocol
164 | private let names: [String]
165 | private let lock = NSLock()
/host/spi-builder-workspace/Sources/BrainFlow/BrainFlowNative.swift:147:16: warning: static property 'mlModule' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
145 | "DataHandler"
146 | ])
147 | static let mlModule = LazyNativeLibrary(names: [
| |- warning: static property 'mlModule' is not concurrency-safe because non-'Sendable' type 'LazyNativeLibrary' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mlModule' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 | platformLibraryName(base: "MLModule"),
149 | "MLModule"
:
161 | }
162 |
163 | final class LazyNativeLibrary {
| `- note: class 'LazyNativeLibrary' does not conform to the 'Sendable' protocol
164 | private let names: [String]
165 | private let lock = NSLock()
[9/11] Compiling BrainFlow BoardShim.swift
/host/spi-builder-workspace/Sources/BrainFlow/BoardShim.swift:593:24: warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
591 |
592 | private static let lock = NSLock()
593 | private static var cached: BoardShimNative?
| |- warning: static property 'cached' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cached' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'cached' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
594 |
595 | static func withBoard<T>(_ body: (BoardShimNative) throws -> T) throws -> T {
[10/11] Compiling BrainFlow BrainFlowError.swift
[11/11] Compiling BrainFlow BrainFlowEnums.swift
Build complete! (3.98s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "BrainFlow",
"name" : "BrainFlow",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "BrainFlow",
"targets" : [
"BrainFlow"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MLModule",
"module_type" : "BinaryTarget",
"name" : "MLModule",
"path" : "remote/archive/MLModule.xcframework.zip",
"product_memberships" : [
"BrainFlow"
],
"sources" : [
],
"type" : "binary"
},
{
"c99name" : "DataHandler",
"module_type" : "BinaryTarget",
"name" : "DataHandler",
"path" : "remote/archive/DataHandler.xcframework.zip",
"product_memberships" : [
"BrainFlow"
],
"sources" : [
],
"type" : "binary"
},
{
"c99name" : "BrainFlow",
"module_type" : "SwiftTarget",
"name" : "BrainFlow",
"path" : "Sources/BrainFlow",
"product_memberships" : [
"BrainFlow"
],
"sources" : [
"BoardShim.swift",
"BrainFlowEnums.swift",
"BrainFlowError.swift",
"BrainFlowNative.swift",
"BrainFlowParams.swift",
"BrainFlowTypes.swift",
"DataFilter.swift",
"MLModel.swift"
],
"target_dependencies" : [
"BoardController",
"DataHandler",
"MLModule"
],
"type" : "library"
},
{
"c99name" : "BoardController",
"module_type" : "BinaryTarget",
"name" : "BoardController",
"path" : "remote/archive/BoardController.xcframework.zip",
"product_memberships" : [
"BrainFlow"
],
"sources" : [
],
"type" : "binary"
}
],
"tools_version" : "5.9"
}
basic-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:0f094b998e61bb35b7a666f42e392cfb12929ea8fa9160622b1badd8b73d5c87
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.1-latest
Done.