Build Information
Successful build of PeripheryKit, reference main (a02676
), with Swift 6.0 for Linux on 5 Nov 2024 08:29:06 UTC.
Swift 6 data race errors: 1
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CmST0us/PeripheryKit.git
Reference: main
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/CmST0us/PeripheryKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a02676d package: remote sysroot copy plugin package: add static and shared product target Cperiphery: bump to 1.0.0 version
Cloned https://github.com/CmST0us/PeripheryKit.git
Revision (git rev-parse @):
a02676dd096523ec792fab3574ae490b421f0364
SUCCESS checkout https://github.com/CmST0us/PeripheryKit.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/CmST0us/PeripheryKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
[1/1] Compiling plugin DownloadCPeriphery
Building for debugging...
[1/24] Write sources
[3/24] Compiling Cperiphery version.c
[4/24] Compiling Cperiphery gpio_cdev_v2.c
[5/24] Compiling Cperiphery shims.c
[6/24] Compiling Cperiphery gpio_sysfs.c
[7/24] Compiling Cperiphery gpio.c
[8/24] Compiling Cperiphery spi.c
[9/24] Compiling Cperiphery mmio.c
[10/24] Compiling Cperiphery serial.c
[11/24] Compiling Cperiphery led.c
[12/24] Compiling Cperiphery pwm.c
[13/24] Compiling Cperiphery i2c.c
[14/24] Compiling Cperiphery gpio_cdev_v1.c
[15/24] Write swift-version-24593BA9C3E375BF.txt
[17/34] Emitting module PeripheryKit
[18/35] Compiling PeripheryKit Button.swift
[19/35] Compiling PeripheryKit Buzzer.swift
[20/35] Compiling PeripheryKit Data+Int.swift
[21/35] Compiling PeripheryKit LED.swift
[22/35] Compiling PeripheryKit PWM.swift
/host/spi-builder-workspace/Sources/PeripheryKit/PWM.swift:50:13: warning: capture of 'self' with non-sendable type 'PWMModulation?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Cperiphery
10 |
11 | public class PWMModulation {
| `- note: class 'PWMModulation' does not conform to the 'Sendable' protocol
12 |
13 | private let workingQueue: DispatchQueue
:
48 |
49 | workingQueue.async { [weak self] in
50 | self?.doModulation()
| `- warning: capture of 'self' with non-sendable type 'PWMModulation?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
51 | }
52 | }
/host/spi-builder-workspace/Sources/PeripheryKit/PWM.swift:68:13: warning: capture of 'self' with non-sendable type 'PWMModulation?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Cperiphery
10 |
11 | public class PWMModulation {
| `- note: class 'PWMModulation' does not conform to the 'Sendable' protocol
12 |
13 | private let workingQueue: DispatchQueue
:
66 | Delay.nanosecond(Int(lowTime * 1_000_000_000))
67 | workingQueue.async { [weak self] in
68 | self?.doModulation()
| `- warning: capture of 'self' with non-sendable type 'PWMModulation?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | }
70 | }
[23/35] Compiling PeripheryKit GPIOEventDispatcher.swift
/host/spi-builder-workspace/Sources/PeripheryKit/GPIOEventDispatcher.swift:64:13: warning: capture of 'self' with non-sendable type 'GPIOEventDispatcher?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | public class GPIOEventDispatcher {
| `- note: class 'GPIOEventDispatcher' does not conform to the 'Sendable' protocol
11 |
12 | private let workingQueue: DispatchQueue
:
62 |
63 | workingQueue.async { [weak self] in
64 | self?.doPoll()
| `- warning: capture of 'self' with non-sendable type 'GPIOEventDispatcher?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | }
66 | }
[24/35] Compiling PeripheryKit Delay.swift
[25/35] Compiling PeripheryKit GPIO.swift
[26/35] Compiling PeripheryKit I2C.swift
[27/35] Compiling PeripheryKit Int+Data.swift
[28/36] Wrapping AST for PeripheryKit for debugging
[29/36] Write Objects.LinkFileList
[31/36] Archiving libPeripheryKit_static.a
[32/38] Linking libPeripheryKit_shared.so
[34/38] Emitting module pio
/host/spi-builder-workspace/Sources/pio/pio.swift:49:20: warning: static property 'twinkle' is not concurrency-safe because non-'Sendable' type '[(note: Buzzer.Note, value: Int)]' may have shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | struct Music {
49 | static let twinkle: [(note: Buzzer.Note, value: Int)] = [
| `- warning: static property 'twinkle' is not concurrency-safe because non-'Sendable' type '[(note: Buzzer.Note, value: Int)]' may have shared mutable state; this is an error in the Swift 6 language mode
50 | (.C4, 4),
51 | (.C4, 4),
/host/spi-builder-workspace/Sources/PeripheryKit/Buzzer.swift:113:17: note: enum 'Note' does not conform to the 'Sendable' protocol
111 | ]
112 |
113 | public enum Note: Int {
| `- note: enum 'Note' does not conform to the 'Sendable' protocol
114 | case A0 = 1
115 | case AS0 = 2
/host/spi-builder-workspace/Sources/pio/pio.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PeripheryKit'
1 | import Foundation
2 | import PeripheryKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PeripheryKit'
3 | import Cperiphery
4 |
:
47 |
48 | struct Music {
49 | static let twinkle: [(note: Buzzer.Note, value: Int)] = [
| |- note: annotate 'twinkle' 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
50 | (.C4, 4),
51 | (.C4, 4),
[35/38] Compiling pio pio.swift
/host/spi-builder-workspace/Sources/pio/pio.swift:49:20: warning: static property 'twinkle' is not concurrency-safe because non-'Sendable' type '[(note: Buzzer.Note, value: Int)]' may have shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | struct Music {
49 | static let twinkle: [(note: Buzzer.Note, value: Int)] = [
| `- warning: static property 'twinkle' is not concurrency-safe because non-'Sendable' type '[(note: Buzzer.Note, value: Int)]' may have shared mutable state; this is an error in the Swift 6 language mode
50 | (.C4, 4),
51 | (.C4, 4),
/host/spi-builder-workspace/Sources/PeripheryKit/Buzzer.swift:113:17: note: enum 'Note' does not conform to the 'Sendable' protocol
111 | ]
112 |
113 | public enum Note: Int {
| `- note: enum 'Note' does not conform to the 'Sendable' protocol
114 | case A0 = 1
115 | case AS0 = 2
/host/spi-builder-workspace/Sources/pio/pio.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PeripheryKit'
1 | import Foundation
2 | import PeripheryKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PeripheryKit'
3 | import Cperiphery
4 |
:
47 |
48 | struct Music {
49 | static let twinkle: [(note: Buzzer.Note, value: Int)] = [
| |- note: annotate 'twinkle' 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
50 | (.C4, 4),
51 | (.C4, 4),
/host/spi-builder-workspace/Sources/pio/pio.swift:160:17: warning: capture of 'buzzer' with non-sendable type 'Buzzer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 | DispatchQueue.global().async {
159 | for _ in 0..<4 {
160 | buzzer.play(track: Music.twinkle)
| `- warning: capture of 'buzzer' with non-sendable type 'Buzzer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 |
162 | bpm += 40
/host/spi-builder-workspace/Sources/PeripheryKit/Buzzer.swift:10:14: note: class 'Buzzer' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public class Buzzer {
| `- note: class 'Buzzer' does not conform to the 'Sendable' protocol
11 |
12 | public var bpm: Float
/host/spi-builder-workspace/Sources/pio/pio.swift:162:17: warning: mutation of captured var 'bpm' in concurrently-executing code; this is an error in the Swift 6 language mode
160 | buzzer.play(track: Music.twinkle)
161 |
162 | bpm += 40
| `- warning: mutation of captured var 'bpm' in concurrently-executing code; this is an error in the Swift 6 language mode
163 | buzzer.bpm = bpm
164 |
/host/spi-builder-workspace/Sources/pio/pio.swift:163:30: warning: reference to captured var 'bpm' in concurrently-executing code; this is an error in the Swift 6 language mode
161 |
162 | bpm += 40
163 | buzzer.bpm = bpm
| `- warning: reference to captured var 'bpm' in concurrently-executing code; this is an error in the Swift 6 language mode
164 |
165 | halfStep += 12
/host/spi-builder-workspace/Sources/pio/pio.swift:165:17: warning: mutation of captured var 'halfStep' in concurrently-executing code; this is an error in the Swift 6 language mode
163 | buzzer.bpm = bpm
164 |
165 | halfStep += 12
| `- warning: mutation of captured var 'halfStep' in concurrently-executing code; this is an error in the Swift 6 language mode
166 | buzzer.fixedHalfStep = halfStep
167 |
/host/spi-builder-workspace/Sources/pio/pio.swift:166:40: warning: reference to captured var 'halfStep' in concurrently-executing code; this is an error in the Swift 6 language mode
164 |
165 | halfStep += 12
166 | buzzer.fixedHalfStep = halfStep
| `- warning: reference to captured var 'halfStep' in concurrently-executing code; this is an error in the Swift 6 language mode
167 |
168 | Thread.sleep(forTimeInterval: 1)
[36/39] Wrapping AST for pio for debugging
[37/39] Write Objects.LinkFileList
[38/39] Linking pio
Build complete! (21.89s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "PeripheryKit",
"name" : "PeripheryKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "PeripheryKit_static",
"targets" : [
"PeripheryKit"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "PeripheryKit_shared",
"targets" : [
"PeripheryKit"
],
"type" : {
"library" : [
"dynamic"
]
}
},
{
"name" : "pio",
"targets" : [
"pio"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "pio",
"module_type" : "SwiftTarget",
"name" : "pio",
"path" : "Sources/pio",
"product_memberships" : [
"pio"
],
"sources" : [
"pio.swift"
],
"target_dependencies" : [
"PeripheryKit"
],
"type" : "executable"
},
{
"c99name" : "PeripheryKitTests",
"module_type" : "SwiftTarget",
"name" : "PeripheryKitTests",
"path" : "Tests/PeripheryKitTests",
"sources" : [
"PeripheryKitTests.swift"
],
"target_dependencies" : [
"PeripheryKit"
],
"type" : "test"
},
{
"c99name" : "PeripheryKit",
"module_type" : "SwiftTarget",
"name" : "PeripheryKit",
"path" : "Sources/PeripheryKit",
"product_memberships" : [
"PeripheryKit_static",
"PeripheryKit_shared",
"pio"
],
"sources" : [
"Button.swift",
"Buzzer.swift",
"Delay.swift",
"GPIO.swift",
"GPIOEventDispatcher.swift",
"I2C.swift",
"LED.swift",
"PWM.swift",
"Utils/Data+Int.swift",
"Utils/Int+Data.swift"
],
"target_dependencies" : [
"Cperiphery"
],
"type" : "library"
},
{
"c99name" : "DownloadCPeriphery",
"module_type" : "PluginTarget",
"name" : "DownloadCPeriphery",
"path" : "Plugins/DownloadCPeriphery",
"plugin_capability" : {
"intent" : {
"description" : "Download c-periphery",
"type" : "custom",
"verb" : "download-c-periphery"
},
"permissions" : [
{
"network_scope" : {
"all" : {
"ports" : [
443
]
}
},
"reason" : "Download packages",
"type" : "allowNetworkConnections"
},
{
"network_scope" : {
"none" : {
}
},
"reason" : "Write packages",
"type" : "writeToPackageDirectory"
}
],
"type" : "command"
},
"sources" : [
"DownloadCPeriphery.swift"
],
"type" : "plugin"
},
{
"c99name" : "Cperiphery",
"module_type" : "ClangTarget",
"name" : "Cperiphery",
"path" : "Sources/Cperiphery",
"product_memberships" : [
"PeripheryKit_static",
"PeripheryKit_shared",
"pio"
],
"sources" : [
"gpio.c",
"gpio_cdev_v1.c",
"gpio_cdev_v2.c",
"gpio_sysfs.c",
"i2c.c",
"led.c",
"mmio.c",
"pwm.c",
"serial.c",
"shims.c",
"spi.c",
"version.c"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.