Build Information
Failed to build GfxMath, reference 1.0.0 (af8aff
), with Swift 6.0 for macOS (SPM) on 14 Sep 2024 16:03:44 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
4 |
5 | public static let green = Color(0, 255, 0, 255)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:5:23: warning: static property 'green' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public static let red = Color(255, 0, 0, 255)
4 |
5 | public static let green = Color(0, 255, 0, 255)
| |- warning: static property 'green' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'green' 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
6 |
7 | public static let yellow = Color(255, 255, 0, 255)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:7:23: warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
5 | public static let green = Color(0, 255, 0, 255)
6 |
7 | public static let yellow = Color(255, 255, 0, 255)
| |- warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'yellow' 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
8 |
9 | public static let orange = Color(255, 150, 0, 255)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:9:23: warning: static property 'orange' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
7 | public static let yellow = Color(255, 255, 0, 255)
8 |
9 | public static let orange = Color(255, 150, 0, 255)
| |- warning: static property 'orange' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'orange' 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
10 |
11 | public static let blue = Color(0, 0, 255, 255)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:11:23: warning: static property 'blue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
9 | public static let orange = Color(255, 150, 0, 255)
10 |
11 | public static let blue = Color(0, 0, 255, 255)
| |- warning: static property 'blue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'blue' 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
12 |
13 | public static let lightBlue = Color(180, 180, 255, 255)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:13:23: warning: static property 'lightBlue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public static let blue = Color(0, 0, 255, 255)
12 |
13 | public static let lightBlue = Color(180, 180, 255, 255)
| |- warning: static property 'lightBlue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lightBlue' 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
14 |
15 | public static let black = Color(0, 0, 0, 255)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:15:23: warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
13 | public static let lightBlue = Color(180, 180, 255, 255)
14 |
15 | public static let black = Color(0, 0, 0, 255)
| |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'black' 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
16 |
17 | public static let grey = Color(128, 128, 128, 255)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:17:23: warning: static property 'grey' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
15 | public static let black = Color(0, 0, 0, 255)
16 |
17 | public static let grey = Color(128, 128, 128, 255)
| |- warning: static property 'grey' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grey' 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
18 |
19 | public static let white = Color(255, 255, 255, 255)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:19:23: warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public static let grey = Color(128, 128, 128, 255)
18 |
19 | public static let white = Color(255, 255, 255, 255)
| |- warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'white' 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
20 |
21 | public static let transparent = Color(0, 0, 0, 0)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:21:23: warning: static property 'transparent' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
19 | public static let white = Color(255, 255, 255, 255)
20 |
21 | public static let transparent = Color(0, 0, 0, 0)
| |- warning: static property 'transparent' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'transparent' 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
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
[12/26] Compiling GfxMath Color+DefaultColors.swift
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
2 |
3 | public protocol MatrixProtocol: Sequence, Equatable, CustomStringConvertible, Hashable {
4 | associatedtype Element: Numeric
| `- warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
5 | var rows: Int { get }
6 | var cols: Int { get }
Swift.Sequence:2:20: note: 'Element' declared here
1 | public protocol Sequence<Element> {
2 | associatedtype Element where Self.Element == Self.Iterator.Element
| `- note: 'Element' declared here
3 | associatedtype Iterator : IteratorProtocol
4 | @available(*, unavailable, renamed: "Iterator")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:3:23: warning: static property 'red' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
1 | extension Color {
2 |
3 | public static let red = Color(255, 0, 0, 255)
| |- warning: static property 'red' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'red' 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
4 |
5 | public static let green = Color(0, 255, 0, 255)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:5:23: warning: static property 'green' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
3 | public static let red = Color(255, 0, 0, 255)
4 |
5 | public static let green = Color(0, 255, 0, 255)
| |- warning: static property 'green' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'green' 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
6 |
7 | public static let yellow = Color(255, 255, 0, 255)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:7:23: warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
5 | public static let green = Color(0, 255, 0, 255)
6 |
7 | public static let yellow = Color(255, 255, 0, 255)
| |- warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'yellow' 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
8 |
9 | public static let orange = Color(255, 150, 0, 255)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:9:23: warning: static property 'orange' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
7 | public static let yellow = Color(255, 255, 0, 255)
8 |
9 | public static let orange = Color(255, 150, 0, 255)
| |- warning: static property 'orange' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'orange' 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
10 |
11 | public static let blue = Color(0, 0, 255, 255)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:11:23: warning: static property 'blue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
9 | public static let orange = Color(255, 150, 0, 255)
10 |
11 | public static let blue = Color(0, 0, 255, 255)
| |- warning: static property 'blue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'blue' 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
12 |
13 | public static let lightBlue = Color(180, 180, 255, 255)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:13:23: warning: static property 'lightBlue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public static let blue = Color(0, 0, 255, 255)
12 |
13 | public static let lightBlue = Color(180, 180, 255, 255)
| |- warning: static property 'lightBlue' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lightBlue' 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
14 |
15 | public static let black = Color(0, 0, 0, 255)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:15:23: warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
13 | public static let lightBlue = Color(180, 180, 255, 255)
14 |
15 | public static let black = Color(0, 0, 0, 255)
| |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'black' 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
16 |
17 | public static let grey = Color(128, 128, 128, 255)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:17:23: warning: static property 'grey' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
15 | public static let black = Color(0, 0, 0, 255)
16 |
17 | public static let grey = Color(128, 128, 128, 255)
| |- warning: static property 'grey' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grey' 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
18 |
19 | public static let white = Color(255, 255, 255, 255)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:19:23: warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public static let grey = Color(128, 128, 128, 255)
18 |
19 | public static let white = Color(255, 255, 255, 255)
| |- warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'white' 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
20 |
21 | public static let transparent = Color(0, 0, 0, 0)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color+DefaultColors.swift:21:23: warning: static property 'transparent' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
19 | public static let white = Color(255, 255, 255, 255)
20 |
21 | public static let transparent = Color(0, 0, 0, 0)
| |- warning: static property 'transparent' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'transparent' 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
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Color.swift:3:15: note: consider making struct 'Color' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct Color: Hashable, Equatable {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
4 | public typealias RGB<T> = (r: T, g: T, b: T)
5 | public typealias RGBA<T> = (r: T, g: T, b: T, a: T)
[13/26] Compiling GfxMath Transformation.swift
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
2 |
3 | public protocol MatrixProtocol: Sequence, Equatable, CustomStringConvertible, Hashable {
4 | associatedtype Element: Numeric
| `- warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
5 | var rows: Int { get }
6 | var cols: Int { get }
Swift.Sequence:2:20: note: 'Element' declared here
1 | public protocol Sequence<Element> {
2 | associatedtype Element where Self.Element == Self.Iterator.Element
| `- note: 'Element' declared here
3 | associatedtype Iterator : IteratorProtocol
4 | @available(*, unavailable, renamed: "Iterator")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
99 |
100 | extension Vector3Protocol {
101 | public typealias Dimension = Dim_3x1
| `- warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
102 |
103 | @inlinable public static var zero: Self {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
2 |
3 | public protocol VectorProtocol: MatrixProtocol {
4 | associatedtype Dimension: MatrixDimension
| `- note: 'Dimension' declared here
5 |
6 | init(_ elements: [Element])
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:223:6: warning: unknown platform 'unavailable' for attribute 'available'
221 | }
222 |
223 | @available(unavailable, message: "need to know size of matrix, use init")
| `- warning: unknown platform 'unavailable' for attribute 'available'
224 | @inlinable public static var zero: Self {
225 | fatalError("unavailable, need to specify size")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:28:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
26 |
27 | extension Vector2Protocol {
28 | public typealias Dimension = Dim_2x1
| `- warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
29 |
30 | @inlinable public static var zero: Self {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
2 |
3 | public protocol VectorProtocol: MatrixProtocol {
4 | associatedtype Dimension: MatrixDimension
| `- note: 'Dimension' declared here
5 |
6 | init(_ elements: [Element])
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:123:15: warning: deprecated default implementation is used to satisfy initializer 'init(point:direction:)' required by protocol 'Line': use init(origin:, direction:)
8 |
9 | init()
10 | init(point: VectorProtocol, direction: VectorProtocol)
| `- note: requirement 'init(point:direction:)' declared here
11 | init(origin: VectorProtocol, direction: VectorProtocol)
12 | }
:
14 | public extension Line {
15 | @available(*, deprecated, message: "use init(origin:, direction:)")
16 | init(point: VectorProtocol, direction: VectorProtocol) {
| `- note: 'init(point:direction:)' declared here
17 | self.init(origin: point, direction: direction)
18 | }
:
121 | }
122 |
123 | public struct AnyLine<V: VectorProtocol>: Line where V.Element: BinaryFloatingPoint {
| `- warning: deprecated default implementation is used to satisfy initializer 'init(point:direction:)' required by protocol 'Line': use init(origin:, direction:)
124 | public typealias VectorProtocol = V
125 | public var origin: V
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:22:14: warning: 'point' is deprecated: use origin
20 | init(origin: VectorProtocol, direction: VectorProtocol) {
21 | self.init()
22 | self.point = origin
| `- warning: 'point' is deprecated: use origin
23 | self.direction = direction.normalized()
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:28:14: warning: 'point' is deprecated: use origin
26 | init(from point1: VectorProtocol, to point2: VectorProtocol) {
27 | self.init()
28 | self.point = point1
| `- warning: 'point' is deprecated: use origin
29 | self.direction = (point1 - point2).normalized()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:33:22: warning: 'point' is deprecated: use origin
31 |
32 | var debugDescription: String {
33 | "Line x = (\(point)) + scale * (\(direction))"
| `- warning: 'point' is deprecated: use origin
34 | }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:48:16: warning: 'point' is deprecated: use origin
46 |
47 | func pointAt(scale: VectorProtocol.Element) -> VectorProtocol {
48 | return point + direction * scale
| `- warning: 'point' is deprecated: use origin
49 | }
50 |
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:56:29: warning: 'point' is deprecated: use origin
54 | if direction[axis] == 0 {
55 | // TODO: maybe need accuracy here too
56 | if abs(self.point[axis] - point[axis]) > accuracy {
| `- warning: 'point' is deprecated: use origin
57 | return nil
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:60:49: warning: 'point' is deprecated: use origin
58 | }
59 | } else {
60 | let scale = (point[axis] - self.point[axis]) / direction[axis]
| `- warning: 'point' is deprecated: use origin
61 | if lastScale == nil {
62 | lastScale = scale
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:99:35: warning: 'point' is deprecated: use origin
97 | // TODO: which value to use as accuracy?
98 | if slope1 == slope2 || abs(slope1 - slope2) < VectorProtocol.Element(0.1) {
99 | if contains(otherLine.point) {
| `- warning: 'point' is deprecated: use origin
100 | return point
101 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:100:24: warning: 'point' is deprecated: use origin
98 | if slope1 == slope2 || abs(slope1 - slope2) < VectorProtocol.Element(0.1) {
99 | if contains(otherLine.point) {
100 | return point
| `- warning: 'point' is deprecated: use origin
101 | } else {
102 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:106:33: warning: 'point' is deprecated: use origin
104 | }
105 |
106 | let scale1 = (otherLine.point - self.point).cross(otherLine.direction) / self.direction.cross(otherLine.direction)
| `- warning: 'point' is deprecated: use origin
107 |
108 | return pointAtScale(scale1)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:106:46: warning: 'point' is deprecated: use origin
104 | }
105 |
106 | let scale1 = (otherLine.point - self.point).cross(otherLine.direction) / self.direction.cross(otherLine.direction)
| `- warning: 'point' is deprecated: use origin
107 |
108 | return pointAtScale(scale1)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:108:16: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
106 | let scale1 = (otherLine.point - self.point).cross(otherLine.direction) / self.direction.cross(otherLine.direction)
107 |
108 | return pointAtScale(scale1)
| `- warning: 'pointAtScale' is deprecated: use pointAt(scale:)
109 | }
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:118:53: warning: 'point' is deprecated: use origin
116 | }
117 |
118 | let s = (plane.elevation - plane.normal.dot(point)) / (plane.normal.dot(direction))
| `- warning: 'point' is deprecated: use origin
119 | return pointAtScale(s)
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:119:16: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
117 |
118 | let s = (plane.elevation - plane.normal.dot(point)) / (plane.normal.dot(direction))
119 | return pointAtScale(s)
| `- warning: 'pointAtScale' is deprecated: use pointAt(scale:)
120 | }
121 | }
[14/26] Compiling GfxMath Line.swift
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
2 |
3 | public protocol MatrixProtocol: Sequence, Equatable, CustomStringConvertible, Hashable {
4 | associatedtype Element: Numeric
| `- warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
5 | var rows: Int { get }
6 | var cols: Int { get }
Swift.Sequence:2:20: note: 'Element' declared here
1 | public protocol Sequence<Element> {
2 | associatedtype Element where Self.Element == Self.Iterator.Element
| `- note: 'Element' declared here
3 | associatedtype Iterator : IteratorProtocol
4 | @available(*, unavailable, renamed: "Iterator")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
99 |
100 | extension Vector3Protocol {
101 | public typealias Dimension = Dim_3x1
| `- warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
102 |
103 | @inlinable public static var zero: Self {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
2 |
3 | public protocol VectorProtocol: MatrixProtocol {
4 | associatedtype Dimension: MatrixDimension
| `- note: 'Dimension' declared here
5 |
6 | init(_ elements: [Element])
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:223:6: warning: unknown platform 'unavailable' for attribute 'available'
221 | }
222 |
223 | @available(unavailable, message: "need to know size of matrix, use init")
| `- warning: unknown platform 'unavailable' for attribute 'available'
224 | @inlinable public static var zero: Self {
225 | fatalError("unavailable, need to specify size")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:28:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
26 |
27 | extension Vector2Protocol {
28 | public typealias Dimension = Dim_2x1
| `- warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
29 |
30 | @inlinable public static var zero: Self {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
2 |
3 | public protocol VectorProtocol: MatrixProtocol {
4 | associatedtype Dimension: MatrixDimension
| `- note: 'Dimension' declared here
5 |
6 | init(_ elements: [Element])
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:123:15: warning: deprecated default implementation is used to satisfy initializer 'init(point:direction:)' required by protocol 'Line': use init(origin:, direction:)
8 |
9 | init()
10 | init(point: VectorProtocol, direction: VectorProtocol)
| `- note: requirement 'init(point:direction:)' declared here
11 | init(origin: VectorProtocol, direction: VectorProtocol)
12 | }
:
14 | public extension Line {
15 | @available(*, deprecated, message: "use init(origin:, direction:)")
16 | init(point: VectorProtocol, direction: VectorProtocol) {
| `- note: 'init(point:direction:)' declared here
17 | self.init(origin: point, direction: direction)
18 | }
:
121 | }
122 |
123 | public struct AnyLine<V: VectorProtocol>: Line where V.Element: BinaryFloatingPoint {
| `- warning: deprecated default implementation is used to satisfy initializer 'init(point:direction:)' required by protocol 'Line': use init(origin:, direction:)
124 | public typealias VectorProtocol = V
125 | public var origin: V
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:22:14: warning: 'point' is deprecated: use origin
20 | init(origin: VectorProtocol, direction: VectorProtocol) {
21 | self.init()
22 | self.point = origin
| `- warning: 'point' is deprecated: use origin
23 | self.direction = direction.normalized()
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:28:14: warning: 'point' is deprecated: use origin
26 | init(from point1: VectorProtocol, to point2: VectorProtocol) {
27 | self.init()
28 | self.point = point1
| `- warning: 'point' is deprecated: use origin
29 | self.direction = (point1 - point2).normalized()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:33:22: warning: 'point' is deprecated: use origin
31 |
32 | var debugDescription: String {
33 | "Line x = (\(point)) + scale * (\(direction))"
| `- warning: 'point' is deprecated: use origin
34 | }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:48:16: warning: 'point' is deprecated: use origin
46 |
47 | func pointAt(scale: VectorProtocol.Element) -> VectorProtocol {
48 | return point + direction * scale
| `- warning: 'point' is deprecated: use origin
49 | }
50 |
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:56:29: warning: 'point' is deprecated: use origin
54 | if direction[axis] == 0 {
55 | // TODO: maybe need accuracy here too
56 | if abs(self.point[axis] - point[axis]) > accuracy {
| `- warning: 'point' is deprecated: use origin
57 | return nil
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:60:49: warning: 'point' is deprecated: use origin
58 | }
59 | } else {
60 | let scale = (point[axis] - self.point[axis]) / direction[axis]
| `- warning: 'point' is deprecated: use origin
61 | if lastScale == nil {
62 | lastScale = scale
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:99:35: warning: 'point' is deprecated: use origin
97 | // TODO: which value to use as accuracy?
98 | if slope1 == slope2 || abs(slope1 - slope2) < VectorProtocol.Element(0.1) {
99 | if contains(otherLine.point) {
| `- warning: 'point' is deprecated: use origin
100 | return point
101 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:100:24: warning: 'point' is deprecated: use origin
98 | if slope1 == slope2 || abs(slope1 - slope2) < VectorProtocol.Element(0.1) {
99 | if contains(otherLine.point) {
100 | return point
| `- warning: 'point' is deprecated: use origin
101 | } else {
102 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:106:33: warning: 'point' is deprecated: use origin
104 | }
105 |
106 | let scale1 = (otherLine.point - self.point).cross(otherLine.direction) / self.direction.cross(otherLine.direction)
| `- warning: 'point' is deprecated: use origin
107 |
108 | return pointAtScale(scale1)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:106:46: warning: 'point' is deprecated: use origin
104 | }
105 |
106 | let scale1 = (otherLine.point - self.point).cross(otherLine.direction) / self.direction.cross(otherLine.direction)
| `- warning: 'point' is deprecated: use origin
107 |
108 | return pointAtScale(scale1)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:108:16: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
106 | let scale1 = (otherLine.point - self.point).cross(otherLine.direction) / self.direction.cross(otherLine.direction)
107 |
108 | return pointAtScale(scale1)
| `- warning: 'pointAtScale' is deprecated: use pointAt(scale:)
109 | }
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:118:53: warning: 'point' is deprecated: use origin
116 | }
117 |
118 | let s = (plane.elevation - plane.normal.dot(point)) / (plane.normal.dot(direction))
| `- warning: 'point' is deprecated: use origin
119 | return pointAtScale(s)
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Line.swift:119:16: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
117 |
118 | let s = (plane.elevation - plane.normal.dot(point)) / (plane.normal.dot(direction))
119 | return pointAtScale(s)
| `- warning: 'pointAtScale' is deprecated: use pointAt(scale:)
120 | }
121 | }
[15/26] Compiling GfxMath LineSegment.swift
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
2 |
3 | public protocol MatrixProtocol: Sequence, Equatable, CustomStringConvertible, Hashable {
4 | associatedtype Element: Numeric
| `- warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
5 | var rows: Int { get }
6 | var cols: Int { get }
Swift.Sequence:2:20: note: 'Element' declared here
1 | public protocol Sequence<Element> {
2 | associatedtype Element where Self.Element == Self.Iterator.Element
| `- note: 'Element' declared here
3 | associatedtype Iterator : IteratorProtocol
4 | @available(*, unavailable, renamed: "Iterator")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:7:10: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
5 | public var scaleMax: Vector.Element
6 | public var start: Vector {
7 | line.pointAtScale(scaleMin)
| `- warning: 'pointAtScale' is deprecated: use pointAt(scale:)
8 | }
9 | public var end: Vector {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:10:10: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
8 | }
9 | public var end: Vector {
10 | line.pointAtScale(scaleMax)
| `- warning: 'pointAtScale' is deprecated: use pointAt(scale:)
11 | }
12 | public var length: Vector.Element {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:35:9: warning: variable 'scaleMin' was never mutated; consider changing to 'let' constant
33 | public init(start: Vector, end: Vector) {
34 | let line = AnyLine(from: start, to: end)
35 | var scaleMin = line.scaleAt(start)!
| `- warning: variable 'scaleMin' was never mutated; consider changing to 'let' constant
36 | var scaleMax = line.scaleAt(end)!
37 | self.init(line: line, scaleMin: scaleMin, scaleMax: scaleMax)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:36:9: warning: variable 'scaleMax' was never mutated; consider changing to 'let' constant
34 | let line = AnyLine(from: start, to: end)
35 | var scaleMin = line.scaleAt(start)!
36 | var scaleMax = line.scaleAt(end)!
| `- warning: variable 'scaleMax' was never mutated; consider changing to 'let' constant
37 | self.init(line: line, scaleMin: scaleMin, scaleMax: scaleMax)
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
99 |
100 | extension Vector3Protocol {
101 | public typealias Dimension = Dim_3x1
| `- warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
102 |
103 | @inlinable public static var zero: Self {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
2 |
3 | public protocol VectorProtocol: MatrixProtocol {
4 | associatedtype Dimension: MatrixDimension
| `- note: 'Dimension' declared here
5 |
6 | init(_ elements: [Element])
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Plane.swift:16:5: warning: 'public' modifier is redundant for initializer declared in a public extension
14 | }
15 |
16 | public init(point: VectorProtocol, normal: VectorProtocol) {
| `- warning: 'public' modifier is redundant for initializer declared in a public extension
17 | self.init()
18 | self.point = point
[16/26] Compiling GfxMath Plane.swift
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
2 |
3 | public protocol MatrixProtocol: Sequence, Equatable, CustomStringConvertible, Hashable {
4 | associatedtype Element: Numeric
| `- warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
5 | var rows: Int { get }
6 | var cols: Int { get }
Swift.Sequence:2:20: note: 'Element' declared here
1 | public protocol Sequence<Element> {
2 | associatedtype Element where Self.Element == Self.Iterator.Element
| `- note: 'Element' declared here
3 | associatedtype Iterator : IteratorProtocol
4 | @available(*, unavailable, renamed: "Iterator")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:7:10: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
5 | public var scaleMax: Vector.Element
6 | public var start: Vector {
7 | line.pointAtScale(scaleMin)
| `- warning: 'pointAtScale' is deprecated: use pointAt(scale:)
8 | }
9 | public var end: Vector {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:10:10: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
8 | }
9 | public var end: Vector {
10 | line.pointAtScale(scaleMax)
| `- warning: 'pointAtScale' is deprecated: use pointAt(scale:)
11 | }
12 | public var length: Vector.Element {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:35:9: warning: variable 'scaleMin' was never mutated; consider changing to 'let' constant
33 | public init(start: Vector, end: Vector) {
34 | let line = AnyLine(from: start, to: end)
35 | var scaleMin = line.scaleAt(start)!
| `- warning: variable 'scaleMin' was never mutated; consider changing to 'let' constant
36 | var scaleMax = line.scaleAt(end)!
37 | self.init(line: line, scaleMin: scaleMin, scaleMax: scaleMax)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:36:9: warning: variable 'scaleMax' was never mutated; consider changing to 'let' constant
34 | let line = AnyLine(from: start, to: end)
35 | var scaleMin = line.scaleAt(start)!
36 | var scaleMax = line.scaleAt(end)!
| `- warning: variable 'scaleMax' was never mutated; consider changing to 'let' constant
37 | self.init(line: line, scaleMin: scaleMin, scaleMax: scaleMax)
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
99 |
100 | extension Vector3Protocol {
101 | public typealias Dimension = Dim_3x1
| `- warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
102 |
103 | @inlinable public static var zero: Self {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
2 |
3 | public protocol VectorProtocol: MatrixProtocol {
4 | associatedtype Dimension: MatrixDimension
| `- note: 'Dimension' declared here
5 |
6 | init(_ elements: [Element])
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Plane.swift:16:5: warning: 'public' modifier is redundant for initializer declared in a public extension
14 | }
15 |
16 | public init(point: VectorProtocol, normal: VectorProtocol) {
| `- warning: 'public' modifier is redundant for initializer declared in a public extension
17 | self.init()
18 | self.point = point
[17/26] Compiling GfxMath Size.swift
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:28:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
26 |
27 | extension Vector2Protocol {
28 | public typealias Dimension = Dim_2x1
| `- warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
29 |
30 | @inlinable public static var zero: Self {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
2 |
3 | public protocol VectorProtocol: MatrixProtocol {
4 | associatedtype Dimension: MatrixDimension
| `- note: 'Dimension' declared here
5 |
6 | init(_ elements: [Element])
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
2 |
3 | public protocol MatrixProtocol: Sequence, Equatable, CustomStringConvertible, Hashable {
4 | associatedtype Element: Numeric
| `- warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
5 | var rows: Int { get }
6 | var cols: Int { get }
Swift.Sequence:2:20: note: 'Element' declared here
1 | public protocol Sequence<Element> {
2 | associatedtype Element where Self.Element == Self.Iterator.Element
| `- note: 'Element' declared here
3 | associatedtype Iterator : IteratorProtocol
4 | @available(*, unavailable, renamed: "Iterator")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:223:6: warning: unknown platform 'unavailable' for attribute 'available'
221 | }
222 |
223 | @available(unavailable, message: "need to know size of matrix, use init")
| `- warning: unknown platform 'unavailable' for attribute 'available'
224 | @inlinable public static var zero: Self {
225 | fatalError("unavailable, need to specify size")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Transform.swift:24:25: warning: immutable value 'translation' was never used; consider replacing with '_' or removing it
22 | public func transform(size: DSize2) -> DSize2 {
23 | switch self {
24 | case let .translate(translation):
| `- warning: immutable value 'translation' was never used; consider replacing with '_' or removing it
25 | return size
26 | case let .scale(scale, origin):
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Transform.swift:26:28: warning: immutable value 'origin' was never used; consider replacing with '_' or removing it
24 | case let .translate(translation):
25 | return size
26 | case let .scale(scale, origin):
| `- warning: immutable value 'origin' was never used; consider replacing with '_' or removing it
27 | return size * scale.abs()
28 | }
[18/26] Compiling GfxMath Transform.swift
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:28:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
26 |
27 | extension Vector2Protocol {
28 | public typealias Dimension = Dim_2x1
| `- warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
29 |
30 | @inlinable public static var zero: Self {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
2 |
3 | public protocol VectorProtocol: MatrixProtocol {
4 | associatedtype Dimension: MatrixDimension
| `- note: 'Dimension' declared here
5 |
6 | init(_ elements: [Element])
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
2 |
3 | public protocol MatrixProtocol: Sequence, Equatable, CustomStringConvertible, Hashable {
4 | associatedtype Element: Numeric
| `- warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
5 | var rows: Int { get }
6 | var cols: Int { get }
Swift.Sequence:2:20: note: 'Element' declared here
1 | public protocol Sequence<Element> {
2 | associatedtype Element where Self.Element == Self.Iterator.Element
| `- note: 'Element' declared here
3 | associatedtype Iterator : IteratorProtocol
4 | @available(*, unavailable, renamed: "Iterator")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:223:6: warning: unknown platform 'unavailable' for attribute 'available'
221 | }
222 |
223 | @available(unavailable, message: "need to know size of matrix, use init")
| `- warning: unknown platform 'unavailable' for attribute 'available'
224 | @inlinable public static var zero: Self {
225 | fatalError("unavailable, need to specify size")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Transform.swift:24:25: warning: immutable value 'translation' was never used; consider replacing with '_' or removing it
22 | public func transform(size: DSize2) -> DSize2 {
23 | switch self {
24 | case let .translate(translation):
| `- warning: immutable value 'translation' was never used; consider replacing with '_' or removing it
25 | return size
26 | case let .scale(scale, origin):
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Transform.swift:26:28: warning: immutable value 'origin' was never used; consider replacing with '_' or removing it
24 | case let .translate(translation):
25 | return size
26 | case let .scale(scale, origin):
| `- warning: immutable value 'origin' was never used; consider replacing with '_' or removing it
27 | return size * scale.abs()
28 | }
[19/26] Compiling GfxMath Color.swift
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
2 |
3 | public protocol MatrixProtocol: Sequence, Equatable, CustomStringConvertible, Hashable {
4 | associatedtype Element: Numeric
| `- warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
5 | var rows: Int { get }
6 | var cols: Int { get }
Swift.Sequence:2:20: note: 'Element' declared here
1 | public protocol Sequence<Element> {
2 | associatedtype Element where Self.Element == Self.Iterator.Element
| `- note: 'Element' declared here
3 | associatedtype Iterator : IteratorProtocol
4 | @available(*, unavailable, renamed: "Iterator")
[20/26] Compiling GfxMath EColor.swift
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
2 |
3 | public protocol MatrixProtocol: Sequence, Equatable, CustomStringConvertible, Hashable {
4 | associatedtype Element: Numeric
| `- warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
5 | var rows: Int { get }
6 | var cols: Int { get }
Swift.Sequence:2:20: note: 'Element' declared here
1 | public protocol Sequence<Element> {
2 | associatedtype Element where Self.Element == Self.Iterator.Element
| `- note: 'Element' declared here
3 | associatedtype Iterator : IteratorProtocol
4 | @available(*, unavailable, renamed: "Iterator")
[21/26] Compiling GfxMath RGBColor.swift
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
2 |
3 | public protocol MatrixProtocol: Sequence, Equatable, CustomStringConvertible, Hashable {
4 | associatedtype Element: Numeric
| `- warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
5 | var rows: Int { get }
6 | var cols: Int { get }
Swift.Sequence:2:20: note: 'Element' declared here
1 | public protocol Sequence<Element> {
2 | associatedtype Element where Self.Element == Self.Iterator.Element
| `- note: 'Element' declared here
3 | associatedtype Iterator : IteratorProtocol
4 | @available(*, unavailable, renamed: "Iterator")
[22/26] Compiling GfxMath Point.swift
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
99 |
100 | extension Vector3Protocol {
101 | public typealias Dimension = Dim_3x1
| `- warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
102 |
103 | @inlinable public static var zero: Self {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
2 |
3 | public protocol VectorProtocol: MatrixProtocol {
4 | associatedtype Dimension: MatrixDimension
| `- note: 'Dimension' declared here
5 |
6 | init(_ elements: [Element])
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
2 |
3 | public protocol MatrixProtocol: Sequence, Equatable, CustomStringConvertible, Hashable {
4 | associatedtype Element: Numeric
| `- warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
5 | var rows: Int { get }
6 | var cols: Int { get }
Swift.Sequence:2:20: note: 'Element' declared here
1 | public protocol Sequence<Element> {
2 | associatedtype Element where Self.Element == Self.Iterator.Element
| `- note: 'Element' declared here
3 | associatedtype Iterator : IteratorProtocol
4 | @available(*, unavailable, renamed: "Iterator")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:223:6: warning: unknown platform 'unavailable' for attribute 'available'
221 | }
222 |
223 | @available(unavailable, message: "need to know size of matrix, use init")
| `- warning: unknown platform 'unavailable' for attribute 'available'
224 | @inlinable public static var zero: Self {
225 | fatalError("unavailable, need to specify size")
[23/26] Compiling GfxMath Quaternion.swift
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
99 |
100 | extension Vector3Protocol {
101 | public typealias Dimension = Dim_3x1
| `- warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
102 |
103 | @inlinable public static var zero: Self {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
2 |
3 | public protocol VectorProtocol: MatrixProtocol {
4 | associatedtype Dimension: MatrixDimension
| `- note: 'Dimension' declared here
5 |
6 | init(_ elements: [Element])
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
2 |
3 | public protocol MatrixProtocol: Sequence, Equatable, CustomStringConvertible, Hashable {
4 | associatedtype Element: Numeric
| `- warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
5 | var rows: Int { get }
6 | var cols: Int { get }
Swift.Sequence:2:20: note: 'Element' declared here
1 | public protocol Sequence<Element> {
2 | associatedtype Element where Self.Element == Self.Iterator.Element
| `- note: 'Element' declared here
3 | associatedtype Iterator : IteratorProtocol
4 | @available(*, unavailable, renamed: "Iterator")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:223:6: warning: unknown platform 'unavailable' for attribute 'available'
221 | }
222 |
223 | @available(unavailable, message: "need to know size of matrix, use init")
| `- warning: unknown platform 'unavailable' for attribute 'available'
224 | @inlinable public static var zero: Self {
225 | fatalError("unavailable, need to specify size")
[24/26] Compiling GfxMath FloatingPointGenericMath.swift
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:223:6: warning: unknown platform 'unavailable' for attribute 'available'
221 | }
222 |
223 | @available(unavailable, message: "need to know size of matrix, use init")
| `- warning: unknown platform 'unavailable' for attribute 'available'
224 | @inlinable public static var zero: Self {
225 | fatalError("unavailable, need to specify size")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: warning: extension declares a conformance of imported type 'Float80' to imported protocols 'FloatingPoint', 'Strideable', 'Comparable', 'Equatable', 'SignedNumeric', 'Numeric', 'ExpressibleByIntegerLiteral', 'AdditiveArithmetic', 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| |- warning: extension declares a conformance of imported type 'Float80' to imported protocols 'FloatingPoint', 'Strideable', 'Comparable', 'Equatable', 'SignedNumeric', 'Numeric', 'ExpressibleByIntegerLiteral', 'AdditiveArithmetic', 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:15:32: error: 'Float80' is unavailable: Float80 is not available on target platform.
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:15:44: error: 'Float80' is unavailable: Float80 is not available on target platform.
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:16:32: error: 'Float80' is unavailable: Float80 is not available on target platform.
14 | extension Float80 : FloatingPointGenericMath {
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:16:44: error: 'Float80' is unavailable: Float80 is not available on target platform.
14 | extension Float80 : FloatingPointGenericMath {
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:17:32: error: 'Float80' is unavailable: Float80 is not available on target platform.
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:17:44: error: 'Float80' is unavailable: Float80 is not available on target platform.
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:18:33: error: 'Float80' is unavailable: Float80 is not available on target platform.
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:18:45: error: 'Float80' is unavailable: Float80 is not available on target platform.
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:19:32: error: 'Float80' is unavailable: Float80 is not available on target platform.
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
21 | // ...
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:19:44: error: 'Float80' is unavailable: Float80 is not available on target platform.
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
21 | // ...
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:20:32: error: 'Float80' is unavailable: Float80 is not available on target platform.
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
21 | // ...
22 | }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:20:46: error: 'Float80' is unavailable: Float80 is not available on target platform.
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
21 | // ...
22 | }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:20:58: error: 'Float80' is unavailable: Float80 is not available on target platform.
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
21 | // ...
22 | }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
2 |
3 | public protocol MatrixProtocol: Sequence, Equatable, CustomStringConvertible, Hashable {
4 | associatedtype Element: Numeric
| `- warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
5 | var rows: Int { get }
6 | var cols: Int { get }
Swift.Sequence:2:20: note: 'Element' declared here
1 | public protocol Sequence<Element> {
2 | associatedtype Element where Self.Element == Self.Iterator.Element
| `- note: 'Element' declared here
3 | associatedtype Iterator : IteratorProtocol
4 | @available(*, unavailable, renamed: "Iterator")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: extension outside of file declaring struct 'Float80' prevents automatic synthesis of 'hash(into:)' for protocol 'Hashable'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: extension outside of file declaring struct 'Float80' prevents automatic synthesis of 'hash(into:)' for protocol 'Hashable'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
Swift.Float80:2:23: note: type declared here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: type declared here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: type 'Float80' does not conform to protocol 'FloatingPoint'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: type 'Float80' does not conform to protocol 'FloatingPoint'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:138:28: note: candidate would match if 'Float80' conformed to 'MatrixProtocol'
136 | /// element wise division
137 | // TODO: divide only the overlapping elements
138 | @inlinable static func / (lhs: Self, rhs: Self) -> Self {
| `- note: candidate would match if 'Float80' conformed to 'MatrixProtocol'
139 | var result = lhs.clone()
140 |
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Quaternion.swift:118:22: note: candidate has non-matching type '<E> (Quaternion<E>, Quaternion<E>.Element) -> Quaternion<E>' (aka '<E> (Quaternion<E>, E) -> Quaternion<E>') [with Exponent = <<error type>>]
116 | divide w, x, y, z by rhs
117 | */
118 | public static func / (lhs: Self, rhs: Element) -> Self {
| `- note: candidate has non-matching type '<E> (Quaternion<E>, Quaternion<E>.Element) -> Quaternion<E>' (aka '<E> (Quaternion<E>, E) -> Quaternion<E>') [with Exponent = <<error type>>]
119 | var result = lhs
120 | result /= rhs
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol+Operators.swift:135:33: note: candidate has non-matching type '<Self> (Self, Self.Element) -> Self' [with Exponent = <<error type>>]
133 | }
134 |
135 | @inlinable public static func / (lhs: Self, rhs: Element) -> Self {
| `- note: candidate has non-matching type '<Self> (Self, Self.Element) -> Self' [with Exponent = <<error type>>]
136 | var result = lhs
137 | result /= rhs
:
145 | }
146 |
147 | @inlinable public static func / (lhs: Self, rhs: Self) -> Self {
| `- note: candidate would match if 'Float80' conformed to 'VectorProtocol'
148 | var result = lhs
149 | result /= rhs
Swift.Duration:8:24: note: candidate has non-matching type '<T> (Duration, T) -> Duration' [with Exponent = <<error type>>]
6 | public static func /= (lhs: inout Duration, rhs: Double)
7 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
8 | public static func / <T>(lhs: Duration, rhs: T) -> Duration where T : BinaryInteger
| `- note: candidate has non-matching type '<T> (Duration, T) -> Duration' [with Exponent = <<error type>>]
9 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
10 | public static func /= <T>(lhs: inout Duration, rhs: T) where T : BinaryInteger
Swift.SIMD:14:24: note: candidate would match if 'Float80' conformed to 'SIMD'
12 | public static func &- (a: Self, b: Self) -> Self
13 | public static func &* (a: Self, b: Self) -> Self
14 | public static func / (a: Self, b: Self) -> Self
| `- note: candidate would match if 'Float80' conformed to 'SIMD'
15 | public static func % (a: Self, b: Self) -> Self
16 | public func wrappedSum() -> Self.Scalar
Swift.SIMD:5:24: note: candidate would match if 'Float80' conformed to 'SIMD'
3 | public static func - (a: Self, b: Self) -> Self
4 | public static func * (a: Self, b: Self) -> Self
5 | public static func / (a: Self, b: Self) -> Self
| `- note: candidate would match if 'Float80' conformed to 'SIMD'
6 | public func addingProduct(_ a: Self, _ b: Self) -> Self
7 | public func squareRoot() -> Self
Swift.SIMD:10:24: note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self' [with Exponent = <<error type>>]
8 | public static func &- (a: Self.Scalar, b: Self) -> Self
9 | public static func &* (a: Self.Scalar, b: Self) -> Self
10 | public static func / (a: Self.Scalar, b: Self) -> Self
| `- note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self' [with Exponent = <<error type>>]
11 | public static func % (a: Self.Scalar, b: Self) -> Self
12 | public static func & (a: Self, b: Self.Scalar) -> Self
:
18 | public static func &- (a: Self, b: Self.Scalar) -> Self
19 | public static func &* (a: Self, b: Self.Scalar) -> Self
20 | public static func / (a: Self, b: Self.Scalar) -> Self
| `- note: candidate has non-matching type '<Self> (Self, Self.Scalar) -> Self' [with Exponent = <<error type>>]
21 | public static func % (a: Self, b: Self.Scalar) -> Self
22 | public static func &= (a: inout Self, b: Self)
Swift.SIMD:6:24: note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self' [with Exponent = <<error type>>]
4 | public static func - (a: Self.Scalar, b: Self) -> Self
5 | public static func * (a: Self.Scalar, b: Self) -> Self
6 | public static func / (a: Self.Scalar, b: Self) -> Self
| `- note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self' [with Exponent = <<error type>>]
7 | public static func + (a: Self, b: Self.Scalar) -> Self
8 | public static func - (a: Self, b: Self.Scalar) -> Self
9 | public static func * (a: Self, b: Self.Scalar) -> Self
10 | public static func / (a: Self, b: Self.Scalar) -> Self
| `- note: candidate has non-matching type '<Self> (Self, Self.Scalar) -> Self' [with Exponent = <<error type>>]
11 | public static func += (a: inout Self, b: Self)
12 | public static func -= (a: inout Self, b: Self)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: type 'Float80' does not conform to protocol 'Strideable'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: type 'Float80' does not conform to protocol 'Strideable'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: type 'Float80' does not conform to protocol 'Numeric'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: type 'Float80' does not conform to protocol 'Numeric'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: type 'Float80' does not conform to protocol 'AdditiveArithmetic'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: type 'Float80' does not conform to protocol 'AdditiveArithmetic'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColor.swift:16:35: note: candidate would match if 'Float80' conformed to 'EColor'
14 | }
15 |
16 | @inlinable public static func + (lhs: Self, rhs: Self) -> Self {
| `- note: candidate would match if 'Float80' conformed to 'EColor'
17 | var result = lhs
18 | result += rhs
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:104:28: note: candidate has non-matching type '<Self> (Self, Self.Element) -> Self'
102 |
103 | // TODO: need to add throws if dimensions don't match
104 | @inlinable static func + (lhs: Self, rhs: Element) -> Self {
| `- note: candidate has non-matching type '<Self> (Self, Self.Element) -> Self'
105 | var result = lhs.clone()
106 |
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol+Operators.swift:18:33: note: candidate would match if 'Float80' conformed to 'VectorProtocol'
16 | }
17 |
18 | @inlinable public static func + <O: VectorProtocol>(lhs: Self, rhs: O) -> Self where O.Dimension == Dimension, O.Element == Element {
| `- note: candidate would match if 'Float80' conformed to 'VectorProtocol'
19 | var result = lhs
20 | result += rhs
Swift.Strideable:2:24: note: candidate would match if 'Float80' conformed to '_Pointer'
1 | extension Strideable where Self : _Pointer {
2 | public static func + (lhs: Self, rhs: Self.Stride) -> Self
| `- note: candidate would match if 'Float80' conformed to '_Pointer'
3 | public static func + (lhs: Self.Stride, rhs: Self) -> Self
| `- note: candidate would match if 'Float80' conformed to '_Pointer'
4 | public static func - (lhs: Self, rhs: Self.Stride) -> Self
5 | public static func - (lhs: Self, rhs: Self) -> Self.Stride
Swift.RangeReplaceableCollection:2:35: note: candidate would match if 'Float80' conformed to 'RangeReplaceableCollection'
1 | extension RangeReplaceableCollection {
2 | @inlinable public static func + <Other>(lhs: Self, rhs: Other) -> Self where Other : Sequence, Self.Element == Other.Element
| `- note: candidate would match if 'Float80' conformed to 'RangeReplaceableCollection'
3 | @inlinable public static func + <Other>(lhs: Other, rhs: Self) -> Self where Other : Sequence, Self.Element == Other.Element
| `- note: candidate would match if 'Float80' conformed to 'RangeReplaceableCollection'
4 | @inlinable public static func += <Other>(lhs: inout Self, rhs: Other) where Other : Sequence, Self.Element == Other.Element
5 | @inlinable public static func + <Other>(lhs: Self, rhs: Other) -> Self where Other : RangeReplaceableCollection, Self.Element == Other.Element
| `- note: candidate would match if 'Float80' conformed to 'RangeReplaceableCollection'
6 | }
Swift.Sequence:3:24: note: candidate has non-matching type '<Self> (Self, String) -> Never'
1 | extension Sequence where Self.Element == String {
2 | @available(*, unavailable, message: "Operator '+' cannot be used to append a String to a sequence of strings")
3 | public static func + (lhs: Self, rhs: String) -> Never
| `- note: candidate has non-matching type '<Self> (Self, String) -> Never'
4 | @available(*, unavailable, message: "Operator '+' cannot be used to append a String to a sequence of strings")
5 | public static func + (lhs: String, rhs: Self) -> Never
| `- note: candidate has non-matching type '<Self> (String, Self) -> Never'
6 | }
Swift.SIMD:2:24: note: candidate would match if 'Float80' conformed to 'SIMD'
1 | extension SIMD where Self.Scalar : FloatingPoint {
2 | public static func + (a: Self, b: Self) -> Self
| `- note: candidate would match if 'Float80' conformed to 'SIMD'
3 | public static func - (a: Self, b: Self) -> Self
4 | public static func * (a: Self, b: Self) -> Self
Swift.SIMD:43:24: note: candidate would match if 'Float80' conformed to 'SIMD'
41 | public static func %= (a: inout Self, b: Self.Scalar)
42 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&+' instead")
43 | public static func + (a: Self, b: Self) -> Self
| `- note: candidate would match if 'Float80' conformed to 'SIMD'
44 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&-' instead")
45 | public static func - (a: Self, b: Self) -> Self
:
47 | public static func * (a: Self, b: Self) -> Self
48 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&+' instead")
49 | public static func + (a: Self, b: Self.Scalar) -> Self
| `- note: candidate has non-matching type '<Self> (Self, Self.Scalar) -> Self'
50 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&-' instead")
51 | public static func - (a: Self, b: Self.Scalar) -> Self
:
53 | public static func * (a: Self, b: Self.Scalar) -> Self
54 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&+' instead")
55 | public static func + (a: Self.Scalar, b: Self) -> Self
| `- note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self'
56 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&-' instead")
57 | public static func - (a: Self.Scalar, b: Self) -> Self
Swift.SIMD:3:24: note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self'
1 | extension SIMD where Self.Scalar : FloatingPoint {
2 | prefix public static func - (a: Self) -> Self
3 | public static func + (a: Self.Scalar, b: Self) -> Self
| `- note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self'
4 | public static func - (a: Self.Scalar, b: Self) -> Self
5 | public static func * (a: Self.Scalar, b: Self) -> Self
6 | public static func / (a: Self.Scalar, b: Self) -> Self
7 | public static func + (a: Self, b: Self.Scalar) -> Self
| `- note: candidate has non-matching type '<Self> (Self, Self.Scalar) -> Self'
8 | public static func - (a: Self, b: Self.Scalar) -> Self
9 | public static func * (a: Self, b: Self.Scalar) -> Self
Foundation.AttributedString:3:24: note: candidate has non-matching type ' (AttributedString, some AttributedStringProtocol) -> AttributedString'
1 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
2 | extension AttributedString {
3 | public static func + (lhs: AttributedString, rhs: some AttributedStringProtocol) -> AttributedString
| `- note: candidate has non-matching type ' (AttributedString, some AttributedStringProtocol) -> AttributedString'
4 | public static func += (lhs: inout AttributedString, rhs: some AttributedStringProtocol)
5 | public static func + (lhs: AttributedString, rhs: AttributedString) -> AttributedString
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: type 'Float80' does not conform to protocol 'ExpressibleByIntegerLiteral'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: type 'Float80' does not conform to protocol 'ExpressibleByIntegerLiteral'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
Swift.FloatingPoint:2:20: note: protocol requires nested type 'Exponent'; add nested type 'Exponent' for conformance
1 | public protocol FloatingPoint : Hashable, SignedNumeric, Strideable where Self == Self.Magnitude {
2 | associatedtype Exponent : SignedInteger
| `- note: protocol requires nested type 'Exponent'; add nested type 'Exponent' for conformance
3 | init(sign: FloatingPointSign, exponent: Self.Exponent, significand: Self)
4 | init(signOf: Self, magnitudeOf: Self)
| `- note: protocol requires initializer 'init(signOf:magnitudeOf:)' with type '(signOf: Float80, magnitudeOf: Float80)'
5 | init(_ value: Int)
| `- note: protocol requires initializer 'init(_:)' with type 'Int'
6 | init<Source>(_ value: Source) where Source : BinaryInteger
| `- note: protocol requires initializer 'init(_:)' with type 'Source'
7 | init?<Source>(exactly value: Source) where Source : BinaryInteger
| `- note: protocol requires initializer 'init(exactly:)' with type '(exactly: Source)'
8 | static var radix: Int { get }
| `- note: protocol requires property 'radix' with type 'Int'
9 | static var nan: Self { get }
| `- note: protocol requires property 'nan' with type 'Float80'
10 | static var signalingNaN: Self { get }
| `- note: protocol requires property 'signalingNaN' with type 'Float80'
11 | static var infinity: Self { get }
| `- note: protocol requires property 'infinity' with type 'Float80'
12 | static var greatestFiniteMagnitude: Self { get }
| `- note: protocol requires property 'greatestFiniteMagnitude' with type 'Float80'
13 | static var pi: Self { get }
| `- note: protocol requires property 'pi' with type 'Float80'
14 | var ulp: Self { get }
| `- note: protocol requires property 'ulp' with type 'Float80'
15 | static var ulpOfOne: Self { get }
16 | static var leastNormalMagnitude: Self { get }
| `- note: protocol requires property 'leastNormalMagnitude' with type 'Float80'
17 | static var leastNonzeroMagnitude: Self { get }
| `- note: protocol requires property 'leastNonzeroMagnitude' with type 'Float80'
18 | var sign: FloatingPointSign { get }
| `- note: protocol requires property 'sign' with type 'FloatingPointSign'
19 | var exponent: Self.Exponent { get }
20 | var significand: Self { get }
| `- note: protocol requires property 'significand' with type 'Float80'
21 | override static func + (lhs: Self, rhs: Self) -> Self
22 | override static func += (lhs: inout Self, rhs: Self)
:
27 | override static func * (lhs: Self, rhs: Self) -> Self
28 | override static func *= (lhs: inout Self, rhs: Self)
29 | static func / (lhs: Self, rhs: Self) -> Self
| `- note: protocol requires function '/' with type '(Float80, Float80) -> Float80'
30 | static func /= (lhs: inout Self, rhs: Self)
31 | func remainder(dividingBy other: Self) -> Self
32 | mutating func formRemainder(dividingBy other: Self)
| `- note: protocol requires function 'formRemainder(dividingBy:)' with type '(Float80) -> ()'
33 | func truncatingRemainder(dividingBy other: Self) -> Self
34 | mutating func formTruncatingRemainder(dividingBy other: Self)
| `- note: protocol requires function 'formTruncatingRemainder(dividingBy:)' with type '(Float80) -> ()'
35 | func squareRoot() -> Self
36 | mutating func formSquareRoot()
| `- note: protocol requires function 'formSquareRoot()' with type '() -> ()'
37 | func addingProduct(_ lhs: Self, _ rhs: Self) -> Self
38 | mutating func addProduct(_ lhs: Self, _ rhs: Self)
| `- note: protocol requires function 'addProduct' with type '(Float80, Float80) -> ()'
39 | static func minimum(_ x: Self, _ y: Self) -> Self
40 | static func maximum(_ x: Self, _ y: Self) -> Self
:
43 | func rounded(_ rule: FloatingPointRoundingRule) -> Self
44 | mutating func round(_ rule: FloatingPointRoundingRule)
45 | var nextUp: Self { get }
| `- note: protocol requires property 'nextUp' with type 'Float80'
46 | var nextDown: Self { get }
47 | func isEqual(to other: Self) -> Bool
| `- note: protocol requires function 'isEqual(to:)' with type '(Float80) -> Bool'
48 | func isLess(than other: Self) -> Bool
| `- note: protocol requires function 'isLess(than:)' with type '(Float80) -> Bool'
49 | func isLessThanOrEqualTo(_ other: Self) -> Bool
| `- note: protocol requires function 'isLessThanOrEqualTo' with type '(Float80) -> Bool'
50 | func isTotallyOrdered(belowOrEqualTo other: Self) -> Bool
| `- note: protocol requires function 'isTotallyOrdered(belowOrEqualTo:)' with type '(Float80) -> Bool'
51 | var isNormal: Bool { get }
| `- note: protocol requires property 'isNormal' with type 'Bool'
52 | var isFinite: Bool { get }
| `- note: protocol requires property 'isFinite' with type 'Bool'
53 | var isZero: Bool { get }
| `- note: protocol requires property 'isZero' with type 'Bool'
54 | var isSubnormal: Bool { get }
| `- note: protocol requires property 'isSubnormal' with type 'Bool'
55 | var isInfinite: Bool { get }
| `- note: protocol requires property 'isInfinite' with type 'Bool'
56 | var isNaN: Bool { get }
| `- note: protocol requires property 'isNaN' with type 'Bool'
57 | var isSignalingNaN: Bool { get }
| `- note: protocol requires property 'isSignalingNaN' with type 'Bool'
58 | var floatingPointClass: FloatingPointClassification { get }
59 | var isCanonical: Bool { get }
| `- note: protocol requires property 'isCanonical' with type 'Bool'
60 | }
Swift.Strideable:3:10: note: protocol requires function 'distance(to:)' with type '(Float80) -> Float80'
1 | public protocol Strideable<Stride> : Comparable {
2 | associatedtype Stride : Comparable, SignedNumeric
3 | func distance(to other: Self) -> Self.Stride
| `- note: protocol requires function 'distance(to:)' with type '(Float80) -> Float80'
4 | func advanced(by n: Self.Stride) -> Self
| `- note: protocol requires function 'advanced(by:)' with type '(Float80) -> Float80'
5 | static func _step(after current: (index: Int?, value: Self), from start: Self, by distance: Self.Stride) -> (index: Int?, value: Self)
6 | }
Swift.Numeric:4:9: note: protocol requires property 'magnitude' with type 'Float80'
2 | init?<T>(exactly source: T) where T : BinaryInteger
3 | associatedtype Magnitude : Comparable, Numeric
4 | var magnitude: Self.Magnitude { get }
| `- note: protocol requires property 'magnitude' with type 'Float80'
5 | static func * (lhs: Self, rhs: Self) -> Self
6 | static func *= (lhs: inout Self, rhs: Self)
Swift.AdditiveArithmetic:3:17: note: protocol requires function '+' with type '(Float80, Float80) -> Float80'
1 | public protocol AdditiveArithmetic : Equatable {
2 | static var zero: Self { get }
3 | static func + (lhs: Self, rhs: Self) -> Self
| `- note: protocol requires function '+' with type '(Float80, Float80) -> Float80'
4 | static func += (lhs: inout Self, rhs: Self)
5 | static func - (lhs: Self, rhs: Self) -> Self
Swift.ExpressibleByIntegerLiteral:2:20: note: protocol requires nested type 'IntegerLiteralType'; add nested type 'IntegerLiteralType' for conformance
1 | public protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral
| `- note: protocol requires nested type 'IntegerLiteralType'; add nested type 'IntegerLiteralType' for conformance
3 | init(integerLiteral value: Self.IntegerLiteralType)
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:11: error: 'Float80' is unavailable: Float80 is not available on target platform.
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:45:16: warning: 'public' modifier is redundant for property declared in a public extension
43 |
44 | // TODO: there might be a more efficient way to transpose
45 | @inlinable public var transposed: Self {
| `- warning: 'public' modifier is redundant for property declared in a public extension
46 | var matrix = clone() // TODO: maybe have some clone function that does not clone elements
47 |
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:266:5: warning: 'public' modifier is redundant for initializer declared in a public extension
264 | public extension Matrix4Protocol {
265 |
266 | public init<M3: Matrix3Protocol>(topLeft: M3, rest: Self = .identity) where M3.Element == Element {
| `- warning: 'public' modifier is redundant for initializer declared in a public extension
267 | self.init([
268 | topLeft[0, 0], topLeft[0, 1], topLeft[0, 2], rest[0, 3],
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
99 |
100 | extension Vector3Protocol {
101 | public typealias Dimension = Dim_3x1
| `- warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
102 |
103 | @inlinable public static var zero: Self {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
2 |
3 | public protocol VectorProtocol: MatrixProtocol {
4 | associatedtype Dimension: MatrixDimension
| `- note: 'Dimension' declared here
5 |
6 | init(_ elements: [Element])
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:174:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
172 |
173 | extension Vector4Protocol {
174 | public typealias Dimension = Dim_4x1
| `- warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
175 |
176 | @inlinable public static var zero: Self {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
2 |
3 | public protocol VectorProtocol: MatrixProtocol {
4 | associatedtype Dimension: MatrixDimension
| `- note: 'Dimension' declared here
5 |
6 | init(_ elements: [Element])
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:345:16: warning: no calls to throwing functions occur within 'try' expression
343 | // TODO: the following functions might be specific to openGL, maybe put those in the GLGraphicsMath package
344 | @inlinable static func viewTransformation<V: Vector3Protocol>(up: V, right: V, front: V, translation: V) -> Self where V.Element == Self.Element {
345 | return try! Self([
| `- warning: no calls to throwing functions occur within 'try' expression
346 | right.x, right.y, right.z, 0,
347 | up.x, up.y, up.z, 0,
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:404:12: warning: no calls to throwing functions occur within 'try' expression
402 | // TODO: might replace this or remove this / current function of this is to simply remove throws
403 | @inlinable public func * <E: Numeric>(lhs: Matrix4<E>, rhs: Matrix4<E>) -> Matrix4<E> {
404 | return try! lhs.matmul(rhs)
| `- warning: no calls to throwing functions occur within 'try' expression
405 | }
406 |
[25/26] Compiling GfxMath Matrix.swift
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:223:6: warning: unknown platform 'unavailable' for attribute 'available'
221 | }
222 |
223 | @available(unavailable, message: "need to know size of matrix, use init")
| `- warning: unknown platform 'unavailable' for attribute 'available'
224 | @inlinable public static var zero: Self {
225 | fatalError("unavailable, need to specify size")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: warning: extension declares a conformance of imported type 'Float80' to imported protocols 'FloatingPoint', 'Strideable', 'Comparable', 'Equatable', 'SignedNumeric', 'Numeric', 'ExpressibleByIntegerLiteral', 'AdditiveArithmetic', 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| |- warning: extension declares a conformance of imported type 'Float80' to imported protocols 'FloatingPoint', 'Strideable', 'Comparable', 'Equatable', 'SignedNumeric', 'Numeric', 'ExpressibleByIntegerLiteral', 'AdditiveArithmetic', 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:15:32: error: 'Float80' is unavailable: Float80 is not available on target platform.
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:15:44: error: 'Float80' is unavailable: Float80 is not available on target platform.
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:16:32: error: 'Float80' is unavailable: Float80 is not available on target platform.
14 | extension Float80 : FloatingPointGenericMath {
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:16:44: error: 'Float80' is unavailable: Float80 is not available on target platform.
14 | extension Float80 : FloatingPointGenericMath {
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:17:32: error: 'Float80' is unavailable: Float80 is not available on target platform.
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:17:44: error: 'Float80' is unavailable: Float80 is not available on target platform.
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:18:33: error: 'Float80' is unavailable: Float80 is not available on target platform.
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:18:45: error: 'Float80' is unavailable: Float80 is not available on target platform.
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:19:32: error: 'Float80' is unavailable: Float80 is not available on target platform.
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
21 | // ...
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:19:44: error: 'Float80' is unavailable: Float80 is not available on target platform.
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
21 | // ...
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:20:32: error: 'Float80' is unavailable: Float80 is not available on target platform.
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
21 | // ...
22 | }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:20:46: error: 'Float80' is unavailable: Float80 is not available on target platform.
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
21 | // ...
22 | }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:20:58: error: 'Float80' is unavailable: Float80 is not available on target platform.
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
21 | // ...
22 | }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
2 |
3 | public protocol MatrixProtocol: Sequence, Equatable, CustomStringConvertible, Hashable {
4 | associatedtype Element: Numeric
| `- warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
5 | var rows: Int { get }
6 | var cols: Int { get }
Swift.Sequence:2:20: note: 'Element' declared here
1 | public protocol Sequence<Element> {
2 | associatedtype Element where Self.Element == Self.Iterator.Element
| `- note: 'Element' declared here
3 | associatedtype Iterator : IteratorProtocol
4 | @available(*, unavailable, renamed: "Iterator")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: extension outside of file declaring struct 'Float80' prevents automatic synthesis of 'hash(into:)' for protocol 'Hashable'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: extension outside of file declaring struct 'Float80' prevents automatic synthesis of 'hash(into:)' for protocol 'Hashable'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
Swift.Float80:2:23: note: type declared here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: type declared here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: type 'Float80' does not conform to protocol 'FloatingPoint'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: type 'Float80' does not conform to protocol 'FloatingPoint'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:138:28: note: candidate would match if 'Float80' conformed to 'MatrixProtocol'
136 | /// element wise division
137 | // TODO: divide only the overlapping elements
138 | @inlinable static func / (lhs: Self, rhs: Self) -> Self {
| `- note: candidate would match if 'Float80' conformed to 'MatrixProtocol'
139 | var result = lhs.clone()
140 |
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Quaternion.swift:118:22: note: candidate has non-matching type '<E> (Quaternion<E>, Quaternion<E>.Element) -> Quaternion<E>' (aka '<E> (Quaternion<E>, E) -> Quaternion<E>') [with Exponent = <<error type>>]
116 | divide w, x, y, z by rhs
117 | */
118 | public static func / (lhs: Self, rhs: Element) -> Self {
| `- note: candidate has non-matching type '<E> (Quaternion<E>, Quaternion<E>.Element) -> Quaternion<E>' (aka '<E> (Quaternion<E>, E) -> Quaternion<E>') [with Exponent = <<error type>>]
119 | var result = lhs
120 | result /= rhs
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol+Operators.swift:135:33: note: candidate has non-matching type '<Self> (Self, Self.Element) -> Self' [with Exponent = <<error type>>]
133 | }
134 |
135 | @inlinable public static func / (lhs: Self, rhs: Element) -> Self {
| `- note: candidate has non-matching type '<Self> (Self, Self.Element) -> Self' [with Exponent = <<error type>>]
136 | var result = lhs
137 | result /= rhs
:
145 | }
146 |
147 | @inlinable public static func / (lhs: Self, rhs: Self) -> Self {
| `- note: candidate would match if 'Float80' conformed to 'VectorProtocol'
148 | var result = lhs
149 | result /= rhs
Swift.Duration:8:24: note: candidate has non-matching type '<T> (Duration, T) -> Duration' [with Exponent = <<error type>>]
6 | public static func /= (lhs: inout Duration, rhs: Double)
7 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
8 | public static func / <T>(lhs: Duration, rhs: T) -> Duration where T : BinaryInteger
| `- note: candidate has non-matching type '<T> (Duration, T) -> Duration' [with Exponent = <<error type>>]
9 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
10 | public static func /= <T>(lhs: inout Duration, rhs: T) where T : BinaryInteger
Swift.SIMD:14:24: note: candidate would match if 'Float80' conformed to 'SIMD'
12 | public static func &- (a: Self, b: Self) -> Self
13 | public static func &* (a: Self, b: Self) -> Self
14 | public static func / (a: Self, b: Self) -> Self
| `- note: candidate would match if 'Float80' conformed to 'SIMD'
15 | public static func % (a: Self, b: Self) -> Self
16 | public func wrappedSum() -> Self.Scalar
Swift.SIMD:5:24: note: candidate would match if 'Float80' conformed to 'SIMD'
3 | public static func - (a: Self, b: Self) -> Self
4 | public static func * (a: Self, b: Self) -> Self
5 | public static func / (a: Self, b: Self) -> Self
| `- note: candidate would match if 'Float80' conformed to 'SIMD'
6 | public func addingProduct(_ a: Self, _ b: Self) -> Self
7 | public func squareRoot() -> Self
Swift.SIMD:10:24: note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self' [with Exponent = <<error type>>]
8 | public static func &- (a: Self.Scalar, b: Self) -> Self
9 | public static func &* (a: Self.Scalar, b: Self) -> Self
10 | public static func / (a: Self.Scalar, b: Self) -> Self
| `- note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self' [with Exponent = <<error type>>]
11 | public static func % (a: Self.Scalar, b: Self) -> Self
12 | public static func & (a: Self, b: Self.Scalar) -> Self
:
18 | public static func &- (a: Self, b: Self.Scalar) -> Self
19 | public static func &* (a: Self, b: Self.Scalar) -> Self
20 | public static func / (a: Self, b: Self.Scalar) -> Self
| `- note: candidate has non-matching type '<Self> (Self, Self.Scalar) -> Self' [with Exponent = <<error type>>]
21 | public static func % (a: Self, b: Self.Scalar) -> Self
22 | public static func &= (a: inout Self, b: Self)
Swift.SIMD:6:24: note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self' [with Exponent = <<error type>>]
4 | public static func - (a: Self.Scalar, b: Self) -> Self
5 | public static func * (a: Self.Scalar, b: Self) -> Self
6 | public static func / (a: Self.Scalar, b: Self) -> Self
| `- note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self' [with Exponent = <<error type>>]
7 | public static func + (a: Self, b: Self.Scalar) -> Self
8 | public static func - (a: Self, b: Self.Scalar) -> Self
9 | public static func * (a: Self, b: Self.Scalar) -> Self
10 | public static func / (a: Self, b: Self.Scalar) -> Self
| `- note: candidate has non-matching type '<Self> (Self, Self.Scalar) -> Self' [with Exponent = <<error type>>]
11 | public static func += (a: inout Self, b: Self)
12 | public static func -= (a: inout Self, b: Self)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: type 'Float80' does not conform to protocol 'Strideable'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: type 'Float80' does not conform to protocol 'Strideable'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: type 'Float80' does not conform to protocol 'Numeric'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: type 'Float80' does not conform to protocol 'Numeric'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: type 'Float80' does not conform to protocol 'AdditiveArithmetic'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: type 'Float80' does not conform to protocol 'AdditiveArithmetic'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColor.swift:16:35: note: candidate would match if 'Float80' conformed to 'EColor'
14 | }
15 |
16 | @inlinable public static func + (lhs: Self, rhs: Self) -> Self {
| `- note: candidate would match if 'Float80' conformed to 'EColor'
17 | var result = lhs
18 | result += rhs
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:104:28: note: candidate has non-matching type '<Self> (Self, Self.Element) -> Self'
102 |
103 | // TODO: need to add throws if dimensions don't match
104 | @inlinable static func + (lhs: Self, rhs: Element) -> Self {
| `- note: candidate has non-matching type '<Self> (Self, Self.Element) -> Self'
105 | var result = lhs.clone()
106 |
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol+Operators.swift:18:33: note: candidate would match if 'Float80' conformed to 'VectorProtocol'
16 | }
17 |
18 | @inlinable public static func + <O: VectorProtocol>(lhs: Self, rhs: O) -> Self where O.Dimension == Dimension, O.Element == Element {
| `- note: candidate would match if 'Float80' conformed to 'VectorProtocol'
19 | var result = lhs
20 | result += rhs
Swift.Strideable:2:24: note: candidate would match if 'Float80' conformed to '_Pointer'
1 | extension Strideable where Self : _Pointer {
2 | public static func + (lhs: Self, rhs: Self.Stride) -> Self
| `- note: candidate would match if 'Float80' conformed to '_Pointer'
3 | public static func + (lhs: Self.Stride, rhs: Self) -> Self
| `- note: candidate would match if 'Float80' conformed to '_Pointer'
4 | public static func - (lhs: Self, rhs: Self.Stride) -> Self
5 | public static func - (lhs: Self, rhs: Self) -> Self.Stride
Swift.RangeReplaceableCollection:2:35: note: candidate would match if 'Float80' conformed to 'RangeReplaceableCollection'
1 | extension RangeReplaceableCollection {
2 | @inlinable public static func + <Other>(lhs: Self, rhs: Other) -> Self where Other : Sequence, Self.Element == Other.Element
| `- note: candidate would match if 'Float80' conformed to 'RangeReplaceableCollection'
3 | @inlinable public static func + <Other>(lhs: Other, rhs: Self) -> Self where Other : Sequence, Self.Element == Other.Element
| `- note: candidate would match if 'Float80' conformed to 'RangeReplaceableCollection'
4 | @inlinable public static func += <Other>(lhs: inout Self, rhs: Other) where Other : Sequence, Self.Element == Other.Element
5 | @inlinable public static func + <Other>(lhs: Self, rhs: Other) -> Self where Other : RangeReplaceableCollection, Self.Element == Other.Element
| `- note: candidate would match if 'Float80' conformed to 'RangeReplaceableCollection'
6 | }
Swift.Sequence:3:24: note: candidate has non-matching type '<Self> (Self, String) -> Never'
1 | extension Sequence where Self.Element == String {
2 | @available(*, unavailable, message: "Operator '+' cannot be used to append a String to a sequence of strings")
3 | public static func + (lhs: Self, rhs: String) -> Never
| `- note: candidate has non-matching type '<Self> (Self, String) -> Never'
4 | @available(*, unavailable, message: "Operator '+' cannot be used to append a String to a sequence of strings")
5 | public static func + (lhs: String, rhs: Self) -> Never
| `- note: candidate has non-matching type '<Self> (String, Self) -> Never'
6 | }
Swift.SIMD:2:24: note: candidate would match if 'Float80' conformed to 'SIMD'
1 | extension SIMD where Self.Scalar : FloatingPoint {
2 | public static func + (a: Self, b: Self) -> Self
| `- note: candidate would match if 'Float80' conformed to 'SIMD'
3 | public static func - (a: Self, b: Self) -> Self
4 | public static func * (a: Self, b: Self) -> Self
Swift.SIMD:43:24: note: candidate would match if 'Float80' conformed to 'SIMD'
41 | public static func %= (a: inout Self, b: Self.Scalar)
42 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&+' instead")
43 | public static func + (a: Self, b: Self) -> Self
| `- note: candidate would match if 'Float80' conformed to 'SIMD'
44 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&-' instead")
45 | public static func - (a: Self, b: Self) -> Self
:
47 | public static func * (a: Self, b: Self) -> Self
48 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&+' instead")
49 | public static func + (a: Self, b: Self.Scalar) -> Self
| `- note: candidate has non-matching type '<Self> (Self, Self.Scalar) -> Self'
50 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&-' instead")
51 | public static func - (a: Self, b: Self.Scalar) -> Self
:
53 | public static func * (a: Self, b: Self.Scalar) -> Self
54 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&+' instead")
55 | public static func + (a: Self.Scalar, b: Self) -> Self
| `- note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self'
56 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&-' instead")
57 | public static func - (a: Self.Scalar, b: Self) -> Self
Swift.SIMD:3:24: note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self'
1 | extension SIMD where Self.Scalar : FloatingPoint {
2 | prefix public static func - (a: Self) -> Self
3 | public static func + (a: Self.Scalar, b: Self) -> Self
| `- note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self'
4 | public static func - (a: Self.Scalar, b: Self) -> Self
5 | public static func * (a: Self.Scalar, b: Self) -> Self
6 | public static func / (a: Self.Scalar, b: Self) -> Self
7 | public static func + (a: Self, b: Self.Scalar) -> Self
| `- note: candidate has non-matching type '<Self> (Self, Self.Scalar) -> Self'
8 | public static func - (a: Self, b: Self.Scalar) -> Self
9 | public static func * (a: Self, b: Self.Scalar) -> Self
Foundation.AttributedString:3:24: note: candidate has non-matching type ' (AttributedString, some AttributedStringProtocol) -> AttributedString'
1 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
2 | extension AttributedString {
3 | public static func + (lhs: AttributedString, rhs: some AttributedStringProtocol) -> AttributedString
| `- note: candidate has non-matching type ' (AttributedString, some AttributedStringProtocol) -> AttributedString'
4 | public static func += (lhs: inout AttributedString, rhs: some AttributedStringProtocol)
5 | public static func + (lhs: AttributedString, rhs: AttributedString) -> AttributedString
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: type 'Float80' does not conform to protocol 'ExpressibleByIntegerLiteral'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: type 'Float80' does not conform to protocol 'ExpressibleByIntegerLiteral'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
Swift.FloatingPoint:2:20: note: protocol requires nested type 'Exponent'; add nested type 'Exponent' for conformance
1 | public protocol FloatingPoint : Hashable, SignedNumeric, Strideable where Self == Self.Magnitude {
2 | associatedtype Exponent : SignedInteger
| `- note: protocol requires nested type 'Exponent'; add nested type 'Exponent' for conformance
3 | init(sign: FloatingPointSign, exponent: Self.Exponent, significand: Self)
4 | init(signOf: Self, magnitudeOf: Self)
| `- note: protocol requires initializer 'init(signOf:magnitudeOf:)' with type '(signOf: Float80, magnitudeOf: Float80)'
5 | init(_ value: Int)
| `- note: protocol requires initializer 'init(_:)' with type 'Int'
6 | init<Source>(_ value: Source) where Source : BinaryInteger
| `- note: protocol requires initializer 'init(_:)' with type 'Source'
7 | init?<Source>(exactly value: Source) where Source : BinaryInteger
| `- note: protocol requires initializer 'init(exactly:)' with type '(exactly: Source)'
8 | static var radix: Int { get }
| `- note: protocol requires property 'radix' with type 'Int'
9 | static var nan: Self { get }
| `- note: protocol requires property 'nan' with type 'Float80'
10 | static var signalingNaN: Self { get }
| `- note: protocol requires property 'signalingNaN' with type 'Float80'
11 | static var infinity: Self { get }
| `- note: protocol requires property 'infinity' with type 'Float80'
12 | static var greatestFiniteMagnitude: Self { get }
| `- note: protocol requires property 'greatestFiniteMagnitude' with type 'Float80'
13 | static var pi: Self { get }
| `- note: protocol requires property 'pi' with type 'Float80'
14 | var ulp: Self { get }
| `- note: protocol requires property 'ulp' with type 'Float80'
15 | static var ulpOfOne: Self { get }
16 | static var leastNormalMagnitude: Self { get }
| `- note: protocol requires property 'leastNormalMagnitude' with type 'Float80'
17 | static var leastNonzeroMagnitude: Self { get }
| `- note: protocol requires property 'leastNonzeroMagnitude' with type 'Float80'
18 | var sign: FloatingPointSign { get }
| `- note: protocol requires property 'sign' with type 'FloatingPointSign'
19 | var exponent: Self.Exponent { get }
20 | var significand: Self { get }
| `- note: protocol requires property 'significand' with type 'Float80'
21 | override static func + (lhs: Self, rhs: Self) -> Self
22 | override static func += (lhs: inout Self, rhs: Self)
:
27 | override static func * (lhs: Self, rhs: Self) -> Self
28 | override static func *= (lhs: inout Self, rhs: Self)
29 | static func / (lhs: Self, rhs: Self) -> Self
| `- note: protocol requires function '/' with type '(Float80, Float80) -> Float80'
30 | static func /= (lhs: inout Self, rhs: Self)
31 | func remainder(dividingBy other: Self) -> Self
32 | mutating func formRemainder(dividingBy other: Self)
| `- note: protocol requires function 'formRemainder(dividingBy:)' with type '(Float80) -> ()'
33 | func truncatingRemainder(dividingBy other: Self) -> Self
34 | mutating func formTruncatingRemainder(dividingBy other: Self)
| `- note: protocol requires function 'formTruncatingRemainder(dividingBy:)' with type '(Float80) -> ()'
35 | func squareRoot() -> Self
36 | mutating func formSquareRoot()
| `- note: protocol requires function 'formSquareRoot()' with type '() -> ()'
37 | func addingProduct(_ lhs: Self, _ rhs: Self) -> Self
38 | mutating func addProduct(_ lhs: Self, _ rhs: Self)
| `- note: protocol requires function 'addProduct' with type '(Float80, Float80) -> ()'
39 | static func minimum(_ x: Self, _ y: Self) -> Self
40 | static func maximum(_ x: Self, _ y: Self) -> Self
:
43 | func rounded(_ rule: FloatingPointRoundingRule) -> Self
44 | mutating func round(_ rule: FloatingPointRoundingRule)
45 | var nextUp: Self { get }
| `- note: protocol requires property 'nextUp' with type 'Float80'
46 | var nextDown: Self { get }
47 | func isEqual(to other: Self) -> Bool
| `- note: protocol requires function 'isEqual(to:)' with type '(Float80) -> Bool'
48 | func isLess(than other: Self) -> Bool
| `- note: protocol requires function 'isLess(than:)' with type '(Float80) -> Bool'
49 | func isLessThanOrEqualTo(_ other: Self) -> Bool
| `- note: protocol requires function 'isLessThanOrEqualTo' with type '(Float80) -> Bool'
50 | func isTotallyOrdered(belowOrEqualTo other: Self) -> Bool
| `- note: protocol requires function 'isTotallyOrdered(belowOrEqualTo:)' with type '(Float80) -> Bool'
51 | var isNormal: Bool { get }
| `- note: protocol requires property 'isNormal' with type 'Bool'
52 | var isFinite: Bool { get }
| `- note: protocol requires property 'isFinite' with type 'Bool'
53 | var isZero: Bool { get }
| `- note: protocol requires property 'isZero' with type 'Bool'
54 | var isSubnormal: Bool { get }
| `- note: protocol requires property 'isSubnormal' with type 'Bool'
55 | var isInfinite: Bool { get }
| `- note: protocol requires property 'isInfinite' with type 'Bool'
56 | var isNaN: Bool { get }
| `- note: protocol requires property 'isNaN' with type 'Bool'
57 | var isSignalingNaN: Bool { get }
| `- note: protocol requires property 'isSignalingNaN' with type 'Bool'
58 | var floatingPointClass: FloatingPointClassification { get }
59 | var isCanonical: Bool { get }
| `- note: protocol requires property 'isCanonical' with type 'Bool'
60 | }
Swift.Strideable:3:10: note: protocol requires function 'distance(to:)' with type '(Float80) -> Float80'
1 | public protocol Strideable<Stride> : Comparable {
2 | associatedtype Stride : Comparable, SignedNumeric
3 | func distance(to other: Self) -> Self.Stride
| `- note: protocol requires function 'distance(to:)' with type '(Float80) -> Float80'
4 | func advanced(by n: Self.Stride) -> Self
| `- note: protocol requires function 'advanced(by:)' with type '(Float80) -> Float80'
5 | static func _step(after current: (index: Int?, value: Self), from start: Self, by distance: Self.Stride) -> (index: Int?, value: Self)
6 | }
Swift.Numeric:4:9: note: protocol requires property 'magnitude' with type 'Float80'
2 | init?<T>(exactly source: T) where T : BinaryInteger
3 | associatedtype Magnitude : Comparable, Numeric
4 | var magnitude: Self.Magnitude { get }
| `- note: protocol requires property 'magnitude' with type 'Float80'
5 | static func * (lhs: Self, rhs: Self) -> Self
6 | static func *= (lhs: inout Self, rhs: Self)
Swift.AdditiveArithmetic:3:17: note: protocol requires function '+' with type '(Float80, Float80) -> Float80'
1 | public protocol AdditiveArithmetic : Equatable {
2 | static var zero: Self { get }
3 | static func + (lhs: Self, rhs: Self) -> Self
| `- note: protocol requires function '+' with type '(Float80, Float80) -> Float80'
4 | static func += (lhs: inout Self, rhs: Self)
5 | static func - (lhs: Self, rhs: Self) -> Self
Swift.ExpressibleByIntegerLiteral:2:20: note: protocol requires nested type 'IntegerLiteralType'; add nested type 'IntegerLiteralType' for conformance
1 | public protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral
| `- note: protocol requires nested type 'IntegerLiteralType'; add nested type 'IntegerLiteralType' for conformance
3 | init(integerLiteral value: Self.IntegerLiteralType)
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:11: error: 'Float80' is unavailable: Float80 is not available on target platform.
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:45:16: warning: 'public' modifier is redundant for property declared in a public extension
43 |
44 | // TODO: there might be a more efficient way to transpose
45 | @inlinable public var transposed: Self {
| `- warning: 'public' modifier is redundant for property declared in a public extension
46 | var matrix = clone() // TODO: maybe have some clone function that does not clone elements
47 |
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:266:5: warning: 'public' modifier is redundant for initializer declared in a public extension
264 | public extension Matrix4Protocol {
265 |
266 | public init<M3: Matrix3Protocol>(topLeft: M3, rest: Self = .identity) where M3.Element == Element {
| `- warning: 'public' modifier is redundant for initializer declared in a public extension
267 | self.init([
268 | topLeft[0, 0], topLeft[0, 1], topLeft[0, 2], rest[0, 3],
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
99 |
100 | extension Vector3Protocol {
101 | public typealias Dimension = Dim_3x1
| `- warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
102 |
103 | @inlinable public static var zero: Self {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
2 |
3 | public protocol VectorProtocol: MatrixProtocol {
4 | associatedtype Dimension: MatrixDimension
| `- note: 'Dimension' declared here
5 |
6 | init(_ elements: [Element])
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:174:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
172 |
173 | extension Vector4Protocol {
174 | public typealias Dimension = Dim_4x1
| `- warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
175 |
176 | @inlinable public static var zero: Self {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
2 |
3 | public protocol VectorProtocol: MatrixProtocol {
4 | associatedtype Dimension: MatrixDimension
| `- note: 'Dimension' declared here
5 |
6 | init(_ elements: [Element])
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:345:16: warning: no calls to throwing functions occur within 'try' expression
343 | // TODO: the following functions might be specific to openGL, maybe put those in the GLGraphicsMath package
344 | @inlinable static func viewTransformation<V: Vector3Protocol>(up: V, right: V, front: V, translation: V) -> Self where V.Element == Self.Element {
345 | return try! Self([
| `- warning: no calls to throwing functions occur within 'try' expression
346 | right.x, right.y, right.z, 0,
347 | up.x, up.y, up.z, 0,
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:404:12: warning: no calls to throwing functions occur within 'try' expression
402 | // TODO: might replace this or remove this / current function of this is to simply remove throws
403 | @inlinable public func * <E: Numeric>(lhs: Matrix4<E>, rhs: Matrix4<E>) -> Matrix4<E> {
404 | return try! lhs.matmul(rhs)
| `- warning: no calls to throwing functions occur within 'try' expression
405 | }
406 |
[26/26] Compiling GfxMath MatrixDimension.swift
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:223:6: warning: unknown platform 'unavailable' for attribute 'available'
221 | }
222 |
223 | @available(unavailable, message: "need to know size of matrix, use init")
| `- warning: unknown platform 'unavailable' for attribute 'available'
224 | @inlinable public static var zero: Self {
225 | fatalError("unavailable, need to specify size")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: warning: extension declares a conformance of imported type 'Float80' to imported protocols 'FloatingPoint', 'Strideable', 'Comparable', 'Equatable', 'SignedNumeric', 'Numeric', 'ExpressibleByIntegerLiteral', 'AdditiveArithmetic', 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| |- warning: extension declares a conformance of imported type 'Float80' to imported protocols 'FloatingPoint', 'Strideable', 'Comparable', 'Equatable', 'SignedNumeric', 'Numeric', 'ExpressibleByIntegerLiteral', 'AdditiveArithmetic', 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:15:32: error: 'Float80' is unavailable: Float80 is not available on target platform.
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:15:44: error: 'Float80' is unavailable: Float80 is not available on target platform.
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:16:32: error: 'Float80' is unavailable: Float80 is not available on target platform.
14 | extension Float80 : FloatingPointGenericMath {
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:16:44: error: 'Float80' is unavailable: Float80 is not available on target platform.
14 | extension Float80 : FloatingPointGenericMath {
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:17:32: error: 'Float80' is unavailable: Float80 is not available on target platform.
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:17:44: error: 'Float80' is unavailable: Float80 is not available on target platform.
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:18:33: error: 'Float80' is unavailable: Float80 is not available on target platform.
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:18:45: error: 'Float80' is unavailable: Float80 is not available on target platform.
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:19:32: error: 'Float80' is unavailable: Float80 is not available on target platform.
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
21 | // ...
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:19:44: error: 'Float80' is unavailable: Float80 is not available on target platform.
17 | public static func _cos(_ x: Float80) -> Float80 { return cos(x) }
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
21 | // ...
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:20:32: error: 'Float80' is unavailable: Float80 is not available on target platform.
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
21 | // ...
22 | }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:20:46: error: 'Float80' is unavailable: Float80 is not available on target platform.
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
21 | // ...
22 | }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:20:58: error: 'Float80' is unavailable: Float80 is not available on target platform.
18 | public static func _acos(_ x: Float80) -> Float80 { return acos(x) }
19 | public static func _tan(_ x: Float80) -> Float80 { return tan(x) }
20 | public static func _pow(_ x: Float80, _ y: Float80) -> Float80 { return pow(x, y) }
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
21 | // ...
22 | }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:4:20: warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
2 |
3 | public protocol MatrixProtocol: Sequence, Equatable, CustomStringConvertible, Hashable {
4 | associatedtype Element: Numeric
| `- warning: redeclaration of associated type 'Element' from protocol 'Sequence' is better expressed as a 'where' clause on the protocol
5 | var rows: Int { get }
6 | var cols: Int { get }
Swift.Sequence:2:20: note: 'Element' declared here
1 | public protocol Sequence<Element> {
2 | associatedtype Element where Self.Element == Self.Iterator.Element
| `- note: 'Element' declared here
3 | associatedtype Iterator : IteratorProtocol
4 | @available(*, unavailable, renamed: "Iterator")
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: extension outside of file declaring struct 'Float80' prevents automatic synthesis of 'hash(into:)' for protocol 'Hashable'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: extension outside of file declaring struct 'Float80' prevents automatic synthesis of 'hash(into:)' for protocol 'Hashable'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
Swift.Float80:2:23: note: type declared here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: type declared here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: type 'Float80' does not conform to protocol 'FloatingPoint'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: type 'Float80' does not conform to protocol 'FloatingPoint'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:138:28: note: candidate would match if 'Float80' conformed to 'MatrixProtocol'
136 | /// element wise division
137 | // TODO: divide only the overlapping elements
138 | @inlinable static func / (lhs: Self, rhs: Self) -> Self {
| `- note: candidate would match if 'Float80' conformed to 'MatrixProtocol'
139 | var result = lhs.clone()
140 |
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Quaternion.swift:118:22: note: candidate has non-matching type '<E> (Quaternion<E>, Quaternion<E>.Element) -> Quaternion<E>' (aka '<E> (Quaternion<E>, E) -> Quaternion<E>') [with Exponent = <<error type>>]
116 | divide w, x, y, z by rhs
117 | */
118 | public static func / (lhs: Self, rhs: Element) -> Self {
| `- note: candidate has non-matching type '<E> (Quaternion<E>, Quaternion<E>.Element) -> Quaternion<E>' (aka '<E> (Quaternion<E>, E) -> Quaternion<E>') [with Exponent = <<error type>>]
119 | var result = lhs
120 | result /= rhs
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol+Operators.swift:135:33: note: candidate has non-matching type '<Self> (Self, Self.Element) -> Self' [with Exponent = <<error type>>]
133 | }
134 |
135 | @inlinable public static func / (lhs: Self, rhs: Element) -> Self {
| `- note: candidate has non-matching type '<Self> (Self, Self.Element) -> Self' [with Exponent = <<error type>>]
136 | var result = lhs
137 | result /= rhs
:
145 | }
146 |
147 | @inlinable public static func / (lhs: Self, rhs: Self) -> Self {
| `- note: candidate would match if 'Float80' conformed to 'VectorProtocol'
148 | var result = lhs
149 | result /= rhs
Swift.Duration:8:24: note: candidate has non-matching type '<T> (Duration, T) -> Duration' [with Exponent = <<error type>>]
6 | public static func /= (lhs: inout Duration, rhs: Double)
7 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
8 | public static func / <T>(lhs: Duration, rhs: T) -> Duration where T : BinaryInteger
| `- note: candidate has non-matching type '<T> (Duration, T) -> Duration' [with Exponent = <<error type>>]
9 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
10 | public static func /= <T>(lhs: inout Duration, rhs: T) where T : BinaryInteger
Swift.SIMD:14:24: note: candidate would match if 'Float80' conformed to 'SIMD'
12 | public static func &- (a: Self, b: Self) -> Self
13 | public static func &* (a: Self, b: Self) -> Self
14 | public static func / (a: Self, b: Self) -> Self
| `- note: candidate would match if 'Float80' conformed to 'SIMD'
15 | public static func % (a: Self, b: Self) -> Self
16 | public func wrappedSum() -> Self.Scalar
Swift.SIMD:5:24: note: candidate would match if 'Float80' conformed to 'SIMD'
3 | public static func - (a: Self, b: Self) -> Self
4 | public static func * (a: Self, b: Self) -> Self
5 | public static func / (a: Self, b: Self) -> Self
| `- note: candidate would match if 'Float80' conformed to 'SIMD'
6 | public func addingProduct(_ a: Self, _ b: Self) -> Self
7 | public func squareRoot() -> Self
Swift.SIMD:10:24: note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self' [with Exponent = <<error type>>]
8 | public static func &- (a: Self.Scalar, b: Self) -> Self
9 | public static func &* (a: Self.Scalar, b: Self) -> Self
10 | public static func / (a: Self.Scalar, b: Self) -> Self
| `- note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self' [with Exponent = <<error type>>]
11 | public static func % (a: Self.Scalar, b: Self) -> Self
12 | public static func & (a: Self, b: Self.Scalar) -> Self
:
18 | public static func &- (a: Self, b: Self.Scalar) -> Self
19 | public static func &* (a: Self, b: Self.Scalar) -> Self
20 | public static func / (a: Self, b: Self.Scalar) -> Self
| `- note: candidate has non-matching type '<Self> (Self, Self.Scalar) -> Self' [with Exponent = <<error type>>]
21 | public static func % (a: Self, b: Self.Scalar) -> Self
22 | public static func &= (a: inout Self, b: Self)
Swift.SIMD:6:24: note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self' [with Exponent = <<error type>>]
4 | public static func - (a: Self.Scalar, b: Self) -> Self
5 | public static func * (a: Self.Scalar, b: Self) -> Self
6 | public static func / (a: Self.Scalar, b: Self) -> Self
| `- note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self' [with Exponent = <<error type>>]
7 | public static func + (a: Self, b: Self.Scalar) -> Self
8 | public static func - (a: Self, b: Self.Scalar) -> Self
9 | public static func * (a: Self, b: Self.Scalar) -> Self
10 | public static func / (a: Self, b: Self.Scalar) -> Self
| `- note: candidate has non-matching type '<Self> (Self, Self.Scalar) -> Self' [with Exponent = <<error type>>]
11 | public static func += (a: inout Self, b: Self)
12 | public static func -= (a: inout Self, b: Self)
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: type 'Float80' does not conform to protocol 'Strideable'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: type 'Float80' does not conform to protocol 'Strideable'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: type 'Float80' does not conform to protocol 'Numeric'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: type 'Float80' does not conform to protocol 'Numeric'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: type 'Float80' does not conform to protocol 'AdditiveArithmetic'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: type 'Float80' does not conform to protocol 'AdditiveArithmetic'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Color/Experimental/EColor.swift:16:35: note: candidate would match if 'Float80' conformed to 'EColor'
14 | }
15 |
16 | @inlinable public static func + (lhs: Self, rhs: Self) -> Self {
| `- note: candidate would match if 'Float80' conformed to 'EColor'
17 | var result = lhs
18 | result += rhs
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:104:28: note: candidate has non-matching type '<Self> (Self, Self.Element) -> Self'
102 |
103 | // TODO: need to add throws if dimensions don't match
104 | @inlinable static func + (lhs: Self, rhs: Element) -> Self {
| `- note: candidate has non-matching type '<Self> (Self, Self.Element) -> Self'
105 | var result = lhs.clone()
106 |
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol+Operators.swift:18:33: note: candidate would match if 'Float80' conformed to 'VectorProtocol'
16 | }
17 |
18 | @inlinable public static func + <O: VectorProtocol>(lhs: Self, rhs: O) -> Self where O.Dimension == Dimension, O.Element == Element {
| `- note: candidate would match if 'Float80' conformed to 'VectorProtocol'
19 | var result = lhs
20 | result += rhs
Swift.Strideable:2:24: note: candidate would match if 'Float80' conformed to '_Pointer'
1 | extension Strideable where Self : _Pointer {
2 | public static func + (lhs: Self, rhs: Self.Stride) -> Self
| `- note: candidate would match if 'Float80' conformed to '_Pointer'
3 | public static func + (lhs: Self.Stride, rhs: Self) -> Self
| `- note: candidate would match if 'Float80' conformed to '_Pointer'
4 | public static func - (lhs: Self, rhs: Self.Stride) -> Self
5 | public static func - (lhs: Self, rhs: Self) -> Self.Stride
Swift.RangeReplaceableCollection:2:35: note: candidate would match if 'Float80' conformed to 'RangeReplaceableCollection'
1 | extension RangeReplaceableCollection {
2 | @inlinable public static func + <Other>(lhs: Self, rhs: Other) -> Self where Other : Sequence, Self.Element == Other.Element
| `- note: candidate would match if 'Float80' conformed to 'RangeReplaceableCollection'
3 | @inlinable public static func + <Other>(lhs: Other, rhs: Self) -> Self where Other : Sequence, Self.Element == Other.Element
| `- note: candidate would match if 'Float80' conformed to 'RangeReplaceableCollection'
4 | @inlinable public static func += <Other>(lhs: inout Self, rhs: Other) where Other : Sequence, Self.Element == Other.Element
5 | @inlinable public static func + <Other>(lhs: Self, rhs: Other) -> Self where Other : RangeReplaceableCollection, Self.Element == Other.Element
| `- note: candidate would match if 'Float80' conformed to 'RangeReplaceableCollection'
6 | }
Swift.Sequence:3:24: note: candidate has non-matching type '<Self> (Self, String) -> Never'
1 | extension Sequence where Self.Element == String {
2 | @available(*, unavailable, message: "Operator '+' cannot be used to append a String to a sequence of strings")
3 | public static func + (lhs: Self, rhs: String) -> Never
| `- note: candidate has non-matching type '<Self> (Self, String) -> Never'
4 | @available(*, unavailable, message: "Operator '+' cannot be used to append a String to a sequence of strings")
5 | public static func + (lhs: String, rhs: Self) -> Never
| `- note: candidate has non-matching type '<Self> (String, Self) -> Never'
6 | }
Swift.SIMD:2:24: note: candidate would match if 'Float80' conformed to 'SIMD'
1 | extension SIMD where Self.Scalar : FloatingPoint {
2 | public static func + (a: Self, b: Self) -> Self
| `- note: candidate would match if 'Float80' conformed to 'SIMD'
3 | public static func - (a: Self, b: Self) -> Self
4 | public static func * (a: Self, b: Self) -> Self
Swift.SIMD:43:24: note: candidate would match if 'Float80' conformed to 'SIMD'
41 | public static func %= (a: inout Self, b: Self.Scalar)
42 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&+' instead")
43 | public static func + (a: Self, b: Self) -> Self
| `- note: candidate would match if 'Float80' conformed to 'SIMD'
44 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&-' instead")
45 | public static func - (a: Self, b: Self) -> Self
:
47 | public static func * (a: Self, b: Self) -> Self
48 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&+' instead")
49 | public static func + (a: Self, b: Self.Scalar) -> Self
| `- note: candidate has non-matching type '<Self> (Self, Self.Scalar) -> Self'
50 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&-' instead")
51 | public static func - (a: Self, b: Self.Scalar) -> Self
:
53 | public static func * (a: Self, b: Self.Scalar) -> Self
54 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&+' instead")
55 | public static func + (a: Self.Scalar, b: Self) -> Self
| `- note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self'
56 | @available(*, unavailable, message: "integer vector types do not support checked arithmetic; use the wrapping operator '&-' instead")
57 | public static func - (a: Self.Scalar, b: Self) -> Self
Swift.SIMD:3:24: note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self'
1 | extension SIMD where Self.Scalar : FloatingPoint {
2 | prefix public static func - (a: Self) -> Self
3 | public static func + (a: Self.Scalar, b: Self) -> Self
| `- note: candidate has non-matching type '<Self> (Self.Scalar, Self) -> Self'
4 | public static func - (a: Self.Scalar, b: Self) -> Self
5 | public static func * (a: Self.Scalar, b: Self) -> Self
6 | public static func / (a: Self.Scalar, b: Self) -> Self
7 | public static func + (a: Self, b: Self.Scalar) -> Self
| `- note: candidate has non-matching type '<Self> (Self, Self.Scalar) -> Self'
8 | public static func - (a: Self, b: Self.Scalar) -> Self
9 | public static func * (a: Self, b: Self.Scalar) -> Self
Foundation.AttributedString:3:24: note: candidate has non-matching type ' (AttributedString, some AttributedStringProtocol) -> AttributedString'
1 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
2 | extension AttributedString {
3 | public static func + (lhs: AttributedString, rhs: some AttributedStringProtocol) -> AttributedString
| `- note: candidate has non-matching type ' (AttributedString, some AttributedStringProtocol) -> AttributedString'
4 | public static func += (lhs: inout AttributedString, rhs: some AttributedStringProtocol)
5 | public static func + (lhs: AttributedString, rhs: AttributedString) -> AttributedString
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:1: error: type 'Float80' does not conform to protocol 'ExpressibleByIntegerLiteral'
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: type 'Float80' does not conform to protocol 'ExpressibleByIntegerLiteral'
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
Swift.FloatingPoint:2:20: note: protocol requires nested type 'Exponent'; add nested type 'Exponent' for conformance
1 | public protocol FloatingPoint : Hashable, SignedNumeric, Strideable where Self == Self.Magnitude {
2 | associatedtype Exponent : SignedInteger
| `- note: protocol requires nested type 'Exponent'; add nested type 'Exponent' for conformance
3 | init(sign: FloatingPointSign, exponent: Self.Exponent, significand: Self)
4 | init(signOf: Self, magnitudeOf: Self)
| `- note: protocol requires initializer 'init(signOf:magnitudeOf:)' with type '(signOf: Float80, magnitudeOf: Float80)'
5 | init(_ value: Int)
| `- note: protocol requires initializer 'init(_:)' with type 'Int'
6 | init<Source>(_ value: Source) where Source : BinaryInteger
| `- note: protocol requires initializer 'init(_:)' with type 'Source'
7 | init?<Source>(exactly value: Source) where Source : BinaryInteger
| `- note: protocol requires initializer 'init(exactly:)' with type '(exactly: Source)'
8 | static var radix: Int { get }
| `- note: protocol requires property 'radix' with type 'Int'
9 | static var nan: Self { get }
| `- note: protocol requires property 'nan' with type 'Float80'
10 | static var signalingNaN: Self { get }
| `- note: protocol requires property 'signalingNaN' with type 'Float80'
11 | static var infinity: Self { get }
| `- note: protocol requires property 'infinity' with type 'Float80'
12 | static var greatestFiniteMagnitude: Self { get }
| `- note: protocol requires property 'greatestFiniteMagnitude' with type 'Float80'
13 | static var pi: Self { get }
| `- note: protocol requires property 'pi' with type 'Float80'
14 | var ulp: Self { get }
| `- note: protocol requires property 'ulp' with type 'Float80'
15 | static var ulpOfOne: Self { get }
16 | static var leastNormalMagnitude: Self { get }
| `- note: protocol requires property 'leastNormalMagnitude' with type 'Float80'
17 | static var leastNonzeroMagnitude: Self { get }
| `- note: protocol requires property 'leastNonzeroMagnitude' with type 'Float80'
18 | var sign: FloatingPointSign { get }
| `- note: protocol requires property 'sign' with type 'FloatingPointSign'
19 | var exponent: Self.Exponent { get }
20 | var significand: Self { get }
| `- note: protocol requires property 'significand' with type 'Float80'
21 | override static func + (lhs: Self, rhs: Self) -> Self
22 | override static func += (lhs: inout Self, rhs: Self)
:
27 | override static func * (lhs: Self, rhs: Self) -> Self
28 | override static func *= (lhs: inout Self, rhs: Self)
29 | static func / (lhs: Self, rhs: Self) -> Self
| `- note: protocol requires function '/' with type '(Float80, Float80) -> Float80'
30 | static func /= (lhs: inout Self, rhs: Self)
31 | func remainder(dividingBy other: Self) -> Self
32 | mutating func formRemainder(dividingBy other: Self)
| `- note: protocol requires function 'formRemainder(dividingBy:)' with type '(Float80) -> ()'
33 | func truncatingRemainder(dividingBy other: Self) -> Self
34 | mutating func formTruncatingRemainder(dividingBy other: Self)
| `- note: protocol requires function 'formTruncatingRemainder(dividingBy:)' with type '(Float80) -> ()'
35 | func squareRoot() -> Self
36 | mutating func formSquareRoot()
| `- note: protocol requires function 'formSquareRoot()' with type '() -> ()'
37 | func addingProduct(_ lhs: Self, _ rhs: Self) -> Self
38 | mutating func addProduct(_ lhs: Self, _ rhs: Self)
| `- note: protocol requires function 'addProduct' with type '(Float80, Float80) -> ()'
39 | static func minimum(_ x: Self, _ y: Self) -> Self
40 | static func maximum(_ x: Self, _ y: Self) -> Self
:
43 | func rounded(_ rule: FloatingPointRoundingRule) -> Self
44 | mutating func round(_ rule: FloatingPointRoundingRule)
45 | var nextUp: Self { get }
| `- note: protocol requires property 'nextUp' with type 'Float80'
46 | var nextDown: Self { get }
47 | func isEqual(to other: Self) -> Bool
| `- note: protocol requires function 'isEqual(to:)' with type '(Float80) -> Bool'
48 | func isLess(than other: Self) -> Bool
| `- note: protocol requires function 'isLess(than:)' with type '(Float80) -> Bool'
49 | func isLessThanOrEqualTo(_ other: Self) -> Bool
| `- note: protocol requires function 'isLessThanOrEqualTo' with type '(Float80) -> Bool'
50 | func isTotallyOrdered(belowOrEqualTo other: Self) -> Bool
| `- note: protocol requires function 'isTotallyOrdered(belowOrEqualTo:)' with type '(Float80) -> Bool'
51 | var isNormal: Bool { get }
| `- note: protocol requires property 'isNormal' with type 'Bool'
52 | var isFinite: Bool { get }
| `- note: protocol requires property 'isFinite' with type 'Bool'
53 | var isZero: Bool { get }
| `- note: protocol requires property 'isZero' with type 'Bool'
54 | var isSubnormal: Bool { get }
| `- note: protocol requires property 'isSubnormal' with type 'Bool'
55 | var isInfinite: Bool { get }
| `- note: protocol requires property 'isInfinite' with type 'Bool'
56 | var isNaN: Bool { get }
| `- note: protocol requires property 'isNaN' with type 'Bool'
57 | var isSignalingNaN: Bool { get }
| `- note: protocol requires property 'isSignalingNaN' with type 'Bool'
58 | var floatingPointClass: FloatingPointClassification { get }
59 | var isCanonical: Bool { get }
| `- note: protocol requires property 'isCanonical' with type 'Bool'
60 | }
Swift.Strideable:3:10: note: protocol requires function 'distance(to:)' with type '(Float80) -> Float80'
1 | public protocol Strideable<Stride> : Comparable {
2 | associatedtype Stride : Comparable, SignedNumeric
3 | func distance(to other: Self) -> Self.Stride
| `- note: protocol requires function 'distance(to:)' with type '(Float80) -> Float80'
4 | func advanced(by n: Self.Stride) -> Self
| `- note: protocol requires function 'advanced(by:)' with type '(Float80) -> Float80'
5 | static func _step(after current: (index: Int?, value: Self), from start: Self, by distance: Self.Stride) -> (index: Int?, value: Self)
6 | }
Swift.Numeric:4:9: note: protocol requires property 'magnitude' with type 'Float80'
2 | init?<T>(exactly source: T) where T : BinaryInteger
3 | associatedtype Magnitude : Comparable, Numeric
4 | var magnitude: Self.Magnitude { get }
| `- note: protocol requires property 'magnitude' with type 'Float80'
5 | static func * (lhs: Self, rhs: Self) -> Self
6 | static func *= (lhs: inout Self, rhs: Self)
Swift.AdditiveArithmetic:3:17: note: protocol requires function '+' with type '(Float80, Float80) -> Float80'
1 | public protocol AdditiveArithmetic : Equatable {
2 | static var zero: Self { get }
3 | static func + (lhs: Self, rhs: Self) -> Self
| `- note: protocol requires function '+' with type '(Float80, Float80) -> Float80'
4 | static func += (lhs: inout Self, rhs: Self)
5 | static func - (lhs: Self, rhs: Self) -> Self
Swift.ExpressibleByIntegerLiteral:2:20: note: protocol requires nested type 'IntegerLiteralType'; add nested type 'IntegerLiteralType' for conformance
1 | public protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral
| `- note: protocol requires nested type 'IntegerLiteralType'; add nested type 'IntegerLiteralType' for conformance
3 | init(integerLiteral value: Self.IntegerLiteralType)
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/FloatingPointGenericMath.swift:14:11: error: 'Float80' is unavailable: Float80 is not available on target platform.
12 |
13 | #if os(Linux) || os(macOS)
14 | extension Float80 : FloatingPointGenericMath {
| `- error: 'Float80' is unavailable: Float80 is not available on target platform.
15 | public static func _log(_ x: Float80) -> Float80 { return log(x) }
16 | public static func _sin(_ x: Float80) -> Float80 { return sin(x) }
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Float80 is not available on target platform.")
2 | @frozen public struct Float80 {
| `- note: 'Float80' has been explicitly marked unavailable here
3 | public init()
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:45:16: warning: 'public' modifier is redundant for property declared in a public extension
43 |
44 | // TODO: there might be a more efficient way to transpose
45 | @inlinable public var transposed: Self {
| `- warning: 'public' modifier is redundant for property declared in a public extension
46 | var matrix = clone() // TODO: maybe have some clone function that does not clone elements
47 |
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:266:5: warning: 'public' modifier is redundant for initializer declared in a public extension
264 | public extension Matrix4Protocol {
265 |
266 | public init<M3: Matrix3Protocol>(topLeft: M3, rest: Self = .identity) where M3.Element == Element {
| `- warning: 'public' modifier is redundant for initializer declared in a public extension
267 | self.init([
268 | topLeft[0, 0], topLeft[0, 1], topLeft[0, 2], rest[0, 3],
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:101:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
99 |
100 | extension Vector3Protocol {
101 | public typealias Dimension = Dim_3x1
| `- warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
102 |
103 | @inlinable public static var zero: Self {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
2 |
3 | public protocol VectorProtocol: MatrixProtocol {
4 | associatedtype Dimension: MatrixDimension
| `- note: 'Dimension' declared here
5 |
6 | init(_ elements: [Element])
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:174:20: warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
172 |
173 | extension Vector4Protocol {
174 | public typealias Dimension = Dim_4x1
| `- warning: typealias overriding associated type 'Dimension' from protocol 'VectorProtocol' is better expressed as same-type constraint on the protocol
175 |
176 | @inlinable public static var zero: Self {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/VectorProtocol.swift:4:18: note: 'Dimension' declared here
2 |
3 | public protocol VectorProtocol: MatrixProtocol {
4 | associatedtype Dimension: MatrixDimension
| `- note: 'Dimension' declared here
5 |
6 | init(_ elements: [Element])
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:345:16: warning: no calls to throwing functions occur within 'try' expression
343 | // TODO: the following functions might be specific to openGL, maybe put those in the GLGraphicsMath package
344 | @inlinable static func viewTransformation<V: Vector3Protocol>(up: V, right: V, front: V, translation: V) -> Self where V.Element == Self.Element {
345 | return try! Self([
| `- warning: no calls to throwing functions occur within 'try' expression
346 | right.x, right.y, right.z, 0,
347 | up.x, up.y, up.z, 0,
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:404:12: warning: no calls to throwing functions occur within 'try' expression
402 | // TODO: might replace this or remove this / current function of this is to simply remove throws
403 | @inlinable public func * <E: Numeric>(lhs: Matrix4<E>, rhs: Matrix4<E>) -> Matrix4<E> {
404 | return try! lhs.matmul(rhs)
| `- warning: no calls to throwing functions occur within 'try' expression
405 | }
406 |
BUILD FAILURE 6.0 macosSpm