Build Information
Failed to build SwiftMoment, reference master (4cd4ee), with Swift 6.2 for Android on 18 Jun 2025 04:09:39 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/akosma/SwiftMoment.git
Reference: master
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/akosma/SwiftMoment
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 4cd4ee8 Merge pull request #97 from psi-gh/master
Cloned https://github.com/akosma/SwiftMoment.git
Revision (git rev-parse @):
4cd4ee886328f9514c20f050b81d1725337ddd33
SUCCESS checkout https://github.com/akosma/SwiftMoment.git at master
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/akosma/SwiftMoment.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/10] Compiling SwiftMoment Operators.swift
[4/11] Compiling SwiftMoment TimeUnit.swift
[5/11] Compiling SwiftMoment MomentFromNow.swift
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentFromNow.swift:139:31: warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components [#DeprecatedDeclaration]
137 | }
138 |
139 | let langDict = Locale.components(fromIdentifier: localeIdentifer)
| `- warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components [#DeprecatedDeclaration]
140 | let languageCode = langDict["kCFLocaleLanguageCodeKey"]
141 | if let languagePath = bundle.path(forResource: languageCode, ofType: "lproj") {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[6/11] Compiling SwiftMoment MomentCache.swift
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:17:7: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MomentCache.Key' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
15 | let locale: Locale
16 |
17 | var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MomentCache.Key' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
18 | return tz.hashValue ^ locale.hashValue
19 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[7/11] Compiling SwiftMoment Moment.swift
[8/11] Compiling SwiftMoment Extensions.swift
[9/11] Emitting module SwiftMoment
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:17:7: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MomentCache.Key' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
15 | let locale: Locale
16 |
17 | var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MomentCache.Key' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
18 | return tz.hashValue ^ locale.hashValue
19 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[10/11] Compiling SwiftMoment LazyBox.swift
[11/11] Compiling SwiftMoment Duration.swift
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/Duration.swift:108:25: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
106 | /// A textual representation of this instance.
107 | public var description: String {
108 | let formatter = DateComponentsFormatter()
| `- error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
109 | formatter.calendar = Calendar(identifier: Calendar.Identifier.gregorian)
110 | formatter.calendar?.timeZone = TimeZone(abbreviation: "UTC")!
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class DateComponentsFormatter : Formatter, @unchecked Sendable {
| `- note: 'DateComponentsFormatter' has been explicitly marked unavailable here
3 | public enum UnitsStyle : Int, Sendable {
4 | case positional
BUILD FAILURE 6.2 android