Build Information
Failed to build Trigonometry, reference 2.0.0 (e6e9b1
), with Swift 6.2 (beta) for Android on 19 Jun 2025 15:24:59 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/kkla320/Trigonometry.git
Reference: 2.0.0
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
* tag 2.0.0 -> FETCH_HEAD
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 2.0.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/kkla320/Trigonometry.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/8] Compiling Trigonometry TrigonometryFunctions.swift
[4/8] Compiling Trigonometry Measurement+Angle.swift
[5/8] Compiling Trigonometry Double+TrigonometryFunctions.swift
[6/8] Compiling Trigonometry Float+TrigonometryFunctions.swift
/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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.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: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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.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.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);
[7/8] Compiling Trigonometry Angle.swift
[8/8] Emitting module Trigonometry
BUILD FAILURE 6.2 android