Build Information
Failed to build swift-system, reference master (f51eba), with Swift 6.3 for Wasm on 20 Apr 2026 21:31:03 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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
| `- note: found candidate with type '(any Decoder) throws -> Clock'
155 |
156 | /// High-resolution per-process timer from the CPU.
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:158:40: error: no exact matches in call to initializer
156 | /// High-resolution per-process timer from the CPU.
157 | @_alwaysEmitIntoClient
158 | static var processCPUTime: Clock { Clock(_CLOCK_PROCESS_CPUTIME_ID) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
159 |
160 | /// Thread-specific CPU-time clock.
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:162:39: error: no exact matches in call to initializer
160 | /// Thread-specific CPU-time clock.
161 | @_alwaysEmitIntoClient
162 | static var threadCPUTime: Clock { Clock(_CLOCK_THREAD_CPUTIME_ID) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
163 |
164 | /// Monotonic Raw
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:166:38: error: no exact matches in call to initializer
164 | /// Monotonic Raw
165 | @_alwaysEmitIntoClient
166 | static var monotonicRaw: Clock { Clock(_CLOCK_MONOTONIC_RAW) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
167 |
168 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:74:27: error: cannot find type 'time_t' in scope
72 |
73 | /// The C `time_t` type
74 | public typealias Time = time_t
| `- error: cannot find type 'time_t' in scope
75 |
76 | /// The C `tm` type
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:18:40: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
16 | public var rawValue: CInterop.Microseconds
17 |
18 | public init(rawValue: CInterop.Microseconds) {
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
19 | self.rawValue = rawValue
20 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:16:39: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
15 |
16 | public var rawValue: CInterop.Microseconds
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Hashable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Hashable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Time.Microseconds' to 'Hashable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Encodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Encodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.Microseconds' does not conform to 'Encodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
15 |
16 | public var rawValue: CInterop.Microseconds
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Equatable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'Time.Microseconds' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Time.Microseconds' to 'Equatable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'Time.Microseconds' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'Time.Microseconds' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'Time.Microseconds.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Time.Microseconds.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Time.Microseconds' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Time.Microseconds' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Time.Microseconds, Time.Microseconds) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Time.Microseconds, Time.Microseconds) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:41:1: error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
39 | // MARK: - ExpressibleByIntegerLiteral
40 |
41 | extension Time.Microseconds: ExpressibleByIntegerLiteral {
| |- error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
| `- note: add stubs for conformance
42 |
43 | public init(integerLiteral value: RawValue) {
Swift.ExpressibleByIntegerLiteral.IntegerLiteralType:2:16: note: protocol requires nested type 'IntegerLiteralType'
1 | protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral}
| `- note: protocol requires nested type 'IntegerLiteralType'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:31:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
29 |
30 | static var min: Time.Microseconds {
31 | return .init(rawValue: .min)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
32 | }
33 |
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:31:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
29 |
30 | static var min: Time.Microseconds {
31 | return .init(rawValue: .min)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
32 | }
33 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:35:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
33 |
34 | static var max: Time.Microseconds {
35 | return .init(rawValue: .max)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
36 | }
37 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:35:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
33 |
34 | static var max: Time.Microseconds {
35 | return .init(rawValue: .max)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
36 | }
37 | }
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:44:14: error: no exact matches in call to initializer
42 |
43 | public init(integerLiteral value: RawValue) {
44 | self.init(rawValue: value)
| |- error: no exact matches in call to initializer
| |- note: found candidate with type '(Time.Microseconds) -> Time.Microseconds'
| `- note: found candidate with type '(any Decoder) throws -> Time.Microseconds'
45 | }
46 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:66:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
64 |
65 | static func - (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
66 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
67 | }
68 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:66:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
64 |
65 | static func - (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
66 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
67 | }
68 |
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:70:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
68 |
69 | static func + (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
70 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
71 | }
72 | }
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:70:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
68 |
69 | static func + (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
70 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
71 | }
72 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:68:28: error: cannot find type 'clock_t' in scope
66 |
67 | /// The C `clock_t` type
68 | public typealias Clock = clock_t
| `- error: cannot find type 'clock_t' in scope
69 |
70 | /// The C `clockid_t` type
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Decodable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Decodable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Clock' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Clock) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Hashable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Hashable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'ProcessorTime' to 'Hashable'
15 |
16 | public init(rawValue: CInterop.Clock) {
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Encodable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Encodable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.Clock' does not conform to 'Encodable'
15 |
16 | public init(rawValue: CInterop.Clock) {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
13 |
14 | public let rawValue: CInterop.Clock
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Equatable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'ProcessorTime' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
13 |
14 | public let rawValue: CInterop.Clock
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'ProcessorTime' to 'Equatable'
15 |
16 | public init(rawValue: CInterop.Clock) {
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'ProcessorTime' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'ProcessorTime' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'ProcessorTime.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'ProcessorTime.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'ProcessorTime' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'ProcessorTime' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'ProcessorTime' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'ProcessorTime' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'ProcessorTime' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'ProcessorTime' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'ProcessorTime' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(ProcessorTime, ProcessorTime) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(ProcessorTime, ProcessorTime) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:77:1: error: type 'ProcessorTime' does not conform to protocol 'ExpressibleByIntegerLiteral'
75 | // MARK: - ExpressibleByIntegerLiteral
76 |
77 | extension ProcessorTime: ExpressibleByIntegerLiteral {
| |- error: type 'ProcessorTime' does not conform to protocol 'ExpressibleByIntegerLiteral'
| `- note: add stubs for conformance
78 |
79 | public init(integerLiteral value: RawValue) {
Swift.ExpressibleByIntegerLiteral.IntegerLiteralType:2:16: note: protocol requires nested type 'IntegerLiteralType'
1 | protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral}
| `- note: protocol requires nested type 'IntegerLiteralType'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Decodable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Decodable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Clock' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Clock) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:26:21: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
24 | /// since the beginning of an implementation-defined era related to the program's execution.
25 | static var current: ProcessorTime {
26 | return .init(rawValue: system_clock())
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
27 | }
28 | }
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:33:18: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
31 |
32 | init(seconds: Double) {
33 | self.init(rawValue: .init(seconds * Double(_CLOCKS_PER_SEC)))
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
34 | }
35 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:46:21: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
44 |
45 | static func - (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
46 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
47 | }
48 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:46:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
44 |
45 | static func - (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
46 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
47 | }
48 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:50:21: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
48 |
49 | static func + (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
50 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
51 | }
52 | }
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:50:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
48 |
49 | static func + (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
50 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
51 | }
52 | }
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:80:18: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
78 |
79 | public init(integerLiteral value: RawValue) {
80 | self.init(rawValue: value)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
81 | }
82 | }
[67/73] Compiling SystemPackage Clock.swift
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:26:8: error: Unsupported Platform
24 | import ucrt
25 | #else
26 | #error("Unsupported Platform")
| `- error: Unsupported Platform
27 | #endif
28 |
/host/spi-builder-workspace/Sources/System/Internals/Constants.swift:23:8: error: Unsupported Platform
21 | import ucrt
22 | #else
23 | #error("Unsupported Platform")
| `- error: Unsupported Platform
24 | #endif
25 |
/host/spi-builder-workspace/Sources/System/Internals/Exports.swift:24:8: error: Unsupported Platform
22 | import ucrt
23 | #else
24 | #error("Unsupported Platform")
| `- error: Unsupported Platform
25 | #endif
26 |
/host/spi-builder-workspace/Sources/System/Internals/Syscalls.swift:17:8: error: Unsupported Platform
15 | import ucrt
16 | #else
17 | #error("Unsupported Platform")
| `- error: Unsupported Platform
18 | #endif
19 |
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:77:37: error: cannot find type 'tm' in scope
75 |
76 | /// The C `tm` type
77 | public typealias TimeComponents = tm
| `- error: cannot find type 'tm' in scope
78 |
79 | /// The C `timeval` type
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:71:30: error: cannot find type 'clockid_t' in scope
69 |
70 | /// The C `clockid_t` type
71 | public typealias ClockID = clockid_t
| `- error: cannot find type 'clockid_t' in scope
72 |
73 | /// The C `time_t` type
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Decodable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'Decodable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: cannot automatically synthesize 'Decodable' because 'RawValue' does not conform to 'Decodable'
22 |
23 | @_alwaysEmitIntoClient
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Hashable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'Hashable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Clock' to 'Hashable'
22 |
23 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Encodable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'Encodable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: cannot automatically synthesize 'Encodable' because 'RawValue' does not conform to 'Encodable'
22 |
23 | @_alwaysEmitIntoClient
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'RawRepresentable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'RawRepresentable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Equatable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'Clock' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Clock' to 'Equatable'
22 |
23 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'Clock' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'Clock' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'Clock.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Clock.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Clock' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Clock' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Clock' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Clock' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Clock' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Clock' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Clock' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Clock' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Clock' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Clock' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Clock' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Clock' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Clock' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Clock' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Clock, Clock) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Clock, Clock) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:83:46: error: cannot find type 'timespec' in scope
81 |
82 | /// The C `timespec` type
83 | public typealias TimeIntervalNanoseconds = timespec
| `- error: cannot find type 'timespec' in scope
84 |
85 | #if os(OSX) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Decodable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'Decodable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: cannot automatically synthesize 'Decodable' because 'RawValue' does not conform to 'Decodable'
22 |
23 | @_alwaysEmitIntoClient
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:37:14: error: no exact matches in call to initializer
35 | self.init(rawValue: raw.rawValue)
36 | #else
37 | self.init(rawValue: raw)
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
38 | #endif
39 | }
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:94:17: error: no exact matches in call to initializer
92 | return nothingOrErrno(retryOnInterrupt: retryOnInterrupt) {
93 | function(_rawValue, &time)
94 | }.map { TimeInterval.Nanoseconds(time) }
| `- error: no exact matches in call to initializer
95 | }
96 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:48:5: note: incorrect labels for candidate (have: '(_:)', expected: '(seconds:)')
46 | public extension TimeInterval.Nanoseconds {
47 |
48 | init(seconds: Double) {
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(seconds:)')
49 | let (integerValue, decimalValue) = system_modf(seconds)
50 | let nanoseconds = decimalValue * 1_000_000_000.0
SystemPackage.TimeInterval.Nanoseconds.init:3:8: note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
1 | struct TimeInterval {
2 | struct Nanoseconds {
3 | public init(from decoder: any Decoder) throws }
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
4 | }
5 |
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:150:34: error: no exact matches in call to initializer
148 | /// System-wide realtime clock. Setting this clock requires appropriate privileges.
149 | @_alwaysEmitIntoClient
150 | static var realtime: Clock { Clock(_CLOCK_REALTIME) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
151 |
152 | /// Clock that cannot be set and represents monotonic time since some unspecified starting point.
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:154:35: error: no exact matches in call to initializer
152 | /// Clock that cannot be set and represents monotonic time since some unspecified starting point.
153 | @_alwaysEmitIntoClient
154 | static var monotonic: Clock { Clock(_CLOCK_MONOTONIC) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
155 |
156 | /// High-resolution per-process timer from the CPU.
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:158:40: error: no exact matches in call to initializer
156 | /// High-resolution per-process timer from the CPU.
157 | @_alwaysEmitIntoClient
158 | static var processCPUTime: Clock { Clock(_CLOCK_PROCESS_CPUTIME_ID) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
159 |
160 | /// Thread-specific CPU-time clock.
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:162:39: error: no exact matches in call to initializer
160 | /// Thread-specific CPU-time clock.
161 | @_alwaysEmitIntoClient
162 | static var threadCPUTime: Clock { Clock(_CLOCK_THREAD_CPUTIME_ID) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
163 |
164 | /// Monotonic Raw
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:166:38: error: no exact matches in call to initializer
164 | /// Monotonic Raw
165 | @_alwaysEmitIntoClient
166 | static var monotonicRaw: Clock { Clock(_CLOCK_MONOTONIC_RAW) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
167 |
168 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:74:27: error: cannot find type 'time_t' in scope
72 |
73 | /// The C `time_t` type
74 | public typealias Time = time_t
| `- error: cannot find type 'time_t' in scope
75 |
76 | /// The C `tm` type
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:18:40: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
16 | public var rawValue: CInterop.Microseconds
17 |
18 | public init(rawValue: CInterop.Microseconds) {
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
19 | self.rawValue = rawValue
20 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:16:39: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
15 |
16 | public var rawValue: CInterop.Microseconds
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Hashable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Hashable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Time.Microseconds' to 'Hashable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Encodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Encodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.Microseconds' does not conform to 'Encodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
15 |
16 | public var rawValue: CInterop.Microseconds
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Equatable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'Time.Microseconds' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Time.Microseconds' to 'Equatable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'Time.Microseconds' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'Time.Microseconds' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'Time.Microseconds.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Time.Microseconds.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Time.Microseconds' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Time.Microseconds' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Time.Microseconds, Time.Microseconds) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Time.Microseconds, Time.Microseconds) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:41:1: error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
39 | // MARK: - ExpressibleByIntegerLiteral
40 |
41 | extension Time.Microseconds: ExpressibleByIntegerLiteral {
| |- error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
| `- note: add stubs for conformance
42 |
43 | public init(integerLiteral value: RawValue) {
Swift.ExpressibleByIntegerLiteral.IntegerLiteralType:2:16: note: protocol requires nested type 'IntegerLiteralType'
1 | protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral}
| `- note: protocol requires nested type 'IntegerLiteralType'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:31:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
29 |
30 | static var min: Time.Microseconds {
31 | return .init(rawValue: .min)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
32 | }
33 |
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:31:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
29 |
30 | static var min: Time.Microseconds {
31 | return .init(rawValue: .min)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
32 | }
33 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:35:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
33 |
34 | static var max: Time.Microseconds {
35 | return .init(rawValue: .max)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
36 | }
37 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:35:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
33 |
34 | static var max: Time.Microseconds {
35 | return .init(rawValue: .max)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
36 | }
37 | }
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:44:14: error: no exact matches in call to initializer
42 |
43 | public init(integerLiteral value: RawValue) {
44 | self.init(rawValue: value)
| |- error: no exact matches in call to initializer
| |- note: found candidate with type '(Time.Microseconds) -> Time.Microseconds'
| `- note: found candidate with type '(any Decoder) throws -> Time.Microseconds'
45 | }
46 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:66:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
64 |
65 | static func - (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
66 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
67 | }
68 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:66:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
64 |
65 | static func - (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
66 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
67 | }
68 |
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:70:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
68 |
69 | static func + (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
70 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
71 | }
72 | }
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:70:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
68 |
69 | static func + (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
70 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
71 | }
72 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:68:28: error: cannot find type 'clock_t' in scope
66 |
67 | /// The C `clock_t` type
68 | public typealias Clock = clock_t
| `- error: cannot find type 'clock_t' in scope
69 |
70 | /// The C `clockid_t` type
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Decodable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Decodable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Clock' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Clock) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Hashable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Hashable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'ProcessorTime' to 'Hashable'
15 |
16 | public init(rawValue: CInterop.Clock) {
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Encodable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Encodable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.Clock' does not conform to 'Encodable'
15 |
16 | public init(rawValue: CInterop.Clock) {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
13 |
14 | public let rawValue: CInterop.Clock
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Equatable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'ProcessorTime' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
13 |
14 | public let rawValue: CInterop.Clock
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'ProcessorTime' to 'Equatable'
15 |
16 | public init(rawValue: CInterop.Clock) {
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'ProcessorTime' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'ProcessorTime' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'ProcessorTime.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'ProcessorTime.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'ProcessorTime' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'ProcessorTime' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'ProcessorTime' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'ProcessorTime' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'ProcessorTime' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'ProcessorTime' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'ProcessorTime' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(ProcessorTime, ProcessorTime) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(ProcessorTime, ProcessorTime) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:77:1: error: type 'ProcessorTime' does not conform to protocol 'ExpressibleByIntegerLiteral'
75 | // MARK: - ExpressibleByIntegerLiteral
76 |
77 | extension ProcessorTime: ExpressibleByIntegerLiteral {
| |- error: type 'ProcessorTime' does not conform to protocol 'ExpressibleByIntegerLiteral'
| `- note: add stubs for conformance
78 |
79 | public init(integerLiteral value: RawValue) {
Swift.ExpressibleByIntegerLiteral.IntegerLiteralType:2:16: note: protocol requires nested type 'IntegerLiteralType'
1 | protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral}
| `- note: protocol requires nested type 'IntegerLiteralType'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Decodable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Decodable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Clock' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Clock) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:26:21: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
24 | /// since the beginning of an implementation-defined era related to the program's execution.
25 | static var current: ProcessorTime {
26 | return .init(rawValue: system_clock())
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
27 | }
28 | }
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:33:18: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
31 |
32 | init(seconds: Double) {
33 | self.init(rawValue: .init(seconds * Double(_CLOCKS_PER_SEC)))
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
34 | }
35 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:46:21: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
44 |
45 | static func - (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
46 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
47 | }
48 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:46:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
44 |
45 | static func - (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
46 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
47 | }
48 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:50:21: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
48 |
49 | static func + (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
50 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
51 | }
52 | }
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:50:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
48 |
49 | static func + (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
50 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
51 | }
52 | }
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:80:18: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
78 |
79 | public init(integerLiteral value: RawValue) {
80 | self.init(rawValue: value)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
81 | }
82 | }
[68/73] Compiling SystemPackage Microseconds.swift
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:26:8: error: Unsupported Platform
24 | import ucrt
25 | #else
26 | #error("Unsupported Platform")
| `- error: Unsupported Platform
27 | #endif
28 |
/host/spi-builder-workspace/Sources/System/Internals/Constants.swift:23:8: error: Unsupported Platform
21 | import ucrt
22 | #else
23 | #error("Unsupported Platform")
| `- error: Unsupported Platform
24 | #endif
25 |
/host/spi-builder-workspace/Sources/System/Internals/Exports.swift:24:8: error: Unsupported Platform
22 | import ucrt
23 | #else
24 | #error("Unsupported Platform")
| `- error: Unsupported Platform
25 | #endif
26 |
/host/spi-builder-workspace/Sources/System/Internals/Syscalls.swift:17:8: error: Unsupported Platform
15 | import ucrt
16 | #else
17 | #error("Unsupported Platform")
| `- error: Unsupported Platform
18 | #endif
19 |
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:77:37: error: cannot find type 'tm' in scope
75 |
76 | /// The C `tm` type
77 | public typealias TimeComponents = tm
| `- error: cannot find type 'tm' in scope
78 |
79 | /// The C `timeval` type
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:71:30: error: cannot find type 'clockid_t' in scope
69 |
70 | /// The C `clockid_t` type
71 | public typealias ClockID = clockid_t
| `- error: cannot find type 'clockid_t' in scope
72 |
73 | /// The C `time_t` type
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Decodable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'Decodable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: cannot automatically synthesize 'Decodable' because 'RawValue' does not conform to 'Decodable'
22 |
23 | @_alwaysEmitIntoClient
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Hashable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'Hashable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Clock' to 'Hashable'
22 |
23 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Encodable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'Encodable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: cannot automatically synthesize 'Encodable' because 'RawValue' does not conform to 'Encodable'
22 |
23 | @_alwaysEmitIntoClient
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'RawRepresentable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'RawRepresentable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Equatable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'Clock' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Clock' to 'Equatable'
22 |
23 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'Clock' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'Clock' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'Clock.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Clock.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Clock' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Clock' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Clock' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Clock' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Clock' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Clock' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Clock' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Clock' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Clock' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Clock' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Clock' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Clock' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Clock' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Clock' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Clock, Clock) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Clock, Clock) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:83:46: error: cannot find type 'timespec' in scope
81 |
82 | /// The C `timespec` type
83 | public typealias TimeIntervalNanoseconds = timespec
| `- error: cannot find type 'timespec' in scope
84 |
85 | #if os(OSX) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Decodable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'Decodable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: cannot automatically synthesize 'Decodable' because 'RawValue' does not conform to 'Decodable'
22 |
23 | @_alwaysEmitIntoClient
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:37:14: error: no exact matches in call to initializer
35 | self.init(rawValue: raw.rawValue)
36 | #else
37 | self.init(rawValue: raw)
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
38 | #endif
39 | }
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:94:17: error: no exact matches in call to initializer
92 | return nothingOrErrno(retryOnInterrupt: retryOnInterrupt) {
93 | function(_rawValue, &time)
94 | }.map { TimeInterval.Nanoseconds(time) }
| `- error: no exact matches in call to initializer
95 | }
96 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:48:5: note: incorrect labels for candidate (have: '(_:)', expected: '(seconds:)')
46 | public extension TimeInterval.Nanoseconds {
47 |
48 | init(seconds: Double) {
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(seconds:)')
49 | let (integerValue, decimalValue) = system_modf(seconds)
50 | let nanoseconds = decimalValue * 1_000_000_000.0
SystemPackage.TimeInterval.Nanoseconds.init:3:8: note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
1 | struct TimeInterval {
2 | struct Nanoseconds {
3 | public init(from decoder: any Decoder) throws }
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
4 | }
5 |
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:150:34: error: no exact matches in call to initializer
148 | /// System-wide realtime clock. Setting this clock requires appropriate privileges.
149 | @_alwaysEmitIntoClient
150 | static var realtime: Clock { Clock(_CLOCK_REALTIME) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
151 |
152 | /// Clock that cannot be set and represents monotonic time since some unspecified starting point.
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:154:35: error: no exact matches in call to initializer
152 | /// Clock that cannot be set and represents monotonic time since some unspecified starting point.
153 | @_alwaysEmitIntoClient
154 | static var monotonic: Clock { Clock(_CLOCK_MONOTONIC) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
155 |
156 | /// High-resolution per-process timer from the CPU.
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:158:40: error: no exact matches in call to initializer
156 | /// High-resolution per-process timer from the CPU.
157 | @_alwaysEmitIntoClient
158 | static var processCPUTime: Clock { Clock(_CLOCK_PROCESS_CPUTIME_ID) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
159 |
160 | /// Thread-specific CPU-time clock.
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:162:39: error: no exact matches in call to initializer
160 | /// Thread-specific CPU-time clock.
161 | @_alwaysEmitIntoClient
162 | static var threadCPUTime: Clock { Clock(_CLOCK_THREAD_CPUTIME_ID) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
163 |
164 | /// Monotonic Raw
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:166:38: error: no exact matches in call to initializer
164 | /// Monotonic Raw
165 | @_alwaysEmitIntoClient
166 | static var monotonicRaw: Clock { Clock(_CLOCK_MONOTONIC_RAW) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
167 |
168 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:74:27: error: cannot find type 'time_t' in scope
72 |
73 | /// The C `time_t` type
74 | public typealias Time = time_t
| `- error: cannot find type 'time_t' in scope
75 |
76 | /// The C `tm` type
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:18:40: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
16 | public var rawValue: CInterop.Microseconds
17 |
18 | public init(rawValue: CInterop.Microseconds) {
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
19 | self.rawValue = rawValue
20 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:16:39: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
15 |
16 | public var rawValue: CInterop.Microseconds
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Hashable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Hashable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Time.Microseconds' to 'Hashable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Encodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Encodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.Microseconds' does not conform to 'Encodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
15 |
16 | public var rawValue: CInterop.Microseconds
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Equatable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'Time.Microseconds' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Time.Microseconds' to 'Equatable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'Time.Microseconds' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'Time.Microseconds' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'Time.Microseconds.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Time.Microseconds.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Time.Microseconds' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Time.Microseconds' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Time.Microseconds, Time.Microseconds) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Time.Microseconds, Time.Microseconds) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:41:1: error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
39 | // MARK: - ExpressibleByIntegerLiteral
40 |
41 | extension Time.Microseconds: ExpressibleByIntegerLiteral {
| |- error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
| `- note: add stubs for conformance
42 |
43 | public init(integerLiteral value: RawValue) {
Swift.ExpressibleByIntegerLiteral.IntegerLiteralType:2:16: note: protocol requires nested type 'IntegerLiteralType'
1 | protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral}
| `- note: protocol requires nested type 'IntegerLiteralType'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:31:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
29 |
30 | static var min: Time.Microseconds {
31 | return .init(rawValue: .min)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
32 | }
33 |
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:31:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
29 |
30 | static var min: Time.Microseconds {
31 | return .init(rawValue: .min)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
32 | }
33 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:35:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
33 |
34 | static var max: Time.Microseconds {
35 | return .init(rawValue: .max)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
36 | }
37 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:35:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
33 |
34 | static var max: Time.Microseconds {
35 | return .init(rawValue: .max)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
36 | }
37 | }
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:44:14: error: no exact matches in call to initializer
42 |
43 | public init(integerLiteral value: RawValue) {
44 | self.init(rawValue: value)
| |- error: no exact matches in call to initializer
| |- note: found candidate with type '(Time.Microseconds) -> Time.Microseconds'
| `- note: found candidate with type '(any Decoder) throws -> Time.Microseconds'
45 | }
46 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:66:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
64 |
65 | static func - (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
66 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
67 | }
68 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:66:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
64 |
65 | static func - (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
66 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
67 | }
68 |
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:70:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
68 |
69 | static func + (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
70 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
71 | }
72 | }
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:70:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
68 |
69 | static func + (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
70 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
71 | }
72 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:68:28: error: cannot find type 'clock_t' in scope
66 |
67 | /// The C `clock_t` type
68 | public typealias Clock = clock_t
| `- error: cannot find type 'clock_t' in scope
69 |
70 | /// The C `clockid_t` type
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Decodable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Decodable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Clock' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Clock) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Hashable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Hashable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'ProcessorTime' to 'Hashable'
15 |
16 | public init(rawValue: CInterop.Clock) {
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Encodable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Encodable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.Clock' does not conform to 'Encodable'
15 |
16 | public init(rawValue: CInterop.Clock) {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
13 |
14 | public let rawValue: CInterop.Clock
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Equatable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'ProcessorTime' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
13 |
14 | public let rawValue: CInterop.Clock
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'ProcessorTime' to 'Equatable'
15 |
16 | public init(rawValue: CInterop.Clock) {
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'ProcessorTime' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'ProcessorTime' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'ProcessorTime.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'ProcessorTime.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'ProcessorTime' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'ProcessorTime' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'ProcessorTime' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'ProcessorTime' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'ProcessorTime' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'ProcessorTime' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'ProcessorTime' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(ProcessorTime, ProcessorTime) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(ProcessorTime, ProcessorTime) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:77:1: error: type 'ProcessorTime' does not conform to protocol 'ExpressibleByIntegerLiteral'
75 | // MARK: - ExpressibleByIntegerLiteral
76 |
77 | extension ProcessorTime: ExpressibleByIntegerLiteral {
| |- error: type 'ProcessorTime' does not conform to protocol 'ExpressibleByIntegerLiteral'
| `- note: add stubs for conformance
78 |
79 | public init(integerLiteral value: RawValue) {
Swift.ExpressibleByIntegerLiteral.IntegerLiteralType:2:16: note: protocol requires nested type 'IntegerLiteralType'
1 | protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral}
| `- note: protocol requires nested type 'IntegerLiteralType'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Decodable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Decodable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Clock' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Clock) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:26:21: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
24 | /// since the beginning of an implementation-defined era related to the program's execution.
25 | static var current: ProcessorTime {
26 | return .init(rawValue: system_clock())
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
27 | }
28 | }
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:33:18: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
31 |
32 | init(seconds: Double) {
33 | self.init(rawValue: .init(seconds * Double(_CLOCKS_PER_SEC)))
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
34 | }
35 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:46:21: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
44 |
45 | static func - (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
46 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
47 | }
48 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:46:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
44 |
45 | static func - (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
46 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
47 | }
48 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:50:21: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
48 |
49 | static func + (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
50 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
51 | }
52 | }
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:50:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
48 |
49 | static func + (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
50 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
51 | }
52 | }
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:80:18: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
78 |
79 | public init(integerLiteral value: RawValue) {
80 | self.init(rawValue: value)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
81 | }
82 | }
[69/73] Compiling SystemPackage Nanoseconds.swift
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:26:8: error: Unsupported Platform
24 | import ucrt
25 | #else
26 | #error("Unsupported Platform")
| `- error: Unsupported Platform
27 | #endif
28 |
/host/spi-builder-workspace/Sources/System/Internals/Constants.swift:23:8: error: Unsupported Platform
21 | import ucrt
22 | #else
23 | #error("Unsupported Platform")
| `- error: Unsupported Platform
24 | #endif
25 |
/host/spi-builder-workspace/Sources/System/Internals/Exports.swift:24:8: error: Unsupported Platform
22 | import ucrt
23 | #else
24 | #error("Unsupported Platform")
| `- error: Unsupported Platform
25 | #endif
26 |
/host/spi-builder-workspace/Sources/System/Internals/Syscalls.swift:17:8: error: Unsupported Platform
15 | import ucrt
16 | #else
17 | #error("Unsupported Platform")
| `- error: Unsupported Platform
18 | #endif
19 |
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:77:37: error: cannot find type 'tm' in scope
75 |
76 | /// The C `tm` type
77 | public typealias TimeComponents = tm
| `- error: cannot find type 'tm' in scope
78 |
79 | /// The C `timeval` type
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:71:30: error: cannot find type 'clockid_t' in scope
69 |
70 | /// The C `clockid_t` type
71 | public typealias ClockID = clockid_t
| `- error: cannot find type 'clockid_t' in scope
72 |
73 | /// The C `time_t` type
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Decodable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'Decodable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: cannot automatically synthesize 'Decodable' because 'RawValue' does not conform to 'Decodable'
22 |
23 | @_alwaysEmitIntoClient
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Hashable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'Hashable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Clock' to 'Hashable'
22 |
23 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Encodable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'Encodable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: cannot automatically synthesize 'Encodable' because 'RawValue' does not conform to 'Encodable'
22 |
23 | @_alwaysEmitIntoClient
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'RawRepresentable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'RawRepresentable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Equatable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'Clock' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Clock' to 'Equatable'
22 |
23 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'Clock' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'Clock' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'Clock.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Clock.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Clock' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Clock' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Clock' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Clock' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Clock' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Clock' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Clock' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Clock' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Clock' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Clock' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Clock' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Clock' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Clock' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Clock' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Clock, Clock) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Clock, Clock) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:83:46: error: cannot find type 'timespec' in scope
81 |
82 | /// The C `timespec` type
83 | public typealias TimeIntervalNanoseconds = timespec
| `- error: cannot find type 'timespec' in scope
84 |
85 | #if os(OSX) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Decodable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'Decodable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: cannot automatically synthesize 'Decodable' because 'RawValue' does not conform to 'Decodable'
22 |
23 | @_alwaysEmitIntoClient
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:37:14: error: no exact matches in call to initializer
35 | self.init(rawValue: raw.rawValue)
36 | #else
37 | self.init(rawValue: raw)
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
38 | #endif
39 | }
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:94:17: error: no exact matches in call to initializer
92 | return nothingOrErrno(retryOnInterrupt: retryOnInterrupt) {
93 | function(_rawValue, &time)
94 | }.map { TimeInterval.Nanoseconds(time) }
| `- error: no exact matches in call to initializer
95 | }
96 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:48:5: note: incorrect labels for candidate (have: '(_:)', expected: '(seconds:)')
46 | public extension TimeInterval.Nanoseconds {
47 |
48 | init(seconds: Double) {
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(seconds:)')
49 | let (integerValue, decimalValue) = system_modf(seconds)
50 | let nanoseconds = decimalValue * 1_000_000_000.0
SystemPackage.TimeInterval.Nanoseconds.init:3:8: note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
1 | struct TimeInterval {
2 | struct Nanoseconds {
3 | public init(from decoder: any Decoder) throws }
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
4 | }
5 |
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:150:34: error: no exact matches in call to initializer
148 | /// System-wide realtime clock. Setting this clock requires appropriate privileges.
149 | @_alwaysEmitIntoClient
150 | static var realtime: Clock { Clock(_CLOCK_REALTIME) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
151 |
152 | /// Clock that cannot be set and represents monotonic time since some unspecified starting point.
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:154:35: error: no exact matches in call to initializer
152 | /// Clock that cannot be set and represents monotonic time since some unspecified starting point.
153 | @_alwaysEmitIntoClient
154 | static var monotonic: Clock { Clock(_CLOCK_MONOTONIC) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
155 |
156 | /// High-resolution per-process timer from the CPU.
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:158:40: error: no exact matches in call to initializer
156 | /// High-resolution per-process timer from the CPU.
157 | @_alwaysEmitIntoClient
158 | static var processCPUTime: Clock { Clock(_CLOCK_PROCESS_CPUTIME_ID) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
159 |
160 | /// Thread-specific CPU-time clock.
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:162:39: error: no exact matches in call to initializer
160 | /// Thread-specific CPU-time clock.
161 | @_alwaysEmitIntoClient
162 | static var threadCPUTime: Clock { Clock(_CLOCK_THREAD_CPUTIME_ID) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
163 |
164 | /// Monotonic Raw
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:166:38: error: no exact matches in call to initializer
164 | /// Monotonic Raw
165 | @_alwaysEmitIntoClient
166 | static var monotonicRaw: Clock { Clock(_CLOCK_MONOTONIC_RAW) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
167 |
168 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:74:27: error: cannot find type 'time_t' in scope
72 |
73 | /// The C `time_t` type
74 | public typealias Time = time_t
| `- error: cannot find type 'time_t' in scope
75 |
76 | /// The C `tm` type
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:18:40: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
16 | public var rawValue: CInterop.Microseconds
17 |
18 | public init(rawValue: CInterop.Microseconds) {
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
19 | self.rawValue = rawValue
20 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:16:39: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
15 |
16 | public var rawValue: CInterop.Microseconds
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Hashable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Hashable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Time.Microseconds' to 'Hashable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Encodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Encodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.Microseconds' does not conform to 'Encodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
15 |
16 | public var rawValue: CInterop.Microseconds
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Equatable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'Time.Microseconds' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Time.Microseconds' to 'Equatable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'Time.Microseconds' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'Time.Microseconds' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'Time.Microseconds.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Time.Microseconds.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Time.Microseconds' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Time.Microseconds' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Time.Microseconds, Time.Microseconds) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Time.Microseconds, Time.Microseconds) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:41:1: error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
39 | // MARK: - ExpressibleByIntegerLiteral
40 |
41 | extension Time.Microseconds: ExpressibleByIntegerLiteral {
| |- error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
| `- note: add stubs for conformance
42 |
43 | public init(integerLiteral value: RawValue) {
Swift.ExpressibleByIntegerLiteral.IntegerLiteralType:2:16: note: protocol requires nested type 'IntegerLiteralType'
1 | protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral}
| `- note: protocol requires nested type 'IntegerLiteralType'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:31:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
29 |
30 | static var min: Time.Microseconds {
31 | return .init(rawValue: .min)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
32 | }
33 |
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:31:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
29 |
30 | static var min: Time.Microseconds {
31 | return .init(rawValue: .min)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
32 | }
33 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:35:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
33 |
34 | static var max: Time.Microseconds {
35 | return .init(rawValue: .max)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
36 | }
37 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:35:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
33 |
34 | static var max: Time.Microseconds {
35 | return .init(rawValue: .max)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
36 | }
37 | }
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:44:14: error: no exact matches in call to initializer
42 |
43 | public init(integerLiteral value: RawValue) {
44 | self.init(rawValue: value)
| |- error: no exact matches in call to initializer
| |- note: found candidate with type '(Time.Microseconds) -> Time.Microseconds'
| `- note: found candidate with type '(any Decoder) throws -> Time.Microseconds'
45 | }
46 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:66:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
64 |
65 | static func - (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
66 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
67 | }
68 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:66:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
64 |
65 | static func - (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
66 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
67 | }
68 |
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:70:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
68 |
69 | static func + (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
70 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
71 | }
72 | }
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:70:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
68 |
69 | static func + (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
70 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
71 | }
72 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:68:28: error: cannot find type 'clock_t' in scope
66 |
67 | /// The C `clock_t` type
68 | public typealias Clock = clock_t
| `- error: cannot find type 'clock_t' in scope
69 |
70 | /// The C `clockid_t` type
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Decodable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Decodable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Clock' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Clock) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Hashable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Hashable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'ProcessorTime' to 'Hashable'
15 |
16 | public init(rawValue: CInterop.Clock) {
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Encodable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Encodable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.Clock' does not conform to 'Encodable'
15 |
16 | public init(rawValue: CInterop.Clock) {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
13 |
14 | public let rawValue: CInterop.Clock
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Equatable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'ProcessorTime' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
13 |
14 | public let rawValue: CInterop.Clock
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'ProcessorTime' to 'Equatable'
15 |
16 | public init(rawValue: CInterop.Clock) {
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'ProcessorTime' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'ProcessorTime' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'ProcessorTime.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'ProcessorTime.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'ProcessorTime' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'ProcessorTime' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'ProcessorTime' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'ProcessorTime' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'ProcessorTime' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'ProcessorTime' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'ProcessorTime' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(ProcessorTime, ProcessorTime) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(ProcessorTime, ProcessorTime) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:77:1: error: type 'ProcessorTime' does not conform to protocol 'ExpressibleByIntegerLiteral'
75 | // MARK: - ExpressibleByIntegerLiteral
76 |
77 | extension ProcessorTime: ExpressibleByIntegerLiteral {
| |- error: type 'ProcessorTime' does not conform to protocol 'ExpressibleByIntegerLiteral'
| `- note: add stubs for conformance
78 |
79 | public init(integerLiteral value: RawValue) {
Swift.ExpressibleByIntegerLiteral.IntegerLiteralType:2:16: note: protocol requires nested type 'IntegerLiteralType'
1 | protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral}
| `- note: protocol requires nested type 'IntegerLiteralType'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Decodable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Decodable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Clock' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Clock) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:26:21: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
24 | /// since the beginning of an implementation-defined era related to the program's execution.
25 | static var current: ProcessorTime {
26 | return .init(rawValue: system_clock())
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
27 | }
28 | }
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:33:18: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
31 |
32 | init(seconds: Double) {
33 | self.init(rawValue: .init(seconds * Double(_CLOCKS_PER_SEC)))
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
34 | }
35 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:46:21: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
44 |
45 | static func - (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
46 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
47 | }
48 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:46:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
44 |
45 | static func - (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
46 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
47 | }
48 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:50:21: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
48 |
49 | static func + (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
50 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
51 | }
52 | }
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:50:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
48 |
49 | static func + (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
50 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
51 | }
52 | }
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:80:18: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
78 |
79 | public init(integerLiteral value: RawValue) {
80 | self.init(rawValue: value)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
81 | }
82 | }
[70/73] Compiling SystemPackage ProcessorTime.swift
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:26:8: error: Unsupported Platform
24 | import ucrt
25 | #else
26 | #error("Unsupported Platform")
| `- error: Unsupported Platform
27 | #endif
28 |
/host/spi-builder-workspace/Sources/System/Internals/Constants.swift:23:8: error: Unsupported Platform
21 | import ucrt
22 | #else
23 | #error("Unsupported Platform")
| `- error: Unsupported Platform
24 | #endif
25 |
/host/spi-builder-workspace/Sources/System/Internals/Exports.swift:24:8: error: Unsupported Platform
22 | import ucrt
23 | #else
24 | #error("Unsupported Platform")
| `- error: Unsupported Platform
25 | #endif
26 |
/host/spi-builder-workspace/Sources/System/Internals/Syscalls.swift:17:8: error: Unsupported Platform
15 | import ucrt
16 | #else
17 | #error("Unsupported Platform")
| `- error: Unsupported Platform
18 | #endif
19 |
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:77:37: error: cannot find type 'tm' in scope
75 |
76 | /// The C `tm` type
77 | public typealias TimeComponents = tm
| `- error: cannot find type 'tm' in scope
78 |
79 | /// The C `timeval` type
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:71:30: error: cannot find type 'clockid_t' in scope
69 |
70 | /// The C `clockid_t` type
71 | public typealias ClockID = clockid_t
| `- error: cannot find type 'clockid_t' in scope
72 |
73 | /// The C `time_t` type
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Decodable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'Decodable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: cannot automatically synthesize 'Decodable' because 'RawValue' does not conform to 'Decodable'
22 |
23 | @_alwaysEmitIntoClient
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Hashable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'Hashable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Clock' to 'Hashable'
22 |
23 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Encodable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'Encodable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: cannot automatically synthesize 'Encodable' because 'RawValue' does not conform to 'Encodable'
22 |
23 | @_alwaysEmitIntoClient
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'RawRepresentable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'RawRepresentable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Equatable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'Clock' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Clock' to 'Equatable'
22 |
23 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'Clock' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'Clock' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'Clock.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Clock.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Clock' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Clock' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Clock' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Clock' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Clock' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Clock' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Clock' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Clock' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Clock' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Clock' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Clock' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Clock' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Clock' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Clock' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Clock, Clock) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Clock, Clock) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:83:46: error: cannot find type 'timespec' in scope
81 |
82 | /// The C `timespec` type
83 | public typealias TimeIntervalNanoseconds = timespec
| `- error: cannot find type 'timespec' in scope
84 |
85 | #if os(OSX) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:13:15: error: type 'Clock' does not conform to protocol 'Decodable'
11 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
12 | @frozen
13 | public struct Clock: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Clock' does not conform to protocol 'Decodable'
14 |
15 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
:
19 | #endif
20 |
21 | public let rawValue: RawValue
| `- note: cannot automatically synthesize 'Decodable' because 'RawValue' does not conform to 'Decodable'
22 |
23 | @_alwaysEmitIntoClient
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:37:14: error: no exact matches in call to initializer
35 | self.init(rawValue: raw.rawValue)
36 | #else
37 | self.init(rawValue: raw)
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
38 | #endif
39 | }
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:94:17: error: no exact matches in call to initializer
92 | return nothingOrErrno(retryOnInterrupt: retryOnInterrupt) {
93 | function(_rawValue, &time)
94 | }.map { TimeInterval.Nanoseconds(time) }
| `- error: no exact matches in call to initializer
95 | }
96 |
/host/spi-builder-workspace/Sources/System/Time/TimeIntervalNanoseconds.swift:48:5: note: incorrect labels for candidate (have: '(_:)', expected: '(seconds:)')
46 | public extension TimeInterval.Nanoseconds {
47 |
48 | init(seconds: Double) {
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(seconds:)')
49 | let (integerValue, decimalValue) = system_modf(seconds)
50 | let nanoseconds = decimalValue * 1_000_000_000.0
SystemPackage.TimeInterval.Nanoseconds.init:3:8: note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
1 | struct TimeInterval {
2 | struct Nanoseconds {
3 | public init(from decoder: any Decoder) throws }
| `- note: incorrect labels for candidate (have: '(_:)', expected: '(from:)')
4 | }
5 |
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:150:34: error: no exact matches in call to initializer
148 | /// System-wide realtime clock. Setting this clock requires appropriate privileges.
149 | @_alwaysEmitIntoClient
150 | static var realtime: Clock { Clock(_CLOCK_REALTIME) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
151 |
152 | /// Clock that cannot be set and represents monotonic time since some unspecified starting point.
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:154:35: error: no exact matches in call to initializer
152 | /// Clock that cannot be set and represents monotonic time since some unspecified starting point.
153 | @_alwaysEmitIntoClient
154 | static var monotonic: Clock { Clock(_CLOCK_MONOTONIC) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
155 |
156 | /// High-resolution per-process timer from the CPU.
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:158:40: error: no exact matches in call to initializer
156 | /// High-resolution per-process timer from the CPU.
157 | @_alwaysEmitIntoClient
158 | static var processCPUTime: Clock { Clock(_CLOCK_PROCESS_CPUTIME_ID) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
159 |
160 | /// Thread-specific CPU-time clock.
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:162:39: error: no exact matches in call to initializer
160 | /// Thread-specific CPU-time clock.
161 | @_alwaysEmitIntoClient
162 | static var threadCPUTime: Clock { Clock(_CLOCK_THREAD_CPUTIME_ID) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
163 |
164 | /// Monotonic Raw
/host/spi-builder-workspace/Sources/System/Time/Clock.swift:166:38: error: no exact matches in call to initializer
164 | /// Monotonic Raw
165 | @_alwaysEmitIntoClient
166 | static var monotonicRaw: Clock { Clock(_CLOCK_MONOTONIC_RAW) }
| |- error: no exact matches in call to initializer
| `- note: found candidate with type '(any Decoder) throws -> Clock'
167 |
168 | #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:74:27: error: cannot find type 'time_t' in scope
72 |
73 | /// The C `time_t` type
74 | public typealias Time = time_t
| `- error: cannot find type 'time_t' in scope
75 |
76 | /// The C `tm` type
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:18:40: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
16 | public var rawValue: CInterop.Microseconds
17 |
18 | public init(rawValue: CInterop.Microseconds) {
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
19 | self.rawValue = rawValue
20 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:16:39: error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
15 |
16 | public var rawValue: CInterop.Microseconds
| `- error: 'Microseconds' is not a member type of enum 'SystemPackage.CInterop'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:31:13: note: 'CInterop' declared here
29 | /// A namespace for C and platform types
30 | /*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
31 | public enum CInterop {
| `- note: 'CInterop' declared here
32 | #if os(Windows)
33 | public typealias Mode = CInt
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Hashable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Hashable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Time.Microseconds' to 'Hashable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Encodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Encodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.Microseconds' does not conform to 'Encodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'RawRepresentable'
15 |
16 | public var rawValue: CInterop.Microseconds
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Equatable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'Time.Microseconds' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Time.Microseconds' to 'Equatable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'Time.Microseconds' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'Time.Microseconds' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'Time.Microseconds.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'Time.Microseconds.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'Time.Microseconds' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Time.Microseconds' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Time.Microseconds' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Time.Microseconds' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'Time.Microseconds' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Time.Microseconds, Time.Microseconds) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(Time.Microseconds, Time.Microseconds) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:41:1: error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
39 | // MARK: - ExpressibleByIntegerLiteral
40 |
41 | extension Time.Microseconds: ExpressibleByIntegerLiteral {
| |- error: type 'Time.Microseconds' does not conform to protocol 'ExpressibleByIntegerLiteral'
| `- note: add stubs for conformance
42 |
43 | public init(integerLiteral value: RawValue) {
Swift.ExpressibleByIntegerLiteral.IntegerLiteralType:2:16: note: protocol requires nested type 'IntegerLiteralType'
1 | protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral}
| `- note: protocol requires nested type 'IntegerLiteralType'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:14:12: error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
12 | /// Microseconds
13 | @frozen
14 | struct Microseconds: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'Time.Microseconds' does not conform to protocol 'Decodable'
15 |
16 | public var rawValue: CInterop.Microseconds
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Microseconds' does not conform to 'Decodable'
17 |
18 | public init(rawValue: CInterop.Microseconds) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:31:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
29 |
30 | static var min: Time.Microseconds {
31 | return .init(rawValue: .min)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
32 | }
33 |
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:31:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
29 |
30 | static var min: Time.Microseconds {
31 | return .init(rawValue: .min)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
32 | }
33 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:35:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
33 |
34 | static var max: Time.Microseconds {
35 | return .init(rawValue: .max)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
36 | }
37 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:35:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
33 |
34 | static var max: Time.Microseconds {
35 | return .init(rawValue: .max)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
36 | }
37 | }
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:44:14: error: no exact matches in call to initializer
42 |
43 | public init(integerLiteral value: RawValue) {
44 | self.init(rawValue: value)
| |- error: no exact matches in call to initializer
| |- note: found candidate with type '(Time.Microseconds) -> Time.Microseconds'
| `- note: found candidate with type '(any Decoder) throws -> Time.Microseconds'
45 | }
46 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:66:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
64 |
65 | static func - (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
66 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
67 | }
68 |
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:66:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
64 |
65 | static func - (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
66 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
67 | }
68 |
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:70:17: error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
68 |
69 | static func + (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
70 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: contextual member reference to initializer 'init(integerLiteral:)' requires 'Self' constraint in the protocol extension
71 | }
72 | }
Swift.ExpressibleByIntegerLiteral:1:11: note: missing same-type requirement on 'Self'
1 | extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
| `- note: missing same-type requirement on 'Self'
2 | public init(integerLiteral value: Self)
3 | }
/host/spi-builder-workspace/Sources/System/Time/Microseconds.swift:70:21: error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
68 |
69 | static func + (lhs: Time.Microseconds, rhs: Time.Microseconds) -> Time.Microseconds {
70 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'integerLiteral:')
71 | }
72 | }
/host/spi-builder-workspace/Sources/System/Internals/CInterop.swift:68:28: error: cannot find type 'clock_t' in scope
66 |
67 | /// The C `clock_t` type
68 | public typealias Clock = clock_t
| `- error: cannot find type 'clock_t' in scope
69 |
70 | /// The C `clockid_t` type
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Decodable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Decodable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Clock' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Clock) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Hashable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Hashable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'ProcessorTime' to 'Hashable'
15 |
16 | public init(rawValue: CInterop.Clock) {
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Encodable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Encodable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: cannot automatically synthesize 'Encodable' because 'CInterop.Clock' does not conform to 'Encodable'
15 |
16 | public init(rawValue: CInterop.Clock) {
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'RawRepresentable'
13 |
14 | public let rawValue: CInterop.Clock
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Equatable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| |- error: type 'ProcessorTime' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
13 |
14 | public let rawValue: CInterop.Clock
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'ProcessorTime' to 'Equatable'
15 |
16 | public init(rawValue: CInterop.Clock) {
/host/spi-builder-workspace/Sources/System/FilePath/FilePathComponents.swift:169:22: note: candidate would match if 'ProcessorTime' conformed to '_StrSlice'
167 | }
168 | extension _StrSlice {
169 | public static func == (lhs: Self, rhs: Self) -> Bool {
| `- note: candidate would match if 'ProcessorTime' conformed to '_StrSlice'
170 | lhs._slice.elementsEqual(rhs._slice)
171 | }
Swift.==:1:24: note: candidate would match if 'ProcessorTime.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'ProcessorTime.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'ProcessorTime' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'ProcessorTime' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'ProcessorTime' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
| `- note: candidate would match if 'ProcessorTime' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'ProcessorTime' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'ProcessorTime' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
| `- note: candidate would match if 'ProcessorTime' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'ProcessorTime' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'ProcessorTime' conformed to 'SIMD'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(ProcessorTime, ProcessorTime) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(ProcessorTime, ProcessorTime) -> Bool'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:77:1: error: type 'ProcessorTime' does not conform to protocol 'ExpressibleByIntegerLiteral'
75 | // MARK: - ExpressibleByIntegerLiteral
76 |
77 | extension ProcessorTime: ExpressibleByIntegerLiteral {
| |- error: type 'ProcessorTime' does not conform to protocol 'ExpressibleByIntegerLiteral'
| `- note: add stubs for conformance
78 |
79 | public init(integerLiteral value: RawValue) {
Swift.ExpressibleByIntegerLiteral.IntegerLiteralType:2:16: note: protocol requires nested type 'IntegerLiteralType'
1 | protocol ExpressibleByIntegerLiteral {
2 | associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral}
| `- note: protocol requires nested type 'IntegerLiteralType'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:12:15: error: type 'ProcessorTime' does not conform to protocol 'Decodable'
10 | /// Type capable of representing the processor time used by a process.
11 | @frozen
12 | public struct ProcessorTime: RawRepresentable, Equatable, Hashable, Codable {
| `- error: type 'ProcessorTime' does not conform to protocol 'Decodable'
13 |
14 | public let rawValue: CInterop.Clock
| `- note: cannot automatically synthesize 'Decodable' because 'CInterop.Clock' does not conform to 'Decodable'
15 |
16 | public init(rawValue: CInterop.Clock) {
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:26:21: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
24 | /// since the beginning of an implementation-defined era related to the program's execution.
25 | static var current: ProcessorTime {
26 | return .init(rawValue: system_clock())
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
27 | }
28 | }
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:33:18: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
31 |
32 | init(seconds: Double) {
33 | self.init(rawValue: .init(seconds * Double(_CLOCKS_PER_SEC)))
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
34 | }
35 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:46:21: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
44 |
45 | static func - (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
46 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
47 | }
48 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:46:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
44 |
45 | static func - (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
46 | return .init(rawValue: lhs.rawValue - rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
47 | }
48 |
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:50:21: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
48 |
49 | static func + (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
50 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
51 | }
52 | }
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:50:45: error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
48 |
49 | static func + (lhs: ProcessorTime, rhs: ProcessorTime) -> ProcessorTime {
50 | return .init(rawValue: lhs.rawValue + rhs.rawValue)
| `- error: cannot convert value of type 'Time.Microseconds' to expected argument type 'Double'
51 | }
52 | }
/host/spi-builder-workspace/Sources/System/Time/ProcessorTime.swift:80:18: error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
78 |
79 | public init(integerLiteral value: RawValue) {
80 | self.init(rawValue: value)
| `- error: incorrect argument label in call (have 'rawValue:', expected 'seconds:')
81 | }
82 | }
BUILD FAILURE 6.3 wasm