Build Information
Failed to build GfxMath, reference master (249161
), with Swift 6.0 for macOS (SPM) on 14 Sep 2024 16:04:25 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
/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 DataType = UInt8
5 |
/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 DataType = UInt8
5 |
/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 DataType = UInt8
5 |
/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 DataType = UInt8
5 |
[19/34] 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")
/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 DataType = UInt8
5 |
/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 DataType = UInt8
5 |
/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 DataType = UInt8
5 |
/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 DataType = UInt8
5 |
/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 DataType = UInt8
5 |
/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 DataType = UInt8
5 |
/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 DataType = UInt8
5 |
/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 DataType = UInt8
5 |
/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 DataType = UInt8
5 |
/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 DataType = UInt8
5 |
[20/34] 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/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])
[21/34] 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/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])
[22/34] Compiling GfxMath Size.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/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])
[23/34] 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:16:20: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
14 | }
15 |
16 | public var line: AnyLine<Vector>
| `- warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
17 |
18 | public init(line: AnyLine<Vector>, scaleMin: Vector.Element, scaleMax: Vector.Element) {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:18:21: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
16 | public var line: AnyLine<Vector>
17 |
18 | public init(line: AnyLine<Vector>, scaleMin: Vector.Element, scaleMax: Vector.Element) {
| `- warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
19 | var scaleMin = scaleMin
20 | var scaleMax = scaleMax
/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:34:16: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
32 |
33 | public init(start: Vector, end: Vector) {
34 | let line = AnyLine(from: start, to: end)
| `- warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
35 | var scaleMin = line.scaleAt(start)!
36 | var scaleMax = line.scaleAt(end)!
/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
/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/Rect.swift:131:54: warning: 'point' is deprecated: use origin
129 | var maxScale = Data.infinity
130 | for dimension in 0..<2 {
131 | var newMinScale = (min[dimension] - line.point[dimension]) / line.direction[dimension]
| `- warning: 'point' is deprecated: use origin
132 | var newMaxScale = (max[dimension] - line.point[dimension]) / line.direction[dimension]
133 | if newMinScale > newMaxScale {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:132:54: warning: 'point' is deprecated: use origin
130 | for dimension in 0..<2 {
131 | var newMinScale = (min[dimension] - line.point[dimension]) / line.direction[dimension]
132 | var newMaxScale = (max[dimension] - line.point[dimension]) / line.direction[dimension]
| `- warning: 'point' is deprecated: use origin
133 | if newMinScale > newMaxScale {
134 | let tmp = newMinScale
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:146:41: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
144 | }
145 |
146 | return (min: Vector2<Data>(line.pointAtScale(minScale)), max: Vector2<Data>(line.pointAtScale(maxScale)))
| `- warning: 'pointAtScale' is deprecated: use pointAt(scale:)
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:146:90: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
144 | }
145 |
146 | return (min: Vector2<Data>(line.pointAtScale(minScale)), max: Vector2<Data>(line.pointAtScale(maxScale)))
| `- warning: 'pointAtScale' is deprecated: use pointAt(scale:)
147 | }
148 | }
[24/34] 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:16:20: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
14 | }
15 |
16 | public var line: AnyLine<Vector>
| `- warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
17 |
18 | public init(line: AnyLine<Vector>, scaleMin: Vector.Element, scaleMax: Vector.Element) {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:18:21: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
16 | public var line: AnyLine<Vector>
17 |
18 | public init(line: AnyLine<Vector>, scaleMin: Vector.Element, scaleMax: Vector.Element) {
| `- warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
19 | var scaleMin = scaleMin
20 | var scaleMax = scaleMax
/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:34:16: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
32 |
33 | public init(start: Vector, end: Vector) {
34 | let line = AnyLine(from: start, to: end)
| `- warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
35 | var scaleMin = line.scaleAt(start)!
36 | var scaleMax = line.scaleAt(end)!
/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
/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/Rect.swift:131:54: warning: 'point' is deprecated: use origin
129 | var maxScale = Data.infinity
130 | for dimension in 0..<2 {
131 | var newMinScale = (min[dimension] - line.point[dimension]) / line.direction[dimension]
| `- warning: 'point' is deprecated: use origin
132 | var newMaxScale = (max[dimension] - line.point[dimension]) / line.direction[dimension]
133 | if newMinScale > newMaxScale {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:132:54: warning: 'point' is deprecated: use origin
130 | for dimension in 0..<2 {
131 | var newMinScale = (min[dimension] - line.point[dimension]) / line.direction[dimension]
132 | var newMaxScale = (max[dimension] - line.point[dimension]) / line.direction[dimension]
| `- warning: 'point' is deprecated: use origin
133 | if newMinScale > newMaxScale {
134 | let tmp = newMinScale
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:146:41: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
144 | }
145 |
146 | return (min: Vector2<Data>(line.pointAtScale(minScale)), max: Vector2<Data>(line.pointAtScale(maxScale)))
| `- warning: 'pointAtScale' is deprecated: use pointAt(scale:)
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:146:90: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
144 | }
145 |
146 | return (min: Vector2<Data>(line.pointAtScale(minScale)), max: Vector2<Data>(line.pointAtScale(maxScale)))
| `- warning: 'pointAtScale' is deprecated: use pointAt(scale:)
147 | }
148 | }
[25/34] Compiling GfxMath Rect.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:16:20: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
14 | }
15 |
16 | public var line: AnyLine<Vector>
| `- warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
17 |
18 | public init(line: AnyLine<Vector>, scaleMin: Vector.Element, scaleMax: Vector.Element) {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/LineSegment.swift:18:21: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
16 | public var line: AnyLine<Vector>
17 |
18 | public init(line: AnyLine<Vector>, scaleMin: Vector.Element, scaleMax: Vector.Element) {
| `- warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
19 | var scaleMin = scaleMin
20 | var scaleMax = scaleMax
/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:34:16: warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
32 |
33 | public init(start: Vector, end: Vector) {
34 | let line = AnyLine(from: start, to: end)
| `- warning: 'AnyLine' is deprecated: use Line<V> instead of AnyLine<V>
35 | var scaleMin = line.scaleAt(start)!
36 | var scaleMax = line.scaleAt(end)!
/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
/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/Rect.swift:131:54: warning: 'point' is deprecated: use origin
129 | var maxScale = Data.infinity
130 | for dimension in 0..<2 {
131 | var newMinScale = (min[dimension] - line.point[dimension]) / line.direction[dimension]
| `- warning: 'point' is deprecated: use origin
132 | var newMaxScale = (max[dimension] - line.point[dimension]) / line.direction[dimension]
133 | if newMinScale > newMaxScale {
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:132:54: warning: 'point' is deprecated: use origin
130 | for dimension in 0..<2 {
131 | var newMinScale = (min[dimension] - line.point[dimension]) / line.direction[dimension]
132 | var newMaxScale = (max[dimension] - line.point[dimension]) / line.direction[dimension]
| `- warning: 'point' is deprecated: use origin
133 | if newMinScale > newMaxScale {
134 | let tmp = newMinScale
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:146:41: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
144 | }
145 |
146 | return (min: Vector2<Data>(line.pointAtScale(minScale)), max: Vector2<Data>(line.pointAtScale(maxScale)))
| `- warning: 'pointAtScale' is deprecated: use pointAt(scale:)
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/geometry/Rect.swift:146:90: warning: 'pointAtScale' is deprecated: use pointAt(scale:)
144 | }
145 |
146 | return (min: Vector2<Data>(line.pointAtScale(minScale)), max: Vector2<Data>(line.pointAtScale(maxScale)))
| `- warning: 'pointAtScale' is deprecated: use pointAt(scale:)
147 | }
148 | }
[26/34] Compiling GfxMath Triangle.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: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/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/vector/Vector.swift:244:27: warning: no calls to throwing functions occur within 'try' expression
242 | -> VectorProtocol where Self.Element == VectorProtocol.Element
243 | {
244 | return VectorProtocol(try! self.matmul(other).elements)
| `- warning: no calls to throwing functions occur within 'try' expression
245 | }
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:244:37: warning: function call causes an infinite recursion
242 | -> VectorProtocol where Self.Element == VectorProtocol.Element
243 | {
244 | return VectorProtocol(try! self.matmul(other).elements)
| `- warning: function call causes an infinite recursion
245 | }
246 | }
[27/34] Compiling GfxMath Vector.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: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/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/vector/Vector.swift:244:27: warning: no calls to throwing functions occur within 'try' expression
242 | -> VectorProtocol where Self.Element == VectorProtocol.Element
243 | {
244 | return VectorProtocol(try! self.matmul(other).elements)
| `- warning: no calls to throwing functions occur within 'try' expression
245 | }
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:244:37: warning: function call causes an infinite recursion
242 | -> VectorProtocol where Self.Element == VectorProtocol.Element
243 | {
244 | return VectorProtocol(try! self.matmul(other).elements)
| `- warning: function call causes an infinite recursion
245 | }
246 | }
[28/34] Compiling GfxMath VectorLayout.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: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/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/vector/Vector.swift:244:27: warning: no calls to throwing functions occur within 'try' expression
242 | -> VectorProtocol where Self.Element == VectorProtocol.Element
243 | {
244 | return VectorProtocol(try! self.matmul(other).elements)
| `- warning: no calls to throwing functions occur within 'try' expression
245 | }
246 | }
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/vector/Vector.swift:244:37: warning: function call causes an infinite recursion
242 | -> VectorProtocol where Self.Element == VectorProtocol.Element
243 | {
244 | return VectorProtocol(try! self.matmul(other).elements)
| `- warning: function call causes an infinite recursion
245 | }
246 | }
[29/34] Compiling GfxMath FloatingPointGenericMath.swift
/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:20:35: note: candidate would match if 'Float80' conformed to 'EColor'
18 | }
19 |
20 | @inlinable public static func + (lhs: Self, rhs: Self) -> Self {
| `- note: candidate would match if 'Float80' conformed to 'EColor'
21 | var result = lhs
22 | 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:265:5: warning: 'public' modifier is redundant for initializer declared in a public extension
263 | public extension Matrix4Protocol {
264 |
265 | 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
266 | self.init([
267 | 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:379:16: warning: no calls to throwing functions occur within 'try' expression
377 | // TODO: the following functions might be specific to openGL, maybe put those in the GLGraphicsMath package
378 | @inlinable static func viewTransformation<V: Vector3Protocol>(up: V, right: V, front: V, translation: V) -> Self where V.Element == Self.Element {
379 | return try! Self([
| `- warning: no calls to throwing functions occur within 'try' expression
380 | right.x, right.y, right.z, 0,
381 | up.x, up.y, up.z, 0,
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:438:12: warning: no calls to throwing functions occur within 'try' expression
436 | // TODO: might replace this or remove this / current function of this is to simply remove throws
437 | @inlinable public func * <E: Numeric>(lhs: Matrix4<E>, rhs: Matrix4<E>) -> Matrix4<E> {
438 | return try! lhs.matmul(rhs)
| `- warning: no calls to throwing functions occur within 'try' expression
439 | }
440 |
[30/34] Compiling GfxMath Matrix.swift
/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:20:35: note: candidate would match if 'Float80' conformed to 'EColor'
18 | }
19 |
20 | @inlinable public static func + (lhs: Self, rhs: Self) -> Self {
| `- note: candidate would match if 'Float80' conformed to 'EColor'
21 | var result = lhs
22 | 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:265:5: warning: 'public' modifier is redundant for initializer declared in a public extension
263 | public extension Matrix4Protocol {
264 |
265 | 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
266 | self.init([
267 | 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:379:16: warning: no calls to throwing functions occur within 'try' expression
377 | // TODO: the following functions might be specific to openGL, maybe put those in the GLGraphicsMath package
378 | @inlinable static func viewTransformation<V: Vector3Protocol>(up: V, right: V, front: V, translation: V) -> Self where V.Element == Self.Element {
379 | return try! Self([
| `- warning: no calls to throwing functions occur within 'try' expression
380 | right.x, right.y, right.z, 0,
381 | up.x, up.y, up.z, 0,
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:438:12: warning: no calls to throwing functions occur within 'try' expression
436 | // TODO: might replace this or remove this / current function of this is to simply remove throws
437 | @inlinable public func * <E: Numeric>(lhs: Matrix4<E>, rhs: Matrix4<E>) -> Matrix4<E> {
438 | return try! lhs.matmul(rhs)
| `- warning: no calls to throwing functions occur within 'try' expression
439 | }
440 |
[31/34] Compiling GfxMath MatrixDimension.swift
/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:20:35: note: candidate would match if 'Float80' conformed to 'EColor'
18 | }
19 |
20 | @inlinable public static func + (lhs: Self, rhs: Self) -> Self {
| `- note: candidate would match if 'Float80' conformed to 'EColor'
21 | var result = lhs
22 | 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:265:5: warning: 'public' modifier is redundant for initializer declared in a public extension
263 | public extension Matrix4Protocol {
264 |
265 | 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
266 | self.init([
267 | 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:379:16: warning: no calls to throwing functions occur within 'try' expression
377 | // TODO: the following functions might be specific to openGL, maybe put those in the GLGraphicsMath package
378 | @inlinable static func viewTransformation<V: Vector3Protocol>(up: V, right: V, front: V, translation: V) -> Self where V.Element == Self.Element {
379 | return try! Self([
| `- warning: no calls to throwing functions occur within 'try' expression
380 | right.x, right.y, right.z, 0,
381 | up.x, up.y, up.z, 0,
/Users/admin/builder/spi-builder-workspace/Sources/GfxMath/Matrix.swift:438:12: warning: no calls to throwing functions occur within 'try' expression
436 | // TODO: might replace this or remove this / current function of this is to simply remove throws
437 | @inlinable public func * <E: Numeric>(lhs: Matrix4<E>, rhs: Matrix4<E>) -> Matrix4<E> {
438 | return try! lhs.matmul(rhs)
| `- warning: no calls to throwing functions occur within 'try' expression
439 | }
440 |
[32/34] Compiling GfxMath VectorProtocol+Initializers.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])
[33/34] Compiling GfxMath VectorProtocol+Operators.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])
[34/34] Compiling GfxMath VectorProtocol.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])
BUILD FAILURE 6.0 macosSpm