Build Information
Failed to build NDArray, reference master (d2513d), with Swift 6.3 for Android on 11 Apr 2026 00:54:18 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/t-ae/ndarray.git
Reference: master
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/t-ae/ndarray
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at d2513d8 SR-10230
Cloned https://github.com/t-ae/ndarray.git
Revision (git rev-parse @):
d2513d897c1853654a5df4eb6549485ec3f7fca6
SUCCESS checkout https://github.com/t-ae/ndarray.git at master
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/t-ae/ndarray.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Fetching https://github.com/t-ae/xorswift.git
[1/784] Fetching xorswift
Fetched https://github.com/t-ae/xorswift.git from cache (0.21s)
Computing version for https://github.com/t-ae/xorswift.git
Computed https://github.com/t-ae/xorswift.git at 2.0.1 (0.68s)
Creating working copy for https://github.com/t-ae/xorswift.git
Working copy of https://github.com/t-ae/xorswift.git resolved at 2.0.1
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version--4F562202D5529B1.txt
[5/9] Emitting module Xorswift
[6/9] Compiling Xorswift XorshiftGenerator.swift
[7/9] Compiling Xorswift FloatDouble.swift
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/FloatDouble.swift:63:27: error: no exact matches in call to global function 'sin'
61 | extension Float: FloatDouble {
62 | static func sin(_ arg: Float) -> Float {
63 | return Foundation.sin(arg)
| `- error: no exact matches in call to global function 'sin'
64 | }
65 | static func cos(_ arg: Float) -> Float {
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.3-RELEASE_android.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/.build/checkouts/xorswift/Sources/FloatDouble.swift:63:27: error: no 'sin' candidates produce the expected contextual result type 'Float'
61 | extension Float: FloatDouble {
62 | static func sin(_ arg: Float) -> Float {
63 | return Foundation.sin(arg)
| `- error: no 'sin' candidates produce the expected contextual result type 'Float'
64 | }
65 | static func cos(_ arg: Float) -> Float {
Foundation.sin:1:13: note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func sin(_ x: CGFloat) -> CGFloat
| `- note: 'sin' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:96:8: note: 'sin' produces 'Double', not the expected contextual result type 'Float'
94 | long double cosl(long double __x);
95 |
96 | double sin(double __x);
| `- note: 'sin' produces 'Double', not the expected contextual result type 'Float'
97 | float sinf(float __x);
98 | long double sinl(long double __x);
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/FloatDouble.swift:66:27: error: no exact matches in call to global function 'cos'
64 | }
65 | static func cos(_ arg: Float) -> Float {
66 | return Foundation.cos(arg)
| `- error: no exact matches in call to global function 'cos'
67 | }
68 | static func log(_ arg: Float) -> Float {
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.3-RELEASE_android.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/.build/checkouts/xorswift/Sources/FloatDouble.swift:66:27: error: no 'cos' candidates produce the expected contextual result type 'Float'
64 | }
65 | static func cos(_ arg: Float) -> Float {
66 | return Foundation.cos(arg)
| `- error: no 'cos' candidates produce the expected contextual result type 'Float'
67 | }
68 | static func log(_ arg: Float) -> Float {
Foundation.cos:1:13: note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func cos(_ x: CGFloat) -> CGFloat
| `- note: 'cos' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:92:8: note: 'cos' produces 'Double', not the expected contextual result type 'Float'
90 | long double atan2l(long double __y, long double __x);
91 |
92 | double cos(double __x);
| `- note: 'cos' produces 'Double', not the expected contextual result type 'Float'
93 | float cosf(float __x);
94 | long double cosl(long double __x);
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/FloatDouble.swift:69:27: error: no exact matches in call to global function 'log'
67 | }
68 | static func log(_ arg: Float) -> Float {
69 | return Foundation.log(arg)
| `- error: no exact matches in call to global function 'log'
70 | }
71 | static func sincospi(_ arg: Float) -> (sin: Float, cos: Float) {
Foundation.log:1:13: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
1 | public func log(_ x: CGFloat) -> CGFloat
| `- note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
| `- note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/FloatDouble.swift:69:27: error: no 'log' candidates produce the expected contextual result type 'Float'
67 | }
68 | static func log(_ arg: Float) -> Float {
69 | return Foundation.log(arg)
| `- error: no 'log' candidates produce the expected contextual result type 'Float'
70 | }
71 | static func sincospi(_ arg: Float) -> (sin: Float, cos: Float) {
Foundation.log:1:13: note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
1 | public func log(_ x: CGFloat) -> CGFloat
| `- note: 'log' produces 'CGFloat', not the expected contextual result type 'Float'
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/math.h:152:8: note: 'log' produces 'Double', not the expected contextual result type 'Float'
150 | long double ldexpl(long double __x, int __exponent);
151 |
152 | double log(double __x);
| `- note: 'log' produces 'Double', not the expected contextual result type 'Float'
153 | float logf(float __x);
154 | long double logl(long double __x);
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/FloatDouble.swift:74:9: error: cannot find '__sincospif' in scope
72 | var sin: Float = 0
73 | var cos: Float = 0
74 | __sincospif(arg, &sin, &cos)
| `- error: cannot find '__sincospif' in scope
75 | return (sin, cos)
76 | }
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/FloatDouble.swift:248:9: error: cannot find '__sincospi' in scope
246 | var sin: Double = 0
247 | var cos: Double = 0
248 | __sincospi(arg, &sin, &cos)
| `- error: cannot find '__sincospi' in scope
249 | return (sin, cos)
250 | }
[8/9] Compiling Xorswift Uniform.swift
[9/9] Compiling Xorswift Normal.swift
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:88:44: error: cannot convert value of type 'T' to expected argument type 'Double'
86 | T.fillOpen(start: &t, count: 1, high: 1,
87 | x: &x, y: &y, z: &z, w: &w)
88 | rp.pointee = sqrt(minus2sigma2 * .log(rp.pointee)) * .sin(.pi*t) + mu
| `- error: cannot convert value of type 'T' to expected argument type 'Double'
89 | rp += 1
90 | }
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:88:75: error: cannot convert value of type 'T' to expected argument type 'Double'
86 | T.fillOpen(start: &t, count: 1, high: 1,
87 | x: &x, y: &y, z: &z, w: &w)
88 | rp.pointee = sqrt(minus2sigma2 * .log(rp.pointee)) * .sin(.pi*t) + mu
| `- error: cannot convert value of type 'T' to expected argument type 'Double'
89 | rp += 1
90 | }
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:88:64: error: cannot convert value of type 'Double' to expected argument type 'T'
86 | T.fillOpen(start: &t, count: 1, high: 1,
87 | x: &x, y: &y, z: &z, w: &w)
88 | rp.pointee = sqrt(minus2sigma2 * .log(rp.pointee)) * .sin(.pi*t) + mu
| `- error: cannot convert value of type 'Double' to expected argument type 'T'
89 | rp += 1
90 | }
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:92:39: error: cannot convert value of type 'T' to expected argument type 'Double'
90 | }
91 | for _ in 0..<(count-half) {
92 | let r = sqrt(minus2sigma2 * .log(rp.pointee))
| `- error: cannot convert value of type 'T' to expected argument type 'Double'
93 | let (sin, cos) = T.sincospi(tp.pointee)
94 | rp.pointee = r * sin + mu
BUILD FAILURE 6.3 android