The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CollectionAlgorithms, reference 1.0.0 (c57240), with Swift 6.3 for Android on 16 Apr 2026 11:30:24 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SangaleBhushan/CollectionAlgorithms.git
Reference: 1.0.0
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
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at c572404 Resolved merge conflicts
Cloned https://github.com/SangaleBhushan/CollectionAlgorithms.git
Revision (git rev-parse @):
c5724043b7fe6a6a3304fe914ded835d6be5da21
SUCCESS checkout https://github.com/SangaleBhushan/CollectionAlgorithms.git at 1.0.0
========================================
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-4606859-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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--4F562202D5529B1.txt
[3/22] Emitting module CollectionAlgorithms
[4/24] Compiling CollectionAlgorithms Bounds.swift
[5/24] Compiling CollectionAlgorithms Chunked.swift
[6/24] Compiling CollectionAlgorithms CountWhere.swift
[7/24] Compiling CollectionAlgorithms Average.swift
[8/24] Compiling CollectionAlgorithms BinarySearch.swift
[9/24] Compiling CollectionAlgorithms BinarySearchClosest.swift
[10/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 | }
[11/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 | }
[12/24] Compiling CollectionAlgorithms Frequencies.swift
[13/24] Compiling CollectionAlgorithms Grouped.swift
[14/24] Compiling CollectionAlgorithms IndexOfMinMax.swift
[15/24] Compiling CollectionAlgorithms Rotate.swift
[16/24] Compiling CollectionAlgorithms Sample.swift
[17/24] Compiling CollectionAlgorithms IsSorted.swift
[18/24] Compiling CollectionAlgorithms KthSmallest.swift
[19/24] Compiling CollectionAlgorithms Median.swift
[20/24] Compiling CollectionAlgorithms Mode.swift
[21/24] Compiling CollectionAlgorithms Partitioned.swift
[22/24] Compiling CollectionAlgorithms Permutations.swift
[23/24] Compiling CollectionAlgorithms Unique.swift
[24/24] Compiling CollectionAlgorithms Windowed.swift
BUILD FAILURE 6.3 android