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 master (35920d), with Swift 6.2 (beta) for Wasm on 22 Jun 2025 19:16:02 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 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: 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/tayloraswift/swift-unixtime
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 35920d6 Merge pull request #5 from tayloraswift/readable-symbol-links
Cloned https://github.com/tayloraswift/swift-unixtime.git
Revision (git rev-parse @):
35920d62610f4b4f8d84faa281e17a45331185af
SUCCESS checkout https://github.com/tayloraswift/swift-unixtime.git at master
========================================
Build
========================================
Selected platform:         wasm
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:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/23] Compiling CasesByIntegerEncodingMacro RawRepresentableByIntegerEncoding.swift
[7/23] Emitting module CasesByIntegerEncodingMacro
[8/23] Compiling UnixTime Hours.swift
[9/23] Compiling UnixTime Microseconds.swift
[10/25] Compiling CasesByIntegerEncodingMacro GenerateCasesByIntegerEncoding.swift
[11/26] Compiling UnixTime DurationFormat.swift
[12/26] Compiling UnixTime Days.swift
[14/26] Emitting module UnixTime
[15/26] Compiling UnixTime Duration (ext).swift
[16/26] Compiling UnixTime DurationFormat.Unit.swift
[17/26] Compiling UnixTime UnixAttosecond.swift
[18/26] Compiling UnixTime UnixDate.swift
[19/26] Compiling UnixTime Nanoseconds.swift
[20/26] Compiling UnixTime Seconds.swift
[21/26] Compiling UnixTime Milliseconds.swift
[22/26] Compiling UnixTime Minutes.swift
[23/26] Compiling UnixTime UnixMillisecond.swift
[24/26] Compiling UnixTime QuantizedDuration.swift
[25/26] Compiling UnixTime UnixInstant.swift
[26/26] Compiling UnixTime UnixInterval.swift
[28/32] Compiling ISO ISO.swift
[29/32] Compiling ISO ISO.Macrolanguage (gen).swift
[30/32] Compiling ISO ISO.Country (gen).swift
[31/32] Compiling ISO ISO.Locale.swift
[32/32] Emitting module ISO
[34/45] 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
[35/46] 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 |
[36/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 |
[37/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 |
[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 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 |
[40/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 |
[41/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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[42/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
[43/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 |
[44/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 |
[45/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 |
[46/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 |
BUILD FAILURE 6.2 wasm