Build Information
Failed to build package-datetime, reference 1.0.2 (d12421), with Swift 6.3 for Wasm on 13 Apr 2026 18:39:41 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ordo-one/package-datetime.git
Reference: 1.0.2
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/ordo-one/package-datetime
* tag 1.0.2 -> FETCH_HEAD
HEAD is now at d124218 Use gmtime. (#15)
Cloned https://github.com/ordo-one/package-datetime.git
Revision (git rev-parse @):
d1242188c9f48aad297e6ca9b717776f8660bc31
SUCCESS checkout https://github.com/ordo-one/package-datetime.git at 1.0.2
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/ordo-one/package-datetime.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling DateTime InternalUTCClock.swift
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:22:12: error: Unsupported Platform
20 | import Glibc
21 | #else
22 | #error("Unsupported Platform")
| `- error: Unsupported Platform
23 | #endif
24 |
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:21:12: error: Unsupported Platform
19 | import Glibc
20 | #else
21 | #error("Unsupported Platform")
| `- error: Unsupported Platform
22 | #endif
23 |
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:98:26: error: cannot find 'timespec' in scope
96 | /// The minimum non-zero resolution between any two calls to `now`.
97 | public var minimumResolution: Swift.Duration {
98 | var resolution = timespec()
| `- error: cannot find 'timespec' in scope
99 |
100 | let result = clock_getres(CLOCK_REALTIME, &resolution)
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:100:22: error: cannot find 'clock_getres' in scope
98 | var resolution = timespec()
99 |
100 | let result = clock_getres(CLOCK_REALTIME, &resolution)
| `- error: cannot find 'clock_getres' in scope
101 |
102 | guard result == 0 else {
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:100:35: error: cannot find 'CLOCK_REALTIME' in scope
98 | var resolution = timespec()
99 |
100 | let result = clock_getres(CLOCK_REALTIME, &resolution)
| `- error: cannot find 'CLOCK_REALTIME' in scope
101 |
102 | guard result == 0 else {
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:103:94: error: cannot find 'errno' in scope
101 |
102 | guard result == 0 else {
103 | fatalError("Failed to get realtime clock resolution in clock_getres(), errno = \(errno)")
| `- error: cannot find 'errno' in scope
104 | }
105 |
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:114:27: error: cannot find 'timespec' in scope
112 | /// The current continuous instant.
113 | public static var now: InternalUTCClock.Instant {
114 | var currentTime = timespec()
| `- error: cannot find 'timespec' in scope
115 | let result = clock_gettime(CLOCK_REALTIME, ¤tTime)
116 |
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:115:22: error: cannot find 'clock_gettime' in scope
113 | public static var now: InternalUTCClock.Instant {
114 | var currentTime = timespec()
115 | let result = clock_gettime(CLOCK_REALTIME, ¤tTime)
| `- error: cannot find 'clock_gettime' in scope
116 |
117 | guard result == 0 else {
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:115:36: error: cannot find 'CLOCK_REALTIME' in scope
113 | public static var now: InternalUTCClock.Instant {
114 | var currentTime = timespec()
115 | let result = clock_gettime(CLOCK_REALTIME, ¤tTime)
| `- error: cannot find 'CLOCK_REALTIME' in scope
116 |
117 | guard result == 0 else {
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:118:82: error: cannot find 'errno' in scope
116 |
117 | guard result == 0 else {
118 | fatalError("Failed to get current time in clock_gettime(), errno = \(errno)")
| `- error: cannot find 'errno' in scope
119 | }
120 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Emitting module DateTime
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:22:12: error: Unsupported Platform
20 | import Glibc
21 | #else
22 | #error("Unsupported Platform")
| `- error: Unsupported Platform
23 | #endif
24 |
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:21:12: error: Unsupported Platform
19 | import Glibc
20 | #else
21 | #error("Unsupported Platform")
| `- error: Unsupported Platform
22 | #endif
23 |
[5/8] Compiling DateTime EpochDateTime.swift
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:22:12: error: Unsupported Platform
20 | import Glibc
21 | #else
22 | #error("Unsupported Platform")
| `- error: Unsupported Platform
23 | #endif
24 |
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:21:12: error: Unsupported Platform
19 | import Glibc
20 | #else
21 | #error("Unsupported Platform")
| `- error: Unsupported Platform
22 | #endif
23 |
/host/spi-builder-workspace/Sources/DateTime/EpochDateTime.swift:40:18: error: use of local variable 'tm' before its declaration
38 | public mutating func convert(timestamp: Int) {
39 | var timestamp = timestamp
40 | var tm = tm()
| | `- error: use of local variable 'tm' before its declaration
| `- note: 'tm' declared here
41 | gmtime_r(×tamp, &tm)
42 | year = Int(tm.tm_year + 1900)
/host/spi-builder-workspace/Sources/DateTime/EpochDateTime.swift:41:9: error: cannot find 'gmtime_r' in scope
39 | var timestamp = timestamp
40 | var tm = tm()
41 | gmtime_r(×tamp, &tm)
| `- error: cannot find 'gmtime_r' in scope
42 | year = Int(tm.tm_year + 1900)
43 | month = Int(tm.tm_mon + 1)
[6/8] Compiling DateTime BenchmarkClock.swift
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:22:12: error: Unsupported Platform
20 | import Glibc
21 | #else
22 | #error("Unsupported Platform")
| `- error: Unsupported Platform
23 | #endif
24 |
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:71:20: error: Unsupported Platform
69 | return Duration(secondsComponent: seconds, attosecondsComponent: attoseconds)
70 | #else
71 | #error("Unsupported Platform")
| `- error: Unsupported Platform
72 | #endif
73 | }
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:97:20: error: Unsupported Platform
95 | attosecondsComponent: Int64(attoseconds)))
96 | #else
97 | #error("Unsupported Platform")
| `- error: Unsupported Platform
98 | #endif
99 | }
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:21:12: error: Unsupported Platform
19 | import Glibc
20 | #else
21 | #error("Unsupported Platform")
| `- error: Unsupported Platform
22 | #endif
23 |
[7/8] Compiling DateTime Duration+Convenience.swift
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:22:12: error: Unsupported Platform
20 | import Glibc
21 | #else
22 | #error("Unsupported Platform")
| `- error: Unsupported Platform
23 | #endif
24 |
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:21:12: error: Unsupported Platform
19 | import Glibc
20 | #else
21 | #error("Unsupported Platform")
| `- error: Unsupported Platform
22 | #endif
23 |
[8/8] Compiling DateTime FoundationExports.swift
/host/spi-builder-workspace/Sources/DateTime/BenchmarkClock.swift:22:12: error: Unsupported Platform
20 | import Glibc
21 | #else
22 | #error("Unsupported Platform")
| `- error: Unsupported Platform
23 | #endif
24 |
/host/spi-builder-workspace/Sources/DateTime/InternalUTCClock.swift:21:12: error: Unsupported Platform
19 | import Glibc
20 | #else
21 | #error("Unsupported Platform")
| `- error: Unsupported Platform
22 | #endif
23 |
BUILD FAILURE 6.3 wasm