The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftMoment, reference master (c2ed42), with Swift 6.2 for Android on 20 Jun 2025 23:35:24 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/iamjono/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/iamjono/SwiftMoment
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at c2ed424 remove extension that seems unused, causes issues with swift 5.2 on Linux
Cloned https://github.com/iamjono/SwiftMoment.git
Revision (git rev-parse @):
c2ed4248beb6b3b9c93520dd32be0a92f2fee241
SUCCESS checkout https://github.com/iamjono/SwiftMoment.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/iamjono/SwiftMoment.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/9] Compiling SwiftMoment TimeUnit.swift
[4/9] Compiling SwiftMoment Operators.swift
[5/9] Compiling SwiftMoment MomentFromNow.swift
/host/spi-builder-workspace/Sources/SwiftMoment/MomentFromNow.swift:43:27: error: cannot convert value of type 'Float' to expected argument type 'Double'
 41 |       } else if deltaSeconds < dayInSeconds {
 42 |         // Hours Ago
 43 |         value = Int(floor(Float(deltaSeconds / hourInSeconds)))
    |                           `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 44 |         return stringFromFormat("%%d %@hours ago", withValue: value)
 45 |
/host/spi-builder-workspace/Sources/SwiftMoment/MomentFromNow.swift:52:27: error: cannot convert value of type 'Float' to expected argument type 'Double'
 50 |       } else if deltaSeconds < weekInSeconds {
 51 |         // Days Ago
 52 |         value = Int(floor(Float(deltaSeconds / dayInSeconds)))
    |                           `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 53 |         return stringFromFormat("%%d %@days ago", withValue: value)
 54 |
/host/spi-builder-workspace/Sources/SwiftMoment/MomentFromNow.swift:61:27: error: cannot convert value of type 'Float' to expected argument type 'Double'
 59 |       } else if deltaSeconds < monthInSeconds {
 60 |         // Weeks Ago
 61 |         value = Int(floor(Float(deltaSeconds / weekInSeconds)))
    |                           `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 62 |         return stringFromFormat("%%d %@weeks ago", withValue: value)
 63 |
/host/spi-builder-workspace/Sources/SwiftMoment/MomentFromNow.swift:70:27: error: cannot convert value of type 'Float' to expected argument type 'Double'
 68 |       } else if deltaSeconds < yearInSeconds {
 69 |         // Month Ago
 70 |         value = Int(floor(Float(deltaSeconds / monthInSeconds)))
    |                           `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 71 |         return stringFromFormat("%%d %@months ago", withValue: value)
 72 |
/host/spi-builder-workspace/Sources/SwiftMoment/MomentFromNow.swift:79:25: error: cannot convert value of type 'Float' to expected argument type 'Double'
 77 |
 78 |       // Years Ago
 79 |       value = Int(floor(Float(deltaSeconds / yearInSeconds)))
    |                         `- error: cannot convert value of type 'Float' to expected argument type 'Double'
 80 |       return stringFromFormat("%%d %@years ago", withValue: value)
 81 |     }
[6/9] Emitting module SwiftMoment
[7/9] Compiling SwiftMoment Duration.swift
[8/9] Compiling SwiftMoment Extensions.swift
[9/9] Compiling SwiftMoment Moment.swift
BUILD FAILURE 6.2 android