Build Information
Successful build of swift-music, reference master (ab1026
), with Swift 6.0 for Linux on 3 Nov 2024 09:04:07 UTC.
Swift 6 data race errors: 6
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/sh3l6orrr/swift-music.git
Reference: master
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/sh3l6orrr/swift-music
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at ab10261 refactor code
Cloned https://github.com/sh3l6orrr/swift-music.git
Revision (git rev-parse @):
ab10261921f2b991b77c856ef793b3e23202c13d
SUCCESS checkout https://github.com/sh3l6orrr/swift-music.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/sh3l6orrr/swift-music.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/15] Compiling MusicTheory Lookup.swift
/host/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:1:5: warning: var 'nameToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | var nameToInterval: [String : Interval] = [
| |- warning: var 'nameToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToInterval' 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
2 | "octave" :.octave ,
3 | "minor second" :.m2 ,
/host/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:16:5: warning: var 'semitoneToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | ]
15 |
16 | var semitoneToInterval: [Int : Interval] = [
| |- warning: var 'semitoneToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'semitoneToInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'semitoneToInterval' 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
17 | 0 :.octave ,
18 | 1 :.m2 ,
/host/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:31:5: warning: var 'modeToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | ]
30 |
31 | var modeToIntervals: [Mode : [Interval]] = [
| |- warning: var 'modeToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'modeToIntervals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'modeToIntervals' 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
32 | .major : [.octave, .M2, .M3, .p4, .p5, .M6, .M7],
33 | .minor : [.octave, .M2, .m3, .p4, .p5, .m6, .m7]
/host/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:43:5: warning: var 'nameToNote' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 | ]
42 |
43 | var nameToNote: [String : Note] = [
| |- warning: var 'nameToNote' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToNote' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToNote' 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
44 | "C" : .C ,
45 | "C#" : .CD ,
/host/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:63:5: warning: var 'qualityToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | ]
62 |
63 | var qualityToIntervals: [Quality : [Interval]] = [
| |- warning: var 'qualityToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'qualityToIntervals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'qualityToIntervals' 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
64 | .power: [.octave, .p5],
65 | .suspended2ndTriad: [.octave, .M2, .p5],
/host/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:91:5: warning: var 'nameToQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
89 | ]
90 |
91 | var nameToQuality: [String : Quality] = [
| |- warning: var 'nameToQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToQuality' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToQuality' 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
92 | "5": .power,
93 | "sus2": .suspended2ndTriad,
[5/15] Compiling MusicTheory Note.swift
/host/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:43:5: warning: var 'nameToNote' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 | ]
42 |
43 | var nameToNote: [String : Note] = [
| |- warning: var 'nameToNote' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToNote' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToNote' 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
44 | "C" : .C ,
45 | "C#" : .CD ,
[6/15] Compiling MusicTheory Quality.swift
/host/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:63:5: warning: var 'qualityToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | ]
62 |
63 | var qualityToIntervals: [Quality : [Interval]] = [
| |- warning: var 'qualityToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'qualityToIntervals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'qualityToIntervals' 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
64 | .power: [.octave, .p5],
65 | .suspended2ndTriad: [.octave, .M2, .p5],
/host/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:91:5: warning: var 'nameToQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
89 | ]
90 |
91 | var nameToQuality: [String : Quality] = [
| |- warning: var 'nameToQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToQuality' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToQuality' 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
92 | "5": .power,
93 | "sus2": .suspended2ndTriad,
[7/15] Compiling MusicTheory Scale.swift
[8/15] Compiling MusicTheory Chord.swift
[9/15] Compiling MusicTheory Interval.swift
/host/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:16:5: warning: var 'semitoneToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | ]
15 |
16 | var semitoneToInterval: [Int : Interval] = [
| |- warning: var 'semitoneToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'semitoneToInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'semitoneToInterval' 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
17 | 0 :.octave ,
18 | 1 :.m2 ,
/host/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:1:5: warning: var 'nameToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | var nameToInterval: [String : Interval] = [
| |- warning: var 'nameToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToInterval' 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
2 | "octave" :.octave ,
3 | "minor second" :.m2 ,
[10/15] Emitting module MusicTheory
/host/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:1:5: warning: var 'nameToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | var nameToInterval: [String : Interval] = [
| |- warning: var 'nameToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToInterval' 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
2 | "octave" :.octave ,
3 | "minor second" :.m2 ,
/host/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:16:5: warning: var 'semitoneToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | ]
15 |
16 | var semitoneToInterval: [Int : Interval] = [
| |- warning: var 'semitoneToInterval' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'semitoneToInterval' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'semitoneToInterval' 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
17 | 0 :.octave ,
18 | 1 :.m2 ,
/host/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:31:5: warning: var 'modeToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | ]
30 |
31 | var modeToIntervals: [Mode : [Interval]] = [
| |- warning: var 'modeToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'modeToIntervals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'modeToIntervals' 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
32 | .major : [.octave, .M2, .M3, .p4, .p5, .M6, .M7],
33 | .minor : [.octave, .M2, .m3, .p4, .p5, .m6, .m7]
/host/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:43:5: warning: var 'nameToNote' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 | ]
42 |
43 | var nameToNote: [String : Note] = [
| |- warning: var 'nameToNote' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToNote' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToNote' 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
44 | "C" : .C ,
45 | "C#" : .CD ,
/host/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:63:5: warning: var 'qualityToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | ]
62 |
63 | var qualityToIntervals: [Quality : [Interval]] = [
| |- warning: var 'qualityToIntervals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'qualityToIntervals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'qualityToIntervals' 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
64 | .power: [.octave, .p5],
65 | .suspended2ndTriad: [.octave, .M2, .p5],
/host/spi-builder-workspace/Sources/MusicTheory/Lookup.swift:91:5: warning: var 'nameToQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
89 | ]
90 |
91 | var nameToQuality: [String : Quality] = [
| |- warning: var 'nameToQuality' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nameToQuality' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nameToQuality' 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
92 | "5": .power,
93 | "sus2": .suspended2ndTriad,
[11/15] Compiling MusicTheory Mode.swift
[12/16] Wrapping AST for MusicTheory for debugging
[14/18] Emitting module Run
[15/18] Compiling Run main.swift
[16/19] Wrapping AST for Run for debugging
[17/19] Write Objects.LinkFileList
[18/19] Linking Run
Build complete! (7.28s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "swift-music",
"name" : "swift-music",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "watchos",
"version" : "4.0"
},
{
"name" : "tvos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "MusicTheory",
"targets" : [
"MusicTheory"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Run",
"targets" : [
"Run"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "Run",
"module_type" : "SwiftTarget",
"name" : "Run",
"path" : "Sources/Run",
"product_memberships" : [
"Run"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"MusicTheory"
],
"type" : "executable"
},
{
"c99name" : "MusicTheoryTests",
"module_type" : "SwiftTarget",
"name" : "MusicTheoryTests",
"path" : "Tests/MusicTheoryTests",
"sources" : [
"AnyTest.swift",
"TestChord.swift",
"TestInterval.swift",
"TestNote.swift",
"TestScale.swift"
],
"target_dependencies" : [
"MusicTheory"
],
"type" : "test"
},
{
"c99name" : "MusicTheory",
"module_type" : "SwiftTarget",
"name" : "MusicTheory",
"path" : "Sources/MusicTheory",
"product_memberships" : [
"MusicTheory",
"Run"
],
"sources" : [
"Chord.swift",
"Interval.swift",
"Lookup.swift",
"Mode.swift",
"Note.swift",
"Quality.swift",
"Scale.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
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.