Build Information
Failed to build package-datetime, reference main (897298
), with Swift 6.1 for Wasm on 28 May 2025 17:23:27 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/ordo-one/package-datetime.git
Reference: main
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
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 897298b ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Cloned https://github.com/ordo-one/package-datetime.git
Revision (git rev-parse @):
897298b2b3c1d61f1401f225a28e83c89bfa29bb
SUCCESS checkout https://github.com/ordo-one/package-datetime.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/ordo-one/package-datetime.git
https://github.com/ordo-one/package-datetime.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "package-datetime",
"name" : "package-datetime",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "DateTime",
"targets" : [
"DateTime"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "EpochDateTimeTests",
"module_type" : "SwiftTarget",
"name" : "EpochDateTimeTests",
"path" : "Tests/EpochDateTimeTests",
"sources" : [
"EpochDateTimeTests.swift"
],
"target_dependencies" : [
"DateTime"
],
"type" : "test"
},
{
"c99name" : "DateTimeTests",
"module_type" : "SwiftTarget",
"name" : "DateTimeTests",
"path" : "Tests/DateTimeTests",
"sources" : [
"DateTimeTests.swift"
],
"target_dependencies" : [
"DateTime"
],
"type" : "test"
},
{
"c99name" : "DateTime",
"module_type" : "SwiftTarget",
"name" : "DateTime",
"path" : "Sources/DateTime",
"product_memberships" : [
"DateTime"
],
"sources" : [
"BenchmarkClock.swift",
"Duration+Convenience.swift",
"EpochDateTime.swift",
"FoundationExports.swift",
"InternalUTCClock.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling DateTime InternalUTCClock.swift
/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 |
[4/8] Compiling DateTime Duration+Convenience.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/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 |
[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 | }
[7/8] Compiling DateTime EpochDateTime.swift
/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)
[8/8] Compiling DateTime FoundationExports.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/7] 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 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] 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 |
[4/7] Compiling DateTime Duration+Convenience.swift
[5/7] Compiling DateTime EpochDateTime.swift
/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/7] Compiling DateTime InternalUTCClock.swift
/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 |
[7/7] Compiling DateTime FoundationExports.swift
BUILD FAILURE 6.1 wasm