Build Information
Failed to build CollectionAlgorithms, reference main (c62496), with Swift 6.3 for Android on 16 Apr 2026 11:30:18 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/SangaleBhushan/CollectionAlgorithms.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/SangaleBhushan/CollectionAlgorithms
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c62496f Update README.md
Cloned https://github.com/SangaleBhushan/CollectionAlgorithms.git
Revision (git rev-parse @):
c62496f08891b6ec44d77f7b32fc4f1b61be62b1
SUCCESS checkout https://github.com/SangaleBhushan/CollectionAlgorithms.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/SangaleBhushan/CollectionAlgorithms.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--4F562202D5529B1.txt
[3/22] Emitting module CollectionAlgorithms
[4/24] Compiling CollectionAlgorithms Average.swift
[5/24] Compiling CollectionAlgorithms BinarySearch.swift
[6/24] Compiling CollectionAlgorithms BinarySearchClosest.swift
[7/24] Compiling CollectionAlgorithms Unique.swift
[8/24] Compiling CollectionAlgorithms Windowed.swift
[9/24] Compiling CollectionAlgorithms Bounds.swift
[10/24] Compiling CollectionAlgorithms Chunked.swift
[11/24] Compiling CollectionAlgorithms CountWhere.swift
[12/24] Compiling CollectionAlgorithms Rotate.swift
[13/24] Compiling CollectionAlgorithms Sample.swift
[14/24] Compiling CollectionAlgorithms StandardDeviation.swift
/host/spi-builder-workspace/Sources/CollectionAlgorithms/StandardDeviation.swift:16:21: error: cannot convert value of type 'Self.Element' to expected argument type 'Double'
14 | let avg = self.reduce(0, +) / Element(count)
15 | let variance = self.map { ($0 - avg) * ($0 - avg) }.reduce(0, +) / Element(count)
16 | return sqrt(variance)
| `- error: cannot convert value of type 'Self.Element' to expected argument type 'Double'
17 | }
18 | }
/host/spi-builder-workspace/Sources/CollectionAlgorithms/StandardDeviation.swift:16:16: error: cannot convert return expression of type 'Double' to return type 'Self.Element'
14 | let avg = self.reduce(0, +) / Element(count)
15 | let variance = self.map { ($0 - avg) * ($0 - avg) }.reduce(0, +) / Element(count)
16 | return sqrt(variance)
| `- error: cannot convert return expression of type 'Double' to return type 'Self.Element'
17 | }
18 | }
[15/24] Compiling CollectionAlgorithms Sum.swift
/host/spi-builder-workspace/Sources/CollectionAlgorithms/StandardDeviation.swift:16:21: error: cannot convert value of type 'Self.Element' to expected argument type 'Double'
14 | let avg = self.reduce(0, +) / Element(count)
15 | let variance = self.map { ($0 - avg) * ($0 - avg) }.reduce(0, +) / Element(count)
16 | return sqrt(variance)
| `- error: cannot convert value of type 'Self.Element' to expected argument type 'Double'
17 | }
18 | }
/host/spi-builder-workspace/Sources/CollectionAlgorithms/StandardDeviation.swift:16:16: error: cannot convert return expression of type 'Double' to return type 'Self.Element'
14 | let avg = self.reduce(0, +) / Element(count)
15 | let variance = self.map { ($0 - avg) * ($0 - avg) }.reduce(0, +) / Element(count)
16 | return sqrt(variance)
| `- error: cannot convert return expression of type 'Double' to return type 'Self.Element'
17 | }
18 | }
[16/24] Compiling CollectionAlgorithms Frequencies.swift
[17/24] Compiling CollectionAlgorithms Grouped.swift
[18/24] Compiling CollectionAlgorithms IndexOfMinMax.swift
[19/24] Compiling CollectionAlgorithms Mode.swift
[20/24] Compiling CollectionAlgorithms Partitioned.swift
[21/24] Compiling CollectionAlgorithms Permutations.swift
[22/24] Compiling CollectionAlgorithms IsSorted.swift
[23/24] Compiling CollectionAlgorithms KthSmallest.swift
[24/24] Compiling CollectionAlgorithms Median.swift
BUILD FAILURE 6.3 android