The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build swift-unixtime, reference 0.2.0 (0a939d), with Swift 6.2 (beta) for Android on 22 Jun 2025 19:16:28 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/tayloraswift/swift-unixtime.git
Reference: 0.2.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/tayloraswift/swift-unixtime
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 0a939dd Merge pull request #4 from tayloraswift/capitalized-country-codes
Cloned https://github.com/tayloraswift/swift-unixtime.git
Revision (git rev-parse @):
0a939dd2b955bf5a0aa5ea2073ee21200e1575a3
SUCCESS checkout https://github.com/tayloraswift/swift-unixtime.git at 0.2.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/tayloraswift/swift-unixtime.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/5] Write sources
[4/5] Write swift-version-8C5A4AE7A8CE2BA.txt
[6/23] Compiling UnixTime UnixMillisecond.swift
[7/23] Compiling UnixTime QuantizedDuration.swift
[8/25] Compiling UnixTime UnixAttosecond.swift
[9/25] Compiling UnixTime UnixDate.swift
[10/25] Compiling UnixTime UnixInstant.swift
[11/25] Compiling UnixTime UnixInterval.swift
[12/25] Compiling UnixTime Milliseconds.swift
[13/25] Compiling UnixTime Minutes.swift
[14/25] Compiling UnixTime Nanoseconds.swift
[15/25] Compiling UnixTime Seconds.swift
[16/25] Emitting module CasesByIntegerEncodingMacro
[17/25] Compiling CasesByIntegerEncodingMacro GenerateCasesByIntegerEncoding.swift
[18/25] Compiling CasesByIntegerEncodingMacro RawRepresentableByIntegerEncoding.swift
[19/26] Compiling UnixTime Duration (ext).swift
[20/26] Compiling UnixTime DurationFormat.Unit.swift
[21/26] Compiling UnixTime DurationFormat.swift
[22/26] Compiling UnixTime Days.swift
[23/26] Compiling UnixTime Hours.swift
[24/26] Compiling UnixTime Microseconds.swift
[25/26] Emitting module UnixTime
[28/32] Compiling ISO ISO.swift
[29/32] Compiling ISO ISO.Macrolanguage (gen).swift
[30/32] Compiling ISO ISO.Locale.swift
[31/32] Emitting module ISO
[32/32] Compiling ISO ISO.Country (gen).swift
[34/45] Compiling UnixCalendar UnixDate (ext).swift
/host/spi-builder-workspace/Sources/UnixCalendar/Timestamp.swift:15:8: error: Platform doesn’t support 'gmtime_r'
13 |
14 | #else
15 | #error("Platform doesn’t support 'gmtime_r'")
   |        `- error: Platform doesn’t support 'gmtime_r'
16 | #endif
17 |
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:21:8: error: Platform doesn’t support 'clock_gettime'
19 | import func Darwin.timegm
20 | #else
21 | #error("Platform doesn’t support 'clock_gettime'")
   |        `- error: Platform doesn’t support 'clock_gettime'
22 | #endif
23 |
[35/46] Compiling UnixCalendar Timestamp.Date.swift
/host/spi-builder-workspace/Sources/UnixCalendar/Timestamp.swift:15:8: error: Platform doesn’t support 'gmtime_r'
13 |
14 | #else
15 | #error("Platform doesn’t support 'gmtime_r'")
   |        `- error: Platform doesn’t support 'gmtime_r'
16 | #endif
17 |
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:21:8: error: Platform doesn’t support 'clock_gettime'
19 | import func Darwin.timegm
20 | #else
21 | #error("Platform doesn’t support 'clock_gettime'")
   |        `- error: Platform doesn’t support 'clock_gettime'
22 | #endif
23 |
[36/46] Compiling UnixCalendar Timestamp.Month.swift
/host/spi-builder-workspace/Sources/UnixCalendar/Timestamp.swift:15:8: error: Platform doesn’t support 'gmtime_r'
13 |
14 | #else
15 | #error("Platform doesn’t support 'gmtime_r'")
   |        `- error: Platform doesn’t support 'gmtime_r'
16 | #endif
17 |
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:21:8: error: Platform doesn’t support 'clock_gettime'
19 | import func Darwin.timegm
20 | #else
21 | #error("Platform doesn’t support 'clock_gettime'")
   |        `- error: Platform doesn’t support 'clock_gettime'
22 | #endif
23 |
[37/46] Compiling UnixCalendar UnixAttosecond (ext).swift
/host/spi-builder-workspace/Sources/UnixCalendar/Timestamp.swift:15:8: error: Platform doesn’t support 'gmtime_r'
13 |
14 | #else
15 | #error("Platform doesn’t support 'gmtime_r'")
   |        `- error: Platform doesn’t support 'gmtime_r'
16 | #endif
17 |
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:21:8: error: Platform doesn’t support 'clock_gettime'
19 | import func Darwin.timegm
20 | #else
21 | #error("Platform doesn’t support 'clock_gettime'")
   |        `- error: Platform doesn’t support 'clock_gettime'
22 | #endif
23 |
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:30:18: error: cannot find type 'timespec' in scope
28 |     static func now() -> Self
29 |     {
30 |         var time:timespec = .init()
   |                  `- error: cannot find type 'timespec' in scope
31 |
32 |         if  clock_gettime(CLOCK_REALTIME, &time) != 0
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:32:13: error: cannot find 'clock_gettime' in scope
30 |         var time:timespec = .init()
31 |
32 |         if  clock_gettime(CLOCK_REALTIME, &time) != 0
   |             `- error: cannot find 'clock_gettime' in scope
33 |         {
34 |             fatalError("system clock unavailable! (CLOCK_REALTIME)")
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:32:27: error: cannot find 'CLOCK_REALTIME' in scope
30 |         var time:timespec = .init()
31 |
32 |         if  clock_gettime(CLOCK_REALTIME, &time) != 0
   |                           `- error: cannot find 'CLOCK_REALTIME' in scope
33 |         {
34 |             fatalError("system clock unavailable! (CLOCK_REALTIME)")
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:59:18: error: cannot find type 'tm' in scope
57 |         }
58 |
59 |         var time:tm = .init(
   |                  `- error: cannot find type 'tm' in scope
60 |             tm_sec:     timestamp.time.second,
61 |             tm_min:     timestamp.time.minute,
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:73:52: error: cannot find 'timegm' in scope
71 |             tm_zone:    nil)
72 |
73 |         switch withUnsafeMutablePointer(to: &time, timegm)
   |                                                    `- error: cannot find 'timegm' in scope
74 |         {
75 |         case -1:            return nil
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:73:16: error: generic parameter 'E' could not be inferred
71 |             tm_zone:    nil)
72 |
73 |         switch withUnsafeMutablePointer(to: &time, timegm)
   |                `- error: generic parameter 'E' could not be inferred
74 |         {
75 |         case -1:            return nil
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:73:16: error: generic parameter 'Result' could not be inferred
71 |             tm_zone:    nil)
72 |
73 |         switch withUnsafeMutablePointer(to: &time, timegm)
   |                `- error: generic parameter 'Result' could not be inferred
74 |         {
75 |         case -1:            return nil
Swift.withUnsafeMutablePointer:1:13: note: in call to function 'withUnsafeMutablePointer(to:_:)'
1 | public func withUnsafeMutablePointer<T, E, Result>(to value: inout T, _ body: (UnsafeMutablePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable
  |             `- note: in call to function 'withUnsafeMutablePointer(to:_:)'
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:73:52: error: converting non-escaping value to '(UnsafeMutablePointer<T>) throws(E) -> Result' may allow it to escape
71 |             tm_zone:    nil)
72 |
73 |         switch withUnsafeMutablePointer(to: &time, timegm)
   |                                                    `- error: converting non-escaping value to '(UnsafeMutablePointer<T>) throws(E) -> Result' may allow it to escape
74 |         {
75 |         case -1:            return nil
[38/46] Compiling UnixCalendar Timestamp.swift
/host/spi-builder-workspace/Sources/UnixCalendar/Timestamp.swift:15:8: error: Platform doesn’t support 'gmtime_r'
13 |
14 | #else
15 | #error("Platform doesn’t support 'gmtime_r'")
   |        `- error: Platform doesn’t support 'gmtime_r'
16 | #endif
17 |
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:21:8: error: Platform doesn’t support 'clock_gettime'
19 | import func Darwin.timegm
20 | #else
21 | #error("Platform doesn’t support 'clock_gettime'")
   |        `- error: Platform doesn’t support 'clock_gettime'
22 | #endif
23 |
/host/spi-builder-workspace/Sources/UnixCalendar/Timestamp.swift:61:23: error: cannot find type 'tm' in scope
59 |     init?(secondSinceEpoch:Int)
60 |     {
61 |         var segmented:tm = .init(
   |                       `- error: cannot find type 'tm' in scope
62 |             tm_sec:     -1,
63 |             tm_min:     -1,
/host/spi-builder-workspace/Sources/UnixCalendar/Timestamp.swift:75:57: error: cannot find 'gmtime_r' in scope
73 |             tm_zone:    nil)
74 |
75 |         guard withUnsafePointer(to: secondSinceEpoch, { gmtime_r($0, &segmented) }) != nil,
   |                                                         `- error: cannot find 'gmtime_r' in scope
76 |         let weekday:Timestamp.Weekday = .init(rawValue: Int.init(segmented.tm_wday)),
77 |         let month:Timestamp.Month = .init(rawValue: segmented.tm_mon + 1)
[39/46] Compiling UnixCalendar Timestamp.Sanity.swift
/host/spi-builder-workspace/Sources/UnixCalendar/Timestamp.swift:15:8: error: Platform doesn’t support 'gmtime_r'
13 |
14 | #else
15 | #error("Platform doesn’t support 'gmtime_r'")
   |        `- error: Platform doesn’t support 'gmtime_r'
16 | #endif
17 |
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:21:8: error: Platform doesn’t support 'clock_gettime'
19 | import func Darwin.timegm
20 | #else
21 | #error("Platform doesn’t support 'clock_gettime'")
   |        `- error: Platform doesn’t support 'clock_gettime'
22 | #endif
23 |
[40/46] Compiling UnixCalendar Timestamp.Time.swift
/host/spi-builder-workspace/Sources/UnixCalendar/Timestamp.swift:15:8: error: Platform doesn’t support 'gmtime_r'
13 |
14 | #else
15 | #error("Platform doesn’t support 'gmtime_r'")
   |        `- error: Platform doesn’t support 'gmtime_r'
16 | #endif
17 |
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:21:8: error: Platform doesn’t support 'clock_gettime'
19 | import func Darwin.timegm
20 | #else
21 | #error("Platform doesn’t support 'clock_gettime'")
   |        `- error: Platform doesn’t support 'clock_gettime'
22 | #endif
23 |
[41/46] Compiling UnixCalendar Timestamp.Weekday.swift
/host/spi-builder-workspace/Sources/UnixCalendar/Timestamp.swift:15:8: error: Platform doesn’t support 'gmtime_r'
13 |
14 | #else
15 | #error("Platform doesn’t support 'gmtime_r'")
   |        `- error: Platform doesn’t support 'gmtime_r'
16 | #endif
17 |
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:21:8: error: Platform doesn’t support 'clock_gettime'
19 | import func Darwin.timegm
20 | #else
21 | #error("Platform doesn’t support 'clock_gettime'")
   |        `- error: Platform doesn’t support 'clock_gettime'
22 | #endif
23 |
[42/46] Compiling UnixCalendar Timestamp.Year.swift
/host/spi-builder-workspace/Sources/UnixCalendar/Timestamp.swift:15:8: error: Platform doesn’t support 'gmtime_r'
13 |
14 | #else
15 | #error("Platform doesn’t support 'gmtime_r'")
   |        `- error: Platform doesn’t support 'gmtime_r'
16 | #endif
17 |
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:21:8: error: Platform doesn’t support 'clock_gettime'
19 | import func Darwin.timegm
20 | #else
21 | #error("Platform doesn’t support 'clock_gettime'")
   |        `- error: Platform doesn’t support 'clock_gettime'
22 | #endif
23 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[43/46] Emitting module UnixCalendar
/host/spi-builder-workspace/Sources/UnixCalendar/Timestamp.swift:15:8: error: Platform doesn’t support 'gmtime_r'
13 |
14 | #else
15 | #error("Platform doesn’t support 'gmtime_r'")
   |        `- error: Platform doesn’t support 'gmtime_r'
16 | #endif
17 |
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:21:8: error: Platform doesn’t support 'clock_gettime'
19 | import func Darwin.timegm
20 | #else
21 | #error("Platform doesn’t support 'clock_gettime'")
   |        `- error: Platform doesn’t support 'clock_gettime'
22 | #endif
23 |
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:59:18: error: cannot find type 'tm' in scope
57 |         }
58 |
59 |         var time:tm = .init(
   |                  `- error: cannot find type 'tm' in scope
60 |             tm_sec:     timestamp.time.second,
61 |             tm_min:     timestamp.time.minute,
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:73:52: error: cannot find 'timegm' in scope
71 |             tm_zone:    nil)
72 |
73 |         switch withUnsafeMutablePointer(to: &time, timegm)
   |                                                    `- error: cannot find 'timegm' in scope
74 |         {
75 |         case -1:            return nil
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:73:16: error: generic parameter 'E' could not be inferred
71 |             tm_zone:    nil)
72 |
73 |         switch withUnsafeMutablePointer(to: &time, timegm)
   |                `- error: generic parameter 'E' could not be inferred
74 |         {
75 |         case -1:            return nil
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:73:16: error: generic parameter 'Result' could not be inferred
71 |             tm_zone:    nil)
72 |
73 |         switch withUnsafeMutablePointer(to: &time, timegm)
   |                `- error: generic parameter 'Result' could not be inferred
74 |         {
75 |         case -1:            return nil
Swift.withUnsafeMutablePointer:1:13: note: in call to function 'withUnsafeMutablePointer(to:_:)'
1 | public func withUnsafeMutablePointer<T, E, Result>(to value: inout T, _ body: (UnsafeMutablePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable
  |             `- note: in call to function 'withUnsafeMutablePointer(to:_:)'
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:73:52: error: converting non-escaping value to '(UnsafeMutablePointer<T>) throws(E) -> Result' may allow it to escape
71 |             tm_zone:    nil)
72 |
73 |         switch withUnsafeMutablePointer(to: &time, timegm)
   |                                                    `- error: converting non-escaping value to '(UnsafeMutablePointer<T>) throws(E) -> Result' may allow it to escape
74 |         {
75 |         case -1:            return nil
[44/46] Compiling UnixCalendar Range (ext).swift
/host/spi-builder-workspace/Sources/UnixCalendar/Timestamp.swift:15:8: error: Platform doesn’t support 'gmtime_r'
13 |
14 | #else
15 | #error("Platform doesn’t support 'gmtime_r'")
   |        `- error: Platform doesn’t support 'gmtime_r'
16 | #endif
17 |
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:21:8: error: Platform doesn’t support 'clock_gettime'
19 | import func Darwin.timegm
20 | #else
21 | #error("Platform doesn’t support 'clock_gettime'")
   |        `- error: Platform doesn’t support 'clock_gettime'
22 | #endif
23 |
[45/46] Compiling UnixCalendar Timestamp.Components.swift
/host/spi-builder-workspace/Sources/UnixCalendar/Timestamp.swift:15:8: error: Platform doesn’t support 'gmtime_r'
13 |
14 | #else
15 | #error("Platform doesn’t support 'gmtime_r'")
   |        `- error: Platform doesn’t support 'gmtime_r'
16 | #endif
17 |
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:21:8: error: Platform doesn’t support 'clock_gettime'
19 | import func Darwin.timegm
20 | #else
21 | #error("Platform doesn’t support 'clock_gettime'")
   |        `- error: Platform doesn’t support 'clock_gettime'
22 | #endif
23 |
[46/46] Compiling UnixCalendar UnixMillisecond (ext).swift
/host/spi-builder-workspace/Sources/UnixCalendar/Timestamp.swift:15:8: error: Platform doesn’t support 'gmtime_r'
13 |
14 | #else
15 | #error("Platform doesn’t support 'gmtime_r'")
   |        `- error: Platform doesn’t support 'gmtime_r'
16 | #endif
17 |
/host/spi-builder-workspace/Sources/UnixCalendar/UnixAttosecond (ext).swift:21:8: error: Platform doesn’t support 'clock_gettime'
19 | import func Darwin.timegm
20 | #else
21 | #error("Platform doesn’t support 'clock_gettime'")
   |        `- error: Platform doesn’t support 'clock_gettime'
22 | #endif
23 |
BUILD FAILURE 6.2 android