The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Trigonometry, reference main (e6e9b1), with Swift 6.3 for Android on 13 Apr 2026 07:09:59 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/kkla320/Trigonometry.git
Reference: main
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/kkla320/Trigonometry
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e6e9b1d Merge pull request #2 from kkla320/fix/#1_Angles
Cloned https://github.com/kkla320/Trigonometry.git
Revision (git rev-parse @):
e6e9b1d36b6792457b2c90719d96b605c1366d00
SUCCESS checkout https://github.com/kkla320/Trigonometry.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/kkla320/Trigonometry.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/8] Compiling Trigonometry TrigonometryFunctions.swift
[4/8] Compiling Trigonometry Measurement+Angle.swift
[5/8] Compiling Trigonometry Float+TrigonometryFunctions.swift
/host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift:5:42: error: binary operator '*' cannot be applied to operands of type 'CGFloat' and 'Float'
 3 | extension Float: TrigonometryFunctions {
 4 |     public static func opposite(angle: Angle, hypothenuse: Float) -> Float {
 5 |         return sin(Float(angle.radians)) * hypothenuse
   |                                          |- error: binary operator '*' cannot be applied to operands of type 'CGFloat' and 'Float'
   |                                          `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
 6 |     }
 7 |
/host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift:5:16: error: no exact matches in call to global function 'sin'
 3 | extension Float: TrigonometryFunctions {
 4 |     public static func opposite(angle: Angle, hypothenuse: Float) -> Float {
 5 |         return sin(Float(angle.radians)) * hypothenuse
   |                `- error: no exact matches in call to global function 'sin'
 6 |     }
 7 |
Foundation.sin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func sin(_ 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:96:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 94 | long double cosl(long double __x);
 95 |
 96 | double sin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 97 | float sinf(float __x);
 98 | long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift:9:42: error: binary operator '*' cannot be applied to operands of type 'CGFloat' and 'Float'
 7 |
 8 |     public static func adjacent(angle: Angle, hypothenuse: Float) -> Float {
 9 |         return cos(Float(angle.radians)) * hypothenuse
   |                                          |- error: binary operator '*' cannot be applied to operands of type 'CGFloat' and 'Float'
   |                                          `- note: overloads for '*' exist with these partially matching parameter lists: (Float, Float)
10 |     }
11 |
/host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift:9:16: error: no exact matches in call to global function 'cos'
 7 |
 8 |     public static func adjacent(angle: Angle, hypothenuse: Float) -> Float {
 9 |         return cos(Float(angle.radians)) * hypothenuse
   |                `- error: no exact matches in call to global function 'cos'
10 |     }
11 |
Foundation.cos:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func cos(_ 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:92:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 90 | long double atan2l(long double __y, long double __x);
 91 |
 92 | double cos(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 93 | float cosf(float __x);
 94 | long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift:13:16: error: cannot convert return expression of type 'Double' to return type 'Float'
11 |
12 |     public static func leg(hypothenuse: Float, otherLeg: Float) -> Float {
13 |         return sqrt(pow(hypothenuse, 2) - pow(otherLeg, 2))
   |                `- error: cannot convert return expression of type 'Double' to return type 'Float'
14 |     }
15 |
/host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift:13:25: error: cannot convert value of type 'Float' to expected argument type 'Double'
11 |
12 |     public static func leg(hypothenuse: Float, otherLeg: Float) -> Float {
13 |         return sqrt(pow(hypothenuse, 2) - pow(otherLeg, 2))
   |                         `- error: cannot convert value of type 'Float' to expected argument type 'Double'
14 |     }
15 |
/host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift:13:47: error: cannot convert value of type 'Float' to expected argument type 'Double'
11 |
12 |     public static func leg(hypothenuse: Float, otherLeg: Float) -> Float {
13 |         return sqrt(pow(hypothenuse, 2) - pow(otherLeg, 2))
   |                                               `- error: cannot convert value of type 'Float' to expected argument type 'Double'
14 |     }
15 |
/host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift:17:30: error: no exact matches in call to global function 'asin'
15 |
16 |     public static func angle(opposite: Float, hypothenuse: Float) -> Angle {
17 |         let radians = Double(asin(opposite/hypothenuse))
   |                              `- error: no exact matches in call to global function 'asin'
18 |         return Measurement<UnitAngle>(radians: radians)
19 |     }
Foundation.asin:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func asin(_ 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:80:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 78 | long double acosl(long double __x);
 79 |
 80 | double asin(double __x);
    |        `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
 81 | float asinf(float __x);
 82 | long double asinl(long double __x);
/host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift:22:30: error: no exact matches in call to global function 'acos'
20 |
21 |     public static func angle(adjacent: Float, hypothenuse: Float) -> Angle {
22 |         let radians = Double(acos(adjacent/hypothenuse))
   |                              `- error: no exact matches in call to global function 'acos'
23 |         return Measurement<UnitAngle>(radians: radians)
24 |     }
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);
[6/8] Compiling Trigonometry Double+TrigonometryFunctions.swift
[7/8] Compiling Trigonometry Angle.swift
[8/8] Emitting module Trigonometry
BUILD FAILURE 6.3 android