Build Information
Successful build of SwiftCalc with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/schwa/SwiftCalc.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/schwa/SwiftCalc
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at fb31571 Remove code cov to fix buildkite.
Cloned https://github.com/schwa/SwiftCalc.git
Revision (git rev-parse @):
fb31571bf338526f50478897027ac9747b7acaa7
SUCCESS checkout https://github.com/schwa/SwiftCalc.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/schwa/SwiftCalc.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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
[1/3] Write swift-version-6F35C1178C84523A.txt
[2/3] Compiling parser parser.c
[4/8] Compiling SwiftCalc Math.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCalc/Math.swift:32:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Function]' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public extension Math {
31 |
32 | static let all = [
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Function]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
33 | Function("sin") { parameters in
34 | return try .number(Darwin.sin(parameters.doubles.onlyElement))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCalc/SwiftCalc.swift:44:15: note: consider making struct 'Function' conform to the 'Sendable' protocol
42 | }
43 |
44 | public struct Function: Identifiable {
| `- note: consider making struct 'Function' conform to the 'Sendable' protocol
45 | public let id: String
46 | public let closure: ([Value]) throws -> Value
[5/8] Compiling SwiftCalc SwiftCalc.swift
[6/8] Compiling SwiftCalc Introspection.swift
[7/8] Compiling SwiftCalc AttributedString.swift
<unknown>:0: warning: cannot form key path that captures non-sendable type 'KeyPath<AttributeScopes.SwiftUIAttributes, AttributeScopes.SwiftUIAttributes.ForegroundColorAttribute>'; this is an error in the Swift 6 language mode
<unknown>:0: warning: cannot form key path that captures non-sendable type 'KeyPath<AttributeScopes.SwiftUIAttributes, AttributeScopes.SwiftUIAttributes.ForegroundColorAttribute>'; this is an error in the Swift 6 language mode
<unknown>:0: warning: cannot form key path that captures non-sendable type 'KeyPath<AttributeScopes.SwiftUIAttributes, AttributeScopes.SwiftUIAttributes.ForegroundColorAttribute>'; this is an error in the Swift 6 language mode
<unknown>:0: warning: cannot form key path that captures non-sendable type 'KeyPath<AttributeScopes.SwiftUIAttributes, AttributeScopes.SwiftUIAttributes.ForegroundColorAttribute>'; this is an error in the Swift 6 language mode
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
| |- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
| |- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
| |- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
| `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
[8/8] Emitting module SwiftCalc
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCalc/Math.swift:32:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Function]' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public extension Math {
31 |
32 | static let all = [
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Function]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
33 | Function("sin") { parameters in
34 | return try .number(Darwin.sin(parameters.doubles.onlyElement))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCalc/SwiftCalc.swift:44:15: note: consider making struct 'Function' conform to the 'Sendable' protocol
42 | }
43 |
44 | public struct Function: Identifiable {
| `- note: consider making struct 'Function' conform to the 'Sendable' protocol
45 | public let id: String
46 | public let closure: ([Value]) throws -> Value
Build complete! (30.72s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftCalc",
"name" : "SwiftCalc",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftCalc",
"targets" : [
"SwiftCalc"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "parser",
"module_type" : "ClangTarget",
"name" : "parser",
"path" : "Sources/parser",
"product_memberships" : [
"SwiftCalc"
],
"sources" : [
"parser.c"
],
"type" : "library"
},
{
"c99name" : "SwiftCalcTests",
"module_type" : "SwiftTarget",
"name" : "SwiftCalcTests",
"path" : "Tests/SwiftCalcTests",
"sources" : [
"SwiftCalcTests.swift"
],
"target_dependencies" : [
"SwiftCalc"
],
"type" : "test"
},
{
"c99name" : "SwiftCalc",
"module_type" : "SwiftTarget",
"name" : "SwiftCalc",
"path" : "Sources/SwiftCalc",
"product_memberships" : [
"SwiftCalc"
],
"sources" : [
"AttributedString.swift",
"Introspection.swift",
"Math.swift",
"SwiftCalc.swift"
],
"target_dependencies" : [
"parser"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.