The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftyVector, reference 0.3.2 (c79d21), with Swift 6.3 for Android on 13 Apr 2026 20:21:35 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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.3
Building package at path:  $PWD
https://github.com/koher/swiftyvector.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--4F562202D5529B1.txt
[3/6] Compiling SwiftyVector Concrete.swift
[4/6] Emitting module SwiftyVector
[5/6] Compiling SwiftyVector CoreGraphics.swift
[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.3-RELEASE_android.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.3-RELEASE_android.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.3 android