The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-blurhash, reference main (7fc727), with Swift 6.4 for Android on 21 Sep 2026 09:41:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/valeriyvan/swift-blurhash.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/valeriyvan/swift-blurhash
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7fc7276 Update README.md
Cloned https://github.com/valeriyvan/swift-blurhash.git
Revision (git rev-parse @):
7fc7276f5d11fdd4e46e7c67765ed87278c4c80d
SUCCESS checkout https://github.com/valeriyvan/swift-blurhash.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/valeriyvan/swift-blurhash.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-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
Fetching https://github.com/apple/swift-algorithms.git
[1/6145] Fetching swift-algorithms
Fetched https://github.com/apple/swift-algorithms.git (0.54s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (1.58s)
Fetching https://github.com/apple/swift-numerics.git
[1/6636] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git (0.63s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.80s)
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Building for debugging...
[Pre-planning 1 / 185]
[59 / 82] RealModule
[60 / 82] RealModule
[71 / 92] Algorithms
[73 / 92] Algorithms
[75 / 93] RealModule
[78 / 93] Algorithms
[78 / 94] Algorithms
[94 / 104] Blurhash
[101 / 104] Blurhash
error: SwiftCompile normal aarch64 /host/spi-builder-workspace/Sources/Blurhash/RGBFloat.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile RGBFloat.swift
/host/spi-builder-workspace/Sources/Blurhash/RGBFloat.swift:28:63: error: cannot convert value of type 'Float' to expected argument type 'Double'
26 |     // AC stands for alternating current or AC coefficient
27 |     func encodeAC(maximumValue: Float) -> Int {
28 |         let quantR = Int(floor(signPow(r / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
   |                                                               `- error: cannot convert value of type 'Float' to expected argument type 'Double'
29 |         let quantG = Int(floor(signPow(g / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
30 |         let quantB = Int(floor(signPow(b / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
/host/spi-builder-workspace/Sources/Blurhash/RGBFloat.swift:28:32: error: cannot convert value of type 'Float' to expected argument type 'Double'
26 |     // AC stands for alternating current or AC coefficient
27 |     func encodeAC(maximumValue: Float) -> Int {
28 |         let quantR = Int(floor(signPow(r / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
   |                                `- error: cannot convert value of type 'Float' to expected argument type 'Double'
29 |         let quantG = Int(floor(signPow(g / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
30 |         let quantB = Int(floor(signPow(b / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
/host/spi-builder-workspace/Sources/Blurhash/RGBFloat.swift:29:63: error: cannot convert value of type 'Float' to expected argument type 'Double'
27 |     func encodeAC(maximumValue: Float) -> Int {
28 |         let quantR = Int(floor(signPow(r / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
29 |         let quantG = Int(floor(signPow(g / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
   |                                                               `- error: cannot convert value of type 'Float' to expected argument type 'Double'
30 |         let quantB = Int(floor(signPow(b / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
31 |         return quantR * 19 * 19 + quantG * 19 + quantB
/host/spi-builder-workspace/Sources/Blurhash/RGBFloat.swift:29:32: error: cannot convert value of type 'Float' to expected argument type 'Double'
27 |     func encodeAC(maximumValue: Float) -> Int {
28 |         let quantR = Int(floor(signPow(r / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
29 |         let quantG = Int(floor(signPow(g / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
   |                                `- error: cannot convert value of type 'Float' to expected argument type 'Double'
30 |         let quantB = Int(floor(signPow(b / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
31 |         return quantR * 19 * 19 + quantG * 19 + quantB
/host/spi-builder-workspace/Sources/Blurhash/RGBFloat.swift:30:32: error: cannot convert value of type 'Float' to expected argument type 'Double'
28 |         let quantR = Int(floor(signPow(r / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
29 |         let quantG = Int(floor(signPow(g / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
30 |         let quantB = Int(floor(signPow(b / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
   |                                `- error: cannot convert value of type 'Float' to expected argument type 'Double'
31 |         return quantR * 19 * 19 + quantG * 19 + quantB
32 |     }
/host/spi-builder-workspace/Sources/Blurhash/RGBFloat.swift:30:63: error: cannot convert value of type 'Float' to expected argument type 'Double'
28 |         let quantR = Int(floor(signPow(r / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
29 |         let quantG = Int(floor(signPow(g / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
30 |         let quantB = Int(floor(signPow(b / maximumValue, 0.5) * 9 + 9.5).clamped(to: 0.0...18.0))
   |                                                               `- error: cannot convert value of type 'Float' to expected argument type 'Double'
31 |         return quantR * 19 * 19 + quantG * 19 + quantB
32 |     }
/host/spi-builder-workspace/Sources/Blurhash/RGBFloat.swift:62:97: error: cannot convert value of type 'Float' to expected argument type 'Double'
60 |         if ac.count > 0 {
61 |             let actualMaximumValue = ac.map({ Swift.max(abs($0.r), abs($0.g), abs($0.b)) }).max()!
62 |             let quantisedMaximumValue = Int(Swift.max(0, Swift.min(82, floor(actualMaximumValue * 166 - 0.5))))
   |                                                                                                 `- error: cannot convert value of type 'Float' to expected argument type 'Double'
63 |             maximumValue = Float(quantisedMaximumValue + 1) / 166
64 |             hash += quantisedMaximumValue.encode83(length: 1)
/host/spi-builder-workspace/Sources/Blurhash/RGBFloat.swift:62:78: error: cannot convert value of type 'Float' to expected argument type 'Double'
60 |         if ac.count > 0 {
61 |             let actualMaximumValue = ac.map({ Swift.max(abs($0.r), abs($0.g), abs($0.b)) }).max()!
62 |             let quantisedMaximumValue = Int(Swift.max(0, Swift.min(82, floor(actualMaximumValue * 166 - 0.5))))
   |                                                                              `- error: cannot convert value of type 'Float' to expected argument type 'Double'
63 |             maximumValue = Float(quantisedMaximumValue + 1) / 166
64 |             hash += quantisedMaximumValue.encode83(length: 1)
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/Blurhash/CustomBase83EncodingDecoding.swift /host/spi-builder-workspace/Sources/Blurhash/Data\(ext\).swift -primary-file /host/spi-builder-workspace/Sources/Blurhash/FloatingPoint.swift -primary-file /host/spi-builder-workspace/Sources/Blurhash/RGBFloat.swift /host/spi-builder-workspace/Sources/Blurhash/UIImage\(ext\).swift /host/spi-builder-workspace/Sources/Blurhash/UnsafeMutableRawBufferPointer\(ext\).swift /host/spi-builder-workspace/Sources/Blurhash/UnsafeRawBufferPointer\(ext\).swift /host/spi-builder-workspace/Sources/Blurhash/pow.swift /host/spi-builder-workspace/Sources/Blurhash/sRGBLinear.swift /host/spi-builder-workspace/Sources/Blurhash/signPow.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-blurhash.build/Debug-android-aarch64/Blurhash-t.build/Objects-normal/aarch64/FloatingPoint.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-blurhash.build/Debug-android-aarch64/Blurhash-t.build/Objects-normal/aarch64/FloatingPoint.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-blurhash.build/Debug-android-aarch64/Blurhash-t.build/Objects-normal/aarch64/FloatingPoint.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-blurhash.build/Debug-android-aarch64/Blurhash-t.build/Objects-normal/aarch64/FloatingPoint.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-blurhash.build/Debug-android-aarch64/Blurhash-t.build/Objects-normal/aarch64/RGBFloat.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-blurhash.build/Debug-android-aarch64/Blurhash-t.build/Objects-normal/aarch64/RGBFloat.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-blurhash.build/Debug-android-aarch64/Blurhash-t.build/Objects-normal/aarch64/RGBFloat.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-blurhash.build/Debug-android-aarch64/Blurhash-t.build/Objects-normal/aarch64/RGBFloat.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 -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-numerics/Sources/_NumericsShims/include/module.modulemap -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/checkouts/swift-numerics/Sources/_NumericsShims/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-blurhash.build/Debug-android-aarch64/Blurhash-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-blurhash.build/Debug-android-aarch64/Blurhash-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-blurhash.build/Debug-android-aarch64/Blurhash-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Blurhash -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-blurhash.build/Debug-android-aarch64/Blurhash-t.build/Objects-normal/aarch64/Blurhash_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/swift-blurhash.build/Debug-android-aarch64/Blurhash-t.build/Objects-normal/aarch64/FloatingPoint.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-blurhash.build/Debug-android-aarch64/Blurhash-t.build/Objects-normal/aarch64/RGBFloat.o -index-unit-output-path /swift-blurhash.build/Debug-android-aarch64/Blurhash-t.build/Objects-normal/aarch64/FloatingPoint.o -index-unit-output-path /swift-blurhash.build/Debug-android-aarch64/Blurhash-t.build/Objects-normal/aarch64/RGBFloat.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 android