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.1 for Wasm on 30 May 2025 03:42:56 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/tayloraswift/swift-unixtime.git
https://github.com/tayloraswift/swift-unixtime.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-unixtime",
  "name" : "swift-unixtime",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "CasesByIntegerEncodingMacro",
      "targets" : [
        "CasesByIntegerEncodingMacro"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "ISO",
      "targets" : [
        "ISO"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "UnixCalendar",
      "targets" : [
        "UnixCalendar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "UnixTime",
      "targets" : [
        "UnixTime"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UnixTime",
      "module_type" : "SwiftTarget",
      "name" : "UnixTime",
      "path" : "Sources/UnixTime",
      "product_memberships" : [
        "UnixCalendar",
        "UnixTime"
      ],
      "sources" : [
        "Duration (ext).swift",
        "DurationFormat.Unit.swift",
        "DurationFormat.swift",
        "Durations/Days.swift",
        "Durations/Hours.swift",
        "Durations/Microseconds.swift",
        "Durations/Milliseconds.swift",
        "Durations/Minutes.swift",
        "Durations/Nanoseconds.swift",
        "Durations/Seconds.swift",
        "Instants/UnixAttosecond.swift",
        "Instants/UnixDate.swift",
        "Instants/UnixMillisecond.swift",
        "QuantizedDuration.swift",
        "UnixInstant.swift",
        "UnixInterval.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "UnixCalendar",
      "module_type" : "SwiftTarget",
      "name" : "UnixCalendar",
      "path" : "Sources/UnixCalendar",
      "product_memberships" : [
        "UnixCalendar"
      ],
      "sources" : [
        "Range (ext).swift",
        "Timestamp.Components.swift",
        "Timestamp.Date.swift",
        "Timestamp.Month.swift",
        "Timestamp.Sanity.swift",
        "Timestamp.Time.swift",
        "Timestamp.Weekday.swift",
        "Timestamp.Year.swift",
        "Timestamp.swift",
        "UnixAttosecond (ext).swift",
        "UnixDate (ext).swift",
        "UnixMillisecond (ext).swift"
      ],
      "target_dependencies" : [
        "ISO",
        "UnixTime"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ISO",
      "module_type" : "SwiftTarget",
      "name" : "ISO",
      "path" : "Sources/ISO",
      "product_memberships" : [
        "ISO",
        "UnixCalendar"
      ],
      "sources" : [
        "ISO.Country (gen).swift",
        "ISO.Locale.swift",
        "ISO.Macrolanguage (gen).swift",
        "ISO.swift"
      ],
      "target_dependencies" : [
        "CasesByIntegerEncodingMacro"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CasesByIntegerEncodingMacro",
      "module_type" : "SwiftTarget",
      "name" : "CasesByIntegerEncodingMacro",
      "path" : "Macros/CasesByIntegerEncodingMacro",
      "product_memberships" : [
        "CasesByIntegerEncodingMacro",
        "ISO",
        "UnixCalendar"
      ],
      "sources" : [
        "GenerateCasesByIntegerEncoding.swift",
        "RawRepresentableByIntegerEncoding.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/23] Emitting module UnixTime
[7/25] Compiling UnixTime UnixMillisecond.swift
[8/25] Compiling UnixTime QuantizedDuration.swift
[9/25] Compiling UnixTime UnixAttosecond.swift
[10/25] Compiling UnixTime UnixDate.swift
[11/25] Compiling UnixTime UnixInstant.swift
[12/25] Compiling UnixTime UnixInterval.swift
[13/25] Compiling UnixTime Nanoseconds.swift
[14/25] Compiling UnixTime Seconds.swift
[15/25] Compiling UnixTime Milliseconds.swift
[16/25] Compiling UnixTime Minutes.swift
[17/25] Compiling UnixTime Hours.swift
[18/25] Compiling UnixTime Microseconds.swift
[19/25] Compiling UnixTime DurationFormat.swift
[20/25] Compiling UnixTime Days.swift
[21/25] Compiling UnixTime Duration (ext).swift
[22/25] Compiling UnixTime DurationFormat.Unit.swift
[24/26] Compiling CasesByIntegerEncodingMacro GenerateCasesByIntegerEncoding.swift
[25/26] Emitting module CasesByIntegerEncodingMacro
[26/26] Compiling CasesByIntegerEncodingMacro RawRepresentableByIntegerEncoding.swift
[28/32] Compiling ISO ISO.swift
[29/32] Compiling ISO ISO.Country (gen).swift
[30/32] Emitting module ISO
[31/32] Compiling ISO ISO.Locale.swift
[32/32] Compiling ISO ISO.Macrolanguage (gen).swift
[34/45] Compiling UnixCalendar UnixAttosecond (ext).swift
/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
[36/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/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)
[37/46] Compiling UnixCalendar Timestamp.Date.swift
[38/46] Compiling UnixCalendar Timestamp.Month.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[39/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
[40/46] Compiling UnixCalendar UnixMillisecond (ext).swift
[41/46] Compiling UnixCalendar Range (ext).swift
[42/46] Compiling UnixCalendar Timestamp.Components.swift
[43/46] Compiling UnixCalendar Timestamp.Sanity.swift
[44/46] Compiling UnixCalendar Timestamp.Time.swift
[45/46] Compiling UnixCalendar Timestamp.Weekday.swift
[46/46] Compiling UnixCalendar Timestamp.Year.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/19] Compiling CasesByIntegerEncodingMacro RawRepresentableByIntegerEncoding.swift
[3/19] Compiling CasesByIntegerEncodingMacro GenerateCasesByIntegerEncoding.swift
[4/19] Emitting module CasesByIntegerEncodingMacro
[6/21] Compiling UnixTime Milliseconds.swift
[7/21] Compiling UnixTime Minutes.swift
[8/21] Compiling UnixTime Hours.swift
[9/21] Compiling UnixTime Microseconds.swift
[10/27] Compiling UnixTime UnixAttosecond.swift
[11/27] Compiling UnixTime UnixDate.swift
[12/27] Compiling UnixTime Nanoseconds.swift
[13/27] Compiling UnixTime Seconds.swift
[14/27] Compiling UnixTime UnixMillisecond.swift
[15/27] Compiling UnixTime QuantizedDuration.swift
[16/27] Compiling UnixTime Duration (ext).swift
[17/27] Compiling UnixTime DurationFormat.Unit.swift
[18/27] Emitting module UnixTime
[19/27] Compiling UnixTime DurationFormat.swift
[20/27] Compiling UnixTime Days.swift
[21/27] Compiling ISO ISO.swift
[22/27] Compiling UnixTime UnixInstant.swift
[23/27] Compiling UnixTime UnixInterval.swift
[25/28] Emitting module ISO
[26/28] Compiling ISO ISO.Locale.swift
[27/28] Compiling ISO ISO.Macrolanguage (gen).swift
[28/28] Compiling ISO ISO.Country (gen).swift
[30/41] Compiling UnixCalendar UnixDate (ext).swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[31/42] 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
[32/42] Compiling UnixCalendar UnixAttosecond (ext).swift
/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: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
/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:_:)'
[33/42] 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/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)
[34/42] Compiling UnixCalendar Timestamp.Sanity.swift
[35/42] Compiling UnixCalendar Timestamp.Time.swift
[36/42] Compiling UnixCalendar Timestamp.Weekday.swift
[37/42] Compiling UnixCalendar Timestamp.Year.swift
[38/42] Compiling UnixCalendar Range (ext).swift
[39/42] Compiling UnixCalendar Timestamp.Components.swift
[40/42] Compiling UnixCalendar Timestamp.Date.swift
[41/42] Compiling UnixCalendar Timestamp.Month.swift
[42/42] Compiling UnixCalendar UnixMillisecond (ext).swift
BUILD FAILURE 6.1 wasm