Build Information
Failed to build Trigonometry, reference main (e6e9b1), with Swift 6.4 for Android on 18 Sep 2026 13:23:15 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-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>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.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.4
Building package at path: $PWD
https://github.com/kkla320/Trigonometry.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-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:16: [1;31merror: [1;39mno exact matches in call to global function 'sin'[0;0m
[0;36m3 |[0;0m extension Float: TrigonometryFunctions {
[0;36m4 |[0;0m public static func opposite(angle: Angle, hypothenuse: Float) -> Float {
[0;36m5 |[0;0m return sin(Float(angle.radians)) * hypothenuse
[0;36m|[0;0m `- [1;31merror: [1;39mno exact matches in call to global function 'sin'[0;0m
[0;36m6 |[0;0m }
[0;36m7 |[0;0m
Foundation.sin:1:13: [1;39mnote: [1;39mcandidate expects value of type 'CGFloat' for parameter #1 (got 'Float')[0;0m
[0;36m1 |[0;0m public func sin(_ x: CGFloat) -> CGFloat
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate expects value of type 'CGFloat' for parameter #1 (got 'Float')[0;0m
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:96:8: [1;39mnote: [1;39mcandidate expects value of type 'Double' for parameter #1 (got 'Float')[0;0m
[0;36m94 |[0;0m long double cosl(long double __x);
[0;36m95 |[0;0m
[0;36m96 |[0;0m double sin(double __x);
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate expects value of type 'Double' for parameter #1 (got 'Float')[0;0m
[0;36m97 |[0;0m float sinf(float __x);
[0;36m98 |[0;0m long double sinl(long double __x);
/host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift:5:42: [1;31merror: [1;39mbinary operator '*' cannot be applied to operands of type 'CGFloat' and 'Float'[0;0m
[0;36m3 |[0;0m extension Float: TrigonometryFunctions {
[0;36m4 |[0;0m public static func opposite(angle: Angle, hypothenuse: Float) -> Float {
[0;36m5 |[0;0m return [4;39msin(Float(angle.radians))[0;0m * [4;39mhypothenuse[0;0m
[0;36m|[0;0m |- [1;31merror: [1;39mbinary operator '*' cannot be applied to operands of type 'CGFloat' and 'Float'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39moverloads for '*' exist with these partially matching parameter lists: (Float, Float)[0;0m
[0;36m6 |[0;0m }
[0;36m7 |[0;0m
/host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift:9:42: [1;31merror: [1;39mbinary operator '*' cannot be applied to operands of type 'CGFloat' and 'Float'[0;0m
[0;36m7 |[0;0m
[0;36m8 |[0;0m public static func adjacent(angle: Angle, hypothenuse: Float) -> Float {
[0;36m9 |[0;0m return [4;39mcos(Float(angle.radians))[0;0m * [4;39mhypothenuse[0;0m
[0;36m|[0;0m |- [1;31merror: [1;39mbinary operator '*' cannot be applied to operands of type 'CGFloat' and 'Float'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39moverloads for '*' exist with these partially matching parameter lists: (Float, Float)[0;0m
[0;36m10 |[0;0m }
[0;36m11 |[0;0m
/host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift:9:16: [1;31merror: [1;39mno exact matches in call to global function 'cos'[0;0m
[0;36m7 |[0;0m
[0;36m8 |[0;0m public static func adjacent(angle: Angle, hypothenuse: Float) -> Float {
[0;36m9 |[0;0m return cos(Float(angle.radians)) * hypothenuse
[0;36m|[0;0m `- [1;31merror: [1;39mno exact matches in call to global function 'cos'[0;0m
[0;36m10 |[0;0m }
[0;36m11 |[0;0m
Foundation.cos:1:13: [1;39mnote: [1;39mcandidate expects value of type 'CGFloat' for parameter #1 (got 'Float')[0;0m
[0;36m1 |[0;0m public func cos(_ x: CGFloat) -> CGFloat
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate expects value of type 'CGFloat' for parameter #1 (got 'Float')[0;0m
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:92:8: [1;39mnote: [1;39mcandidate expects value of type 'Double' for parameter #1 (got 'Float')[0;0m
[0;36m90 |[0;0m long double atan2l(long double __y, long double __x);
[0;36m91 |[0;0m
[0;36m92 |[0;0m double cos(double __x);
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate expects value of type 'Double' for parameter #1 (got 'Float')[0;0m
[0;36m93 |[0;0m float cosf(float __x);
[0;36m94 |[0;0m long double cosl(long double __x);
/host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift:13:16: [1;31merror: [1;39mcannot convert return expression of type 'Double' to return type 'Float'[0;0m
[0;36m11 |[0;0m
[0;36m12 |[0;0m public static func leg(hypothenuse: Float, otherLeg: Float) -> Float {
[0;36m13 |[0;0m return [4;39msqrt(pow(hypothenuse, 2) - pow(otherLeg, 2))[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot convert return expression of type 'Double' to return type 'Float'[0;0m
[0;36m14 |[0;0m }
[0;36m15 |[0;0m
/host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift:13:25: [1;31merror: [1;39mcannot convert value of type 'Float' to expected argument type 'Double'[0;0m
[0;36m11 |[0;0m
[0;36m12 |[0;0m public static func leg(hypothenuse: Float, otherLeg: Float) -> Float {
[0;36m13 |[0;0m return sqrt(pow(hypothenuse, 2) - pow(otherLeg, 2))
[0;36m|[0;0m `- [1;31merror: [1;39mcannot convert value of type 'Float' to expected argument type 'Double'[0;0m
[0;36m14 |[0;0m }
[0;36m15 |[0;0m
/host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift:13:47: [1;31merror: [1;39mcannot convert value of type 'Float' to expected argument type 'Double'[0;0m
[0;36m11 |[0;0m
[0;36m12 |[0;0m public static func leg(hypothenuse: Float, otherLeg: Float) -> Float {
[0;36m13 |[0;0m return sqrt(pow(hypothenuse, 2) - pow(otherLeg, 2))
[0;36m|[0;0m `- [1;31merror: [1;39mcannot convert value of type 'Float' to expected argument type 'Double'[0;0m
[0;36m14 |[0;0m }
[0;36m15 |[0;0m
/host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift:17:30: [1;31merror: [1;39mno exact matches in call to global function 'asin'[0;0m
[0;36m15 |[0;0m
[0;36m16 |[0;0m public static func angle(opposite: Float, hypothenuse: Float) -> Angle {
[0;36m17 |[0;0m let radians = Double(asin(opposite/hypothenuse))
[0;36m|[0;0m `- [1;31merror: [1;39mno exact matches in call to global function 'asin'[0;0m
[0;36m18 |[0;0m return Measurement<UnitAngle>(radians: radians)
[0;36m19 |[0;0m }
Foundation.asin:1:13: [1;39mnote: [1;39mcandidate expects value of type 'CGFloat' for parameter #1 (got 'Float')[0;0m
[0;36m1 |[0;0m public func asin(_ x: CGFloat) -> CGFloat
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate expects value of type 'CGFloat' for parameter #1 (got 'Float')[0;0m
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:80:8: [1;39mnote: [1;39mcandidate expects value of type 'Double' for parameter #1 (got 'Float')[0;0m
[0;36m78 |[0;0m long double acosl(long double __x);
[0;36m79 |[0;0m
[0;36m80 |[0;0m double asin(double __x);
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate expects value of type 'Double' for parameter #1 (got 'Float')[0;0m
[0;36m81 |[0;0m float asinf(float __x);
[0;36m82 |[0;0m long double asinl(long double __x);
/host/spi-builder-workspace/Sources/Trigonometry/Float+TrigonometryFunctions.swift:22:30: [1;31merror: [1;39mno exact matches in call to global function 'acos'[0;0m
[0;36m20 |[0;0m
[0;36m21 |[0;0m public static func angle(adjacent: Float, hypothenuse: Float) -> Angle {
[0;36m22 |[0;0m let radians = Double(acos(adjacent/hypothenuse))
[0;36m|[0;0m `- [1;31merror: [1;39mno exact matches in call to global function 'acos'[0;0m
[0;36m23 |[0;0m return Measurement<UnitAngle>(radians: radians)
[0;36m24 |[0;0m }
Foundation.acos:1:13: [1;39mnote: [1;39mcandidate expects value of type 'CGFloat' for parameter #1 (got 'Float')[0;0m
[0;36m1 |[0;0m public func acos(_ x: CGFloat) -> CGFloat
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate expects value of type 'CGFloat' for parameter #1 (got 'Float')[0;0m
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:76:8: [1;39mnote: [1;39mcandidate expects value of type 'Double' for parameter #1 (got 'Float')[0;0m
[0;36m74 |[0;0m : __builtin_signbitl(x))
[0;36m75 |[0;0m
[0;36m76 |[0;0m double acos(double __x);
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate expects value of type 'Double' for parameter #1 (got 'Float')[0;0m
[0;36m77 |[0;0m float acosf(float __x);
[0;36m78 |[0;0m 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