The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Trigonometry, reference 2.0.0 (e6e9b1), with Swift 6.4 for Android on 18 Sep 2026 13:23:16 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.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.4
Building package at path:  $PWD
https://github.com/kkla320/Trigonometry.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Building for debugging...
[Planning deferred tasks]
[25 / 33] Trigonometry
[30 / 33] Trigonometry
error: SwiftCompile normal aarch64 /host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile 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')
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/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')
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/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: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: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')
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/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')
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/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);
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/Trigonometry/Angle.swift /host/spi-builder-workspace/Sources/Trigonometry/Double+TrigonometryFunctions.swift -primary-file /host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift /host/spi-builder-workspace/Sources/Trigonometry/Measurement+Angle.swift /host/spi-builder-workspace/Sources/Trigonometry/TrigonometryFunctions.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Trigonometry.build/Debug-android-aarch64/Trigonometry-t.build/Objects-normal/aarch64/Float+TrigonometryFunctions.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Trigonometry.build/Debug-android-aarch64/Trigonometry-t.build/Objects-normal/aarch64/Float+TrigonometryFunctions.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Trigonometry.build/Debug-android-aarch64/Trigonometry-t.build/Objects-normal/aarch64/Float+TrigonometryFunctions.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Trigonometry.build/Debug-android-aarch64/Trigonometry-t.build/Objects-normal/aarch64/Float+TrigonometryFunctions.dia -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I /host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/18 -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Trigonometry.build/Debug-android-aarch64/Trigonometry-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Trigonometry.build/Debug-android-aarch64/Trigonometry-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Trigonometry.build/Debug-android-aarch64/Trigonometry-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Trigonometry -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/Trigonometry.build/Debug-android-aarch64/Trigonometry-t.build/Objects-normal/aarch64/Trigonometry_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Trigonometry.build/Debug-android-aarch64/Trigonometry-t.build/Objects-normal/aarch64/Float+TrigonometryFunctions.o -index-unit-output-path /Trigonometry.build/Debug-android-aarch64/Trigonometry-t.build/Objects-normal/aarch64/Float+TrigonometryFunctions.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 android