Build Information
Failed to build Macro, reference develop (dc129a), with Swift 6.2 for Wasm on 27 Sep 2026 07:43:46 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Macro-swift/Macro.git
Reference: develop
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/Macro-swift/Macro
* branch develop -> FETCH_HEAD
* [new branch] develop -> origin/develop
HEAD is now at dc129a5 Fix some concurrency warnings
Cloned https://github.com/Macro-swift/Macro.git
Revision (git rev-parse @):
dc129a50c0c027383bb8335ccadbfc4b730d4f34
SUCCESS checkout https://github.com/Macro-swift/Macro.git at develop
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/Macro-swift/Macro.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:ff44196b45f83e5a0a99a627b185f548850d9bc1242e3dee2178fb1570812fe8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-atomics.git
[1/1885] Fetching swift-atomics
[586/10050] Fetching swift-atomics, swift-log
Fetched https://github.com/apple/swift-atomics.git from cache (0.58s)
Fetched https://github.com/apple/swift-log.git from cache (0.58s)
[1/86168] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (3.35s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (3.58s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.103.0 (0.39s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
[1/27779] Fetching swift-collections
[557/34762] Fetching swift-collections, swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.89s)
[17779/27779] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.28s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.1 (1.55s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (0.26s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (0.15s)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.1
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.103.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.15.1
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.8.1
Building for debugging...
[0/41] Write sources
[24/41] Compiling CNIOWindows shim.c
[25/41] Compiling CNIOWindows WSAStartup.c
[26/41] Compiling CNIOWASI CNIOWASI.c
[27/41] Compiling CNIOPosix event_loop_id.c
[28/41] Compiling CNIOLinux shim.c
[29/41] Compiling CNIOOpenBSD shim.c
[30/41] Compiling CNIOLinux liburing_shims.c
[31/41] Compiling CNIOSHA1 c_nio_sha1.c
[32/41] Compiling CNIOLLHTTP c_nio_http.c
[33/41] Compiling CNIOFreeBSD shim.c
[34/41] Compiling _AtomicsShims.c
[35/41] Compiling CNIODarwin shim.c
[36/41] Compiling CNIOLLHTTP c_nio_api.c
[37/41] Compiling CNIOLLHTTP c_nio_llhttp.c
[38/41] Compiling c-nioatomics.c
[39/41] Compiling c-atomics.c
[40/41] Write swift-version-24593BA9C3E375BF.txt
[42/125] Emitting module InternalCollectionsUtilities
[43/128] Compiling xsys Module.swift
[44/128] Compiling xsys POSIXError.swift
[45/128] Compiling xsys SocketAddress.swift
[46/128] Compiling xsys UUID.swift
[47/128] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[48/128] Compiling InternalCollectionsUtilities _SortedCollection.swift
[49/128] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[50/128] Compiling xsys dylib.swift
[51/128] Compiling xsys fd.swift
[52/128] Compiling xsys ioctl.swift
[53/128] Compiling xsys misc.swift
[54/128] Emitting module Atomics
[55/128] Compiling InternalCollectionsUtilities OutputSpan+Extras.swift
[56/128] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[57/128] Compiling InternalCollectionsUtilities Span+Extras.swift
[58/128] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[61/130] Compiling Logging Logger+Attributes.swift
[62/131] Compiling _NIOBase64 Base64.swift
[63/131] Emitting module _NIOBase64
[66/132] Compiling xsys ntohs.swift
[67/132] Compiling xsys sockaddr_any.swift
[68/132] Compiling xsys socket.swift
[69/132] Compiling xsys time.swift
[74/132] Compiling _NIODataStructures _TinyArray.swift
[75/132] Compiling _NIODataStructures PriorityQueue.swift
[78/132] Compiling InternalCollectionsUtilities MutableSpan+Extras.swift
[82/132] Compiling InternalCollectionsUtilities Strideable+LimitHelpers.swift
[83/132] Compiling InternalCollectionsUtilities String+Padding.swift
[84/132] Compiling InternalCollectionsUtilities TemporaryAllocation.swift
[85/132] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[86/132] Compiling InternalCollectionsUtilities UnsafeMutablePointer+Extras.swift
[87/132] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[88/132] Compiling InternalCollectionsUtilities UnsafePointer+Extras.swift
[90/132] Compiling Atomics IntegerOperations.swift
[91/132] Compiling Atomics Unmanaged extensions.swift
[92/132] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[99/133] Compiling Logging MetadataProvider.swift
[100/133] Compiling Logging LoggingSystem.swift
[102/133] Emitting module Logging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[103/133] Emitting module xsys
/host/spi-builder-workspace/Sources/xsys/misc.swift:65:30: error: module 'WASILibc' has no member named 'SIGTERM'
63 |
64 | // signals (limited on WASI)
65 | public let SIGTERM = WASILibc.SIGTERM
| `- error: module 'WASILibc' has no member named 'SIGTERM'
66 | public let SIGINT = WASILibc.SIGINT
67 |
/host/spi-builder-workspace/Sources/xsys/misc.swift:66:30: error: module 'WASILibc' has no member named 'SIGINT'
64 | // signals (limited on WASI)
65 | public let SIGTERM = WASILibc.SIGTERM
66 | public let SIGINT = WASILibc.SIGINT
| `- error: module 'WASILibc' has no member named 'SIGINT'
67 |
68 | // stdio
/host/spi-builder-workspace/Sources/xsys/timespec.swift:23:21: error: cannot find 'CLOCK_MONOTONIC' in scope
21 | static func monotonic() -> timespec {
22 | var ts = timespec()
23 | clock_gettime(CLOCK_MONOTONIC, &ts)
| `- error: cannot find 'CLOCK_MONOTONIC' in scope
24 | return ts
25 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_time.h:18:9: note: macro 'CLOCK_MONOTONIC' unavailable: structure not supported
16 |
17 | extern const struct __clockid _CLOCK_MONOTONIC;
18 | #define CLOCK_MONOTONIC (&_CLOCK_MONOTONIC)
| `- note: macro 'CLOCK_MONOTONIC' unavailable: structure not supported
19 | extern const struct __clockid _CLOCK_REALTIME;
20 | #define CLOCK_REALTIME (&_CLOCK_REALTIME)
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:70:12: error: cannot assign value of type 'Int' to type 'Int64'
68 | public init(seconds: Int, milliseconds: Int = 0) {
69 | assert(milliseconds == 0) // just print a warning, the user should know
70 | self = seconds
| `- error: cannot assign value of type 'Int' to type 'Int64'
71 | }
72 |
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:73:53: error: cannot convert return expression of type 'Int64' to return type 'Int'
71 | }
72 |
73 | @inlinable public var seconds : Int { return self }
| `- error: cannot convert return expression of type 'Int64' to return type 'Int'
74 | @inlinable public var milliseconds : Int { return self * 1000 }
75 | }
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:74:58: error: cannot convert return expression of type 'Int64' to return type 'Int'
72 |
73 | @inlinable public var seconds : Int { return self }
74 | @inlinable public var milliseconds : Int { return self * 1000 }
| `- error: cannot convert return expression of type 'Int64' to return type 'Int'
75 | }
76 |
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:89:18: error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
87 | public init(_ ts: timespec) {
88 | self.init()
89 | tv_sec = ts.seconds
| `- error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
90 | #if os(Linux) || os(Android) || os(WASI)
91 | tv_usec = ts.tv_nsec / 1000
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:91:26: error: cannot assign value of type 'Int' to type 'suseconds_t' (aka 'Int64')
89 | tv_sec = ts.seconds
90 | #if os(Linux) || os(Android) || os(WASI)
91 | tv_usec = ts.tv_nsec / 1000
| `- error: cannot assign value of type 'Int' to type 'suseconds_t' (aka 'Int64')
92 | #else
93 | tv_usec = Int32(ts.tv_nsec / 1000)
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:100:23: error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
98 | public init(seconds: Int, milliseconds: Int = 0) {
99 | self.init()
100 | tv_sec = seconds + (milliseconds / 1000)
| `- error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
101 | #if os(Linux) || os(Android) || os(WASI)
102 | tv_usec = (milliseconds % 1000) * 1000
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:102:37: error: cannot assign value of type 'Int' to type 'suseconds_t' (aka 'Int64')
100 | tv_sec = seconds + (milliseconds / 1000)
101 | #if os(Linux) || os(Android) || os(WASI)
102 | tv_usec = (milliseconds % 1000) * 1000
| `- error: cannot assign value of type 'Int' to type 'suseconds_t' (aka 'Int64')
103 | #else
104 | tv_usec = Int32(milliseconds % 1000) * 1000
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:116:13: error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
114 | @inlinable
115 | public var milliseconds : Int {
116 | return (tv_sec * 1000) + (Int(tv_usec) / 1000)
| `- error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
117 | }
118 |
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:129:18: error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
127 | public init(_ tv: timeval) {
128 | self.init()
129 | tv_sec = tv.seconds
| `- error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
130 | tv_nsec = Int(tv.tv_usec) * 1000
131 | }
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:136:23: error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
134 | public init(seconds: Int, milliseconds: Int = 0) {
135 | self.init()
136 | tv_sec = seconds + (milliseconds / 1000)
| `- error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
137 | tv_nsec = (milliseconds % 1000) * 1000000
138 | }
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:143:12: error: cannot convert return expression of type 'time_t' (aka 'Int64') to return type 'Int'
141 | public var seconds : Int {
142 | // TBD: rounding on tv_nsec?
143 | return tv_sec
| `- error: cannot convert return expression of type 'time_t' (aka 'Int64') to return type 'Int'
144 | }
145 |
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:148:13: error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
146 | @inlinable
147 | public var milliseconds : Int {
148 | return (tv_sec * 1000) + (tv_nsec / 1000000)
| `- error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
149 | }
150 |
[104/134] Emitting module NIOConcurrencyHelpers
[105/134] Compiling NIOConcurrencyHelpers NIOLock.swift
[106/134] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[109/135] Compiling xsys timespec.swift
/host/spi-builder-workspace/Sources/xsys/timespec.swift:23:21: error: cannot find 'CLOCK_MONOTONIC' in scope
21 | static func monotonic() -> timespec {
22 | var ts = timespec()
23 | clock_gettime(CLOCK_MONOTONIC, &ts)
| `- error: cannot find 'CLOCK_MONOTONIC' in scope
24 | return ts
25 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_time.h:18:9: note: macro 'CLOCK_MONOTONIC' unavailable: structure not supported
16 |
17 | extern const struct __clockid _CLOCK_MONOTONIC;
18 | #define CLOCK_MONOTONIC (&_CLOCK_MONOTONIC)
| `- note: macro 'CLOCK_MONOTONIC' unavailable: structure not supported
19 | extern const struct __clockid _CLOCK_REALTIME;
20 | #define CLOCK_REALTIME (&_CLOCK_REALTIME)
[114/135] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[118/135] Compiling NIOConcurrencyHelpers lock.swift
/host/spi-builder-workspace/Sources/xsys/misc.swift:65:30: error: module 'WASILibc' has no member named 'SIGTERM'
63 |
64 | // signals (limited on WASI)
65 | public let SIGTERM = WASILibc.SIGTERM
| `- error: module 'WASILibc' has no member named 'SIGTERM'
66 | public let SIGINT = WASILibc.SIGINT
67 |
/host/spi-builder-workspace/Sources/xsys/misc.swift:66:30: error: module 'WASILibc' has no member named 'SIGINT'
64 | // signals (limited on WASI)
65 | public let SIGTERM = WASILibc.SIGTERM
66 | public let SIGINT = WASILibc.SIGINT
| `- error: module 'WASILibc' has no member named 'SIGINT'
67 |
68 | // stdio
/host/spi-builder-workspace/Sources/xsys/misc.swift:65:30: error: module 'WASILibc' has no member named 'SIGTERM'
63 |
64 | // signals (limited on WASI)
65 | public let SIGTERM = WASILibc.SIGTERM
| `- error: module 'WASILibc' has no member named 'SIGTERM'
66 | public let SIGINT = WASILibc.SIGINT
67 |
/host/spi-builder-workspace/Sources/xsys/misc.swift:66:30: error: module 'WASILibc' has no member named 'SIGINT'
64 | // signals (limited on WASI)
65 | public let SIGTERM = WASILibc.SIGTERM
66 | public let SIGINT = WASILibc.SIGINT
| `- error: module 'WASILibc' has no member named 'SIGINT'
67 |
68 | // stdio
[125/139] Compiling Logging Logger+With.swift
[126/139] Compiling Logging Logger.swift
[131/140] Compiling SpanPreview OutputSpan+InputSpanHelpers.swift
[132/140] Emitting module SpanPreview
[133/140] Compiling SpanPreview InputSpan.swift
[134/140] Compiling SpanPreview MutableSpan+InputSpanHelpers.swift
[136/141] Emitting module _NIODataStructures
[137/141] Compiling _NIODataStructures Heap.swift
[139/142] Compiling NIOConcurrencyHelpers NIOThreadPoolWorkAvailable.swift
[140/142] Compiling NIOConcurrencyHelpers atomics.swift
[143/185] Compiling DequeModule RigidDeque+Descriptions.swift
[144/185] Compiling DequeModule RigidDeque+Equatable.swift
[145/185] Compiling DequeModule RigidDeque+Hashable.swift
[146/185] Compiling DequeModule RigidDeque+Initializers.swift
[147/185] Compiling DequeModule RigidDeque+Insertions.swift
[148/185] Compiling DequeModule RigidDeque+Iterable.swift
[149/185] Compiling DequeModule RigidDeque+Prepend.swift
[150/185] Compiling DequeModule RigidDeque+Removals.swift
[151/185] Compiling DequeModule RigidDeque+Replacements.swift
[152/185] Compiling DequeModule RigidDeque+Testing.swift
[153/185] Compiling DequeModule RigidDeque.swift
[154/185] Compiling DequeModule UniqueDeque+Append.swift
[155/190] Compiling DequeModule _DequeBuffer.swift
[156/190] Compiling DequeModule _DequeBufferHeader.swift
[157/190] Compiling DequeModule RigidDeque+Append.swift
[158/190] Compiling DequeModule RigidDeque+Consumption.swift
[159/190] Compiling DequeModule RigidDeque+ContainerOperations.swift
[160/190] Compiling DequeModule RigidDeque+Deprecations.swift
[161/190] Compiling DequeModule Deque+Codable.swift
[162/190] Compiling DequeModule Deque+Collection.swift
[163/190] Compiling DequeModule Deque+CustomReflectable.swift
[164/190] Compiling DequeModule Deque+Descriptions.swift
[165/190] Compiling DequeModule Deque+Equatable.swift
[166/190] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[167/190] Compiling DequeModule UniqueDeque+Initializers.swift
[168/190] Compiling DequeModule UniqueDeque+Insertions.swift
[169/190] Compiling DequeModule UniqueDeque+Iterable.swift
[170/190] Compiling DequeModule UniqueDeque+Prepend.swift
[171/190] Compiling DequeModule UniqueDeque+Removals.swift
[172/190] Compiling DequeModule UniqueDeque+Consumption.swift
[173/190] Compiling DequeModule UniqueDeque+ContainerOperations.swift
[174/190] Compiling DequeModule UniqueDeque+Deprecations.swift
[175/190] Compiling DequeModule UniqueDeque+Descriptions.swift
[176/190] Compiling DequeModule UniqueDeque+Equatable.swift
[177/190] Compiling DequeModule UniqueDeque+Hashable.swift
[178/190] Compiling DequeModule Deque+Extras.swift
[179/190] Compiling DequeModule Deque+Hashable.swift
[180/190] Compiling DequeModule Deque+Testing.swift
[181/190] Compiling DequeModule Deque._Storage.swift
[182/190] Compiling DequeModule Deque._UnsafeHandle.swift
[183/190] Compiling DequeModule Deque.swift
[184/190] Compiling xsys timeval_any.swift
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:70:12: error: cannot assign value of type 'Int' to type 'Int64'
68 | public init(seconds: Int, milliseconds: Int = 0) {
69 | assert(milliseconds == 0) // just print a warning, the user should know
70 | self = seconds
| `- error: cannot assign value of type 'Int' to type 'Int64'
71 | }
72 |
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:73:53: error: cannot convert return expression of type 'Int64' to return type 'Int'
71 | }
72 |
73 | @inlinable public var seconds : Int { return self }
| `- error: cannot convert return expression of type 'Int64' to return type 'Int'
74 | @inlinable public var milliseconds : Int { return self * 1000 }
75 | }
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:74:58: error: cannot convert return expression of type 'Int64' to return type 'Int'
72 |
73 | @inlinable public var seconds : Int { return self }
74 | @inlinable public var milliseconds : Int { return self * 1000 }
| `- error: cannot convert return expression of type 'Int64' to return type 'Int'
75 | }
76 |
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:89:18: error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
87 | public init(_ ts: timespec) {
88 | self.init()
89 | tv_sec = ts.seconds
| `- error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
90 | #if os(Linux) || os(Android) || os(WASI)
91 | tv_usec = ts.tv_nsec / 1000
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:91:26: error: cannot assign value of type 'Int' to type 'suseconds_t' (aka 'Int64')
89 | tv_sec = ts.seconds
90 | #if os(Linux) || os(Android) || os(WASI)
91 | tv_usec = ts.tv_nsec / 1000
| `- error: cannot assign value of type 'Int' to type 'suseconds_t' (aka 'Int64')
92 | #else
93 | tv_usec = Int32(ts.tv_nsec / 1000)
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:100:23: error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
98 | public init(seconds: Int, milliseconds: Int = 0) {
99 | self.init()
100 | tv_sec = seconds + (milliseconds / 1000)
| `- error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
101 | #if os(Linux) || os(Android) || os(WASI)
102 | tv_usec = (milliseconds % 1000) * 1000
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:102:37: error: cannot assign value of type 'Int' to type 'suseconds_t' (aka 'Int64')
100 | tv_sec = seconds + (milliseconds / 1000)
101 | #if os(Linux) || os(Android) || os(WASI)
102 | tv_usec = (milliseconds % 1000) * 1000
| `- error: cannot assign value of type 'Int' to type 'suseconds_t' (aka 'Int64')
103 | #else
104 | tv_usec = Int32(milliseconds % 1000) * 1000
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:116:13: error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
114 | @inlinable
115 | public var milliseconds : Int {
116 | return (tv_sec * 1000) + (Int(tv_usec) / 1000)
| `- error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
117 | }
118 |
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:129:18: error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
127 | public init(_ tv: timeval) {
128 | self.init()
129 | tv_sec = tv.seconds
| `- error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
130 | tv_nsec = Int(tv.tv_usec) * 1000
131 | }
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:136:23: error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
134 | public init(seconds: Int, milliseconds: Int = 0) {
135 | self.init()
136 | tv_sec = seconds + (milliseconds / 1000)
| `- error: cannot assign value of type 'Int' to type 'time_t' (aka 'Int64')
137 | tv_nsec = (milliseconds % 1000) * 1000000
138 | }
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:143:12: error: cannot convert return expression of type 'time_t' (aka 'Int64') to return type 'Int'
141 | public var seconds : Int {
142 | // TBD: rounding on tv_nsec?
143 | return tv_sec
| `- error: cannot convert return expression of type 'time_t' (aka 'Int64') to return type 'Int'
144 | }
145 |
/host/spi-builder-workspace/Sources/xsys/timeval_any.swift:148:13: error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
146 | @inlinable
147 | public var milliseconds : Int {
148 | return (tv_sec * 1000) + (tv_nsec / 1000000)
| `- error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
149 | }
150 |
BUILD FAILURE 6.2 wasm