Build Information
Failed to build SwiftyVector, reference 0.3.2 (c79d21
), with Swift 6.2 (beta) for Android on 17 Jun 2025 18:35:50 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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/koher/swiftyvector.git
Reference: 0.3.2
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/koher/swiftyvector
* tag 0.3.2 -> FETCH_HEAD
HEAD is now at c79d21f Merge pull request #6 from koher/dev-0.3.2
Cloned https://github.com/koher/swiftyvector.git
Revision (git rev-parse @):
c79d21ffb8f2c969294b10a043348ddb9ee32684
SUCCESS checkout https://github.com/koher/swiftyvector.git at 0.3.2
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/koher/swiftyvector.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/6] Compiling SwiftyVector CoreGraphics.swift
[4/6] Compiling SwiftyVector Concrete.swift
[5/6] Emitting module SwiftyVector
[6/6] Compiling SwiftyVector Vector.swift
/host/spi-builder-workspace/Sources/SwiftyVector/Vector.swift:69:16: error: cannot convert return expression of type 'Double' to return type 'Self.Scalar'
67 |
68 | public var length: Scalar {
69 | return sqrt(squareLength)
| `- error: cannot convert return expression of type 'Double' to return type 'Self.Scalar'
70 | }
71 |
/host/spi-builder-workspace/Sources/SwiftyVector/Vector.swift:69:21: error: cannot convert value of type 'Self.Scalar' to expected argument type 'Double'
67 |
68 | public var length: Scalar {
69 | return sqrt(squareLength)
| `- error: cannot convert value of type 'Self.Scalar' to expected argument type 'Double'
70 | }
71 |
/host/spi-builder-workspace/Sources/SwiftyVector/Vector.swift:77:16: error: cannot convert return expression of type 'Double' to return type 'Self.Scalar'
75 |
76 | public func distance(from vector: Self) -> Scalar {
77 | return sqrt(squareDistance(from: vector))
| `- error: cannot convert return expression of type 'Double' to return type 'Self.Scalar'
78 | }
79 |
/host/spi-builder-workspace/Sources/SwiftyVector/Vector.swift:77:21: error: cannot convert value of type 'Self.Scalar' to expected argument type 'Double'
75 |
76 | public func distance(from vector: Self) -> Scalar {
77 | return sqrt(squareDistance(from: vector))
| `- error: cannot convert value of type 'Self.Scalar' to expected argument type 'Double'
78 | }
79 |
/host/spi-builder-workspace/Sources/SwiftyVector/Vector.swift:85:38: error: cannot convert value of type 'Double' to expected argument type 'Self.Scalar'
83 |
84 | public func cos(from v: Self) -> Scalar {
85 | return dotProduct(with: v) / sqrt(squareLength * v.squareLength)
| `- error: cannot convert value of type 'Double' to expected argument type 'Self.Scalar'
86 | }
87 | }
/host/spi-builder-workspace/Sources/SwiftyVector/Vector.swift:85:56: error: cannot convert value of type 'Self.Scalar' to expected argument type 'Double'
83 |
84 | public func cos(from v: Self) -> Scalar {
85 | return dotProduct(with: v) / sqrt(squareLength * v.squareLength)
| `- error: cannot convert value of type 'Self.Scalar' to expected argument type 'Double'
86 | }
87 | }
/host/spi-builder-workspace/Sources/SwiftyVector/Vector.swift:97:20: error: no exact matches in call to global function 'acos'
95 | return 0
96 | } else {
97 | return acos(cosValue)
| `- error: no exact matches in call to global function 'acos'
98 | }
99 | }
Foundation.acos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func acos(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:76:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
74 | : __builtin_signbitl(x))
75 |
76 | double acos(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
77 | float acosf(float __x);
78 | long double acosl(long double __x);
/host/spi-builder-workspace/Sources/SwiftyVector/Vector.swift:97:20: error: no 'acos' candidates produce the expected contextual result type 'Float'
95 | return 0
96 | } else {
97 | return acos(cosValue)
| `- error: no 'acos' candidates produce the expected contextual result type 'Float'
98 | }
99 | }
Foundation.acos:1:13: note: 'acos' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func acos(_ x: CGFloat) -> CGFloat
| `- note: 'acos' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:76:8: note: 'acos' produces 'Double', not the expected contextual result type 'Float'
74 | : __builtin_signbitl(x))
75 |
76 | double acos(double __x);
| `- note: 'acos' produces 'Double', not the expected contextual result type 'Float'
77 | float acosf(float __x);
78 | long double acosl(long double __x);
BUILD FAILURE 6.2 android