Build Information
Failed to build GLMSwift, reference main (fa5158), with Swift 6.2 for Android on 19 Jun 2025 15:07:12 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MarSe32m/GLMSwift.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/MarSe32m/GLMSwift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at fa51582 Update windows.yml
Cloned https://github.com/MarSe32m/GLMSwift.git
Revision (git rev-parse @):
fa51582279ddc337dbd6c839d5389169dd59100e
SUCCESS checkout https://github.com/MarSe32m/GLMSwift.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/MarSe32m/GLMSwift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/10] Compiling GLMSwift Vector4.swift
/host/spi-builder-workspace/Sources/GLMSwift/Vector4.swift:106:16: error: cannot convert return expression of type 'Double' to return type 'T'
104 |
105 | var length: T {
106 | return sqrt(lengthSquared)
| `- error: cannot convert return expression of type 'Double' to return type 'T'
107 | }
108 |
/host/spi-builder-workspace/Sources/GLMSwift/Vector4.swift:106:21: error: cannot convert value of type 'T' to expected argument type 'Double'
104 |
105 | var length: T {
106 | return sqrt(lengthSquared)
| `- error: cannot convert value of type 'T' to expected argument type 'Double'
107 | }
108 |
/host/spi-builder-workspace/Sources/GLMSwift/Vector4.swift:120:24: error: no exact matches in call to global function 'acos'
118 | return acos(x) as? T ?? 0
119 | case let x as Float:
120 | return acos(x) as? T ?? 0
| `- error: no exact matches in call to global function 'acos'
121 | default:
122 | return 0 as T
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);
[4/11] Compiling GLMSwift Matrix4A.swift
[5/11] Compiling GLMSwift Vector3.swift
/host/spi-builder-workspace/Sources/GLMSwift/Vector3.swift:102:16: error: cannot convert return expression of type 'Double' to return type 'T'
100 |
101 | var length: T {
102 | return sqrt(lengthSquared)
| `- error: cannot convert return expression of type 'Double' to return type 'T'
103 | }
104 |
/host/spi-builder-workspace/Sources/GLMSwift/Vector3.swift:102:21: error: cannot convert value of type 'T' to expected argument type 'Double'
100 |
101 | var length: T {
102 | return sqrt(lengthSquared)
| `- error: cannot convert value of type 'T' to expected argument type 'Double'
103 | }
104 |
/host/spi-builder-workspace/Sources/GLMSwift/Vector3.swift:116:24: error: no exact matches in call to global function 'acos'
114 | return acos(x) as? T ?? 0
115 | case let x as Float:
116 | return acos(x) as? T ?? 0
| `- error: no exact matches in call to global function 'acos'
117 | default:
118 | return 0 as T
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);
[6/11] Compiling GLMSwift Vector2.swift
/host/spi-builder-workspace/Sources/GLMSwift/Vector2.swift:92:16: error: cannot convert return expression of type 'Double' to return type 'T'
90 |
91 | var length: T {
92 | return sqrt(lengthSquared)
| `- error: cannot convert return expression of type 'Double' to return type 'T'
93 | }
94 |
/host/spi-builder-workspace/Sources/GLMSwift/Vector2.swift:92:21: error: cannot convert value of type 'T' to expected argument type 'Double'
90 |
91 | var length: T {
92 | return sqrt(lengthSquared)
| `- error: cannot convert value of type 'T' to expected argument type 'Double'
93 | }
94 |
/host/spi-builder-workspace/Sources/GLMSwift/Vector2.swift:106:24: error: no exact matches in call to global function 'acos'
104 | return acos(x) as? T ?? 0
105 | case let x as Float:
106 | return acos(x) as? T ?? 0
| `- error: no exact matches in call to global function 'acos'
107 | default:
108 | return 0 as T
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/11] Compiling GLMSwift glm.swift
[8/11] Compiling GLMSwift Matrix4.swift
[9/11] Compiling GLMSwift Matrix2.swift
[10/11] Emitting module GLMSwift
[11/11] Compiling GLMSwift Matrix3.swift
BUILD FAILURE 6.2 android