The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NDArray, reference 1.0.1 (6a6e31), with Swift 6.2 for Android on 18 Jun 2025 02:29:35 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/t-ae/ndarray.git
Reference: 1.0.1
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
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at 6a6e313 Update dependency
Cloned https://github.com/t-ae/ndarray.git
Revision (git rev-parse @):
6a6e313d3fba47dd4d0465defdbd26dcca50b061
SUCCESS checkout https://github.com/t-ae/ndarray.git at 1.0.1
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/t-ae/ndarray.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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
Fetching https://github.com/t-ae/xorswift.git
[1/784] Fetching xorswift
Fetched https://github.com/t-ae/xorswift.git from cache (0.24s)
Computing version for https://github.com/t-ae/xorswift.git
Computed https://github.com/t-ae/xorswift.git at 2.0.1 (0.81s)
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-8C5A4AE7A8CE2BA.txt
[5/9] Compiling Xorswift XorshiftGenerator.swift
[6/9] Emitting module Xorswift
[7/9] Compiling Xorswift Uniform.swift
[8/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
[9/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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.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 |     }
BUILD FAILURE 6.2 android