Build Information
Successful build of MCP4725, reference 0.1.0 (30bdd6
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 01:46:04 UTC.
Swift 6 data race errors: 2
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kaiede/MCP4725.git
Reference: 0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Kaiede/MCP4725
* tag 0.1.0 -> FETCH_HEAD
HEAD is now at 30bdd6b Align with SingleBoard 1.0.0
Cloned https://github.com/Kaiede/MCP4725.git
Revision (git rev-parse @):
30bdd6b7060b33e1e18bc768dca2009e0424b752
SUCCESS checkout https://github.com/Kaiede/MCP4725.git at 0.1.0
Fetching https://github.com/Kaiede/SingleBoard.git
[1/277] Fetching singleboard
Fetched https://github.com/Kaiede/SingleBoard.git from cache (0.77s)
Computing version for https://github.com/Kaiede/SingleBoard.git
Computed https://github.com/Kaiede/SingleBoard.git at 1.0.0 (0.67s)
Creating working copy for https://github.com/Kaiede/SingleBoard.git
Working copy of https://github.com/Kaiede/SingleBoard.git resolved at 1.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "mcp4725",
"name": "MCP4725",
"url": "https://github.com/Kaiede/MCP4725.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/MCP4725",
"dependencies": [
{
"identity": "singleboard",
"name": "SingleBoard",
"url": "https://github.com/Kaiede/SingleBoard.git",
"version": "1.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SingleBoard",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/Kaiede/MCP4725.git
[1/28] Fetching mcp4725
Fetched https://github.com/Kaiede/MCP4725.git from cache (0.59s)
Fetching https://github.com/Kaiede/SingleBoard.git from cache
Fetched https://github.com/Kaiede/SingleBoard.git from cache (0.46s)
Computing version for https://github.com/Kaiede/SingleBoard.git
Computed https://github.com/Kaiede/SingleBoard.git at 1.0.0 (0.03s)
Creating working copy for https://github.com/Kaiede/SingleBoard.git
Working copy of https://github.com/Kaiede/SingleBoard.git resolved at 1.0.0
Creating working copy for https://github.com/Kaiede/MCP4725.git
Working copy of https://github.com/Kaiede/MCP4725.git resolved at 0.1.0 (30bdd6b)
warning: '.resolve-product-dependencies': dependency 'mcp4725' is not used by any target
Found 1 product dependencies
- SingleBoard
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/Kaiede/MCP4725.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/13] Compiling SingleBoard Raspberry_Registers.swift
[5/13] Compiling SingleBoard SingleBoard.swift
[6/13] Compiling SingleBoard Extensions.swift
[7/13] Compiling SingleBoard Raspberry_PWM.swift
[8/13] Compiling SingleBoard Chip_Board.swift
[9/13] Compiling SingleBoard Raspberry_Board.swift
[10/13] Emitting module SingleBoard
[11/13] Compiling SingleBoard Pine_Board.swift
[12/13] Compiling SingleBoard I2C.swift
[13/13] Compiling SingleBoard GPIO.swift
[14/15] Compiling MCP4725 MCP4725.swift
/Users/admin/builder/spi-builder-workspace/Sources/MCP4725.swift:48:20: warning: static property 'dataLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | internal struct FastModeData: I2CWritable {
48 | static var dataLength: Int = MemoryLayout<UInt16>.size
| |- warning: static property 'dataLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dataLength' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dataLength' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | var mode: PowerDownMode
50 | var voltage: UInt16
/Users/admin/builder/spi-builder-workspace/Sources/MCP4725.swift:71:20: warning: static property 'dataLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 |
70 | internal struct FullData: I2CReadWritable {
71 | static var dataLength: Int = MemoryLayout<UInt8>.size * 3
| |- warning: static property 'dataLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dataLength' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dataLength' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | var command: WriteCommand
[15/15] Emitting module MCP4725
/Users/admin/builder/spi-builder-workspace/Sources/MCP4725.swift:48:20: warning: static property 'dataLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | internal struct FastModeData: I2CWritable {
48 | static var dataLength: Int = MemoryLayout<UInt16>.size
| |- warning: static property 'dataLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dataLength' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dataLength' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | var mode: PowerDownMode
50 | var voltage: UInt16
/Users/admin/builder/spi-builder-workspace/Sources/MCP4725.swift:71:20: warning: static property 'dataLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 |
70 | internal struct FullData: I2CReadWritable {
71 | static var dataLength: Int = MemoryLayout<UInt8>.size * 3
| |- warning: static property 'dataLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dataLength' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dataLength' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | var command: WriteCommand
Build complete! (13.33s)
Build complete.
{
"dependencies" : [
{
"identity" : "singleboard",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kaiede/SingleBoard.git"
}
],
"manifest_display_name" : "MCP4725",
"name" : "MCP4725",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "MCP4725",
"targets" : [
"MCP4725"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MCP4725",
"module_type" : "SwiftTarget",
"name" : "MCP4725",
"path" : "Sources",
"product_dependencies" : [
"SingleBoard"
],
"product_memberships" : [
"MCP4725"
],
"sources" : [
"MCP4725.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Done.