The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Trigonometry, reference main (e6e9b1), with Swift 6.1 for Android on 28 May 2025 08:34:32 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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.1
Building package at path:  $PWD
https://github.com/kkla320/Trigonometry.git
https://github.com/kkla320/Trigonometry.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Trigonometry",
  "name" : "Trigonometry",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Trigonometry",
      "targets" : [
        "Trigonometry"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TrigonometryTests",
      "module_type" : "SwiftTarget",
      "name" : "TrigonometryTests",
      "path" : "Tests/TrigonometryTests",
      "sources" : [
        "AngleTests.swift",
        "TrigonometryTests.swift"
      ],
      "target_dependencies" : [
        "Trigonometry"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Trigonometry",
      "module_type" : "SwiftTarget",
      "name" : "Trigonometry",
      "path" : "Sources/Trigonometry",
      "product_memberships" : [
        "Trigonometry"
      ],
      "sources" : [
        "Angle.swift",
        "Double+TrigonometryFunctions.swift",
        "Float+TrigonometryFunctions.swift",
        "Measurement+Angle.swift",
        "TrigonometryFunctions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling Trigonometry TrigonometryFunctions.swift
[4/8] Emitting module Trigonometry
[5/8] Compiling Trigonometry Angle.swift
[6/8] Compiling Trigonometry Measurement+Angle.swift
[7/8] Compiling Trigonometry Double+TrigonometryFunctions.swift
[8/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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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);
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Compiling Trigonometry TrigonometryFunctions.swift
[3/7] Compiling Trigonometry Measurement+Angle.swift
[4/7] 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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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);
[5/7] Compiling Trigonometry Angle.swift
[6/7] Compiling Trigonometry Double+TrigonometryFunctions.swift
[7/7] Emitting module Trigonometry
BUILD FAILURE 6.1 android