The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CollectionAlgorithms, reference main (c62496), with Swift 6.2 for Android on 1 Jul 2025 14:12:39 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/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.2
Building package at path:  $PWD
https://github.com/SangaleBhushan/CollectionAlgorithms.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/22] Compiling CollectionAlgorithms Mode.swift
[4/22] Compiling CollectionAlgorithms Partitioned.swift
[5/22] Compiling CollectionAlgorithms Permutations.swift
[6/24] Compiling CollectionAlgorithms Bounds.swift
[7/24] Compiling CollectionAlgorithms Chunked.swift
[8/24] Compiling CollectionAlgorithms CountWhere.swift
[9/24] Compiling CollectionAlgorithms Average.swift
[10/24] Compiling CollectionAlgorithms BinarySearch.swift
[11/24] Compiling CollectionAlgorithms BinarySearchClosest.swift
[12/24] Compiling CollectionAlgorithms Rotate.swift
[13/24] Compiling CollectionAlgorithms Sample.swift
[14/24] Compiling CollectionAlgorithms IsSorted.swift
[15/24] Compiling CollectionAlgorithms KthSmallest.swift
[16/24] Compiling CollectionAlgorithms Median.swift
[17/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 | }
[18/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 | }
[19/24] Emitting module CollectionAlgorithms
[20/24] Compiling CollectionAlgorithms Frequencies.swift
[21/24] Compiling CollectionAlgorithms Grouped.swift
[22/24] Compiling CollectionAlgorithms IndexOfMinMax.swift
[23/24] Compiling CollectionAlgorithms Unique.swift
[24/24] Compiling CollectionAlgorithms Windowed.swift
BUILD FAILURE 6.2 android