Build Information
Failed to build Swiftish, reference master (d8680c
), with Swift 6.1 for Android on 27 May 2025 13:50:19 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jkolb/swiftish.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/jkolb/swiftish
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at d8680cb Conversion between different types of IntVectors. Common aliases for x, y, z, w. Default conformance to Hashable.
Cloned https://github.com/jkolb/swiftish.git
Revision (git rev-parse @):
d8680cba1e30bbfd212844cae3a2081cc00e16a7
SUCCESS checkout https://github.com/jkolb/swiftish.git at master
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/jkolb/swiftish.git
https://github.com/jkolb/swiftish.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "Swiftish",
"name" : "Swiftish",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Swiftish",
"targets" : [
"Swiftish"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftishTests",
"module_type" : "SwiftTarget",
"name" : "SwiftishTests",
"path" : "Tests/SwiftishTests",
"sources" : [
"Matrix2Tests.swift",
"Matrix3Tests.swift",
"Matrix4Tests.swift",
"Vector2Tests.swift",
"Vector3Tests.swift",
"Vector4Tests.swift"
],
"target_dependencies" : [
"Swiftish"
],
"type" : "test"
},
{
"c99name" : "Swiftish",
"module_type" : "SwiftTarget",
"name" : "Swiftish",
"path" : "Sources/Swiftish",
"product_memberships" : [
"Swiftish"
],
"sources" : [
"Bounds2.swift",
"Bounds3.swift",
"Circle.swift",
"Frustum.swift",
"IntVector2.swift",
"IntVector3.swift",
"IntVector4.swift",
"Matrix2x2.swift",
"Matrix3x3.swift",
"Matrix4x4.swift",
"PerspectiveProjection.swift",
"Plane.swift",
"Quaternion.swift",
"Ray3.swift",
"Sphere.swift",
"Transform3.swift",
"Triangle2.swift",
"Triangle3.swift",
"Trigonometry.swift",
"Vector2.swift",
"Vector3.swift",
"Vector4.swift",
"Vectorable.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/24] Emitting module Swiftish
/host/spi-builder-workspace/Sources/Swiftish/Bounds3.swift:206:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Bounds3<T: Vectorable> : Hashable {
| `- note: 'T' previously declared here
26 | public var center: Vector3<T>
27 | public var extents: Vector3<T>
:
204 | }
205 |
206 | public static func distance2<T>(_ point: Vector3<T>, _ bounds: Bounds3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
207 | var distanceSquared: T = 0
208 | let minimum = bounds.minimum
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:308:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
306 | // MARK: Conjugate
307 |
308 | public static func conjugate<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
309 | return Quaternion<T>(q.w, -q.xyz)
310 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:314:28: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
312 | // MARK: Geometric
313 |
314 | public static func dot<T>(_ a: Quaternion<T>, _ b: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
315 | return a.w * b.w + Vector3<T>.dot(a.xyz, b.xyz)
316 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:318:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
316 | }
317 |
318 | public static func length2<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
319 | return q.w * q.w + Vector3<T>.sum(q.xyz * q.xyz)
320 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:322:31: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
320 | }
321 |
322 | public static func length<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
323 | return length2(q).squareRoot()
324 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:326:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
324 | }
325 |
326 | public static func normalize<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
327 | return q * (1 / length(q))
328 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:332:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
330 | // MARK: - Inverse
331 |
332 | public static func inverse<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
333 | return Quaternion<T>.conjugate(q) / dot(q, q)
334 | }
/host/spi-builder-workspace/Sources/Swiftish/Ray3.swift:38:33: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Ray3<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var origin: Vector3<T>
27 | public var direction: Vector3<T>
:
36 | }
37 |
38 | public static func distance<T>(_ r: Ray3<T>, _ t: Triangle3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
39 | let n = t.normal
40 | let qp = -r.direction
/host/spi-builder-workspace/Sources/Swiftish/Sphere.swift:56:30: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Sphere<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public let center: Vector3<T>
27 | public let radius: T
:
54 | }
55 |
56 | public static func union<T>(_ a: Sphere<T>, _ b: Sphere<T>) -> Sphere<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
57 | let midpoint = (a.center + b.center) / 2
58 | let largestRadius = Vector3<T>.distance(midpoint, a.center) + max(a.radius, b.radius)
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:60:16: error: cannot find 'Darwin' in scope
58 | return Glibc.cosf(radians)
59 | #else
60 | return Darwin.cosf(radians)
| `- error: cannot find 'Darwin' in scope
61 | #endif
62 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:69:16: error: cannot find 'Darwin' in scope
67 | return Glibc.sinf(radians)
68 | #else
69 | return Darwin.sinf(radians)
| `- error: cannot find 'Darwin' in scope
70 | #endif
71 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:78:16: error: cannot find 'Darwin' in scope
76 | return Glibc.tanf(radians)
77 | #else
78 | return Darwin.tanf(radians)
| `- error: cannot find 'Darwin' in scope
79 | #endif
80 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:87:16: error: cannot find 'Darwin' in scope
85 | return Glibc.acosf(radians)
86 | #else
87 | return Darwin.acosf(radians)
| `- error: cannot find 'Darwin' in scope
88 | #endif
89 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:96:16: error: cannot find 'Darwin' in scope
94 | return Glibc.asinf(radians)
95 | #else
96 | return Darwin.asinf(radians)
| `- error: cannot find 'Darwin' in scope
97 | #endif
98 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:105:16: error: cannot find 'Darwin' in scope
103 | return Glibc.atanf(radians)
104 | #else
105 | return Darwin.atanf(radians)
| `- error: cannot find 'Darwin' in scope
106 | #endif
107 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:114:16: error: cannot find 'Darwin' in scope
112 | return Glibc.atan2(yRadians, xRadians)
113 | #else
114 | return Darwin.atan2(yRadians, xRadians)
| `- error: cannot find 'Darwin' in scope
115 | #endif
116 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:133:16: error: cannot find 'Darwin' in scope
131 | return Glibc.cos(radians)
132 | #else
133 | return Darwin.cos(radians)
| `- error: cannot find 'Darwin' in scope
134 | #endif
135 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:142:16: error: cannot find 'Darwin' in scope
140 | return Glibc.sin(radians)
141 | #else
142 | return Darwin.sin(radians)
| `- error: cannot find 'Darwin' in scope
143 | #endif
144 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:151:16: error: cannot find 'Darwin' in scope
149 | return Glibc.tan(radians)
150 | #else
151 | return Darwin.tan(radians)
| `- error: cannot find 'Darwin' in scope
152 | #endif
153 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:160:16: error: cannot find 'Darwin' in scope
158 | return Glibc.acos(radians)
159 | #else
160 | return Darwin.acos(radians)
| `- error: cannot find 'Darwin' in scope
161 | #endif
162 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:169:16: error: cannot find 'Darwin' in scope
167 | return Glibc.asin(radians)
168 | #else
169 | return Darwin.asin(radians)
| `- error: cannot find 'Darwin' in scope
170 | #endif
171 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:178:16: error: cannot find 'Darwin' in scope
176 | return Glibc.atan(radians)
177 | #else
178 | return Darwin.atan(radians)
| `- error: cannot find 'Darwin' in scope
179 | #endif
180 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:187:16: error: cannot find 'Darwin' in scope
185 | return Glibc.atan2(yRadians, xRadians)
186 | #else
187 | return Darwin.atan2(yRadians, xRadians)
| `- error: cannot find 'Darwin' in scope
188 | #endif
189 | }
[4/26] Compiling Swiftish Transform3.swift
[5/26] Compiling Swiftish Triangle2.swift
[6/26] Compiling Swiftish Triangle3.swift
[7/26] Compiling Swiftish Bounds2.swift
/host/spi-builder-workspace/Sources/Swiftish/Bounds3.swift:206:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Bounds3<T: Vectorable> : Hashable {
| `- note: 'T' previously declared here
26 | public var center: Vector3<T>
27 | public var extents: Vector3<T>
:
204 | }
205 |
206 | public static func distance2<T>(_ point: Vector3<T>, _ bounds: Bounds3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
207 | var distanceSquared: T = 0
208 | let minimum = bounds.minimum
[8/26] Compiling Swiftish Bounds3.swift
/host/spi-builder-workspace/Sources/Swiftish/Bounds3.swift:206:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Bounds3<T: Vectorable> : Hashable {
| `- note: 'T' previously declared here
26 | public var center: Vector3<T>
27 | public var extents: Vector3<T>
:
204 | }
205 |
206 | public static func distance2<T>(_ point: Vector3<T>, _ bounds: Bounds3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
207 | var distanceSquared: T = 0
208 | let minimum = bounds.minimum
[9/26] Compiling Swiftish Circle.swift
/host/spi-builder-workspace/Sources/Swiftish/Bounds3.swift:206:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Bounds3<T: Vectorable> : Hashable {
| `- note: 'T' previously declared here
26 | public var center: Vector3<T>
27 | public var extents: Vector3<T>
:
204 | }
205 |
206 | public static func distance2<T>(_ point: Vector3<T>, _ bounds: Bounds3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
207 | var distanceSquared: T = 0
208 | let minimum = bounds.minimum
[10/26] Compiling Swiftish Vector4.swift
[11/26] Compiling Swiftish Vectorable.swift
[12/26] Compiling Swiftish Quaternion.swift
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:308:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
306 | // MARK: Conjugate
307 |
308 | public static func conjugate<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
309 | return Quaternion<T>(q.w, -q.xyz)
310 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:314:28: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
312 | // MARK: Geometric
313 |
314 | public static func dot<T>(_ a: Quaternion<T>, _ b: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
315 | return a.w * b.w + Vector3<T>.dot(a.xyz, b.xyz)
316 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:318:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
316 | }
317 |
318 | public static func length2<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
319 | return q.w * q.w + Vector3<T>.sum(q.xyz * q.xyz)
320 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:322:31: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
320 | }
321 |
322 | public static func length<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
323 | return length2(q).squareRoot()
324 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:326:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
324 | }
325 |
326 | public static func normalize<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
327 | return q * (1 / length(q))
328 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:332:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
330 | // MARK: - Inverse
331 |
332 | public static func inverse<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
333 | return Quaternion<T>.conjugate(q) / dot(q, q)
334 | }
/host/spi-builder-workspace/Sources/Swiftish/Ray3.swift:38:33: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Ray3<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var origin: Vector3<T>
27 | public var direction: Vector3<T>
:
36 | }
37 |
38 | public static func distance<T>(_ r: Ray3<T>, _ t: Triangle3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
39 | let n = t.normal
40 | let qp = -r.direction
/host/spi-builder-workspace/Sources/Swiftish/Sphere.swift:56:30: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Sphere<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public let center: Vector3<T>
27 | public let radius: T
:
54 | }
55 |
56 | public static func union<T>(_ a: Sphere<T>, _ b: Sphere<T>) -> Sphere<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
57 | let midpoint = (a.center + b.center) / 2
58 | let largestRadius = Vector3<T>.distance(midpoint, a.center) + max(a.radius, b.radius)
[13/26] Compiling Swiftish Ray3.swift
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:308:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
306 | // MARK: Conjugate
307 |
308 | public static func conjugate<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
309 | return Quaternion<T>(q.w, -q.xyz)
310 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:314:28: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
312 | // MARK: Geometric
313 |
314 | public static func dot<T>(_ a: Quaternion<T>, _ b: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
315 | return a.w * b.w + Vector3<T>.dot(a.xyz, b.xyz)
316 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:318:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
316 | }
317 |
318 | public static func length2<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
319 | return q.w * q.w + Vector3<T>.sum(q.xyz * q.xyz)
320 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:322:31: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
320 | }
321 |
322 | public static func length<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
323 | return length2(q).squareRoot()
324 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:326:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
324 | }
325 |
326 | public static func normalize<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
327 | return q * (1 / length(q))
328 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:332:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
330 | // MARK: - Inverse
331 |
332 | public static func inverse<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
333 | return Quaternion<T>.conjugate(q) / dot(q, q)
334 | }
/host/spi-builder-workspace/Sources/Swiftish/Ray3.swift:38:33: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Ray3<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var origin: Vector3<T>
27 | public var direction: Vector3<T>
:
36 | }
37 |
38 | public static func distance<T>(_ r: Ray3<T>, _ t: Triangle3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
39 | let n = t.normal
40 | let qp = -r.direction
/host/spi-builder-workspace/Sources/Swiftish/Sphere.swift:56:30: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Sphere<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public let center: Vector3<T>
27 | public let radius: T
:
54 | }
55 |
56 | public static func union<T>(_ a: Sphere<T>, _ b: Sphere<T>) -> Sphere<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
57 | let midpoint = (a.center + b.center) / 2
58 | let largestRadius = Vector3<T>.distance(midpoint, a.center) + max(a.radius, b.radius)
[14/26] Compiling Swiftish Sphere.swift
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:308:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
306 | // MARK: Conjugate
307 |
308 | public static func conjugate<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
309 | return Quaternion<T>(q.w, -q.xyz)
310 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:314:28: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
312 | // MARK: Geometric
313 |
314 | public static func dot<T>(_ a: Quaternion<T>, _ b: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
315 | return a.w * b.w + Vector3<T>.dot(a.xyz, b.xyz)
316 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:318:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
316 | }
317 |
318 | public static func length2<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
319 | return q.w * q.w + Vector3<T>.sum(q.xyz * q.xyz)
320 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:322:31: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
320 | }
321 |
322 | public static func length<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
323 | return length2(q).squareRoot()
324 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:326:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
324 | }
325 |
326 | public static func normalize<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
327 | return q * (1 / length(q))
328 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:332:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
330 | // MARK: - Inverse
331 |
332 | public static func inverse<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
333 | return Quaternion<T>.conjugate(q) / dot(q, q)
334 | }
/host/spi-builder-workspace/Sources/Swiftish/Ray3.swift:38:33: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Ray3<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var origin: Vector3<T>
27 | public var direction: Vector3<T>
:
36 | }
37 |
38 | public static func distance<T>(_ r: Ray3<T>, _ t: Triangle3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
39 | let n = t.normal
40 | let qp = -r.direction
/host/spi-builder-workspace/Sources/Swiftish/Sphere.swift:56:30: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Sphere<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public let center: Vector3<T>
27 | public let radius: T
:
54 | }
55 |
56 | public static func union<T>(_ a: Sphere<T>, _ b: Sphere<T>) -> Sphere<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
57 | let midpoint = (a.center + b.center) / 2
58 | let largestRadius = Vector3<T>.distance(midpoint, a.center) + max(a.radius, b.radius)
[15/26] Compiling Swiftish Matrix4x4.swift
[16/26] Compiling Swiftish PerspectiveProjection.swift
[17/26] Compiling Swiftish Plane.swift
[18/26] Compiling Swiftish Frustum.swift
[19/26] Compiling Swiftish IntVector2.swift
[20/26] Compiling Swiftish IntVector3.swift
[21/26] Compiling Swiftish IntVector4.swift
[22/26] Compiling Swiftish Matrix2x2.swift
[23/26] Compiling Swiftish Matrix3x3.swift
[24/26] Compiling Swiftish Trigonometry.swift
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:60:16: error: cannot find 'Darwin' in scope
58 | return Glibc.cosf(radians)
59 | #else
60 | return Darwin.cosf(radians)
| `- error: cannot find 'Darwin' in scope
61 | #endif
62 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:69:16: error: cannot find 'Darwin' in scope
67 | return Glibc.sinf(radians)
68 | #else
69 | return Darwin.sinf(radians)
| `- error: cannot find 'Darwin' in scope
70 | #endif
71 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:78:16: error: cannot find 'Darwin' in scope
76 | return Glibc.tanf(radians)
77 | #else
78 | return Darwin.tanf(radians)
| `- error: cannot find 'Darwin' in scope
79 | #endif
80 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:87:16: error: cannot find 'Darwin' in scope
85 | return Glibc.acosf(radians)
86 | #else
87 | return Darwin.acosf(radians)
| `- error: cannot find 'Darwin' in scope
88 | #endif
89 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:96:16: error: cannot find 'Darwin' in scope
94 | return Glibc.asinf(radians)
95 | #else
96 | return Darwin.asinf(radians)
| `- error: cannot find 'Darwin' in scope
97 | #endif
98 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:105:16: error: cannot find 'Darwin' in scope
103 | return Glibc.atanf(radians)
104 | #else
105 | return Darwin.atanf(radians)
| `- error: cannot find 'Darwin' in scope
106 | #endif
107 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:114:16: error: cannot find 'Darwin' in scope
112 | return Glibc.atan2(yRadians, xRadians)
113 | #else
114 | return Darwin.atan2(yRadians, xRadians)
| `- error: cannot find 'Darwin' in scope
115 | #endif
116 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:133:16: error: cannot find 'Darwin' in scope
131 | return Glibc.cos(radians)
132 | #else
133 | return Darwin.cos(radians)
| `- error: cannot find 'Darwin' in scope
134 | #endif
135 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:142:16: error: cannot find 'Darwin' in scope
140 | return Glibc.sin(radians)
141 | #else
142 | return Darwin.sin(radians)
| `- error: cannot find 'Darwin' in scope
143 | #endif
144 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:151:16: error: cannot find 'Darwin' in scope
149 | return Glibc.tan(radians)
150 | #else
151 | return Darwin.tan(radians)
| `- error: cannot find 'Darwin' in scope
152 | #endif
153 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:160:16: error: cannot find 'Darwin' in scope
158 | return Glibc.acos(radians)
159 | #else
160 | return Darwin.acos(radians)
| `- error: cannot find 'Darwin' in scope
161 | #endif
162 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:169:16: error: cannot find 'Darwin' in scope
167 | return Glibc.asin(radians)
168 | #else
169 | return Darwin.asin(radians)
| `- error: cannot find 'Darwin' in scope
170 | #endif
171 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:178:16: error: cannot find 'Darwin' in scope
176 | return Glibc.atan(radians)
177 | #else
178 | return Darwin.atan(radians)
| `- error: cannot find 'Darwin' in scope
179 | #endif
180 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:187:16: error: cannot find 'Darwin' in scope
185 | return Glibc.atan2(yRadians, xRadians)
186 | #else
187 | return Darwin.atan2(yRadians, xRadians)
| `- error: cannot find 'Darwin' in scope
188 | #endif
189 | }
[25/26] Compiling Swiftish Vector2.swift
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:60:16: error: cannot find 'Darwin' in scope
58 | return Glibc.cosf(radians)
59 | #else
60 | return Darwin.cosf(radians)
| `- error: cannot find 'Darwin' in scope
61 | #endif
62 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:69:16: error: cannot find 'Darwin' in scope
67 | return Glibc.sinf(radians)
68 | #else
69 | return Darwin.sinf(radians)
| `- error: cannot find 'Darwin' in scope
70 | #endif
71 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:78:16: error: cannot find 'Darwin' in scope
76 | return Glibc.tanf(radians)
77 | #else
78 | return Darwin.tanf(radians)
| `- error: cannot find 'Darwin' in scope
79 | #endif
80 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:87:16: error: cannot find 'Darwin' in scope
85 | return Glibc.acosf(radians)
86 | #else
87 | return Darwin.acosf(radians)
| `- error: cannot find 'Darwin' in scope
88 | #endif
89 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:96:16: error: cannot find 'Darwin' in scope
94 | return Glibc.asinf(radians)
95 | #else
96 | return Darwin.asinf(radians)
| `- error: cannot find 'Darwin' in scope
97 | #endif
98 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:105:16: error: cannot find 'Darwin' in scope
103 | return Glibc.atanf(radians)
104 | #else
105 | return Darwin.atanf(radians)
| `- error: cannot find 'Darwin' in scope
106 | #endif
107 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:114:16: error: cannot find 'Darwin' in scope
112 | return Glibc.atan2(yRadians, xRadians)
113 | #else
114 | return Darwin.atan2(yRadians, xRadians)
| `- error: cannot find 'Darwin' in scope
115 | #endif
116 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:133:16: error: cannot find 'Darwin' in scope
131 | return Glibc.cos(radians)
132 | #else
133 | return Darwin.cos(radians)
| `- error: cannot find 'Darwin' in scope
134 | #endif
135 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:142:16: error: cannot find 'Darwin' in scope
140 | return Glibc.sin(radians)
141 | #else
142 | return Darwin.sin(radians)
| `- error: cannot find 'Darwin' in scope
143 | #endif
144 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:151:16: error: cannot find 'Darwin' in scope
149 | return Glibc.tan(radians)
150 | #else
151 | return Darwin.tan(radians)
| `- error: cannot find 'Darwin' in scope
152 | #endif
153 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:160:16: error: cannot find 'Darwin' in scope
158 | return Glibc.acos(radians)
159 | #else
160 | return Darwin.acos(radians)
| `- error: cannot find 'Darwin' in scope
161 | #endif
162 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:169:16: error: cannot find 'Darwin' in scope
167 | return Glibc.asin(radians)
168 | #else
169 | return Darwin.asin(radians)
| `- error: cannot find 'Darwin' in scope
170 | #endif
171 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:178:16: error: cannot find 'Darwin' in scope
176 | return Glibc.atan(radians)
177 | #else
178 | return Darwin.atan(radians)
| `- error: cannot find 'Darwin' in scope
179 | #endif
180 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:187:16: error: cannot find 'Darwin' in scope
185 | return Glibc.atan2(yRadians, xRadians)
186 | #else
187 | return Darwin.atan2(yRadians, xRadians)
| `- error: cannot find 'Darwin' in scope
188 | #endif
189 | }
[26/26] Compiling Swiftish Vector3.swift
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:60:16: error: cannot find 'Darwin' in scope
58 | return Glibc.cosf(radians)
59 | #else
60 | return Darwin.cosf(radians)
| `- error: cannot find 'Darwin' in scope
61 | #endif
62 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:69:16: error: cannot find 'Darwin' in scope
67 | return Glibc.sinf(radians)
68 | #else
69 | return Darwin.sinf(radians)
| `- error: cannot find 'Darwin' in scope
70 | #endif
71 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:78:16: error: cannot find 'Darwin' in scope
76 | return Glibc.tanf(radians)
77 | #else
78 | return Darwin.tanf(radians)
| `- error: cannot find 'Darwin' in scope
79 | #endif
80 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:87:16: error: cannot find 'Darwin' in scope
85 | return Glibc.acosf(radians)
86 | #else
87 | return Darwin.acosf(radians)
| `- error: cannot find 'Darwin' in scope
88 | #endif
89 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:96:16: error: cannot find 'Darwin' in scope
94 | return Glibc.asinf(radians)
95 | #else
96 | return Darwin.asinf(radians)
| `- error: cannot find 'Darwin' in scope
97 | #endif
98 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:105:16: error: cannot find 'Darwin' in scope
103 | return Glibc.atanf(radians)
104 | #else
105 | return Darwin.atanf(radians)
| `- error: cannot find 'Darwin' in scope
106 | #endif
107 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:114:16: error: cannot find 'Darwin' in scope
112 | return Glibc.atan2(yRadians, xRadians)
113 | #else
114 | return Darwin.atan2(yRadians, xRadians)
| `- error: cannot find 'Darwin' in scope
115 | #endif
116 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:133:16: error: cannot find 'Darwin' in scope
131 | return Glibc.cos(radians)
132 | #else
133 | return Darwin.cos(radians)
| `- error: cannot find 'Darwin' in scope
134 | #endif
135 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:142:16: error: cannot find 'Darwin' in scope
140 | return Glibc.sin(radians)
141 | #else
142 | return Darwin.sin(radians)
| `- error: cannot find 'Darwin' in scope
143 | #endif
144 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:151:16: error: cannot find 'Darwin' in scope
149 | return Glibc.tan(radians)
150 | #else
151 | return Darwin.tan(radians)
| `- error: cannot find 'Darwin' in scope
152 | #endif
153 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:160:16: error: cannot find 'Darwin' in scope
158 | return Glibc.acos(radians)
159 | #else
160 | return Darwin.acos(radians)
| `- error: cannot find 'Darwin' in scope
161 | #endif
162 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:169:16: error: cannot find 'Darwin' in scope
167 | return Glibc.asin(radians)
168 | #else
169 | return Darwin.asin(radians)
| `- error: cannot find 'Darwin' in scope
170 | #endif
171 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:178:16: error: cannot find 'Darwin' in scope
176 | return Glibc.atan(radians)
177 | #else
178 | return Darwin.atan(radians)
| `- error: cannot find 'Darwin' in scope
179 | #endif
180 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:187:16: error: cannot find 'Darwin' in scope
185 | return Glibc.atan2(yRadians, xRadians)
186 | #else
187 | return Darwin.atan2(yRadians, xRadians)
| `- error: cannot find 'Darwin' in scope
188 | #endif
189 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/23] Emitting module Swiftish
/host/spi-builder-workspace/Sources/Swiftish/Bounds3.swift:206:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Bounds3<T: Vectorable> : Hashable {
| `- note: 'T' previously declared here
26 | public var center: Vector3<T>
27 | public var extents: Vector3<T>
:
204 | }
205 |
206 | public static func distance2<T>(_ point: Vector3<T>, _ bounds: Bounds3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
207 | var distanceSquared: T = 0
208 | let minimum = bounds.minimum
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:308:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
306 | // MARK: Conjugate
307 |
308 | public static func conjugate<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
309 | return Quaternion<T>(q.w, -q.xyz)
310 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:314:28: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
312 | // MARK: Geometric
313 |
314 | public static func dot<T>(_ a: Quaternion<T>, _ b: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
315 | return a.w * b.w + Vector3<T>.dot(a.xyz, b.xyz)
316 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:318:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
316 | }
317 |
318 | public static func length2<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
319 | return q.w * q.w + Vector3<T>.sum(q.xyz * q.xyz)
320 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:322:31: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
320 | }
321 |
322 | public static func length<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
323 | return length2(q).squareRoot()
324 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:326:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
324 | }
325 |
326 | public static func normalize<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
327 | return q * (1 / length(q))
328 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:332:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
330 | // MARK: - Inverse
331 |
332 | public static func inverse<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
333 | return Quaternion<T>.conjugate(q) / dot(q, q)
334 | }
/host/spi-builder-workspace/Sources/Swiftish/Ray3.swift:38:33: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Ray3<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var origin: Vector3<T>
27 | public var direction: Vector3<T>
:
36 | }
37 |
38 | public static func distance<T>(_ r: Ray3<T>, _ t: Triangle3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
39 | let n = t.normal
40 | let qp = -r.direction
/host/spi-builder-workspace/Sources/Swiftish/Sphere.swift:56:30: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Sphere<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public let center: Vector3<T>
27 | public let radius: T
:
54 | }
55 |
56 | public static func union<T>(_ a: Sphere<T>, _ b: Sphere<T>) -> Sphere<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
57 | let midpoint = (a.center + b.center) / 2
58 | let largestRadius = Vector3<T>.distance(midpoint, a.center) + max(a.radius, b.radius)
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:60:16: error: cannot find 'Darwin' in scope
58 | return Glibc.cosf(radians)
59 | #else
60 | return Darwin.cosf(radians)
| `- error: cannot find 'Darwin' in scope
61 | #endif
62 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:69:16: error: cannot find 'Darwin' in scope
67 | return Glibc.sinf(radians)
68 | #else
69 | return Darwin.sinf(radians)
| `- error: cannot find 'Darwin' in scope
70 | #endif
71 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:78:16: error: cannot find 'Darwin' in scope
76 | return Glibc.tanf(radians)
77 | #else
78 | return Darwin.tanf(radians)
| `- error: cannot find 'Darwin' in scope
79 | #endif
80 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:87:16: error: cannot find 'Darwin' in scope
85 | return Glibc.acosf(radians)
86 | #else
87 | return Darwin.acosf(radians)
| `- error: cannot find 'Darwin' in scope
88 | #endif
89 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:96:16: error: cannot find 'Darwin' in scope
94 | return Glibc.asinf(radians)
95 | #else
96 | return Darwin.asinf(radians)
| `- error: cannot find 'Darwin' in scope
97 | #endif
98 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:105:16: error: cannot find 'Darwin' in scope
103 | return Glibc.atanf(radians)
104 | #else
105 | return Darwin.atanf(radians)
| `- error: cannot find 'Darwin' in scope
106 | #endif
107 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:114:16: error: cannot find 'Darwin' in scope
112 | return Glibc.atan2(yRadians, xRadians)
113 | #else
114 | return Darwin.atan2(yRadians, xRadians)
| `- error: cannot find 'Darwin' in scope
115 | #endif
116 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:133:16: error: cannot find 'Darwin' in scope
131 | return Glibc.cos(radians)
132 | #else
133 | return Darwin.cos(radians)
| `- error: cannot find 'Darwin' in scope
134 | #endif
135 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:142:16: error: cannot find 'Darwin' in scope
140 | return Glibc.sin(radians)
141 | #else
142 | return Darwin.sin(radians)
| `- error: cannot find 'Darwin' in scope
143 | #endif
144 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:151:16: error: cannot find 'Darwin' in scope
149 | return Glibc.tan(radians)
150 | #else
151 | return Darwin.tan(radians)
| `- error: cannot find 'Darwin' in scope
152 | #endif
153 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:160:16: error: cannot find 'Darwin' in scope
158 | return Glibc.acos(radians)
159 | #else
160 | return Darwin.acos(radians)
| `- error: cannot find 'Darwin' in scope
161 | #endif
162 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:169:16: error: cannot find 'Darwin' in scope
167 | return Glibc.asin(radians)
168 | #else
169 | return Darwin.asin(radians)
| `- error: cannot find 'Darwin' in scope
170 | #endif
171 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:178:16: error: cannot find 'Darwin' in scope
176 | return Glibc.atan(radians)
177 | #else
178 | return Darwin.atan(radians)
| `- error: cannot find 'Darwin' in scope
179 | #endif
180 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:187:16: error: cannot find 'Darwin' in scope
185 | return Glibc.atan2(yRadians, xRadians)
186 | #else
187 | return Darwin.atan2(yRadians, xRadians)
| `- error: cannot find 'Darwin' in scope
188 | #endif
189 | }
[3/25] Compiling Swiftish Vector4.swift
[4/25] Compiling Swiftish Vectorable.swift
[5/25] Compiling Swiftish Bounds2.swift
/host/spi-builder-workspace/Sources/Swiftish/Bounds3.swift:206:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Bounds3<T: Vectorable> : Hashable {
| `- note: 'T' previously declared here
26 | public var center: Vector3<T>
27 | public var extents: Vector3<T>
:
204 | }
205 |
206 | public static func distance2<T>(_ point: Vector3<T>, _ bounds: Bounds3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
207 | var distanceSquared: T = 0
208 | let minimum = bounds.minimum
[6/25] Compiling Swiftish Bounds3.swift
/host/spi-builder-workspace/Sources/Swiftish/Bounds3.swift:206:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Bounds3<T: Vectorable> : Hashable {
| `- note: 'T' previously declared here
26 | public var center: Vector3<T>
27 | public var extents: Vector3<T>
:
204 | }
205 |
206 | public static func distance2<T>(_ point: Vector3<T>, _ bounds: Bounds3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
207 | var distanceSquared: T = 0
208 | let minimum = bounds.minimum
[7/25] Compiling Swiftish Circle.swift
/host/spi-builder-workspace/Sources/Swiftish/Bounds3.swift:206:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Bounds3<T: Vectorable> : Hashable {
| `- note: 'T' previously declared here
26 | public var center: Vector3<T>
27 | public var extents: Vector3<T>
:
204 | }
205 |
206 | public static func distance2<T>(_ point: Vector3<T>, _ bounds: Bounds3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
207 | var distanceSquared: T = 0
208 | let minimum = bounds.minimum
[8/25] Compiling Swiftish Frustum.swift
[9/25] Compiling Swiftish IntVector2.swift
[10/25] Compiling Swiftish IntVector3.swift
[11/25] Compiling Swiftish Trigonometry.swift
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:60:16: error: cannot find 'Darwin' in scope
58 | return Glibc.cosf(radians)
59 | #else
60 | return Darwin.cosf(radians)
| `- error: cannot find 'Darwin' in scope
61 | #endif
62 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:69:16: error: cannot find 'Darwin' in scope
67 | return Glibc.sinf(radians)
68 | #else
69 | return Darwin.sinf(radians)
| `- error: cannot find 'Darwin' in scope
70 | #endif
71 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:78:16: error: cannot find 'Darwin' in scope
76 | return Glibc.tanf(radians)
77 | #else
78 | return Darwin.tanf(radians)
| `- error: cannot find 'Darwin' in scope
79 | #endif
80 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:87:16: error: cannot find 'Darwin' in scope
85 | return Glibc.acosf(radians)
86 | #else
87 | return Darwin.acosf(radians)
| `- error: cannot find 'Darwin' in scope
88 | #endif
89 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:96:16: error: cannot find 'Darwin' in scope
94 | return Glibc.asinf(radians)
95 | #else
96 | return Darwin.asinf(radians)
| `- error: cannot find 'Darwin' in scope
97 | #endif
98 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:105:16: error: cannot find 'Darwin' in scope
103 | return Glibc.atanf(radians)
104 | #else
105 | return Darwin.atanf(radians)
| `- error: cannot find 'Darwin' in scope
106 | #endif
107 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:114:16: error: cannot find 'Darwin' in scope
112 | return Glibc.atan2(yRadians, xRadians)
113 | #else
114 | return Darwin.atan2(yRadians, xRadians)
| `- error: cannot find 'Darwin' in scope
115 | #endif
116 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:133:16: error: cannot find 'Darwin' in scope
131 | return Glibc.cos(radians)
132 | #else
133 | return Darwin.cos(radians)
| `- error: cannot find 'Darwin' in scope
134 | #endif
135 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:142:16: error: cannot find 'Darwin' in scope
140 | return Glibc.sin(radians)
141 | #else
142 | return Darwin.sin(radians)
| `- error: cannot find 'Darwin' in scope
143 | #endif
144 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:151:16: error: cannot find 'Darwin' in scope
149 | return Glibc.tan(radians)
150 | #else
151 | return Darwin.tan(radians)
| `- error: cannot find 'Darwin' in scope
152 | #endif
153 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:160:16: error: cannot find 'Darwin' in scope
158 | return Glibc.acos(radians)
159 | #else
160 | return Darwin.acos(radians)
| `- error: cannot find 'Darwin' in scope
161 | #endif
162 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:169:16: error: cannot find 'Darwin' in scope
167 | return Glibc.asin(radians)
168 | #else
169 | return Darwin.asin(radians)
| `- error: cannot find 'Darwin' in scope
170 | #endif
171 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:178:16: error: cannot find 'Darwin' in scope
176 | return Glibc.atan(radians)
177 | #else
178 | return Darwin.atan(radians)
| `- error: cannot find 'Darwin' in scope
179 | #endif
180 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:187:16: error: cannot find 'Darwin' in scope
185 | return Glibc.atan2(yRadians, xRadians)
186 | #else
187 | return Darwin.atan2(yRadians, xRadians)
| `- error: cannot find 'Darwin' in scope
188 | #endif
189 | }
[12/25] Compiling Swiftish Vector2.swift
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:60:16: error: cannot find 'Darwin' in scope
58 | return Glibc.cosf(radians)
59 | #else
60 | return Darwin.cosf(radians)
| `- error: cannot find 'Darwin' in scope
61 | #endif
62 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:69:16: error: cannot find 'Darwin' in scope
67 | return Glibc.sinf(radians)
68 | #else
69 | return Darwin.sinf(radians)
| `- error: cannot find 'Darwin' in scope
70 | #endif
71 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:78:16: error: cannot find 'Darwin' in scope
76 | return Glibc.tanf(radians)
77 | #else
78 | return Darwin.tanf(radians)
| `- error: cannot find 'Darwin' in scope
79 | #endif
80 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:87:16: error: cannot find 'Darwin' in scope
85 | return Glibc.acosf(radians)
86 | #else
87 | return Darwin.acosf(radians)
| `- error: cannot find 'Darwin' in scope
88 | #endif
89 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:96:16: error: cannot find 'Darwin' in scope
94 | return Glibc.asinf(radians)
95 | #else
96 | return Darwin.asinf(radians)
| `- error: cannot find 'Darwin' in scope
97 | #endif
98 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:105:16: error: cannot find 'Darwin' in scope
103 | return Glibc.atanf(radians)
104 | #else
105 | return Darwin.atanf(radians)
| `- error: cannot find 'Darwin' in scope
106 | #endif
107 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:114:16: error: cannot find 'Darwin' in scope
112 | return Glibc.atan2(yRadians, xRadians)
113 | #else
114 | return Darwin.atan2(yRadians, xRadians)
| `- error: cannot find 'Darwin' in scope
115 | #endif
116 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:133:16: error: cannot find 'Darwin' in scope
131 | return Glibc.cos(radians)
132 | #else
133 | return Darwin.cos(radians)
| `- error: cannot find 'Darwin' in scope
134 | #endif
135 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:142:16: error: cannot find 'Darwin' in scope
140 | return Glibc.sin(radians)
141 | #else
142 | return Darwin.sin(radians)
| `- error: cannot find 'Darwin' in scope
143 | #endif
144 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:151:16: error: cannot find 'Darwin' in scope
149 | return Glibc.tan(radians)
150 | #else
151 | return Darwin.tan(radians)
| `- error: cannot find 'Darwin' in scope
152 | #endif
153 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:160:16: error: cannot find 'Darwin' in scope
158 | return Glibc.acos(radians)
159 | #else
160 | return Darwin.acos(radians)
| `- error: cannot find 'Darwin' in scope
161 | #endif
162 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:169:16: error: cannot find 'Darwin' in scope
167 | return Glibc.asin(radians)
168 | #else
169 | return Darwin.asin(radians)
| `- error: cannot find 'Darwin' in scope
170 | #endif
171 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:178:16: error: cannot find 'Darwin' in scope
176 | return Glibc.atan(radians)
177 | #else
178 | return Darwin.atan(radians)
| `- error: cannot find 'Darwin' in scope
179 | #endif
180 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:187:16: error: cannot find 'Darwin' in scope
185 | return Glibc.atan2(yRadians, xRadians)
186 | #else
187 | return Darwin.atan2(yRadians, xRadians)
| `- error: cannot find 'Darwin' in scope
188 | #endif
189 | }
[13/25] Compiling Swiftish Vector3.swift
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:60:16: error: cannot find 'Darwin' in scope
58 | return Glibc.cosf(radians)
59 | #else
60 | return Darwin.cosf(radians)
| `- error: cannot find 'Darwin' in scope
61 | #endif
62 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:69:16: error: cannot find 'Darwin' in scope
67 | return Glibc.sinf(radians)
68 | #else
69 | return Darwin.sinf(radians)
| `- error: cannot find 'Darwin' in scope
70 | #endif
71 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:78:16: error: cannot find 'Darwin' in scope
76 | return Glibc.tanf(radians)
77 | #else
78 | return Darwin.tanf(radians)
| `- error: cannot find 'Darwin' in scope
79 | #endif
80 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:87:16: error: cannot find 'Darwin' in scope
85 | return Glibc.acosf(radians)
86 | #else
87 | return Darwin.acosf(radians)
| `- error: cannot find 'Darwin' in scope
88 | #endif
89 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:96:16: error: cannot find 'Darwin' in scope
94 | return Glibc.asinf(radians)
95 | #else
96 | return Darwin.asinf(radians)
| `- error: cannot find 'Darwin' in scope
97 | #endif
98 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:105:16: error: cannot find 'Darwin' in scope
103 | return Glibc.atanf(radians)
104 | #else
105 | return Darwin.atanf(radians)
| `- error: cannot find 'Darwin' in scope
106 | #endif
107 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:114:16: error: cannot find 'Darwin' in scope
112 | return Glibc.atan2(yRadians, xRadians)
113 | #else
114 | return Darwin.atan2(yRadians, xRadians)
| `- error: cannot find 'Darwin' in scope
115 | #endif
116 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:133:16: error: cannot find 'Darwin' in scope
131 | return Glibc.cos(radians)
132 | #else
133 | return Darwin.cos(radians)
| `- error: cannot find 'Darwin' in scope
134 | #endif
135 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:142:16: error: cannot find 'Darwin' in scope
140 | return Glibc.sin(radians)
141 | #else
142 | return Darwin.sin(radians)
| `- error: cannot find 'Darwin' in scope
143 | #endif
144 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:151:16: error: cannot find 'Darwin' in scope
149 | return Glibc.tan(radians)
150 | #else
151 | return Darwin.tan(radians)
| `- error: cannot find 'Darwin' in scope
152 | #endif
153 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:160:16: error: cannot find 'Darwin' in scope
158 | return Glibc.acos(radians)
159 | #else
160 | return Darwin.acos(radians)
| `- error: cannot find 'Darwin' in scope
161 | #endif
162 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:169:16: error: cannot find 'Darwin' in scope
167 | return Glibc.asin(radians)
168 | #else
169 | return Darwin.asin(radians)
| `- error: cannot find 'Darwin' in scope
170 | #endif
171 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:178:16: error: cannot find 'Darwin' in scope
176 | return Glibc.atan(radians)
177 | #else
178 | return Darwin.atan(radians)
| `- error: cannot find 'Darwin' in scope
179 | #endif
180 | }
/host/spi-builder-workspace/Sources/Swiftish/Trigonometry.swift:187:16: error: cannot find 'Darwin' in scope
185 | return Glibc.atan2(yRadians, xRadians)
186 | #else
187 | return Darwin.atan2(yRadians, xRadians)
| `- error: cannot find 'Darwin' in scope
188 | #endif
189 | }
[14/25] Compiling Swiftish Quaternion.swift
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:308:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
306 | // MARK: Conjugate
307 |
308 | public static func conjugate<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
309 | return Quaternion<T>(q.w, -q.xyz)
310 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:314:28: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
312 | // MARK: Geometric
313 |
314 | public static func dot<T>(_ a: Quaternion<T>, _ b: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
315 | return a.w * b.w + Vector3<T>.dot(a.xyz, b.xyz)
316 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:318:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
316 | }
317 |
318 | public static func length2<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
319 | return q.w * q.w + Vector3<T>.sum(q.xyz * q.xyz)
320 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:322:31: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
320 | }
321 |
322 | public static func length<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
323 | return length2(q).squareRoot()
324 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:326:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
324 | }
325 |
326 | public static func normalize<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
327 | return q * (1 / length(q))
328 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:332:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
330 | // MARK: - Inverse
331 |
332 | public static func inverse<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
333 | return Quaternion<T>.conjugate(q) / dot(q, q)
334 | }
/host/spi-builder-workspace/Sources/Swiftish/Ray3.swift:38:33: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Ray3<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var origin: Vector3<T>
27 | public var direction: Vector3<T>
:
36 | }
37 |
38 | public static func distance<T>(_ r: Ray3<T>, _ t: Triangle3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
39 | let n = t.normal
40 | let qp = -r.direction
/host/spi-builder-workspace/Sources/Swiftish/Sphere.swift:56:30: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Sphere<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public let center: Vector3<T>
27 | public let radius: T
:
54 | }
55 |
56 | public static func union<T>(_ a: Sphere<T>, _ b: Sphere<T>) -> Sphere<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
57 | let midpoint = (a.center + b.center) / 2
58 | let largestRadius = Vector3<T>.distance(midpoint, a.center) + max(a.radius, b.radius)
[15/25] Compiling Swiftish Ray3.swift
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:308:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
306 | // MARK: Conjugate
307 |
308 | public static func conjugate<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
309 | return Quaternion<T>(q.w, -q.xyz)
310 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:314:28: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
312 | // MARK: Geometric
313 |
314 | public static func dot<T>(_ a: Quaternion<T>, _ b: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
315 | return a.w * b.w + Vector3<T>.dot(a.xyz, b.xyz)
316 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:318:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
316 | }
317 |
318 | public static func length2<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
319 | return q.w * q.w + Vector3<T>.sum(q.xyz * q.xyz)
320 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:322:31: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
320 | }
321 |
322 | public static func length<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
323 | return length2(q).squareRoot()
324 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:326:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
324 | }
325 |
326 | public static func normalize<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
327 | return q * (1 / length(q))
328 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:332:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
330 | // MARK: - Inverse
331 |
332 | public static func inverse<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
333 | return Quaternion<T>.conjugate(q) / dot(q, q)
334 | }
/host/spi-builder-workspace/Sources/Swiftish/Ray3.swift:38:33: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Ray3<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var origin: Vector3<T>
27 | public var direction: Vector3<T>
:
36 | }
37 |
38 | public static func distance<T>(_ r: Ray3<T>, _ t: Triangle3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
39 | let n = t.normal
40 | let qp = -r.direction
/host/spi-builder-workspace/Sources/Swiftish/Sphere.swift:56:30: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Sphere<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public let center: Vector3<T>
27 | public let radius: T
:
54 | }
55 |
56 | public static func union<T>(_ a: Sphere<T>, _ b: Sphere<T>) -> Sphere<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
57 | let midpoint = (a.center + b.center) / 2
58 | let largestRadius = Vector3<T>.distance(midpoint, a.center) + max(a.radius, b.radius)
[16/25] Compiling Swiftish Sphere.swift
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:308:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
306 | // MARK: Conjugate
307 |
308 | public static func conjugate<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
309 | return Quaternion<T>(q.w, -q.xyz)
310 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:314:28: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
312 | // MARK: Geometric
313 |
314 | public static func dot<T>(_ a: Quaternion<T>, _ b: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
315 | return a.w * b.w + Vector3<T>.dot(a.xyz, b.xyz)
316 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:318:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
316 | }
317 |
318 | public static func length2<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
319 | return q.w * q.w + Vector3<T>.sum(q.xyz * q.xyz)
320 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:322:31: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
320 | }
321 |
322 | public static func length<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
323 | return length2(q).squareRoot()
324 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:326:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
324 | }
325 |
326 | public static func normalize<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
327 | return q * (1 / length(q))
328 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:332:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
330 | // MARK: - Inverse
331 |
332 | public static func inverse<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
333 | return Quaternion<T>.conjugate(q) / dot(q, q)
334 | }
/host/spi-builder-workspace/Sources/Swiftish/Ray3.swift:38:33: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Ray3<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var origin: Vector3<T>
27 | public var direction: Vector3<T>
:
36 | }
37 |
38 | public static func distance<T>(_ r: Ray3<T>, _ t: Triangle3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
39 | let n = t.normal
40 | let qp = -r.direction
/host/spi-builder-workspace/Sources/Swiftish/Sphere.swift:56:30: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Sphere<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public let center: Vector3<T>
27 | public let radius: T
:
54 | }
55 |
56 | public static func union<T>(_ a: Sphere<T>, _ b: Sphere<T>) -> Sphere<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
57 | let midpoint = (a.center + b.center) / 2
58 | let largestRadius = Vector3<T>.distance(midpoint, a.center) + max(a.radius, b.radius)
[17/25] Compiling Swiftish Transform3.swift
[18/25] Compiling Swiftish Triangle2.swift
[19/25] Compiling Swiftish Triangle3.swift
[20/25] Compiling Swiftish Matrix4x4.swift
[21/25] Compiling Swiftish PerspectiveProjection.swift
[22/25] Compiling Swiftish Plane.swift
[23/25] Compiling Swiftish IntVector4.swift
[24/25] Compiling Swiftish Matrix2x2.swift
[25/25] Compiling Swiftish Matrix3x3.swift
BUILD FAILURE 6.1 android