Build Information
Failed to build SwiftMoment, reference 1.3.0 (c2ed42), with Swift 6.1 for Android on 29 May 2025 02:16:33 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/iamjono/SwiftMoment.git
Reference: 1.3.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/iamjono/SwiftMoment
* tag 1.3.0 -> FETCH_HEAD
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 1.3.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/iamjono/SwiftMoment.git
https://github.com/iamjono/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" : "SwiftMoment",
"module_type" : "SwiftTarget",
"name" : "SwiftMoment",
"path" : "Sources/SwiftMoment",
"product_memberships" : [
"SwiftMoment"
],
"sources" : [
"Duration.swift",
"Extensions.swift",
"Moment.swift",
"MomentFromNow.swift",
"Operators.swift",
"TimeUnit.swift"
],
"type" : "library"
}
],
"tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
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/9] Compiling SwiftMoment Operators.swift
[4/9] Compiling SwiftMoment TimeUnit.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] Compiling SwiftMoment Extensions.swift
[7/9] Compiling SwiftMoment Moment.swift
[8/9] Compiling SwiftMoment Duration.swift
[9/9] Emitting module SwiftMoment
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
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/8] Compiling SwiftMoment TimeUnit.swift
[3/8] Compiling SwiftMoment Operators.swift
[4/8] Compiling SwiftMoment Extensions.swift
[5/8] Compiling SwiftMoment Duration.swift
[6/8] Compiling SwiftMoment Moment.swift
[7/8] Emitting module SwiftMoment
[8/8] 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 | }
BUILD FAILURE 6.1 android