The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftMoment, reference master (4cd4ee), with Swift 6.1 for Android on 27 May 2025 13:54:44 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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.1
Building package at path:  $PWD
https://github.com/akosma/SwiftMoment.git
https://github.com/akosma/SwiftMoment.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftMoment",
  "name" : "SwiftMoment",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftMoment",
      "targets" : [
        "SwiftMoment"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftMomentTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftMomentTests",
      "path" : ".",
      "sources" : [
        "SwiftMoment/SwiftMomentTests/DurationTests.swift",
        "SwiftMoment/SwiftMomentTests/ExtensionsTests.swift",
        "SwiftMoment/SwiftMomentTests/FromNowTests.swift",
        "SwiftMoment/SwiftMomentTests/LinuxMain.swift",
        "SwiftMoment/SwiftMomentTests/MomentTests.swift",
        "SwiftMoment/SwiftMomentTests/XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SwiftMoment"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftMoment",
      "module_type" : "SwiftTarget",
      "name" : "SwiftMoment",
      "path" : ".",
      "product_memberships" : [
        "SwiftMoment"
      ],
      "sources" : [
        "SwiftMoment/SwiftMoment/Duration.swift",
        "SwiftMoment/SwiftMoment/Extensions.swift",
        "SwiftMoment/SwiftMoment/LazyBox.swift",
        "SwiftMoment/SwiftMoment/Moment.swift",
        "SwiftMoment/SwiftMoment/MomentCache.swift",
        "SwiftMoment/SwiftMoment/MomentFromNow.swift",
        "SwiftMoment/SwiftMoment/Operators.swift",
        "SwiftMoment/SwiftMoment/TimeUnit.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling SwiftMoment Operators.swift
[4/11] Compiling SwiftMoment TimeUnit.swift
[5/11] Compiling SwiftMoment Moment.swift
[6/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
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
18 | 			return tz.hashValue ^ locale.hashValue
19 | 		}
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:26:21: warning: static property 'calendarCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | 	// our cache and the lock to access it
26 | 	private static var calendarCache = [Key:Calendar]()
   |                     |- warning: static property 'calendarCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'calendarCache' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'calendarCache' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | 	private static var lock = NSLock()
28 |
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:27:21: warning: static property 'lock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | 	// our cache and the lock to access it
26 | 	private static var calendarCache = [Key:Calendar]()
27 | 	private static var lock = NSLock()
   |                     |- warning: static property 'lock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'lock' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'lock' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | 	// create calendars on demand; in most cases, will return the same calendar
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:44:13: warning: static property 'defaultCalendar' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | 	}
43 |
44 | 	static var defaultCalendar : Calendar = { Calendar.autoupdatingCurrent }()
   |             |- warning: static property 'defaultCalendar' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'defaultCalendar' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make static property 'defaultCalendar' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | 	static var defaultLocale : Locale = { Locale.autoupdatingCurrent }()
46 | 	static var defaultTimezone : TimeZone = { TimeZone.autoupdatingCurrent }()
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:45:13: warning: static property 'defaultLocale' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | 	static var defaultCalendar : Calendar = { Calendar.autoupdatingCurrent }()
45 | 	static var defaultLocale : Locale = { Locale.autoupdatingCurrent }()
   |             |- warning: static property 'defaultLocale' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'defaultLocale' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make static property 'defaultLocale' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | 	static var defaultTimezone : TimeZone = { TimeZone.autoupdatingCurrent }()
47 | }
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:46:13: warning: static property 'defaultTimezone' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | 	static var defaultCalendar : Calendar = { Calendar.autoupdatingCurrent }()
45 | 	static var defaultLocale : Locale = { Locale.autoupdatingCurrent }()
46 | 	static var defaultTimezone : TimeZone = { TimeZone.autoupdatingCurrent }()
   |             |- warning: static property 'defaultTimezone' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'defaultTimezone' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make static property 'defaultTimezone' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
[7/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
[8/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
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
18 | 			return tz.hashValue ^ locale.hashValue
19 | 		}
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:26:21: warning: static property 'calendarCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | 	// our cache and the lock to access it
26 | 	private static var calendarCache = [Key:Calendar]()
   |                     |- warning: static property 'calendarCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'calendarCache' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'calendarCache' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | 	private static var lock = NSLock()
28 |
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:27:21: warning: static property 'lock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | 	// our cache and the lock to access it
26 | 	private static var calendarCache = [Key:Calendar]()
27 | 	private static var lock = NSLock()
   |                     |- warning: static property 'lock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'lock' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'lock' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | 	// create calendars on demand; in most cases, will return the same calendar
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:44:13: warning: static property 'defaultCalendar' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | 	}
43 |
44 | 	static var defaultCalendar : Calendar = { Calendar.autoupdatingCurrent }()
   |             |- warning: static property 'defaultCalendar' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'defaultCalendar' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make static property 'defaultCalendar' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | 	static var defaultLocale : Locale = { Locale.autoupdatingCurrent }()
46 | 	static var defaultTimezone : TimeZone = { TimeZone.autoupdatingCurrent }()
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:45:13: warning: static property 'defaultLocale' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | 	static var defaultCalendar : Calendar = { Calendar.autoupdatingCurrent }()
45 | 	static var defaultLocale : Locale = { Locale.autoupdatingCurrent }()
   |             |- warning: static property 'defaultLocale' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'defaultLocale' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make static property 'defaultLocale' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | 	static var defaultTimezone : TimeZone = { TimeZone.autoupdatingCurrent }()
47 | }
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:46:13: warning: static property 'defaultTimezone' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 | 	static var defaultCalendar : Calendar = { Calendar.autoupdatingCurrent }()
45 | 	static var defaultLocale : Locale = { Locale.autoupdatingCurrent }()
46 | 	static var defaultTimezone : TimeZone = { TimeZone.autoupdatingCurrent }()
   |             |- warning: static property 'defaultTimezone' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'defaultTimezone' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make static property 'defaultTimezone' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
[9/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
137 |         }
138 |
139 |         let langDict = Locale.components(fromIdentifier: localeIdentifer)
    |                               `- warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
140 |         let languageCode = langDict["kCFLocaleLanguageCodeKey"]
141 |         if let languagePath = bundle.path(forResource: languageCode, ofType: "lproj") {
[10/11] Compiling SwiftMoment Extensions.swift
[11/11] Compiling SwiftMoment LazyBox.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] 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
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
18 | 			return tz.hashValue ^ locale.hashValue
19 | 		}
[3/10] 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
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
18 | 			return tz.hashValue ^ locale.hashValue
19 | 		}
[4/10] Compiling SwiftMoment Operators.swift
[5/10] Compiling SwiftMoment TimeUnit.swift
[6/10] 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
137 |         }
138 |
139 |         let langDict = Locale.components(fromIdentifier: localeIdentifer)
    |                               `- warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components
140 |         let languageCode = langDict["kCFLocaleLanguageCodeKey"]
141 |         if let languagePath = bundle.path(forResource: languageCode, ofType: "lproj") {
[7/10] Compiling SwiftMoment Extensions.swift
[8/10] Compiling SwiftMoment LazyBox.swift
[9/10] Compiling SwiftMoment Moment.swift
[10/10] 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.1 android