The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-posix, reference main (6feac9), with Swift 6.3 for Wasm on 19 Aug 2026 09:07:54 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1

Build Log

110 |         public static let IGNPAR = InputFlags(rawValue: _IGNPAR)
111 |         public static let PARMRK = InputFlags(rawValue: _PARMRK)
112 |         public static let INPCK = InputFlags(rawValue: _INPCK)
    |                                             `- error: extraneous argument label 'rawValue:' in call
113 |         public static let ISTRIP = InputFlags(rawValue: _ISTRIP)
114 |         public static let INLCR = InputFlags(rawValue: _INLCR)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:113:46: error: extraneous argument label 'rawValue:' in call
111 |         public static let PARMRK = InputFlags(rawValue: _PARMRK)
112 |         public static let INPCK = InputFlags(rawValue: _INPCK)
113 |         public static let ISTRIP = InputFlags(rawValue: _ISTRIP)
    |                                              `- error: extraneous argument label 'rawValue:' in call
114 |         public static let INLCR = InputFlags(rawValue: _INLCR)
115 |         public static let IGNCR = InputFlags(rawValue: _IGNCR)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:114:45: error: extraneous argument label 'rawValue:' in call
112 |         public static let INPCK = InputFlags(rawValue: _INPCK)
113 |         public static let ISTRIP = InputFlags(rawValue: _ISTRIP)
114 |         public static let INLCR = InputFlags(rawValue: _INLCR)
    |                                             `- error: extraneous argument label 'rawValue:' in call
115 |         public static let IGNCR = InputFlags(rawValue: _IGNCR)
116 |         public static let ICRNL = InputFlags(rawValue: _ICRNL)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:115:45: error: extraneous argument label 'rawValue:' in call
113 |         public static let ISTRIP = InputFlags(rawValue: _ISTRIP)
114 |         public static let INLCR = InputFlags(rawValue: _INLCR)
115 |         public static let IGNCR = InputFlags(rawValue: _IGNCR)
    |                                             `- error: extraneous argument label 'rawValue:' in call
116 |         public static let ICRNL = InputFlags(rawValue: _ICRNL)
117 |         public static let IXON = InputFlags(rawValue: _IXON)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:116:45: error: extraneous argument label 'rawValue:' in call
114 |         public static let INLCR = InputFlags(rawValue: _INLCR)
115 |         public static let IGNCR = InputFlags(rawValue: _IGNCR)
116 |         public static let ICRNL = InputFlags(rawValue: _ICRNL)
    |                                             `- error: extraneous argument label 'rawValue:' in call
117 |         public static let IXON = InputFlags(rawValue: _IXON)
118 |         public static let IXOFF = InputFlags(rawValue: _IXOFF)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:117:44: error: extraneous argument label 'rawValue:' in call
115 |         public static let IGNCR = InputFlags(rawValue: _IGNCR)
116 |         public static let ICRNL = InputFlags(rawValue: _ICRNL)
117 |         public static let IXON = InputFlags(rawValue: _IXON)
    |                                            `- error: extraneous argument label 'rawValue:' in call
118 |         public static let IXOFF = InputFlags(rawValue: _IXOFF)
119 |         public static let IXANY = InputFlags(rawValue: _IXANY)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:118:45: error: extraneous argument label 'rawValue:' in call
116 |         public static let ICRNL = InputFlags(rawValue: _ICRNL)
117 |         public static let IXON = InputFlags(rawValue: _IXON)
118 |         public static let IXOFF = InputFlags(rawValue: _IXOFF)
    |                                             `- error: extraneous argument label 'rawValue:' in call
119 |         public static let IXANY = InputFlags(rawValue: _IXANY)
120 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:119:45: error: extraneous argument label 'rawValue:' in call
117 |         public static let IXON = InputFlags(rawValue: _IXON)
118 |         public static let IXOFF = InputFlags(rawValue: _IXOFF)
119 |         public static let IXANY = InputFlags(rawValue: _IXANY)
    |                                             `- error: extraneous argument label 'rawValue:' in call
120 |     }
121 |     /// `c_oflag`, as an OptionSet.
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:105:19: error: type 'Termios.InputFlags' does not conform to protocol 'SetAlgebra'
103 |
104 |     /// `c_iflag`, as an OptionSet.
105 |     public struct InputFlags: OptionSet, Sendable {
    |                   `- error: type 'Termios.InputFlags' does not conform to protocol 'SetAlgebra'
106 |         public var rawValue: tcflag_t
107 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
Swift.OptionSet.init:2:19: note: candidate would match if 'Termios.InputFlags.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public init()}
  |                   `- note: candidate would match if 'Termios.InputFlags.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formUnion:2:33: note: candidate would match if 'Termios.InputFlags.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formUnion(_ other: Self)}
  |                                 `- note: candidate would match if 'Termios.InputFlags.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formIntersection:2:33: note: candidate would match if 'Termios.InputFlags.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formIntersection(_ other: Self)}
  |                                 `- note: candidate would match if 'Termios.InputFlags.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formSymmetricDifference:2:33: note: candidate would match if 'Termios.InputFlags.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formSymmetricDifference(_ other: Self)}
  |                                 `- note: candidate would match if 'Termios.InputFlags.RawValue' conformed to 'FixedWidthInteger'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:105:19: error: type 'Termios.InputFlags' does not conform to protocol 'RawRepresentable'
103 |
104 |     /// `c_iflag`, as an OptionSet.
105 |     public struct InputFlags: OptionSet, Sendable {
    |                   `- error: type 'Termios.InputFlags' does not conform to protocol 'RawRepresentable'
106 |         public var rawValue: tcflag_t
107 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:105:19: error: type 'Termios.InputFlags' does not conform to protocol 'Equatable'
103 |
104 |     /// `c_iflag`, as an OptionSet.
105 |     public struct InputFlags: OptionSet, Sendable {
    |                   |- error: type 'Termios.InputFlags' does not conform to protocol 'Equatable'
    |                   `- note: add stubs for conformance
106 |         public var rawValue: tcflag_t
    |                    `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Termios.InputFlags' to 'Equatable'
107 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
108 |         public static let IGNBRK = InputFlags(rawValue: _IGNBRK)
Swift.==:1:24: note: candidate would match if 'Termios.InputFlags.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 'Termios.InputFlags.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Termios.InputFlags' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Termios.InputFlags' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Termios.InputFlags' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'Termios.InputFlags' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Termios.InputFlags' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Termios.InputFlags' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Termios.InputFlags' 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 'Termios.InputFlags' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Termios.InputFlags' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'Termios.InputFlags' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Termios.InputFlags' 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 'Termios.InputFlags' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Termios.InputFlags' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'Termios.InputFlags' conformed to 'SIMD'
3 |
Swift.SetAlgebra.init:2:1: note: protocol requires initializer 'init()' with type '()'
1 | protocol SetAlgebra {
2 | init()}
  | `- note: protocol requires initializer 'init()' with type '()'
3 |
Swift.SetAlgebra.formUnion:2:15: note: protocol requires function 'formUnion' with type '(__owned Termios.InputFlags) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formUnion(_ other: __owned Self)}
  |               `- note: protocol requires function 'formUnion' with type '(__owned Termios.InputFlags) -> ()'
3 |
Swift.SetAlgebra.formIntersection:2:15: note: protocol requires function 'formIntersection' with type '(Termios.InputFlags) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formIntersection(_ other: Self)}
  |               `- note: protocol requires function 'formIntersection' with type '(Termios.InputFlags) -> ()'
3 |
Swift.SetAlgebra.formSymmetricDifference:2:15: note: protocol requires function 'formSymmetricDifference' with type '(__owned Termios.InputFlags) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formSymmetricDifference(_ other: __owned Self)}
  |               `- note: protocol requires function 'formSymmetricDifference' with type '(__owned Termios.InputFlags) -> ()'
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 '(Termios.InputFlags, Termios.InputFlags) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(Termios.InputFlags, Termios.InputFlags) -> Bool'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:123:30: error: cannot find type 'tcflag_t' in scope
121 |     /// `c_oflag`, as an OptionSet.
122 |     public struct OutputFlags: OptionSet, Sendable {
123 |         public var rawValue: tcflag_t
    |                              `- error: cannot find type 'tcflag_t' in scope
124 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
125 |         public static let OPOST = OutputFlags(rawValue: _OPOST)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:124:31: error: cannot find type 'tcflag_t' in scope
122 |     public struct OutputFlags: OptionSet, Sendable {
123 |         public var rawValue: tcflag_t
124 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
    |                               `- error: cannot find type 'tcflag_t' in scope
125 |         public static let OPOST = OutputFlags(rawValue: _OPOST)
126 |         public static let ONLCR = OutputFlags(rawValue: _ONLCR)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:125:46: error: extraneous argument label 'rawValue:' in call
123 |         public var rawValue: tcflag_t
124 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
125 |         public static let OPOST = OutputFlags(rawValue: _OPOST)
    |                                              `- error: extraneous argument label 'rawValue:' in call
126 |         public static let ONLCR = OutputFlags(rawValue: _ONLCR)
127 |         public static let OCRNL = OutputFlags(rawValue: _OCRNL)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:126:46: error: extraneous argument label 'rawValue:' in call
124 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
125 |         public static let OPOST = OutputFlags(rawValue: _OPOST)
126 |         public static let ONLCR = OutputFlags(rawValue: _ONLCR)
    |                                              `- error: extraneous argument label 'rawValue:' in call
127 |         public static let OCRNL = OutputFlags(rawValue: _OCRNL)
128 |         public static let ONOCR = OutputFlags(rawValue: _ONOCR)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:127:46: error: extraneous argument label 'rawValue:' in call
125 |         public static let OPOST = OutputFlags(rawValue: _OPOST)
126 |         public static let ONLCR = OutputFlags(rawValue: _ONLCR)
127 |         public static let OCRNL = OutputFlags(rawValue: _OCRNL)
    |                                              `- error: extraneous argument label 'rawValue:' in call
128 |         public static let ONOCR = OutputFlags(rawValue: _ONOCR)
129 |         public static let ONLRET = OutputFlags(rawValue: _ONLRET)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:128:46: error: extraneous argument label 'rawValue:' in call
126 |         public static let ONLCR = OutputFlags(rawValue: _ONLCR)
127 |         public static let OCRNL = OutputFlags(rawValue: _OCRNL)
128 |         public static let ONOCR = OutputFlags(rawValue: _ONOCR)
    |                                              `- error: extraneous argument label 'rawValue:' in call
129 |         public static let ONLRET = OutputFlags(rawValue: _ONLRET)
130 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:129:47: error: extraneous argument label 'rawValue:' in call
127 |         public static let OCRNL = OutputFlags(rawValue: _OCRNL)
128 |         public static let ONOCR = OutputFlags(rawValue: _ONOCR)
129 |         public static let ONLRET = OutputFlags(rawValue: _ONLRET)
    |                                               `- error: extraneous argument label 'rawValue:' in call
130 |     }
131 |     /// `c_cflag`, as an OptionSet.
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:122:19: error: type 'Termios.OutputFlags' does not conform to protocol 'SetAlgebra'
120 |     }
121 |     /// `c_oflag`, as an OptionSet.
122 |     public struct OutputFlags: OptionSet, Sendable {
    |                   `- error: type 'Termios.OutputFlags' does not conform to protocol 'SetAlgebra'
123 |         public var rawValue: tcflag_t
124 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
Swift.OptionSet.init:2:19: note: candidate would match if 'Termios.OutputFlags.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public init()}
  |                   `- note: candidate would match if 'Termios.OutputFlags.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formUnion:2:33: note: candidate would match if 'Termios.OutputFlags.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formUnion(_ other: Self)}
  |                                 `- note: candidate would match if 'Termios.OutputFlags.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formIntersection:2:33: note: candidate would match if 'Termios.OutputFlags.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formIntersection(_ other: Self)}
  |                                 `- note: candidate would match if 'Termios.OutputFlags.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formSymmetricDifference:2:33: note: candidate would match if 'Termios.OutputFlags.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formSymmetricDifference(_ other: Self)}
  |                                 `- note: candidate would match if 'Termios.OutputFlags.RawValue' conformed to 'FixedWidthInteger'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:122:19: error: type 'Termios.OutputFlags' does not conform to protocol 'RawRepresentable'
120 |     }
121 |     /// `c_oflag`, as an OptionSet.
122 |     public struct OutputFlags: OptionSet, Sendable {
    |                   `- error: type 'Termios.OutputFlags' does not conform to protocol 'RawRepresentable'
123 |         public var rawValue: tcflag_t
124 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:122:19: error: type 'Termios.OutputFlags' does not conform to protocol 'Equatable'
120 |     }
121 |     /// `c_oflag`, as an OptionSet.
122 |     public struct OutputFlags: OptionSet, Sendable {
    |                   |- error: type 'Termios.OutputFlags' does not conform to protocol 'Equatable'
    |                   `- note: add stubs for conformance
123 |         public var rawValue: tcflag_t
    |                    `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Termios.OutputFlags' to 'Equatable'
124 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
125 |         public static let OPOST = OutputFlags(rawValue: _OPOST)
Swift.==:1:24: note: candidate would match if 'Termios.OutputFlags.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 'Termios.OutputFlags.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Termios.OutputFlags' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Termios.OutputFlags' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Termios.OutputFlags' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'Termios.OutputFlags' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Termios.OutputFlags' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Termios.OutputFlags' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Termios.OutputFlags' 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 'Termios.OutputFlags' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Termios.OutputFlags' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'Termios.OutputFlags' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Termios.OutputFlags' 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 'Termios.OutputFlags' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Termios.OutputFlags' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'Termios.OutputFlags' conformed to 'SIMD'
3 |
Swift.SetAlgebra.init:2:1: note: protocol requires initializer 'init()' with type '()'
1 | protocol SetAlgebra {
2 | init()}
  | `- note: protocol requires initializer 'init()' with type '()'
3 |
Swift.SetAlgebra.formUnion:2:15: note: protocol requires function 'formUnion' with type '(__owned Termios.OutputFlags) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formUnion(_ other: __owned Self)}
  |               `- note: protocol requires function 'formUnion' with type '(__owned Termios.OutputFlags) -> ()'
3 |
Swift.SetAlgebra.formIntersection:2:15: note: protocol requires function 'formIntersection' with type '(Termios.OutputFlags) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formIntersection(_ other: Self)}
  |               `- note: protocol requires function 'formIntersection' with type '(Termios.OutputFlags) -> ()'
3 |
Swift.SetAlgebra.formSymmetricDifference:2:15: note: protocol requires function 'formSymmetricDifference' with type '(__owned Termios.OutputFlags) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formSymmetricDifference(_ other: __owned Self)}
  |               `- note: protocol requires function 'formSymmetricDifference' with type '(__owned Termios.OutputFlags) -> ()'
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 '(Termios.OutputFlags, Termios.OutputFlags) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(Termios.OutputFlags, Termios.OutputFlags) -> Bool'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:133:30: error: cannot find type 'tcflag_t' in scope
131 |     /// `c_cflag`, as an OptionSet.
132 |     public struct ControlFlags: OptionSet, Sendable {
133 |         public var rawValue: tcflag_t
    |                              `- error: cannot find type 'tcflag_t' in scope
134 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
135 |         public static let CSIZE = ControlFlags(rawValue: _CSIZE)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:134:31: error: cannot find type 'tcflag_t' in scope
132 |     public struct ControlFlags: OptionSet, Sendable {
133 |         public var rawValue: tcflag_t
134 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
    |                               `- error: cannot find type 'tcflag_t' in scope
135 |         public static let CSIZE = ControlFlags(rawValue: _CSIZE)
136 |         public static let CS5 = ControlFlags(rawValue: _CS5)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:135:47: error: extraneous argument label 'rawValue:' in call
133 |         public var rawValue: tcflag_t
134 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
135 |         public static let CSIZE = ControlFlags(rawValue: _CSIZE)
    |                                               `- error: extraneous argument label 'rawValue:' in call
136 |         public static let CS5 = ControlFlags(rawValue: _CS5)
137 |         public static let CS6 = ControlFlags(rawValue: _CS6)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:136:45: error: extraneous argument label 'rawValue:' in call
134 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
135 |         public static let CSIZE = ControlFlags(rawValue: _CSIZE)
136 |         public static let CS5 = ControlFlags(rawValue: _CS5)
    |                                             `- error: extraneous argument label 'rawValue:' in call
137 |         public static let CS6 = ControlFlags(rawValue: _CS6)
138 |         public static let CS7 = ControlFlags(rawValue: _CS7)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:137:45: error: extraneous argument label 'rawValue:' in call
135 |         public static let CSIZE = ControlFlags(rawValue: _CSIZE)
136 |         public static let CS5 = ControlFlags(rawValue: _CS5)
137 |         public static let CS6 = ControlFlags(rawValue: _CS6)
    |                                             `- error: extraneous argument label 'rawValue:' in call
138 |         public static let CS7 = ControlFlags(rawValue: _CS7)
139 |         public static let CS8 = ControlFlags(rawValue: _CS8)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:138:45: error: extraneous argument label 'rawValue:' in call
136 |         public static let CS5 = ControlFlags(rawValue: _CS5)
137 |         public static let CS6 = ControlFlags(rawValue: _CS6)
138 |         public static let CS7 = ControlFlags(rawValue: _CS7)
    |                                             `- error: extraneous argument label 'rawValue:' in call
139 |         public static let CS8 = ControlFlags(rawValue: _CS8)
140 |         public static let CSTOPB = ControlFlags(rawValue: _CSTOPB)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:139:45: error: extraneous argument label 'rawValue:' in call
137 |         public static let CS6 = ControlFlags(rawValue: _CS6)
138 |         public static let CS7 = ControlFlags(rawValue: _CS7)
139 |         public static let CS8 = ControlFlags(rawValue: _CS8)
    |                                             `- error: extraneous argument label 'rawValue:' in call
140 |         public static let CSTOPB = ControlFlags(rawValue: _CSTOPB)
141 |         public static let CREAD = ControlFlags(rawValue: _CREAD)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:140:48: error: extraneous argument label 'rawValue:' in call
138 |         public static let CS7 = ControlFlags(rawValue: _CS7)
139 |         public static let CS8 = ControlFlags(rawValue: _CS8)
140 |         public static let CSTOPB = ControlFlags(rawValue: _CSTOPB)
    |                                                `- error: extraneous argument label 'rawValue:' in call
141 |         public static let CREAD = ControlFlags(rawValue: _CREAD)
142 |         public static let PARENB = ControlFlags(rawValue: _PARENB)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:141:47: error: extraneous argument label 'rawValue:' in call
139 |         public static let CS8 = ControlFlags(rawValue: _CS8)
140 |         public static let CSTOPB = ControlFlags(rawValue: _CSTOPB)
141 |         public static let CREAD = ControlFlags(rawValue: _CREAD)
    |                                               `- error: extraneous argument label 'rawValue:' in call
142 |         public static let PARENB = ControlFlags(rawValue: _PARENB)
143 |         public static let PARODD = ControlFlags(rawValue: _PARODD)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:142:48: error: extraneous argument label 'rawValue:' in call
140 |         public static let CSTOPB = ControlFlags(rawValue: _CSTOPB)
141 |         public static let CREAD = ControlFlags(rawValue: _CREAD)
142 |         public static let PARENB = ControlFlags(rawValue: _PARENB)
    |                                                `- error: extraneous argument label 'rawValue:' in call
143 |         public static let PARODD = ControlFlags(rawValue: _PARODD)
144 |         public static let HUPCL = ControlFlags(rawValue: _HUPCL)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:143:48: error: extraneous argument label 'rawValue:' in call
141 |         public static let CREAD = ControlFlags(rawValue: _CREAD)
142 |         public static let PARENB = ControlFlags(rawValue: _PARENB)
143 |         public static let PARODD = ControlFlags(rawValue: _PARODD)
    |                                                `- error: extraneous argument label 'rawValue:' in call
144 |         public static let HUPCL = ControlFlags(rawValue: _HUPCL)
145 |         public static let CLOCAL = ControlFlags(rawValue: _CLOCAL)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:144:47: error: extraneous argument label 'rawValue:' in call
142 |         public static let PARENB = ControlFlags(rawValue: _PARENB)
143 |         public static let PARODD = ControlFlags(rawValue: _PARODD)
144 |         public static let HUPCL = ControlFlags(rawValue: _HUPCL)
    |                                               `- error: extraneous argument label 'rawValue:' in call
145 |         public static let CLOCAL = ControlFlags(rawValue: _CLOCAL)
146 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:145:48: error: extraneous argument label 'rawValue:' in call
143 |         public static let PARODD = ControlFlags(rawValue: _PARODD)
144 |         public static let HUPCL = ControlFlags(rawValue: _HUPCL)
145 |         public static let CLOCAL = ControlFlags(rawValue: _CLOCAL)
    |                                                `- error: extraneous argument label 'rawValue:' in call
146 |     }
147 |     /// `c_lflag`, as an OptionSet.
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:132:19: error: type 'Termios.ControlFlags' does not conform to protocol 'SetAlgebra'
130 |     }
131 |     /// `c_cflag`, as an OptionSet.
132 |     public struct ControlFlags: OptionSet, Sendable {
    |                   `- error: type 'Termios.ControlFlags' does not conform to protocol 'SetAlgebra'
133 |         public var rawValue: tcflag_t
134 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
Swift.OptionSet.init:2:19: note: candidate would match if 'Termios.ControlFlags.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public init()}
  |                   `- note: candidate would match if 'Termios.ControlFlags.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formUnion:2:33: note: candidate would match if 'Termios.ControlFlags.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formUnion(_ other: Self)}
  |                                 `- note: candidate would match if 'Termios.ControlFlags.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formIntersection:2:33: note: candidate would match if 'Termios.ControlFlags.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formIntersection(_ other: Self)}
  |                                 `- note: candidate would match if 'Termios.ControlFlags.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formSymmetricDifference:2:33: note: candidate would match if 'Termios.ControlFlags.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formSymmetricDifference(_ other: Self)}
  |                                 `- note: candidate would match if 'Termios.ControlFlags.RawValue' conformed to 'FixedWidthInteger'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:132:19: error: type 'Termios.ControlFlags' does not conform to protocol 'RawRepresentable'
130 |     }
131 |     /// `c_cflag`, as an OptionSet.
132 |     public struct ControlFlags: OptionSet, Sendable {
    |                   `- error: type 'Termios.ControlFlags' does not conform to protocol 'RawRepresentable'
133 |         public var rawValue: tcflag_t
134 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:132:19: error: type 'Termios.ControlFlags' does not conform to protocol 'Equatable'
130 |     }
131 |     /// `c_cflag`, as an OptionSet.
132 |     public struct ControlFlags: OptionSet, Sendable {
    |                   |- error: type 'Termios.ControlFlags' does not conform to protocol 'Equatable'
    |                   `- note: add stubs for conformance
133 |         public var rawValue: tcflag_t
    |                    `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Termios.ControlFlags' to 'Equatable'
134 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
135 |         public static let CSIZE = ControlFlags(rawValue: _CSIZE)
Swift.==:1:24: note: candidate would match if 'Termios.ControlFlags.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 'Termios.ControlFlags.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Termios.ControlFlags' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Termios.ControlFlags' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Termios.ControlFlags' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'Termios.ControlFlags' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Termios.ControlFlags' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Termios.ControlFlags' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Termios.ControlFlags' 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 'Termios.ControlFlags' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Termios.ControlFlags' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'Termios.ControlFlags' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Termios.ControlFlags' 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 'Termios.ControlFlags' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Termios.ControlFlags' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'Termios.ControlFlags' conformed to 'SIMD'
3 |
Swift.SetAlgebra.init:2:1: note: protocol requires initializer 'init()' with type '()'
1 | protocol SetAlgebra {
2 | init()}
  | `- note: protocol requires initializer 'init()' with type '()'
3 |
Swift.SetAlgebra.formUnion:2:15: note: protocol requires function 'formUnion' with type '(__owned Termios.ControlFlags) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formUnion(_ other: __owned Self)}
  |               `- note: protocol requires function 'formUnion' with type '(__owned Termios.ControlFlags) -> ()'
3 |
Swift.SetAlgebra.formIntersection:2:15: note: protocol requires function 'formIntersection' with type '(Termios.ControlFlags) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formIntersection(_ other: Self)}
  |               `- note: protocol requires function 'formIntersection' with type '(Termios.ControlFlags) -> ()'
3 |
Swift.SetAlgebra.formSymmetricDifference:2:15: note: protocol requires function 'formSymmetricDifference' with type '(__owned Termios.ControlFlags) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formSymmetricDifference(_ other: __owned Self)}
  |               `- note: protocol requires function 'formSymmetricDifference' with type '(__owned Termios.ControlFlags) -> ()'
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 '(Termios.ControlFlags, Termios.ControlFlags) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(Termios.ControlFlags, Termios.ControlFlags) -> Bool'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:149:30: error: cannot find type 'tcflag_t' in scope
147 |     /// `c_lflag`, as an OptionSet.
148 |     public struct LocalFlags: OptionSet, Sendable {
149 |         public var rawValue: tcflag_t
    |                              `- error: cannot find type 'tcflag_t' in scope
150 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
151 |         public static let ECHO = LocalFlags(rawValue: _ECHO)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:150:31: error: cannot find type 'tcflag_t' in scope
148 |     public struct LocalFlags: OptionSet, Sendable {
149 |         public var rawValue: tcflag_t
150 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
    |                               `- error: cannot find type 'tcflag_t' in scope
151 |         public static let ECHO = LocalFlags(rawValue: _ECHO)
152 |         public static let ECHOE = LocalFlags(rawValue: _ECHOE)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:151:44: error: extraneous argument label 'rawValue:' in call
149 |         public var rawValue: tcflag_t
150 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
151 |         public static let ECHO = LocalFlags(rawValue: _ECHO)
    |                                            `- error: extraneous argument label 'rawValue:' in call
152 |         public static let ECHOE = LocalFlags(rawValue: _ECHOE)
153 |         public static let ECHOK = LocalFlags(rawValue: _ECHOK)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:152:45: error: extraneous argument label 'rawValue:' in call
150 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
151 |         public static let ECHO = LocalFlags(rawValue: _ECHO)
152 |         public static let ECHOE = LocalFlags(rawValue: _ECHOE)
    |                                             `- error: extraneous argument label 'rawValue:' in call
153 |         public static let ECHOK = LocalFlags(rawValue: _ECHOK)
154 |         public static let ECHONL = LocalFlags(rawValue: _ECHONL)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:153:45: error: extraneous argument label 'rawValue:' in call
151 |         public static let ECHO = LocalFlags(rawValue: _ECHO)
152 |         public static let ECHOE = LocalFlags(rawValue: _ECHOE)
153 |         public static let ECHOK = LocalFlags(rawValue: _ECHOK)
    |                                             `- error: extraneous argument label 'rawValue:' in call
154 |         public static let ECHONL = LocalFlags(rawValue: _ECHONL)
155 |         public static let ICANON = LocalFlags(rawValue: _ICANON)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:154:46: error: extraneous argument label 'rawValue:' in call
152 |         public static let ECHOE = LocalFlags(rawValue: _ECHOE)
153 |         public static let ECHOK = LocalFlags(rawValue: _ECHOK)
154 |         public static let ECHONL = LocalFlags(rawValue: _ECHONL)
    |                                              `- error: extraneous argument label 'rawValue:' in call
155 |         public static let ICANON = LocalFlags(rawValue: _ICANON)
156 |         public static let ISIG = LocalFlags(rawValue: _ISIG)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:155:46: error: extraneous argument label 'rawValue:' in call
153 |         public static let ECHOK = LocalFlags(rawValue: _ECHOK)
154 |         public static let ECHONL = LocalFlags(rawValue: _ECHONL)
155 |         public static let ICANON = LocalFlags(rawValue: _ICANON)
    |                                              `- error: extraneous argument label 'rawValue:' in call
156 |         public static let ISIG = LocalFlags(rawValue: _ISIG)
157 |         public static let IEXTEN = LocalFlags(rawValue: _IEXTEN)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:156:44: error: extraneous argument label 'rawValue:' in call
154 |         public static let ECHONL = LocalFlags(rawValue: _ECHONL)
155 |         public static let ICANON = LocalFlags(rawValue: _ICANON)
156 |         public static let ISIG = LocalFlags(rawValue: _ISIG)
    |                                            `- error: extraneous argument label 'rawValue:' in call
157 |         public static let IEXTEN = LocalFlags(rawValue: _IEXTEN)
158 |         public static let NOFLSH = LocalFlags(rawValue: _NOFLSH)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:157:46: error: extraneous argument label 'rawValue:' in call
155 |         public static let ICANON = LocalFlags(rawValue: _ICANON)
156 |         public static let ISIG = LocalFlags(rawValue: _ISIG)
157 |         public static let IEXTEN = LocalFlags(rawValue: _IEXTEN)
    |                                              `- error: extraneous argument label 'rawValue:' in call
158 |         public static let NOFLSH = LocalFlags(rawValue: _NOFLSH)
159 |         public static let TOSTOP = LocalFlags(rawValue: _TOSTOP)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:158:46: error: extraneous argument label 'rawValue:' in call
156 |         public static let ISIG = LocalFlags(rawValue: _ISIG)
157 |         public static let IEXTEN = LocalFlags(rawValue: _IEXTEN)
158 |         public static let NOFLSH = LocalFlags(rawValue: _NOFLSH)
    |                                              `- error: extraneous argument label 'rawValue:' in call
159 |         public static let TOSTOP = LocalFlags(rawValue: _TOSTOP)
160 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:159:46: error: extraneous argument label 'rawValue:' in call
157 |         public static let IEXTEN = LocalFlags(rawValue: _IEXTEN)
158 |         public static let NOFLSH = LocalFlags(rawValue: _NOFLSH)
159 |         public static let TOSTOP = LocalFlags(rawValue: _TOSTOP)
    |                                              `- error: extraneous argument label 'rawValue:' in call
160 |     }
161 |     /// An index into `c_cc`, as `ControlCharacter.VMIN` etc.
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:148:19: error: type 'Termios.LocalFlags' does not conform to protocol 'SetAlgebra'
146 |     }
147 |     /// `c_lflag`, as an OptionSet.
148 |     public struct LocalFlags: OptionSet, Sendable {
    |                   `- error: type 'Termios.LocalFlags' does not conform to protocol 'SetAlgebra'
149 |         public var rawValue: tcflag_t
150 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
Swift.OptionSet.init:2:19: note: candidate would match if 'Termios.LocalFlags.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public init()}
  |                   `- note: candidate would match if 'Termios.LocalFlags.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formUnion:2:33: note: candidate would match if 'Termios.LocalFlags.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formUnion(_ other: Self)}
  |                                 `- note: candidate would match if 'Termios.LocalFlags.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formIntersection:2:33: note: candidate would match if 'Termios.LocalFlags.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formIntersection(_ other: Self)}
  |                                 `- note: candidate would match if 'Termios.LocalFlags.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formSymmetricDifference:2:33: note: candidate would match if 'Termios.LocalFlags.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formSymmetricDifference(_ other: Self)}
  |                                 `- note: candidate would match if 'Termios.LocalFlags.RawValue' conformed to 'FixedWidthInteger'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:148:19: error: type 'Termios.LocalFlags' does not conform to protocol 'RawRepresentable'
146 |     }
147 |     /// `c_lflag`, as an OptionSet.
148 |     public struct LocalFlags: OptionSet, Sendable {
    |                   `- error: type 'Termios.LocalFlags' does not conform to protocol 'RawRepresentable'
149 |         public var rawValue: tcflag_t
150 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:148:19: error: type 'Termios.LocalFlags' does not conform to protocol 'Equatable'
146 |     }
147 |     /// `c_lflag`, as an OptionSet.
148 |     public struct LocalFlags: OptionSet, Sendable {
    |                   |- error: type 'Termios.LocalFlags' does not conform to protocol 'Equatable'
    |                   `- note: add stubs for conformance
149 |         public var rawValue: tcflag_t
    |                    `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Termios.LocalFlags' to 'Equatable'
150 |         public init(rawValue: tcflag_t) { self.rawValue = rawValue }
151 |         public static let ECHO = LocalFlags(rawValue: _ECHO)
Swift.==:1:24: note: candidate would match if 'Termios.LocalFlags.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 'Termios.LocalFlags.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Termios.LocalFlags' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Termios.LocalFlags' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Termios.LocalFlags' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'Termios.LocalFlags' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Termios.LocalFlags' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Termios.LocalFlags' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Termios.LocalFlags' 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 'Termios.LocalFlags' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Termios.LocalFlags' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'Termios.LocalFlags' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Termios.LocalFlags' 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 'Termios.LocalFlags' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Termios.LocalFlags' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'Termios.LocalFlags' conformed to 'SIMD'
3 |
Swift.SetAlgebra.init:2:1: note: protocol requires initializer 'init()' with type '()'
1 | protocol SetAlgebra {
2 | init()}
  | `- note: protocol requires initializer 'init()' with type '()'
3 |
Swift.SetAlgebra.formUnion:2:15: note: protocol requires function 'formUnion' with type '(__owned Termios.LocalFlags) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formUnion(_ other: __owned Self)}
  |               `- note: protocol requires function 'formUnion' with type '(__owned Termios.LocalFlags) -> ()'
3 |
Swift.SetAlgebra.formIntersection:2:15: note: protocol requires function 'formIntersection' with type '(Termios.LocalFlags) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formIntersection(_ other: Self)}
  |               `- note: protocol requires function 'formIntersection' with type '(Termios.LocalFlags) -> ()'
3 |
Swift.SetAlgebra.formSymmetricDifference:2:15: note: protocol requires function 'formSymmetricDifference' with type '(__owned Termios.LocalFlags) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formSymmetricDifference(_ other: __owned Self)}
  |               `- note: protocol requires function 'formSymmetricDifference' with type '(__owned Termios.LocalFlags) -> ()'
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 '(Termios.LocalFlags, Termios.LocalFlags) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(Termios.LocalFlags, Termios.LocalFlags) -> Bool'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:196:52: error: cannot find type 'cc_t' in scope
194 |
195 |     /// The `c_cc` control characters, e.g. `termios[.VMIN]`.
196 |     public subscript(_ index: ControlCharacter) -> cc_t {
    |                                                    `- error: cannot find type 'cc_t' in scope
197 |         get {
198 |             withUnsafeBytes(of: raw.c_cc) { $0[index.rawValue] }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:219:26: error: cannot find type 'speed_t' in scope
217 | /// A terminal baud rate, as `BaudRate.B9600` etc.
218 | public struct BaudRate: RawRepresentable, Hashable, Sendable {
219 |     public var rawValue: speed_t
    |                          `- error: cannot find type 'speed_t' in scope
220 |     public init(rawValue: speed_t) { self.rawValue = rawValue }
221 |     public static let B0 = BaudRate(rawValue: _B0)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:220:27: error: cannot find type 'speed_t' in scope
218 | public struct BaudRate: RawRepresentable, Hashable, Sendable {
219 |     public var rawValue: speed_t
220 |     public init(rawValue: speed_t) { self.rawValue = rawValue }
    |                           `- error: cannot find type 'speed_t' in scope
221 |     public static let B0 = BaudRate(rawValue: _B0)
222 |     public static let B50 = BaudRate(rawValue: _B50)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:221:28: error: no exact matches in call to initializer
219 |     public var rawValue: speed_t
220 |     public init(rawValue: speed_t) { self.rawValue = rawValue }
221 |     public static let B0 = BaudRate(rawValue: _B0)
    |                            |- error: no exact matches in call to initializer
    |                            `- note: found candidate with type '(any Decoder) throws -> BaudRate'
222 |     public static let B50 = BaudRate(rawValue: _B50)
223 |     public static let B75 = BaudRate(rawValue: _B75)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:222:29: error: no exact matches in call to initializer
220 |     public init(rawValue: speed_t) { self.rawValue = rawValue }
221 |     public static let B0 = BaudRate(rawValue: _B0)
222 |     public static let B50 = BaudRate(rawValue: _B50)
    |                             |- error: no exact matches in call to initializer
    |                             `- note: found candidate with type '(any Decoder) throws -> BaudRate'
223 |     public static let B75 = BaudRate(rawValue: _B75)
224 |     public static let B110 = BaudRate(rawValue: _B110)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:223:29: error: no exact matches in call to initializer
221 |     public static let B0 = BaudRate(rawValue: _B0)
222 |     public static let B50 = BaudRate(rawValue: _B50)
223 |     public static let B75 = BaudRate(rawValue: _B75)
    |                             |- error: no exact matches in call to initializer
    |                             `- note: found candidate with type '(any Decoder) throws -> BaudRate'
224 |     public static let B110 = BaudRate(rawValue: _B110)
225 |     public static let B134 = BaudRate(rawValue: _B134)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:224:30: error: no exact matches in call to initializer
222 |     public static let B50 = BaudRate(rawValue: _B50)
223 |     public static let B75 = BaudRate(rawValue: _B75)
224 |     public static let B110 = BaudRate(rawValue: _B110)
    |                              |- error: no exact matches in call to initializer
    |                              `- note: found candidate with type '(any Decoder) throws -> BaudRate'
225 |     public static let B134 = BaudRate(rawValue: _B134)
226 |     public static let B150 = BaudRate(rawValue: _B150)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:225:30: error: no exact matches in call to initializer
223 |     public static let B75 = BaudRate(rawValue: _B75)
224 |     public static let B110 = BaudRate(rawValue: _B110)
225 |     public static let B134 = BaudRate(rawValue: _B134)
    |                              |- error: no exact matches in call to initializer
    |                              `- note: found candidate with type '(any Decoder) throws -> BaudRate'
226 |     public static let B150 = BaudRate(rawValue: _B150)
227 |     public static let B200 = BaudRate(rawValue: _B200)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:226:30: error: no exact matches in call to initializer
224 |     public static let B110 = BaudRate(rawValue: _B110)
225 |     public static let B134 = BaudRate(rawValue: _B134)
226 |     public static let B150 = BaudRate(rawValue: _B150)
    |                              |- error: no exact matches in call to initializer
    |                              `- note: found candidate with type '(any Decoder) throws -> BaudRate'
227 |     public static let B200 = BaudRate(rawValue: _B200)
228 |     public static let B300 = BaudRate(rawValue: _B300)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:227:30: error: no exact matches in call to initializer
225 |     public static let B134 = BaudRate(rawValue: _B134)
226 |     public static let B150 = BaudRate(rawValue: _B150)
227 |     public static let B200 = BaudRate(rawValue: _B200)
    |                              |- error: no exact matches in call to initializer
    |                              `- note: found candidate with type '(any Decoder) throws -> BaudRate'
228 |     public static let B300 = BaudRate(rawValue: _B300)
229 |     public static let B600 = BaudRate(rawValue: _B600)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:228:30: error: no exact matches in call to initializer
226 |     public static let B150 = BaudRate(rawValue: _B150)
227 |     public static let B200 = BaudRate(rawValue: _B200)
228 |     public static let B300 = BaudRate(rawValue: _B300)
    |                              |- error: no exact matches in call to initializer
    |                              `- note: found candidate with type '(any Decoder) throws -> BaudRate'
229 |     public static let B600 = BaudRate(rawValue: _B600)
230 |     public static let B1200 = BaudRate(rawValue: _B1200)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:229:30: error: no exact matches in call to initializer
227 |     public static let B200 = BaudRate(rawValue: _B200)
228 |     public static let B300 = BaudRate(rawValue: _B300)
229 |     public static let B600 = BaudRate(rawValue: _B600)
    |                              |- error: no exact matches in call to initializer
    |                              `- note: found candidate with type '(any Decoder) throws -> BaudRate'
230 |     public static let B1200 = BaudRate(rawValue: _B1200)
231 |     public static let B1800 = BaudRate(rawValue: _B1800)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:230:31: error: no exact matches in call to initializer
228 |     public static let B300 = BaudRate(rawValue: _B300)
229 |     public static let B600 = BaudRate(rawValue: _B600)
230 |     public static let B1200 = BaudRate(rawValue: _B1200)
    |                               |- error: no exact matches in call to initializer
    |                               `- note: found candidate with type '(any Decoder) throws -> BaudRate'
231 |     public static let B1800 = BaudRate(rawValue: _B1800)
232 |     public static let B2400 = BaudRate(rawValue: _B2400)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:231:31: error: no exact matches in call to initializer
229 |     public static let B600 = BaudRate(rawValue: _B600)
230 |     public static let B1200 = BaudRate(rawValue: _B1200)
231 |     public static let B1800 = BaudRate(rawValue: _B1800)
    |                               |- error: no exact matches in call to initializer
    |                               `- note: found candidate with type '(any Decoder) throws -> BaudRate'
232 |     public static let B2400 = BaudRate(rawValue: _B2400)
233 |     public static let B4800 = BaudRate(rawValue: _B4800)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:232:31: error: no exact matches in call to initializer
230 |     public static let B1200 = BaudRate(rawValue: _B1200)
231 |     public static let B1800 = BaudRate(rawValue: _B1800)
232 |     public static let B2400 = BaudRate(rawValue: _B2400)
    |                               |- error: no exact matches in call to initializer
    |                               `- note: found candidate with type '(any Decoder) throws -> BaudRate'
233 |     public static let B4800 = BaudRate(rawValue: _B4800)
234 |     public static let B9600 = BaudRate(rawValue: _B9600)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:233:31: error: no exact matches in call to initializer
231 |     public static let B1800 = BaudRate(rawValue: _B1800)
232 |     public static let B2400 = BaudRate(rawValue: _B2400)
233 |     public static let B4800 = BaudRate(rawValue: _B4800)
    |                               |- error: no exact matches in call to initializer
    |                               `- note: found candidate with type '(any Decoder) throws -> BaudRate'
234 |     public static let B9600 = BaudRate(rawValue: _B9600)
235 |     public static let B19200 = BaudRate(rawValue: _B19200)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:234:31: error: no exact matches in call to initializer
232 |     public static let B2400 = BaudRate(rawValue: _B2400)
233 |     public static let B4800 = BaudRate(rawValue: _B4800)
234 |     public static let B9600 = BaudRate(rawValue: _B9600)
    |                               |- error: no exact matches in call to initializer
    |                               `- note: found candidate with type '(any Decoder) throws -> BaudRate'
235 |     public static let B19200 = BaudRate(rawValue: _B19200)
236 |     public static let B38400 = BaudRate(rawValue: _B38400)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:235:32: error: no exact matches in call to initializer
233 |     public static let B4800 = BaudRate(rawValue: _B4800)
234 |     public static let B9600 = BaudRate(rawValue: _B9600)
235 |     public static let B19200 = BaudRate(rawValue: _B19200)
    |                                |- error: no exact matches in call to initializer
    |                                `- note: found candidate with type '(any Decoder) throws -> BaudRate'
236 |     public static let B38400 = BaudRate(rawValue: _B38400)
237 |     public static let B57600 = BaudRate(rawValue: _B57600)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:236:32: error: no exact matches in call to initializer
234 |     public static let B9600 = BaudRate(rawValue: _B9600)
235 |     public static let B19200 = BaudRate(rawValue: _B19200)
236 |     public static let B38400 = BaudRate(rawValue: _B38400)
    |                                |- error: no exact matches in call to initializer
    |                                `- note: found candidate with type '(any Decoder) throws -> BaudRate'
237 |     public static let B57600 = BaudRate(rawValue: _B57600)
238 |     public static let B115200 = BaudRate(rawValue: _B115200)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:237:32: error: no exact matches in call to initializer
235 |     public static let B19200 = BaudRate(rawValue: _B19200)
236 |     public static let B38400 = BaudRate(rawValue: _B38400)
237 |     public static let B57600 = BaudRate(rawValue: _B57600)
    |                                |- error: no exact matches in call to initializer
    |                                `- note: found candidate with type '(any Decoder) throws -> BaudRate'
238 |     public static let B115200 = BaudRate(rawValue: _B115200)
239 |     public static let B230400 = BaudRate(rawValue: _B230400)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:238:33: error: no exact matches in call to initializer
236 |     public static let B38400 = BaudRate(rawValue: _B38400)
237 |     public static let B57600 = BaudRate(rawValue: _B57600)
238 |     public static let B115200 = BaudRate(rawValue: _B115200)
    |                                 |- error: no exact matches in call to initializer
    |                                 `- note: found candidate with type '(any Decoder) throws -> BaudRate'
239 |     public static let B230400 = BaudRate(rawValue: _B230400)
240 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:239:33: error: no exact matches in call to initializer
237 |     public static let B57600 = BaudRate(rawValue: _B57600)
238 |     public static let B115200 = BaudRate(rawValue: _B115200)
239 |     public static let B230400 = BaudRate(rawValue: _B230400)
    |                                 |- error: no exact matches in call to initializer
    |                                 `- note: found candidate with type '(any Decoder) throws -> BaudRate'
240 | }
241 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:218:15: error: type 'BaudRate' does not conform to protocol 'Hashable'
216 |
217 | /// A terminal baud rate, as `BaudRate.B9600` etc.
218 | public struct BaudRate: RawRepresentable, Hashable, Sendable {
    |               `- error: type 'BaudRate' does not conform to protocol 'Hashable'
219 |     public var rawValue: speed_t
    |                `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'BaudRate' to 'Hashable'
220 |     public init(rawValue: speed_t) { self.rawValue = rawValue }
221 |     public static let B0 = BaudRate(rawValue: _B0)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:218:15: error: type 'BaudRate' does not conform to protocol 'RawRepresentable'
216 |
217 | /// A terminal baud rate, as `BaudRate.B9600` etc.
218 | public struct BaudRate: RawRepresentable, Hashable, Sendable {
    |               `- error: type 'BaudRate' does not conform to protocol 'RawRepresentable'
219 |     public var rawValue: speed_t
220 |     public init(rawValue: speed_t) { self.rawValue = rawValue }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:218:15: error: type 'BaudRate' does not conform to protocol 'Equatable'
216 |
217 | /// A terminal baud rate, as `BaudRate.B9600` etc.
218 | public struct BaudRate: RawRepresentable, Hashable, Sendable {
    |               |- error: type 'BaudRate' does not conform to protocol 'Equatable'
    |               `- note: add stubs for conformance
219 |     public var rawValue: speed_t
    |                `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'BaudRate' to 'Equatable'
220 |     public init(rawValue: speed_t) { self.rawValue = rawValue }
221 |     public static let B0 = BaudRate(rawValue: _B0)
Swift.==:1:24: note: candidate would match if 'BaudRate.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 'BaudRate.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'BaudRate' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'BaudRate' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'BaudRate' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'BaudRate' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'BaudRate' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'BaudRate' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'BaudRate' 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 'BaudRate' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'BaudRate' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'BaudRate' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'BaudRate' 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 'BaudRate' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'BaudRate' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'BaudRate' 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 '(BaudRate, BaudRate) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(BaudRate, BaudRate) -> Bool'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:101:27: error: cannot find 'termios' in scope
 99 |     /// The underlying C `struct termios`.
100 |     public var raw: termios
101 |     public init() { raw = termios() }
    |                           `- error: cannot find 'termios' in scope
102 |     public init(raw: termios) { self.raw = raw }
103 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:179:25: error: extraneous argument label 'rawValue:' in call
177 |
178 |     public var inputFlags: InputFlags {
179 |         get { InputFlags(rawValue: raw.c_iflag) }
    |                         `- error: extraneous argument label 'rawValue:' in call
180 |         set { raw.c_iflag = newValue.rawValue }
181 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:183:26: error: extraneous argument label 'rawValue:' in call
181 |     }
182 |     public var outputFlags: OutputFlags {
183 |         get { OutputFlags(rawValue: raw.c_oflag) }
    |                          `- error: extraneous argument label 'rawValue:' in call
184 |         set { raw.c_oflag = newValue.rawValue }
185 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:187:27: error: extraneous argument label 'rawValue:' in call
185 |     }
186 |     public var controlFlags: ControlFlags {
187 |         get { ControlFlags(rawValue: raw.c_cflag) }
    |                           `- error: extraneous argument label 'rawValue:' in call
188 |         set { raw.c_cflag = newValue.rawValue }
189 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:191:25: error: extraneous argument label 'rawValue:' in call
189 |     }
190 |     public var localFlags: LocalFlags {
191 |         get { LocalFlags(rawValue: raw.c_lflag) }
    |                         `- error: extraneous argument label 'rawValue:' in call
192 |         set { raw.c_lflag = newValue.rawValue }
193 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:207:54: error: cannot find 'cfgetispeed' in scope
205 |     /// `cfgetispeed(3)` / `cfsetispeed(3)`.
206 |     public var inputSpeed: BaudRate {
207 |         get { var r = raw; return BaudRate(rawValue: cfgetispeed(&r)) }
    |                                                      `- error: cannot find 'cfgetispeed' in scope
208 |         set { _ = cfsetispeed(&raw, newValue.rawValue) }
209 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:207:35: error: no exact matches in call to initializer
205 |     /// `cfgetispeed(3)` / `cfsetispeed(3)`.
206 |     public var inputSpeed: BaudRate {
207 |         get { var r = raw; return BaudRate(rawValue: cfgetispeed(&r)) }
    |                                   |- error: no exact matches in call to initializer
    |                                   `- note: found candidate with type '(any Decoder) throws -> BaudRate'
208 |         set { _ = cfsetispeed(&raw, newValue.rawValue) }
209 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:208:19: error: cannot find 'cfsetispeed' in scope
206 |     public var inputSpeed: BaudRate {
207 |         get { var r = raw; return BaudRate(rawValue: cfgetispeed(&r)) }
208 |         set { _ = cfsetispeed(&raw, newValue.rawValue) }
    |                   `- error: cannot find 'cfsetispeed' in scope
209 |     }
210 |     /// `cfgetospeed(3)` / `cfsetospeed(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:212:54: error: cannot find 'cfgetospeed' in scope
210 |     /// `cfgetospeed(3)` / `cfsetospeed(3)`.
211 |     public var outputSpeed: BaudRate {
212 |         get { var r = raw; return BaudRate(rawValue: cfgetospeed(&r)) }
    |                                                      `- error: cannot find 'cfgetospeed' in scope
213 |         set { _ = cfsetospeed(&raw, newValue.rawValue) }
214 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:212:35: error: no exact matches in call to initializer
210 |     /// `cfgetospeed(3)` / `cfsetospeed(3)`.
211 |     public var outputSpeed: BaudRate {
212 |         get { var r = raw; return BaudRate(rawValue: cfgetospeed(&r)) }
    |                                   |- error: no exact matches in call to initializer
    |                                   `- note: found candidate with type '(any Decoder) throws -> BaudRate'
213 |         set { _ = cfsetospeed(&raw, newValue.rawValue) }
214 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:213:19: error: cannot find 'cfsetospeed' in scope
211 |     public var outputSpeed: BaudRate {
212 |         get { var r = raw; return BaudRate(rawValue: cfgetospeed(&r)) }
213 |         set { _ = cfsetospeed(&raw, newValue.rawValue) }
    |                   `- error: cannot find 'cfsetospeed' in scope
214 |     }
215 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:272:13: error: cannot find 'termios' in scope
270 | /// identical to C's `tcgetattr(3)`, but returns a swifty `Termios`.
271 | public func tcgetattr(_ fd: CInt) throws -> Termios {
272 |     var t = termios()
    |             `- error: cannot find 'termios' in scope
273 |     try check(tcgetattr(fd, &t))
274 |     return Termios(raw: t)
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:273:29: error: extra argument in call
271 | public func tcgetattr(_ fd: CInt) throws -> Termios {
272 |     var t = termios()
273 |     try check(tcgetattr(fd, &t))
    |                             `- error: extra argument in call
274 |     return Termios(raw: t)
275 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:274:25: error: argument passed to call that takes no arguments
272 |     var t = termios()
273 |     try check(tcgetattr(fd, &t))
274 |     return Termios(raw: t)
    |                         `- error: argument passed to call that takes no arguments
275 | }
276 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:280:36: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'TcsetattrAction'
278 | public func tcsetattr(_ fd: CInt, _ action: TcsetattrAction = .TCSANOW, _ termios: Termios) throws {
279 |     var t = termios.raw
280 |     try check(tcsetattr(fd, action.rawValue, &t))
    |                                    `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'TcsetattrAction'
281 | }
282 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:280:46: error: cannot convert value of type '_' to expected argument type 'Termios'
278 | public func tcsetattr(_ fd: CInt, _ action: TcsetattrAction = .TCSANOW, _ termios: Termios) throws {
279 |     var t = termios.raw
280 |     try check(tcsetattr(fd, action.rawValue, &t))
    |                                              `- error: cannot convert value of type '_' to expected argument type 'Termios'
281 | }
282 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:284:52: error: cannot find 'C' in scope
282 |
283 | /// identical to C's `tcdrain(3)`.
284 | public func tcdrain(_ fd: CInt) throws { try check(C.tcdrain(fd)) }
    |                                                    `- error: cannot find 'C' in scope
285 |
286 | /// identical to C's `tcflow(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:288:15: error: cannot find 'C' in scope
286 | /// identical to C's `tcflow(3)`.
287 | public func tcflow(_ fd: CInt, _ action: TcflowAction) throws {
288 |     try check(C.tcflow(fd, action.rawValue))
    |               `- error: cannot find 'C' in scope
289 | }
290 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:293:15: error: cannot find 'C' in scope
291 | /// identical to C's `tcflush(3)`.
292 | public func tcflush(_ fd: CInt, _ queue: TcflushQueue) throws {
293 |     try check(C.tcflush(fd, queue.rawValue))
    |               `- error: cannot find 'C' in scope
294 | }
295 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Termios.swift:298:15: error: cannot find 'C' in scope
296 | /// identical to C's `tcsendbreak(3)`.
297 | public func tcsendbreak(_ fd: CInt, _ duration: CInt = 0) throws {
298 |     try check(C.tcsendbreak(fd, duration))
    |               `- error: cannot find 'C' in scope
299 | }
300 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:47:26: error: cannot find type 'tm' in scope
 45 |     }
 46 |
 47 |     internal init(_ ctm: tm) {
    |                          `- error: cannot find type 'tm' in scope
 48 |         sec = Int(ctm.tm_sec); min = Int(ctm.tm_min); hour = Int(ctm.tm_hour)
 49 |         mday = Int(ctm.tm_mday); mon = Int(ctm.tm_mon); year = Int(ctm.tm_year)
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:55:23: error: cannot find type 'tm' in scope
 53 |     }
 54 |
 55 |     internal var ctm: tm {
    |                       `- error: cannot find type 'tm' in scope
 56 |         var t = tm()
 57 |         t.tm_sec = CInt(sec); t.tm_min = CInt(min); t.tm_hour = CInt(hour)
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:66:23: error: cannot find type 'time_t' in scope
 64 |
 65 | /// identical to C's `time(2)`: seconds since the epoch.
 66 | public func time() -> time_t { time(nil) }
    |                       `- error: cannot find type 'time_t' in scope
 67 |
 68 | /// identical to C's `difftime(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:69:31: error: cannot find type 'time_t' in scope
 67 |
 68 | /// identical to C's `difftime(3)`.
 69 | public func difftime(_ time1: time_t, _ time0: time_t) -> Double { C.difftime(time1, time0) }
    |                               `- error: cannot find type 'time_t' in scope
 70 |
 71 | /// identical to C's `gmtime(3)` (via `gmtime_r`), but returns a swifty `Tm`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:69:48: error: cannot find type 'time_t' in scope
 67 |
 68 | /// identical to C's `difftime(3)`.
 69 | public func difftime(_ time1: time_t, _ time0: time_t) -> Double { C.difftime(time1, time0) }
    |                                                `- error: cannot find type 'time_t' in scope
 70 |
 71 | /// identical to C's `gmtime(3)` (via `gmtime_r`), but returns a swifty `Tm`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:72:25: error: cannot find type 'time_t' in scope
 70 |
 71 | /// identical to C's `gmtime(3)` (via `gmtime_r`), but returns a swifty `Tm`.
 72 | public func gmtime(_ t: time_t = time(nil)) -> Tm {
    |                         `- error: cannot find type 'time_t' in scope
 73 |     var tv = t
 74 |     var result = tm()
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:80:28: error: cannot find type 'time_t' in scope
 78 |
 79 | /// identical to C's `localtime(3)` (via `localtime_r`), but returns a swifty `Tm`.
 80 | public func localtime(_ t: time_t = time(nil)) -> Tm {
    |                            `- error: cannot find type 'time_t' in scope
 81 |     var tv = t
 82 |     var result = tm()
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:89:40: error: cannot find type 'time_t' in scope
 87 | /// identical to C's `mktime(3)`: converts a local-time `Tm` to seconds
 88 | /// since the epoch.
 89 | public func mktime(_ tm: Tm) throws -> time_t {
    |                                        `- error: cannot find type 'time_t' in scope
 90 |     var ctm = tm.ctm
 91 |     return try check(mktime(&ctm))
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:103:24: error: cannot find type 'time_t' in scope
101 |
102 | /// identical to C's `ctime(3)`: `asctime(localtime(t))`.
103 | public func ctime(_ t: time_t = time(nil)) -> String { asctime(localtime(t)) }
    |                        `- error: cannot find type 'time_t' in scope
104 |
105 | /// identical to C's `strftime(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:121:24: error: cannot find type 'clock_t' in scope
119 |
120 | /// identical to C's `clock(3)`: processor time used, in `CLOCKS_PER_SEC` ticks.
121 | public func clock() -> clock_t { C.clock() }
    |                        `- error: cannot find type 'clock_t' in scope
122 |
123 | // (CLOCKS_PER_SEC is re-exported in Platform.swift)
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:146:25: error: cannot find type 'clock_t' in scope
144 | public struct Times: Hashable, Sendable {
145 |     /// elapsed real time since an arbitrary point, in clock ticks
146 |     public let elapsed: clock_t
    |                         `- error: cannot find type 'clock_t' in scope
147 |     /// user CPU time (`tms_utime`)
148 |     public let user: clock_t
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:148:22: error: cannot find type 'clock_t' in scope
146 |     public let elapsed: clock_t
147 |     /// user CPU time (`tms_utime`)
148 |     public let user: clock_t
    |                      `- error: cannot find type 'clock_t' in scope
149 |     /// system CPU time (`tms_stime`)
150 |     public let system: clock_t
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:150:24: error: cannot find type 'clock_t' in scope
148 |     public let user: clock_t
149 |     /// system CPU time (`tms_stime`)
150 |     public let system: clock_t
    |                        `- error: cannot find type 'clock_t' in scope
151 |     /// user CPU time of terminated children (`tms_cutime`)
152 |     public let childUser: clock_t
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:152:27: error: cannot find type 'clock_t' in scope
150 |     public let system: clock_t
151 |     /// user CPU time of terminated children (`tms_cutime`)
152 |     public let childUser: clock_t
    |                           `- error: cannot find type 'clock_t' in scope
153 |     /// system CPU time of terminated children (`tms_cstime`)
154 |     public let childSystem: clock_t
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:154:29: error: cannot find type 'clock_t' in scope
152 |     public let childUser: clock_t
153 |     /// system CPU time of terminated children (`tms_cstime`)
154 |     public let childSystem: clock_t
    |                             `- error: cannot find type 'clock_t' in scope
155 | }
156 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:144:15: error: type 'Times' does not conform to protocol 'Hashable'
142 | /// A swifty `struct tms`, plus the elapsed real time, like Perl's
143 | /// five-element `POSIX::times()`.
144 | public struct Times: Hashable, Sendable {
    |               `- error: type 'Times' does not conform to protocol 'Hashable'
145 |     /// elapsed real time since an arbitrary point, in clock ticks
146 |     public let elapsed: clock_t
    |                `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Times' to 'Hashable'
147 |     /// user CPU time (`tms_utime`)
148 |     public let user: clock_t
    |                `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Times' to 'Hashable'
149 |     /// system CPU time (`tms_stime`)
150 |     public let system: clock_t
    |                `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Times' to 'Hashable'
151 |     /// user CPU time of terminated children (`tms_cutime`)
152 |     public let childUser: clock_t
    |                `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Times' to 'Hashable'
153 |     /// system CPU time of terminated children (`tms_cstime`)
154 |     public let childSystem: clock_t
    |                `- note: stored property type '_' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Times' to 'Hashable'
155 | }
156 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:144:15: error: type 'Times' does not conform to protocol 'Equatable'
142 | /// A swifty `struct tms`, plus the elapsed real time, like Perl's
143 | /// five-element `POSIX::times()`.
144 | public struct Times: Hashable, Sendable {
    |               |- error: type 'Times' does not conform to protocol 'Equatable'
    |               `- note: add stubs for conformance
145 |     /// elapsed real time since an arbitrary point, in clock ticks
146 |     public let elapsed: clock_t
    |                `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Times' to 'Equatable'
147 |     /// user CPU time (`tms_utime`)
148 |     public let user: clock_t
    |                `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Times' to 'Equatable'
149 |     /// system CPU time (`tms_stime`)
150 |     public let system: clock_t
    |                `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Times' to 'Equatable'
151 |     /// user CPU time of terminated children (`tms_cutime`)
152 |     public let childUser: clock_t
    |                `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Times' to 'Equatable'
153 |     /// system CPU time of terminated children (`tms_cstime`)
154 |     public let childSystem: clock_t
    |                `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Times' to 'Equatable'
155 | }
156 |
Swift.==:1:24: note: candidate would match if 'Times' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
  |                        `- note: candidate would match if 'Times' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Times' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Times' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Times' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'Times' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Times' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Times' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Times' 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 'Times' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Times' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'Times' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Times' 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 'Times' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Times' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'Times' conformed to 'SIMD'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Times, Times) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(Times, Times) -> Bool'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:56:17: error: cannot find 'tm' in scope
 54 |
 55 |     internal var ctm: tm {
 56 |         var t = tm()
    |                 `- error: cannot find 'tm' in scope
 57 |         t.tm_sec = CInt(sec); t.tm_min = CInt(min); t.tm_hour = CInt(hour)
 58 |         t.tm_mday = CInt(mday); t.tm_mon = CInt(mon); t.tm_year = CInt(year)
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:66:37: error: 'nil' requires a contextual type
 64 |
 65 | /// identical to C's `time(2)`: seconds since the epoch.
 66 | public func time() -> time_t { time(nil) }
    |                                     `- error: 'nil' requires a contextual type
 67 |
 68 | /// identical to C's `difftime(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:69:68: error: cannot find 'C' in scope
 67 |
 68 | /// identical to C's `difftime(3)`.
 69 | public func difftime(_ time1: time_t, _ time0: time_t) -> Double { C.difftime(time1, time0) }
    |                                                                    `- error: cannot find 'C' in scope
 70 |
 71 | /// identical to C's `gmtime(3)` (via `gmtime_r`), but returns a swifty `Tm`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:74:18: error: cannot find 'tm' in scope
 72 | public func gmtime(_ t: time_t = time(nil)) -> Tm {
 73 |     var tv = t
 74 |     var result = tm()
    |                  `- error: cannot find 'tm' in scope
 75 |     gmtime_r(&tv, &result)
 76 |     return Tm(result)
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:75:5: error: cannot find 'gmtime_r' in scope
 73 |     var tv = t
 74 |     var result = tm()
 75 |     gmtime_r(&tv, &result)
    |     `- error: cannot find 'gmtime_r' in scope
 76 |     return Tm(result)
 77 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:76:15: error: missing argument label 'sec:' in call
 74 |     var result = tm()
 75 |     gmtime_r(&tv, &result)
 76 |     return Tm(result)
    |               `- error: missing argument label 'sec:' in call
 77 | }
 78 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:82:18: error: cannot find 'tm' in scope
 80 | public func localtime(_ t: time_t = time(nil)) -> Tm {
 81 |     var tv = t
 82 |     var result = tm()
    |                  `- error: cannot find 'tm' in scope
 83 |     localtime_r(&tv, &result)
 84 |     return Tm(result)
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:83:5: error: cannot find 'localtime_r' in scope
 81 |     var tv = t
 82 |     var result = tm()
 83 |     localtime_r(&tv, &result)
    |     `- error: cannot find 'localtime_r' in scope
 84 |     return Tm(result)
 85 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:84:15: error: missing argument label 'sec:' in call
 82 |     var result = tm()
 83 |     localtime_r(&tv, &result)
 84 |     return Tm(result)
    |               `- error: missing argument label 'sec:' in call
 85 | }
 86 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:98:11: error: cannot find 'asctime_r' in scope
 96 |     var ctm = tm.ctm
 97 |     var buf = [CChar](repeating: 0, count: 32) // >= 26
 98 |     guard asctime_r(&ctm, &buf) != nil else { return "" }
    |           `- error: cannot find 'asctime_r' in scope
 99 |     return stringFromCChars(buf)
100 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:112:29: error: extra arguments at positions #3, #4 in call
104 |
105 | /// identical to C's `strftime(3)`.
106 | public func strftime(_ format: String, _ tm: Tm) -> String {
    |             `- note: 'strftime' declared here
107 |     var ctm = tm.ctm
108 |     return format.withCString { fmt in
    :
110 |         while capacity <= 64 * 1024 {
111 |             var buf = [CChar](repeating: 0, count: capacity)
112 |             let n = strftime(&buf, capacity, fmt, &ctm)
    |                             `- error: extra arguments at positions #3, #4 in call
113 |             if n > 0 || format.isEmpty { return stringFromCChars(buf) }
114 |             capacity *= 4
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:112:30: error: cannot convert value of type '[CChar]' (aka 'Array<Int8>') to expected argument type 'String'
110 |         while capacity <= 64 * 1024 {
111 |             var buf = [CChar](repeating: 0, count: capacity)
112 |             let n = strftime(&buf, capacity, fmt, &ctm)
    |                              `- error: cannot convert value of type '[CChar]' (aka 'Array<Int8>') to expected argument type 'String'
113 |             if n > 0 || format.isEmpty { return stringFromCChars(buf) }
114 |             capacity *= 4
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:112:36: error: cannot convert value of type 'Int' to expected argument type 'Tm'
110 |         while capacity <= 64 * 1024 {
111 |             var buf = [CChar](repeating: 0, count: capacity)
112 |             let n = strftime(&buf, capacity, fmt, &ctm)
    |                                    `- error: cannot convert value of type 'Int' to expected argument type 'Tm'
113 |             if n > 0 || format.isEmpty { return stringFromCChars(buf) }
114 |             capacity *= 4
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:121:34: error: cannot find 'C' in scope
119 |
120 | /// identical to C's `clock(3)`: processor time used, in `CLOCKS_PER_SEC` ticks.
121 | public func clock() -> clock_t { C.clock() }
    |                                  `- error: cannot find 'C' in scope
122 |
123 | // (CLOCKS_PER_SEC is re-exported in Platform.swift)
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:126:23: error: cannot find 'C' in scope
124 |
125 | /// identical to C's `tzset(3)`.
126 | public func tzset() { C.tzset() }
    |                       `- error: cannot find 'C' in scope
127 |
128 | /// like C's `tzname`: the standard and daylight-saving timezone
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:132:5: error: cannot find 'C' in scope
130 | /// January and July, to avoid the non-thread-safe C global).
131 | public func tzname() -> (standard: String, daylight: String) {
132 |     C.tzset()
    |     `- error: cannot find 'C' in scope
133 |     // 2021-01-01 and 2021-07-01, chosen for opposite DST states.
134 |     let jan = localtime(1609459200)
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:160:13: error: cannot find 'tms' in scope
158 | /// (in `sysconf(.clockTick)` ticks, not `CLOCKS_PER_SEC`).
159 | public func times() throws -> Times {
160 |     var t = tms()
    |             `- error: cannot find 'tms' in scope
161 |     let elapsed = times(&t)
162 |     guard elapsed != ~clock_t(0) else { throw Errno.current } // (clock_t)-1
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:161:25: error: argument passed to call that takes no arguments
159 | public func times() throws -> Times {
160 |     var t = tms()
161 |     let elapsed = times(&t)
    |                         `- error: argument passed to call that takes no arguments
162 |     guard elapsed != ~clock_t(0) else { throw Errno.current } // (clock_t)-1
163 |     return Times(
/host/spi-builder-workspace/Sources/POSIXGlobals/Time.swift:162:23: error: cannot find 'clock_t' in scope
160 |     var t = tms()
161 |     let elapsed = times(&t)
162 |     guard elapsed != ~clock_t(0) else { throw Errno.current } // (clock_t)-1
    |                       `- error: cannot find 'clock_t' in scope
163 |     return Times(
164 |         elapsed: elapsed,
[17/23] Compiling POSIXGlobals Fcntl.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:14:25: error: cannot find 'O_RDONLY' in scope
12 |     public init(rawValue: CInt) { self.rawValue = rawValue }
13 | }
14 | private let _O_RDONLY = O_RDONLY
   |                         `- error: cannot find 'O_RDONLY' in scope
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:15:25: error: cannot find 'O_WRONLY' in scope
13 | }
14 | private let _O_RDONLY = O_RDONLY
15 | private let _O_WRONLY = O_WRONLY
   |                         `- error: cannot find 'O_WRONLY' in scope
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:16:23: error: cannot find 'O_RDWR' in scope
14 | private let _O_RDONLY = O_RDONLY
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
   |                       `- error: cannot find 'O_RDWR' in scope
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:17:25: error: cannot find 'O_APPEND' in scope
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
   |                         `- error: cannot find 'O_APPEND' in scope
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:18:24: error: cannot find 'O_CREAT' in scope
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
   |                        `- error: cannot find 'O_CREAT' in scope
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:19:23: error: cannot find 'O_EXCL' in scope
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
   |                       `- error: cannot find 'O_EXCL' in scope
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:20:24: error: cannot find 'O_TRUNC' in scope
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
   |                        `- error: cannot find 'O_TRUNC' in scope
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:21:27: error: cannot find 'O_NONBLOCK' in scope
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
   |                           `- error: cannot find 'O_NONBLOCK' in scope
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:22:25: error: cannot find 'O_NOCTTY' in scope
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
   |                         `- error: cannot find 'O_NOCTTY' in scope
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:23:26: error: cannot find 'O_CLOEXEC' in scope
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
   |                          `- error: cannot find 'O_CLOEXEC' in scope
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:24:27: error: cannot find 'O_NOFOLLOW' in scope
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
   |                           `- error: cannot find 'O_NOFOLLOW' in scope
25 | private let _O_DIRECTORY = O_DIRECTORY
26 | private let _O_SYNC = O_SYNC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:25:28: error: cannot find 'O_DIRECTORY' in scope
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
   |                            `- error: cannot find 'O_DIRECTORY' in scope
26 | private let _O_SYNC = O_SYNC
27 | extension OpenFlags {
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:26:23: error: cannot find 'O_SYNC' in scope
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
26 | private let _O_SYNC = O_SYNC
   |                       `- error: cannot find 'O_SYNC' in scope
27 | extension OpenFlags {
28 |     public static let O_RDONLY = OpenFlags(rawValue: _O_RDONLY) // == []
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:44:74: error: cannot find type 'mode_t' in scope
42 |
43 | /// identical to C's `open(2)`; returns the file descriptor.
44 | public func open(_ path: String, _ flags: OpenFlags = .O_RDONLY, _ mode: mode_t = 0o666) throws -> CInt {
   |                                                                          `- error: cannot find type 'mode_t' in scope
45 |     try path.withCString { try check(open($0, flags.rawValue, mode)) }
46 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:49:43: error: cannot find type 'mode_t' in scope
47 |
48 | /// identical to C's `creat(2)`; returns the file descriptor.
49 | public func creat(_ path: String, _ mode: mode_t = 0o666) throws -> CInt {
   |                                           `- error: cannot find type 'mode_t' in scope
50 |     try path.withCString { try check(creat($0, mode)) }
51 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:58:24: error: cannot find 'F_DUPFD' in scope
56 |     public init(rawValue: CInt) { self.rawValue = rawValue }
57 | }
58 | private let _F_DUPFD = F_DUPFD
   |                        `- error: cannot find 'F_DUPFD' in scope
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:59:24: error: cannot find 'F_GETFD' in scope
57 | }
58 | private let _F_DUPFD = F_DUPFD
59 | private let _F_GETFD = F_GETFD
   |                        `- error: cannot find 'F_GETFD' in scope
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:60:24: error: cannot find 'F_SETFD' in scope
58 | private let _F_DUPFD = F_DUPFD
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
   |                        `- error: cannot find 'F_SETFD' in scope
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:61:24: error: cannot find 'F_GETFL' in scope
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
   |                        `- error: cannot find 'F_GETFL' in scope
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:62:24: error: cannot find 'F_SETFL' in scope
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
   |                        `- error: cannot find 'F_SETFL' in scope
63 | private let _F_GETOWN = F_GETOWN
64 | private let _F_SETOWN = F_SETOWN
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:63:25: error: cannot find 'F_GETOWN' in scope
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
   |                         `- error: cannot find 'F_GETOWN' in scope
64 | private let _F_SETOWN = F_SETOWN
65 | extension FcntlCommand {
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:64:25: error: cannot find 'F_SETOWN' in scope
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
64 | private let _F_SETOWN = F_SETOWN
   |                         `- error: cannot find 'F_SETOWN' in scope
65 | extension FcntlCommand {
66 |     public static let F_DUPFD = FcntlCommand(rawValue: _F_DUPFD)
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:80:29: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'FcntlCommand'
78 | @discardableResult
79 | public func fcntl(_ fd: CInt, _ cmd: FcntlCommand, _ arg: CInt = 0) throws -> CInt {
80 |     try check(fcntl(fd, cmd.rawValue, arg))
   |                             `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'FcntlCommand'
81 | }
82 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:15:23: error: cannot find 'LC_ALL' in scope
 13 |     public init(rawValue: CInt) { self.rawValue = rawValue }
 14 | }
 15 | private let _LC_ALL = LC_ALL
    |                       `- error: cannot find 'LC_ALL' in scope
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:16:27: error: cannot find 'LC_COLLATE' in scope
 14 | }
 15 | private let _LC_ALL = LC_ALL
 16 | private let _LC_COLLATE = LC_COLLATE
    |                           `- error: cannot find 'LC_COLLATE' in scope
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:17:25: error: cannot find 'LC_CTYPE' in scope
 15 | private let _LC_ALL = LC_ALL
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
    |                         `- error: cannot find 'LC_CTYPE' in scope
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:18:28: error: cannot find 'LC_MONETARY' in scope
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
    |                            `- error: cannot find 'LC_MONETARY' in scope
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:19:27: error: cannot find 'LC_NUMERIC' in scope
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
    |                           `- error: cannot find 'LC_NUMERIC' in scope
 20 | private let _LC_TIME = LC_TIME
 21 | private let _LC_MESSAGES = LC_MESSAGES
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:20:24: error: cannot find 'LC_TIME' in scope
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
    |                        `- error: cannot find 'LC_TIME' in scope
 21 | private let _LC_MESSAGES = LC_MESSAGES
 22 | extension LocaleCategory {
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:21:28: error: cannot find 'LC_MESSAGES' in scope
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
 21 | private let _LC_MESSAGES = LC_MESSAGES
    |                            `- error: cannot find 'LC_MESSAGES' in scope
 22 | extension LocaleCategory {
 23 |     public static let LC_ALL = LocaleCategory(rawValue: _LC_ALL)
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:39:68: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 37 |     let result: UnsafeMutablePointer<CChar>?
 38 |     if let locale {
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
    |                                                                    `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:41:16: error: cannot assign value of type 'String?' to type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>')
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
    |                |- error: cannot assign value of type 'String?' to type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>')
    |                `- note: arguments to generic parameter 'Wrapped' ('String' and 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')) are expected to be equal
 42 |     }
 43 |     return result.map { String(cString: $0) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:41:37: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'LocaleCategory'
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
    |                                     `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'LocaleCategory'
 42 |     }
 43 |     return result.map { String(cString: $0) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:88:19: error: cannot find 'C' in scope
 86 | /// identical to C's `localeconv(3)`, but returns a swifty `Lconv`.
 87 | public func localeconv() -> Lconv {
 88 |     guard let p = C.localeconv() else {
    |                   `- error: cannot find 'C' in scope
 89 |         return Lconv(
 90 |             decimalPoint: ".", thousandsSep: "", grouping: [],
[18/23] Compiling POSIXGlobals Limits.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:14:25: error: cannot find 'O_RDONLY' in scope
12 |     public init(rawValue: CInt) { self.rawValue = rawValue }
13 | }
14 | private let _O_RDONLY = O_RDONLY
   |                         `- error: cannot find 'O_RDONLY' in scope
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:15:25: error: cannot find 'O_WRONLY' in scope
13 | }
14 | private let _O_RDONLY = O_RDONLY
15 | private let _O_WRONLY = O_WRONLY
   |                         `- error: cannot find 'O_WRONLY' in scope
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:16:23: error: cannot find 'O_RDWR' in scope
14 | private let _O_RDONLY = O_RDONLY
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
   |                       `- error: cannot find 'O_RDWR' in scope
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:17:25: error: cannot find 'O_APPEND' in scope
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
   |                         `- error: cannot find 'O_APPEND' in scope
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:18:24: error: cannot find 'O_CREAT' in scope
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
   |                        `- error: cannot find 'O_CREAT' in scope
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:19:23: error: cannot find 'O_EXCL' in scope
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
   |                       `- error: cannot find 'O_EXCL' in scope
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:20:24: error: cannot find 'O_TRUNC' in scope
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
   |                        `- error: cannot find 'O_TRUNC' in scope
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:21:27: error: cannot find 'O_NONBLOCK' in scope
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
   |                           `- error: cannot find 'O_NONBLOCK' in scope
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:22:25: error: cannot find 'O_NOCTTY' in scope
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
   |                         `- error: cannot find 'O_NOCTTY' in scope
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:23:26: error: cannot find 'O_CLOEXEC' in scope
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
   |                          `- error: cannot find 'O_CLOEXEC' in scope
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:24:27: error: cannot find 'O_NOFOLLOW' in scope
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
   |                           `- error: cannot find 'O_NOFOLLOW' in scope
25 | private let _O_DIRECTORY = O_DIRECTORY
26 | private let _O_SYNC = O_SYNC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:25:28: error: cannot find 'O_DIRECTORY' in scope
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
   |                            `- error: cannot find 'O_DIRECTORY' in scope
26 | private let _O_SYNC = O_SYNC
27 | extension OpenFlags {
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:26:23: error: cannot find 'O_SYNC' in scope
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
26 | private let _O_SYNC = O_SYNC
   |                       `- error: cannot find 'O_SYNC' in scope
27 | extension OpenFlags {
28 |     public static let O_RDONLY = OpenFlags(rawValue: _O_RDONLY) // == []
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:44:74: error: cannot find type 'mode_t' in scope
42 |
43 | /// identical to C's `open(2)`; returns the file descriptor.
44 | public func open(_ path: String, _ flags: OpenFlags = .O_RDONLY, _ mode: mode_t = 0o666) throws -> CInt {
   |                                                                          `- error: cannot find type 'mode_t' in scope
45 |     try path.withCString { try check(open($0, flags.rawValue, mode)) }
46 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:49:43: error: cannot find type 'mode_t' in scope
47 |
48 | /// identical to C's `creat(2)`; returns the file descriptor.
49 | public func creat(_ path: String, _ mode: mode_t = 0o666) throws -> CInt {
   |                                           `- error: cannot find type 'mode_t' in scope
50 |     try path.withCString { try check(creat($0, mode)) }
51 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:58:24: error: cannot find 'F_DUPFD' in scope
56 |     public init(rawValue: CInt) { self.rawValue = rawValue }
57 | }
58 | private let _F_DUPFD = F_DUPFD
   |                        `- error: cannot find 'F_DUPFD' in scope
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:59:24: error: cannot find 'F_GETFD' in scope
57 | }
58 | private let _F_DUPFD = F_DUPFD
59 | private let _F_GETFD = F_GETFD
   |                        `- error: cannot find 'F_GETFD' in scope
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:60:24: error: cannot find 'F_SETFD' in scope
58 | private let _F_DUPFD = F_DUPFD
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
   |                        `- error: cannot find 'F_SETFD' in scope
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:61:24: error: cannot find 'F_GETFL' in scope
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
   |                        `- error: cannot find 'F_GETFL' in scope
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:62:24: error: cannot find 'F_SETFL' in scope
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
   |                        `- error: cannot find 'F_SETFL' in scope
63 | private let _F_GETOWN = F_GETOWN
64 | private let _F_SETOWN = F_SETOWN
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:63:25: error: cannot find 'F_GETOWN' in scope
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
   |                         `- error: cannot find 'F_GETOWN' in scope
64 | private let _F_SETOWN = F_SETOWN
65 | extension FcntlCommand {
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:64:25: error: cannot find 'F_SETOWN' in scope
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
64 | private let _F_SETOWN = F_SETOWN
   |                         `- error: cannot find 'F_SETOWN' in scope
65 | extension FcntlCommand {
66 |     public static let F_DUPFD = FcntlCommand(rawValue: _F_DUPFD)
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:80:29: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'FcntlCommand'
78 | @discardableResult
79 | public func fcntl(_ fd: CInt, _ cmd: FcntlCommand, _ arg: CInt = 0) throws -> CInt {
80 |     try check(fcntl(fd, cmd.rawValue, arg))
   |                             `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'FcntlCommand'
81 | }
82 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:15:23: error: cannot find 'LC_ALL' in scope
 13 |     public init(rawValue: CInt) { self.rawValue = rawValue }
 14 | }
 15 | private let _LC_ALL = LC_ALL
    |                       `- error: cannot find 'LC_ALL' in scope
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:16:27: error: cannot find 'LC_COLLATE' in scope
 14 | }
 15 | private let _LC_ALL = LC_ALL
 16 | private let _LC_COLLATE = LC_COLLATE
    |                           `- error: cannot find 'LC_COLLATE' in scope
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:17:25: error: cannot find 'LC_CTYPE' in scope
 15 | private let _LC_ALL = LC_ALL
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
    |                         `- error: cannot find 'LC_CTYPE' in scope
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:18:28: error: cannot find 'LC_MONETARY' in scope
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
    |                            `- error: cannot find 'LC_MONETARY' in scope
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:19:27: error: cannot find 'LC_NUMERIC' in scope
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
    |                           `- error: cannot find 'LC_NUMERIC' in scope
 20 | private let _LC_TIME = LC_TIME
 21 | private let _LC_MESSAGES = LC_MESSAGES
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:20:24: error: cannot find 'LC_TIME' in scope
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
    |                        `- error: cannot find 'LC_TIME' in scope
 21 | private let _LC_MESSAGES = LC_MESSAGES
 22 | extension LocaleCategory {
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:21:28: error: cannot find 'LC_MESSAGES' in scope
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
 21 | private let _LC_MESSAGES = LC_MESSAGES
    |                            `- error: cannot find 'LC_MESSAGES' in scope
 22 | extension LocaleCategory {
 23 |     public static let LC_ALL = LocaleCategory(rawValue: _LC_ALL)
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:39:68: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 37 |     let result: UnsafeMutablePointer<CChar>?
 38 |     if let locale {
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
    |                                                                    `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:41:16: error: cannot assign value of type 'String?' to type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>')
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
    |                |- error: cannot assign value of type 'String?' to type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>')
    |                `- note: arguments to generic parameter 'Wrapped' ('String' and 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')) are expected to be equal
 42 |     }
 43 |     return result.map { String(cString: $0) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:41:37: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'LocaleCategory'
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
    |                                     `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'LocaleCategory'
 42 |     }
 43 |     return result.map { String(cString: $0) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:88:19: error: cannot find 'C' in scope
 86 | /// identical to C's `localeconv(3)`, but returns a swifty `Lconv`.
 87 | public func localeconv() -> Lconv {
 88 |     guard let p = C.localeconv() else {
    |                   `- error: cannot find 'C' in scope
 89 |         return Lconv(
 90 |             decimalPoint: ".", thousandsSep: "", grouping: [],
[19/23] Compiling POSIXGlobals Locale.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:14:25: error: cannot find 'O_RDONLY' in scope
12 |     public init(rawValue: CInt) { self.rawValue = rawValue }
13 | }
14 | private let _O_RDONLY = O_RDONLY
   |                         `- error: cannot find 'O_RDONLY' in scope
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:15:25: error: cannot find 'O_WRONLY' in scope
13 | }
14 | private let _O_RDONLY = O_RDONLY
15 | private let _O_WRONLY = O_WRONLY
   |                         `- error: cannot find 'O_WRONLY' in scope
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:16:23: error: cannot find 'O_RDWR' in scope
14 | private let _O_RDONLY = O_RDONLY
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
   |                       `- error: cannot find 'O_RDWR' in scope
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:17:25: error: cannot find 'O_APPEND' in scope
15 | private let _O_WRONLY = O_WRONLY
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
   |                         `- error: cannot find 'O_APPEND' in scope
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:18:24: error: cannot find 'O_CREAT' in scope
16 | private let _O_RDWR = O_RDWR
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
   |                        `- error: cannot find 'O_CREAT' in scope
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:19:23: error: cannot find 'O_EXCL' in scope
17 | private let _O_APPEND = O_APPEND
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
   |                       `- error: cannot find 'O_EXCL' in scope
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:20:24: error: cannot find 'O_TRUNC' in scope
18 | private let _O_CREAT = O_CREAT
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
   |                        `- error: cannot find 'O_TRUNC' in scope
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:21:27: error: cannot find 'O_NONBLOCK' in scope
19 | private let _O_EXCL = O_EXCL
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
   |                           `- error: cannot find 'O_NONBLOCK' in scope
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:22:25: error: cannot find 'O_NOCTTY' in scope
20 | private let _O_TRUNC = O_TRUNC
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
   |                         `- error: cannot find 'O_NOCTTY' in scope
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:23:26: error: cannot find 'O_CLOEXEC' in scope
21 | private let _O_NONBLOCK = O_NONBLOCK
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
   |                          `- error: cannot find 'O_CLOEXEC' in scope
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:24:27: error: cannot find 'O_NOFOLLOW' in scope
22 | private let _O_NOCTTY = O_NOCTTY
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
   |                           `- error: cannot find 'O_NOFOLLOW' in scope
25 | private let _O_DIRECTORY = O_DIRECTORY
26 | private let _O_SYNC = O_SYNC
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:25:28: error: cannot find 'O_DIRECTORY' in scope
23 | private let _O_CLOEXEC = O_CLOEXEC
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
   |                            `- error: cannot find 'O_DIRECTORY' in scope
26 | private let _O_SYNC = O_SYNC
27 | extension OpenFlags {
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:26:23: error: cannot find 'O_SYNC' in scope
24 | private let _O_NOFOLLOW = O_NOFOLLOW
25 | private let _O_DIRECTORY = O_DIRECTORY
26 | private let _O_SYNC = O_SYNC
   |                       `- error: cannot find 'O_SYNC' in scope
27 | extension OpenFlags {
28 |     public static let O_RDONLY = OpenFlags(rawValue: _O_RDONLY) // == []
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:44:74: error: cannot find type 'mode_t' in scope
42 |
43 | /// identical to C's `open(2)`; returns the file descriptor.
44 | public func open(_ path: String, _ flags: OpenFlags = .O_RDONLY, _ mode: mode_t = 0o666) throws -> CInt {
   |                                                                          `- error: cannot find type 'mode_t' in scope
45 |     try path.withCString { try check(open($0, flags.rawValue, mode)) }
46 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:49:43: error: cannot find type 'mode_t' in scope
47 |
48 | /// identical to C's `creat(2)`; returns the file descriptor.
49 | public func creat(_ path: String, _ mode: mode_t = 0o666) throws -> CInt {
   |                                           `- error: cannot find type 'mode_t' in scope
50 |     try path.withCString { try check(creat($0, mode)) }
51 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:58:24: error: cannot find 'F_DUPFD' in scope
56 |     public init(rawValue: CInt) { self.rawValue = rawValue }
57 | }
58 | private let _F_DUPFD = F_DUPFD
   |                        `- error: cannot find 'F_DUPFD' in scope
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:59:24: error: cannot find 'F_GETFD' in scope
57 | }
58 | private let _F_DUPFD = F_DUPFD
59 | private let _F_GETFD = F_GETFD
   |                        `- error: cannot find 'F_GETFD' in scope
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:60:24: error: cannot find 'F_SETFD' in scope
58 | private let _F_DUPFD = F_DUPFD
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
   |                        `- error: cannot find 'F_SETFD' in scope
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:61:24: error: cannot find 'F_GETFL' in scope
59 | private let _F_GETFD = F_GETFD
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
   |                        `- error: cannot find 'F_GETFL' in scope
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:62:24: error: cannot find 'F_SETFL' in scope
60 | private let _F_SETFD = F_SETFD
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
   |                        `- error: cannot find 'F_SETFL' in scope
63 | private let _F_GETOWN = F_GETOWN
64 | private let _F_SETOWN = F_SETOWN
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:63:25: error: cannot find 'F_GETOWN' in scope
61 | private let _F_GETFL = F_GETFL
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
   |                         `- error: cannot find 'F_GETOWN' in scope
64 | private let _F_SETOWN = F_SETOWN
65 | extension FcntlCommand {
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:64:25: error: cannot find 'F_SETOWN' in scope
62 | private let _F_SETFL = F_SETFL
63 | private let _F_GETOWN = F_GETOWN
64 | private let _F_SETOWN = F_SETOWN
   |                         `- error: cannot find 'F_SETOWN' in scope
65 | extension FcntlCommand {
66 |     public static let F_DUPFD = FcntlCommand(rawValue: _F_DUPFD)
/host/spi-builder-workspace/Sources/POSIXGlobals/Fcntl.swift:80:29: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'FcntlCommand'
78 | @discardableResult
79 | public func fcntl(_ fd: CInt, _ cmd: FcntlCommand, _ arg: CInt = 0) throws -> CInt {
80 |     try check(fcntl(fd, cmd.rawValue, arg))
   |                             `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'FcntlCommand'
81 | }
82 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:15:23: error: cannot find 'LC_ALL' in scope
 13 |     public init(rawValue: CInt) { self.rawValue = rawValue }
 14 | }
 15 | private let _LC_ALL = LC_ALL
    |                       `- error: cannot find 'LC_ALL' in scope
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:16:27: error: cannot find 'LC_COLLATE' in scope
 14 | }
 15 | private let _LC_ALL = LC_ALL
 16 | private let _LC_COLLATE = LC_COLLATE
    |                           `- error: cannot find 'LC_COLLATE' in scope
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:17:25: error: cannot find 'LC_CTYPE' in scope
 15 | private let _LC_ALL = LC_ALL
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
    |                         `- error: cannot find 'LC_CTYPE' in scope
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:18:28: error: cannot find 'LC_MONETARY' in scope
 16 | private let _LC_COLLATE = LC_COLLATE
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
    |                            `- error: cannot find 'LC_MONETARY' in scope
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:19:27: error: cannot find 'LC_NUMERIC' in scope
 17 | private let _LC_CTYPE = LC_CTYPE
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
    |                           `- error: cannot find 'LC_NUMERIC' in scope
 20 | private let _LC_TIME = LC_TIME
 21 | private let _LC_MESSAGES = LC_MESSAGES
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:20:24: error: cannot find 'LC_TIME' in scope
 18 | private let _LC_MONETARY = LC_MONETARY
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
    |                        `- error: cannot find 'LC_TIME' in scope
 21 | private let _LC_MESSAGES = LC_MESSAGES
 22 | extension LocaleCategory {
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:21:28: error: cannot find 'LC_MESSAGES' in scope
 19 | private let _LC_NUMERIC = LC_NUMERIC
 20 | private let _LC_TIME = LC_TIME
 21 | private let _LC_MESSAGES = LC_MESSAGES
    |                            `- error: cannot find 'LC_MESSAGES' in scope
 22 | extension LocaleCategory {
 23 |     public static let LC_ALL = LocaleCategory(rawValue: _LC_ALL)
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:39:68: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 37 |     let result: UnsafeMutablePointer<CChar>?
 38 |     if let locale {
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
    |                                                                    `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:41:16: error: cannot assign value of type 'String?' to type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>')
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
    |                |- error: cannot assign value of type 'String?' to type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>')
    |                `- note: arguments to generic parameter 'Wrapped' ('String' and 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')) are expected to be equal
 42 |     }
 43 |     return result.map { String(cString: $0) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:41:37: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'LocaleCategory'
 39 |         result = locale.withCString { setlocale(category.rawValue, $0) }
 40 |     } else {
 41 |         result = setlocale(category.rawValue, nil)
    |                                     `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'LocaleCategory'
 42 |     }
 43 |     return result.map { String(cString: $0) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Locale.swift:88:19: error: cannot find 'C' in scope
 86 | /// identical to C's `localeconv(3)`, but returns a swifty `Lconv`.
 87 | public func localeconv() -> Lconv {
 88 |     guard let p = C.localeconv() else {
    |                   `- error: cannot find 'C' in scope
 89 |         return Lconv(
 90 |             decimalPoint: ".", thousandsSep: "", grouping: [],
[20/23] Compiling POSIXGlobals SysUtsname.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/SysUtsname.swift:25:13: error: cannot find 'utsname' in scope
23 | /// identical to C's `uname(3)`, but returns a swifty `Utsname`.
24 | public func uname() throws -> Utsname {
25 |     var u = utsname()
   |             `- error: cannot find 'utsname' in scope
26 |     try check(uname(&u))
27 |     return Utsname(
/host/spi-builder-workspace/Sources/POSIXGlobals/SysUtsname.swift:26:21: error: argument passed to call that takes no arguments
24 | public func uname() throws -> Utsname {
25 |     var u = utsname()
26 |     try check(uname(&u))
   |                     `- error: argument passed to call that takes no arguments
27 |     return Utsname(
28 |         sysname: stringFromCCharTuple(u.sysname),
/host/spi-builder-workspace/Sources/POSIXGlobals/SysWait.swift:51:24: error: cannot find 'WNOHANG' in scope
49 |     public init(rawValue: CInt) { self.rawValue = rawValue }
50 | }
51 | private let _WNOHANG = WNOHANG
   |                        `- error: cannot find 'WNOHANG' in scope
52 | private let _WUNTRACED = WUNTRACED
53 | private let _WCONTINUED = WCONTINUED
/host/spi-builder-workspace/Sources/POSIXGlobals/SysWait.swift:52:26: error: cannot find 'WUNTRACED' in scope
50 | }
51 | private let _WNOHANG = WNOHANG
52 | private let _WUNTRACED = WUNTRACED
   |                          `- error: cannot find 'WUNTRACED' in scope
53 | private let _WCONTINUED = WCONTINUED
54 | extension WaitOptions {
/host/spi-builder-workspace/Sources/POSIXGlobals/SysWait.swift:53:27: error: cannot find 'WCONTINUED' in scope
51 | private let _WNOHANG = WNOHANG
52 | private let _WUNTRACED = WUNTRACED
53 | private let _WCONTINUED = WCONTINUED
   |                           `- error: cannot find 'WCONTINUED' in scope
54 | extension WaitOptions {
55 |     public static let WNOHANG = WaitOptions(rawValue: _WNOHANG)
/host/spi-builder-workspace/Sources/POSIXGlobals/SysWait.swift:61:36: error: cannot find type 'pid_t' in scope
59 |
60 | /// identical to C's `wait(2)`; returns the reaped pid and its status.
61 | public func wait() throws -> (pid: pid_t, status: WaitStatus) {
   |                                    `- error: cannot find type 'pid_t' in scope
62 |     var status: CInt = 0
63 |     let pid = try check(wait(&status))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysWait.swift:69:80: error: cannot find type 'pid_t' in scope
67 | /// identical to C's `waitpid(2)`; returns the reaped pid (0 with
68 | /// `.WNOHANG` when nothing has changed) and its status.
69 | public func waitpid(_ pid: pid_t, _ options: WaitOptions = []) throws -> (pid: pid_t, status: WaitStatus) {
   |                                                                                `- error: cannot find type 'pid_t' in scope
70 |     var status: CInt = 0
71 |     let r = try check(waitpid(pid, &status, options.rawValue))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysWait.swift:69:28: error: cannot find type 'pid_t' in scope
67 | /// identical to C's `waitpid(2)`; returns the reaped pid (0 with
68 | /// `.WNOHANG` when nothing has changed) and its status.
69 | public func waitpid(_ pid: pid_t, _ options: WaitOptions = []) throws -> (pid: pid_t, status: WaitStatus) {
   |                            `- error: cannot find type 'pid_t' in scope
70 |     var status: CInt = 0
71 |     let r = try check(waitpid(pid, &status, options.rawValue))
[21/23] Compiling POSIXGlobals SysWait.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/SysUtsname.swift:25:13: error: cannot find 'utsname' in scope
23 | /// identical to C's `uname(3)`, but returns a swifty `Utsname`.
24 | public func uname() throws -> Utsname {
25 |     var u = utsname()
   |             `- error: cannot find 'utsname' in scope
26 |     try check(uname(&u))
27 |     return Utsname(
/host/spi-builder-workspace/Sources/POSIXGlobals/SysUtsname.swift:26:21: error: argument passed to call that takes no arguments
24 | public func uname() throws -> Utsname {
25 |     var u = utsname()
26 |     try check(uname(&u))
   |                     `- error: argument passed to call that takes no arguments
27 |     return Utsname(
28 |         sysname: stringFromCCharTuple(u.sysname),
/host/spi-builder-workspace/Sources/POSIXGlobals/SysWait.swift:51:24: error: cannot find 'WNOHANG' in scope
49 |     public init(rawValue: CInt) { self.rawValue = rawValue }
50 | }
51 | private let _WNOHANG = WNOHANG
   |                        `- error: cannot find 'WNOHANG' in scope
52 | private let _WUNTRACED = WUNTRACED
53 | private let _WCONTINUED = WCONTINUED
/host/spi-builder-workspace/Sources/POSIXGlobals/SysWait.swift:52:26: error: cannot find 'WUNTRACED' in scope
50 | }
51 | private let _WNOHANG = WNOHANG
52 | private let _WUNTRACED = WUNTRACED
   |                          `- error: cannot find 'WUNTRACED' in scope
53 | private let _WCONTINUED = WCONTINUED
54 | extension WaitOptions {
/host/spi-builder-workspace/Sources/POSIXGlobals/SysWait.swift:53:27: error: cannot find 'WCONTINUED' in scope
51 | private let _WNOHANG = WNOHANG
52 | private let _WUNTRACED = WUNTRACED
53 | private let _WCONTINUED = WCONTINUED
   |                           `- error: cannot find 'WCONTINUED' in scope
54 | extension WaitOptions {
55 |     public static let WNOHANG = WaitOptions(rawValue: _WNOHANG)
/host/spi-builder-workspace/Sources/POSIXGlobals/SysWait.swift:61:36: error: cannot find type 'pid_t' in scope
59 |
60 | /// identical to C's `wait(2)`; returns the reaped pid and its status.
61 | public func wait() throws -> (pid: pid_t, status: WaitStatus) {
   |                                    `- error: cannot find type 'pid_t' in scope
62 |     var status: CInt = 0
63 |     let pid = try check(wait(&status))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysWait.swift:69:80: error: cannot find type 'pid_t' in scope
67 | /// identical to C's `waitpid(2)`; returns the reaped pid (0 with
68 | /// `.WNOHANG` when nothing has changed) and its status.
69 | public func waitpid(_ pid: pid_t, _ options: WaitOptions = []) throws -> (pid: pid_t, status: WaitStatus) {
   |                                                                                `- error: cannot find type 'pid_t' in scope
70 |     var status: CInt = 0
71 |     let r = try check(waitpid(pid, &status, options.rawValue))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysWait.swift:69:28: error: cannot find type 'pid_t' in scope
67 | /// identical to C's `waitpid(2)`; returns the reaped pid (0 with
68 | /// `.WNOHANG` when nothing has changed) and its status.
69 | public func waitpid(_ pid: pid_t, _ options: WaitOptions = []) throws -> (pid: pid_t, status: WaitStatus) {
   |                            `- error: cannot find type 'pid_t' in scope
70 |     var status: CInt = 0
71 |     let r = try check(waitpid(pid, &status, options.rawValue))
[22/23] Compiling POSIXGlobals Signal.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:19:23: error: cannot find 'SIGHUP' in scope
 17 | }
 18 |
 19 | private let _SIGHUP = SIGHUP
    |                       `- error: cannot find 'SIGHUP' in scope
 20 | private let _SIGINT = SIGINT
 21 | private let _SIGQUIT = SIGQUIT
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:20:23: error: cannot find 'SIGINT' in scope
 18 |
 19 | private let _SIGHUP = SIGHUP
 20 | private let _SIGINT = SIGINT
    |                       `- error: cannot find 'SIGINT' in scope
 21 | private let _SIGQUIT = SIGQUIT
 22 | private let _SIGILL = SIGILL
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:21:24: error: cannot find 'SIGQUIT' in scope
 19 | private let _SIGHUP = SIGHUP
 20 | private let _SIGINT = SIGINT
 21 | private let _SIGQUIT = SIGQUIT
    |                        `- error: cannot find 'SIGQUIT' in scope
 22 | private let _SIGILL = SIGILL
 23 | private let _SIGTRAP = SIGTRAP
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:22:23: error: cannot find 'SIGILL' in scope
 20 | private let _SIGINT = SIGINT
 21 | private let _SIGQUIT = SIGQUIT
 22 | private let _SIGILL = SIGILL
    |                       `- error: cannot find 'SIGILL' in scope
 23 | private let _SIGTRAP = SIGTRAP
 24 | private let _SIGABRT = SIGABRT
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:23:24: error: cannot find 'SIGTRAP' in scope
 21 | private let _SIGQUIT = SIGQUIT
 22 | private let _SIGILL = SIGILL
 23 | private let _SIGTRAP = SIGTRAP
    |                        `- error: cannot find 'SIGTRAP' in scope
 24 | private let _SIGABRT = SIGABRT
 25 | private let _SIGFPE = SIGFPE
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:24:24: error: cannot find 'SIGABRT' in scope
 22 | private let _SIGILL = SIGILL
 23 | private let _SIGTRAP = SIGTRAP
 24 | private let _SIGABRT = SIGABRT
    |                        `- error: cannot find 'SIGABRT' in scope
 25 | private let _SIGFPE = SIGFPE
 26 | private let _SIGKILL = SIGKILL
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:25:23: error: cannot find 'SIGFPE' in scope
 23 | private let _SIGTRAP = SIGTRAP
 24 | private let _SIGABRT = SIGABRT
 25 | private let _SIGFPE = SIGFPE
    |                       `- error: cannot find 'SIGFPE' in scope
 26 | private let _SIGKILL = SIGKILL
 27 | private let _SIGBUS = SIGBUS
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:26:24: error: cannot find 'SIGKILL' in scope
 24 | private let _SIGABRT = SIGABRT
 25 | private let _SIGFPE = SIGFPE
 26 | private let _SIGKILL = SIGKILL
    |                        `- error: cannot find 'SIGKILL' in scope
 27 | private let _SIGBUS = SIGBUS
 28 | private let _SIGSEGV = SIGSEGV
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:27:23: error: cannot find 'SIGBUS' in scope
 25 | private let _SIGFPE = SIGFPE
 26 | private let _SIGKILL = SIGKILL
 27 | private let _SIGBUS = SIGBUS
    |                       `- error: cannot find 'SIGBUS' in scope
 28 | private let _SIGSEGV = SIGSEGV
 29 | private let _SIGSYS = SIGSYS
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:28:24: error: cannot find 'SIGSEGV' in scope
 26 | private let _SIGKILL = SIGKILL
 27 | private let _SIGBUS = SIGBUS
 28 | private let _SIGSEGV = SIGSEGV
    |                        `- error: cannot find 'SIGSEGV' in scope
 29 | private let _SIGSYS = SIGSYS
 30 | private let _SIGPIPE = SIGPIPE
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:29:23: error: cannot find 'SIGSYS' in scope
 27 | private let _SIGBUS = SIGBUS
 28 | private let _SIGSEGV = SIGSEGV
 29 | private let _SIGSYS = SIGSYS
    |                       `- error: cannot find 'SIGSYS' in scope
 30 | private let _SIGPIPE = SIGPIPE
 31 | private let _SIGALRM = SIGALRM
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:30:24: error: cannot find 'SIGPIPE' in scope
 28 | private let _SIGSEGV = SIGSEGV
 29 | private let _SIGSYS = SIGSYS
 30 | private let _SIGPIPE = SIGPIPE
    |                        `- error: cannot find 'SIGPIPE' in scope
 31 | private let _SIGALRM = SIGALRM
 32 | private let _SIGTERM = SIGTERM
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:31:24: error: cannot find 'SIGALRM' in scope
 29 | private let _SIGSYS = SIGSYS
 30 | private let _SIGPIPE = SIGPIPE
 31 | private let _SIGALRM = SIGALRM
    |                        `- error: cannot find 'SIGALRM' in scope
 32 | private let _SIGTERM = SIGTERM
 33 | private let _SIGURG = SIGURG
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:32:24: error: cannot find 'SIGTERM' in scope
 30 | private let _SIGPIPE = SIGPIPE
 31 | private let _SIGALRM = SIGALRM
 32 | private let _SIGTERM = SIGTERM
    |                        `- error: cannot find 'SIGTERM' in scope
 33 | private let _SIGURG = SIGURG
 34 | private let _SIGSTOP = SIGSTOP
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:33:23: error: cannot find 'SIGURG' in scope
 31 | private let _SIGALRM = SIGALRM
 32 | private let _SIGTERM = SIGTERM
 33 | private let _SIGURG = SIGURG
    |                       `- error: cannot find 'SIGURG' in scope
 34 | private let _SIGSTOP = SIGSTOP
 35 | private let _SIGTSTP = SIGTSTP
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:34:24: error: cannot find 'SIGSTOP' in scope
 32 | private let _SIGTERM = SIGTERM
 33 | private let _SIGURG = SIGURG
 34 | private let _SIGSTOP = SIGSTOP
    |                        `- error: cannot find 'SIGSTOP' in scope
 35 | private let _SIGTSTP = SIGTSTP
 36 | private let _SIGCONT = SIGCONT
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:35:24: error: cannot find 'SIGTSTP' in scope
 33 | private let _SIGURG = SIGURG
 34 | private let _SIGSTOP = SIGSTOP
 35 | private let _SIGTSTP = SIGTSTP
    |                        `- error: cannot find 'SIGTSTP' in scope
 36 | private let _SIGCONT = SIGCONT
 37 | private let _SIGCHLD = SIGCHLD
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:36:24: error: cannot find 'SIGCONT' in scope
 34 | private let _SIGSTOP = SIGSTOP
 35 | private let _SIGTSTP = SIGTSTP
 36 | private let _SIGCONT = SIGCONT
    |                        `- error: cannot find 'SIGCONT' in scope
 37 | private let _SIGCHLD = SIGCHLD
 38 | private let _SIGTTIN = SIGTTIN
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:37:24: error: cannot find 'SIGCHLD' in scope
 35 | private let _SIGTSTP = SIGTSTP
 36 | private let _SIGCONT = SIGCONT
 37 | private let _SIGCHLD = SIGCHLD
    |                        `- error: cannot find 'SIGCHLD' in scope
 38 | private let _SIGTTIN = SIGTTIN
 39 | private let _SIGTTOU = SIGTTOU
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:38:24: error: cannot find 'SIGTTIN' in scope
 36 | private let _SIGCONT = SIGCONT
 37 | private let _SIGCHLD = SIGCHLD
 38 | private let _SIGTTIN = SIGTTIN
    |                        `- error: cannot find 'SIGTTIN' in scope
 39 | private let _SIGTTOU = SIGTTOU
 40 | private let _SIGIO = SIGIO
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:39:24: error: cannot find 'SIGTTOU' in scope
 37 | private let _SIGCHLD = SIGCHLD
 38 | private let _SIGTTIN = SIGTTIN
 39 | private let _SIGTTOU = SIGTTOU
    |                        `- error: cannot find 'SIGTTOU' in scope
 40 | private let _SIGIO = SIGIO
 41 | private let _SIGXCPU = SIGXCPU
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:40:22: error: cannot find 'SIGIO' in scope
 38 | private let _SIGTTIN = SIGTTIN
 39 | private let _SIGTTOU = SIGTTOU
 40 | private let _SIGIO = SIGIO
    |                      `- error: cannot find 'SIGIO' in scope
 41 | private let _SIGXCPU = SIGXCPU
 42 | private let _SIGXFSZ = SIGXFSZ
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:41:24: error: cannot find 'SIGXCPU' in scope
 39 | private let _SIGTTOU = SIGTTOU
 40 | private let _SIGIO = SIGIO
 41 | private let _SIGXCPU = SIGXCPU
    |                        `- error: cannot find 'SIGXCPU' in scope
 42 | private let _SIGXFSZ = SIGXFSZ
 43 | private let _SIGVTALRM = SIGVTALRM
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:42:24: error: cannot find 'SIGXFSZ' in scope
 40 | private let _SIGIO = SIGIO
 41 | private let _SIGXCPU = SIGXCPU
 42 | private let _SIGXFSZ = SIGXFSZ
    |                        `- error: cannot find 'SIGXFSZ' in scope
 43 | private let _SIGVTALRM = SIGVTALRM
 44 | private let _SIGPROF = SIGPROF
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:43:26: error: cannot find 'SIGVTALRM' in scope
 41 | private let _SIGXCPU = SIGXCPU
 42 | private let _SIGXFSZ = SIGXFSZ
 43 | private let _SIGVTALRM = SIGVTALRM
    |                          `- error: cannot find 'SIGVTALRM' in scope
 44 | private let _SIGPROF = SIGPROF
 45 | private let _SIGWINCH = SIGWINCH
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:44:24: error: cannot find 'SIGPROF' in scope
 42 | private let _SIGXFSZ = SIGXFSZ
 43 | private let _SIGVTALRM = SIGVTALRM
 44 | private let _SIGPROF = SIGPROF
    |                        `- error: cannot find 'SIGPROF' in scope
 45 | private let _SIGWINCH = SIGWINCH
 46 | private let _SIGUSR1 = SIGUSR1
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:45:25: error: cannot find 'SIGWINCH' in scope
 43 | private let _SIGVTALRM = SIGVTALRM
 44 | private let _SIGPROF = SIGPROF
 45 | private let _SIGWINCH = SIGWINCH
    |                         `- error: cannot find 'SIGWINCH' in scope
 46 | private let _SIGUSR1 = SIGUSR1
 47 | private let _SIGUSR2 = SIGUSR2
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:46:24: error: cannot find 'SIGUSR1' in scope
 44 | private let _SIGPROF = SIGPROF
 45 | private let _SIGWINCH = SIGWINCH
 46 | private let _SIGUSR1 = SIGUSR1
    |                        `- error: cannot find 'SIGUSR1' in scope
 47 | private let _SIGUSR2 = SIGUSR2
 48 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:47:24: error: cannot find 'SIGUSR2' in scope
 45 | private let _SIGWINCH = SIGWINCH
 46 | private let _SIGUSR1 = SIGUSR1
 47 | private let _SIGUSR2 = SIGUSR2
    |                        `- error: cannot find 'SIGUSR2' in scope
 48 |
 49 | extension Signal {
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:82:25: error: cannot find type 'pid_t' in scope
 80 |
 81 | /// identical to C's `kill(2)`.
 82 | public func kill(_ pid: pid_t, _ sig: Signal) throws {
    |                         `- error: cannot find type 'pid_t' in scope
 83 |     try check(kill(pid, sig.rawValue))
 84 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:93:24: error: cannot find 'sigset_t' in scope
 91 | /// A swifty `sigset_t` — like Perl's `POSIX::SigSet`.
 92 | public struct SigSet: Sendable {
 93 |     internal var raw = sigset_t()
    |                        `- error: cannot find 'sigset_t' in scope
 94 |
 95 |     /// An empty set.
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:102:24: error: cannot find type 'sigset_t' in scope
100 |         for s in signals { insert(s) }
101 |     }
102 |     internal init(raw: sigset_t) { self.raw = raw }
    |                        `- error: cannot find type 'sigset_t' in scope
103 |
104 |     /// The empty set.
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:129:26: error: cannot find 'SIG_BLOCK' in scope
127 |     public init(rawValue: CInt) { self.rawValue = rawValue }
128 | }
129 | private let _SIG_BLOCK = SIG_BLOCK
    |                          `- error: cannot find 'SIG_BLOCK' in scope
130 | private let _SIG_UNBLOCK = SIG_UNBLOCK
131 | private let _SIG_SETMASK = SIG_SETMASK
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:130:28: error: cannot find 'SIG_UNBLOCK' in scope
128 | }
129 | private let _SIG_BLOCK = SIG_BLOCK
130 | private let _SIG_UNBLOCK = SIG_UNBLOCK
    |                            `- error: cannot find 'SIG_UNBLOCK' in scope
131 | private let _SIG_SETMASK = SIG_SETMASK
132 | extension SigmaskHow {
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:131:28: error: cannot find 'SIG_SETMASK' in scope
129 | private let _SIG_BLOCK = SIG_BLOCK
130 | private let _SIG_UNBLOCK = SIG_UNBLOCK
131 | private let _SIG_SETMASK = SIG_SETMASK
    |                            `- error: cannot find 'SIG_SETMASK' in scope
132 | extension SigmaskHow {
133 |     public static let SIG_BLOCK = SigmaskHow(rawValue: _SIG_BLOCK)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:173:28: error: cannot find type 'CSigHandler' in scope
171 |     case handler(@convention(c) (CInt) -> Void)
172 |
173 |     internal var cHandler: CSigHandler? {
    |                            `- error: cannot find type 'CSigHandler' in scope
174 |         switch self {
175 |         case .defaultAction: return nil // SIG_DFL
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:180:24: error: cannot find type 'CSigHandler' in scope
178 |         }
179 |     }
180 |     internal init(_ c: CSigHandler?) {
    |                        `- error: cannot find type 'CSigHandler' in scope
181 |         switch unsafeBitCast(c, to: Int.self) {
182 |         case 0: self = .defaultAction
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:88:15: error: cannot find 'C' in scope
 86 | /// identical to C's `raise(3)`.
 87 | public func raise(_ sig: Signal) throws {
 88 |     try check(C.raise(sig.rawValue))
    |               `- error: cannot find 'C' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:96:21: error: cannot find 'sigemptyset' in scope
 94 |
 95 |     /// An empty set.
 96 |     public init() { sigemptyset(&raw) }
    |                     `- error: cannot find 'sigemptyset' in scope
 97 |     /// A set containing the given signals.
 98 |     public init(_ signals: Signal...) {
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:99:9: error: cannot find 'sigemptyset' in scope
 97 |     /// A set containing the given signals.
 98 |     public init(_ signals: Signal...) {
 99 |         sigemptyset(&raw)
    |         `- error: cannot find 'sigemptyset' in scope
100 |         for s in signals { insert(s) }
101 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:109:9: error: cannot find 'sigfillset' in scope
107 |     public static var all: SigSet {
108 |         var s = SigSet()
109 |         sigfillset(&s.raw)
    |         `- error: cannot find 'sigfillset' in scope
110 |         return s
111 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:114:50: error: cannot find 'sigaddset' in scope
112 |
113 |     /// `sigaddset`.
114 |     public mutating func insert(_ sig: Signal) { sigaddset(&raw, sig.rawValue) }
    |                                                  `- error: cannot find 'sigaddset' in scope
115 |     /// `sigdelset`.
116 |     public mutating func remove(_ sig: Signal) { sigdelset(&raw, sig.rawValue) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:116:50: error: cannot find 'sigdelset' in scope
114 |     public mutating func insert(_ sig: Signal) { sigaddset(&raw, sig.rawValue) }
115 |     /// `sigdelset`.
116 |     public mutating func remove(_ sig: Signal) { sigdelset(&raw, sig.rawValue) }
    |                                                  `- error: cannot find 'sigdelset' in scope
117 |     /// `sigismember`.
118 |     public func contains(_ sig: Signal) -> Bool {
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:120:16: error: cannot find 'sigismember' in scope
118 |     public func contains(_ sig: Signal) -> Bool {
119 |         var copy = raw
120 |         return sigismember(&copy, sig.rawValue) == 1
    |                `- error: cannot find 'sigismember' in scope
121 |     }
122 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:141:15: error: cannot find 'sigset_t' in scope
139 | @discardableResult
140 | public func sigprocmask(_ how: SigmaskHow, _ set: SigSet?) throws -> SigSet {
141 |     var old = sigset_t()
    |               `- error: cannot find 'sigset_t' in scope
142 |     if var new = set?.raw {
143 |         try check(sigprocmask(how.rawValue, &new, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:143:51: error: extra argument in call
141 |     var old = sigset_t()
142 |     if var new = set?.raw {
143 |         try check(sigprocmask(how.rawValue, &new, &old))
    |                                                   `- error: extra argument in call
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:143:35: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SigmaskHow'
141 |     var old = sigset_t()
142 |     if var new = set?.raw {
143 |         try check(sigprocmask(how.rawValue, &new, &old))
    |                                   `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SigmaskHow'
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:143:45: error: cannot convert value of type '_' to expected argument type 'SigSet'
141 |     var old = sigset_t()
142 |     if var new = set?.raw {
143 |         try check(sigprocmask(how.rawValue, &new, &old))
    |                                             `- error: cannot convert value of type '_' to expected argument type 'SigSet'
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:145:50: error: extra argument in call
143 |         try check(sigprocmask(how.rawValue, &new, &old))
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
    |                                                  `- error: extra argument in call
146 |     }
147 |     return SigSet(raw: old)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:145:35: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SigmaskHow'
143 |         try check(sigprocmask(how.rawValue, &new, &old))
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
    |                                   `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SigmaskHow'
146 |     }
147 |     return SigSet(raw: old)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:147:18: error: extraneous argument label 'raw:' in call
145 |         try check(sigprocmask(how.rawValue, nil, &old))
146 |     }
147 |     return SigSet(raw: old)
    |                  `- error: extraneous argument label 'raw:' in call
148 | }
149 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:152:15: error: cannot find 'sigset_t' in scope
150 | /// identical to C's `sigpending(2)`.
151 | public func sigpending() throws -> SigSet {
152 |     var set = sigset_t()
    |               `- error: cannot find 'sigset_t' in scope
153 |     try check(sigpending(&set))
154 |     return SigSet(raw: set)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:153:26: error: argument passed to call that takes no arguments
151 | public func sigpending() throws -> SigSet {
152 |     var set = sigset_t()
153 |     try check(sigpending(&set))
    |                          `- error: argument passed to call that takes no arguments
154 |     return SigSet(raw: set)
155 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:154:18: error: extraneous argument label 'raw:' in call
152 |     var set = sigset_t()
153 |     try check(sigpending(&set))
154 |     return SigSet(raw: set)
    |                  `- error: extraneous argument label 'raw:' in call
155 | }
156 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:161:20: error: cannot convert value of type '_' to expected argument type 'SigSet'
159 | public func sigsuspend(_ mask: SigSet) {
160 |     var m = mask.raw
161 |     _ = sigsuspend(&m)
    |                    `- error: cannot convert value of type '_' to expected argument type 'SigSet'
162 | }
163 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:176:58: error: cannot find 'CSigHandler' in scope
174 |         switch self {
175 |         case .defaultAction: return nil // SIG_DFL
176 |         case .ignore: return unsafeBitCast(1 as Int, to: CSigHandler.self) // SIG_IGN
    |                                                          `- error: cannot find 'CSigHandler' in scope
177 |         case .handler(let f): return f
178 |         }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:205:25: error: missing argument for parameter #1 in call
202 | /// returns the previous action.
203 | @discardableResult
204 | public func sigaction(_ sig: Signal, _ action: SigAction? = nil) throws -> SigAction {
    |             `- note: 'sigaction' declared here
205 |     var old = sigaction()
    |                         `- error: missing argument for parameter #1 in call
206 |     if let action {
207 |         var new = sigaction()
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:207:29: error: missing argument for parameter #1 in call
202 | /// returns the previous action.
203 | @discardableResult
204 | public func sigaction(_ sig: Signal, _ action: SigAction? = nil) throws -> SigAction {
    |             `- note: 'sigaction' declared here
205 |     var old = sigaction()
206 |     if let action {
207 |         var new = sigaction()
    |                             `- error: missing argument for parameter #1 in call
208 |         #if canImport(Darwin)
209 |         new.__sigaction_u.__sa_handler = action.handler.cHandler
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:215:49: error: extra argument in call
213 |         new.sa_mask = action.mask.raw
214 |         new.sa_flags = action.flags
215 |         try check(sigaction(sig.rawValue, &new, &old))
    |                                                 `- error: extra argument in call
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:215:33: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Signal'
213 |         new.sa_mask = action.mask.raw
214 |         new.sa_flags = action.flags
215 |         try check(sigaction(sig.rawValue, &new, &old))
    |                                 `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Signal'
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:215:43: error: cannot convert value of type '_' to expected argument type 'SigAction'
213 |         new.sa_mask = action.mask.raw
214 |         new.sa_flags = action.flags
215 |         try check(sigaction(sig.rawValue, &new, &old))
    |                                           `- error: cannot convert value of type '_' to expected argument type 'SigAction'
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:217:48: error: extra argument in call
215 |         try check(sigaction(sig.rawValue, &new, &old))
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
    |                                                `- error: extra argument in call
218 |     }
219 |     #if canImport(Darwin)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:217:33: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Signal'
215 |         try check(sigaction(sig.rawValue, &new, &old))
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
    |                                 `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Signal'
218 |     }
219 |     #if canImport(Darwin)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:224:55: error: extraneous argument label 'raw:' in call
222 |     let oldHandler = SigHandler(old.__sigaction_handler.sa_handler)
223 |     #endif
224 |     return SigAction(handler: oldHandler, mask: SigSet(raw: old.sa_mask), flags: old.sa_flags)
    |                                                       `- error: extraneous argument label 'raw:' in call
225 | }
226 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:13:17: error: argument passed to call that takes no arguments
11 | public func ctermid() -> String {
12 |     var buf = [CChar](repeating: 0, count: 1024) // >= L_ctermid
13 |     _ = ctermid(&buf)
   |                 `- error: argument passed to call that takes no arguments
14 |     return stringFromCChars(buf)
15 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:20:14: error: cannot find 'C' in scope
18 | /// user id (implemented via `getpwuid_r(3)`, which is what it means).
19 | public func cuserid() -> String? {
20 |     getpwuid(C.geteuid())?.name
   |              `- error: cannot find 'C' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:48:29: error: cannot find type 'uid_t' in scope
46 |
47 | /// identical to C's `getpwuid(3)` (via `getpwuid_r`).
48 | public func getpwuid(_ uid: uid_t) -> Passwd? {
   |                             `- error: cannot find type 'uid_t' in scope
49 |     var pw = passwd()
50 |     var buf = [CChar](repeating: 0, count: pwBufSize)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:25:49: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
23 | /// identical to C's `remove(3)`.
24 | public func remove(_ path: String) throws {
25 |     _ = try path.withCString { try check(remove($0)) }
   |                                                 `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
26 | }
27 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:32:30: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
30 |     _ = try old.withCString { o in
31 |         try new.withCString { n in
32 |             try check(rename(o, n))
   |                              `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
33 |         }
34 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:32:33: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
30 |     _ = try old.withCString { o in
31 |         try new.withCString { n in
32 |             try check(rename(o, n))
   |                                 `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
33 |         }
34 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:42:32: error: cannot convert value of type '[CChar]' (aka 'Array<Int8>') to expected argument type 'String'
40 | public func mkstemp(_ template: String) throws -> (fd: CInt, path: String) {
41 |     var buf = Array(template.utf8CString)
42 |     let fd = try check(mkstemp(&buf))
   |                                `- error: cannot convert value of type '[CChar]' (aka 'Array<Int8>') to expected argument type 'String'
43 |     return (fd, stringFromCChars(buf))
44 | }
[23/23] Compiling POSIXGlobals Stdio.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:19:23: error: cannot find 'SIGHUP' in scope
 17 | }
 18 |
 19 | private let _SIGHUP = SIGHUP
    |                       `- error: cannot find 'SIGHUP' in scope
 20 | private let _SIGINT = SIGINT
 21 | private let _SIGQUIT = SIGQUIT
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:20:23: error: cannot find 'SIGINT' in scope
 18 |
 19 | private let _SIGHUP = SIGHUP
 20 | private let _SIGINT = SIGINT
    |                       `- error: cannot find 'SIGINT' in scope
 21 | private let _SIGQUIT = SIGQUIT
 22 | private let _SIGILL = SIGILL
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:21:24: error: cannot find 'SIGQUIT' in scope
 19 | private let _SIGHUP = SIGHUP
 20 | private let _SIGINT = SIGINT
 21 | private let _SIGQUIT = SIGQUIT
    |                        `- error: cannot find 'SIGQUIT' in scope
 22 | private let _SIGILL = SIGILL
 23 | private let _SIGTRAP = SIGTRAP
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:22:23: error: cannot find 'SIGILL' in scope
 20 | private let _SIGINT = SIGINT
 21 | private let _SIGQUIT = SIGQUIT
 22 | private let _SIGILL = SIGILL
    |                       `- error: cannot find 'SIGILL' in scope
 23 | private let _SIGTRAP = SIGTRAP
 24 | private let _SIGABRT = SIGABRT
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:23:24: error: cannot find 'SIGTRAP' in scope
 21 | private let _SIGQUIT = SIGQUIT
 22 | private let _SIGILL = SIGILL
 23 | private let _SIGTRAP = SIGTRAP
    |                        `- error: cannot find 'SIGTRAP' in scope
 24 | private let _SIGABRT = SIGABRT
 25 | private let _SIGFPE = SIGFPE
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:24:24: error: cannot find 'SIGABRT' in scope
 22 | private let _SIGILL = SIGILL
 23 | private let _SIGTRAP = SIGTRAP
 24 | private let _SIGABRT = SIGABRT
    |                        `- error: cannot find 'SIGABRT' in scope
 25 | private let _SIGFPE = SIGFPE
 26 | private let _SIGKILL = SIGKILL
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:25:23: error: cannot find 'SIGFPE' in scope
 23 | private let _SIGTRAP = SIGTRAP
 24 | private let _SIGABRT = SIGABRT
 25 | private let _SIGFPE = SIGFPE
    |                       `- error: cannot find 'SIGFPE' in scope
 26 | private let _SIGKILL = SIGKILL
 27 | private let _SIGBUS = SIGBUS
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:26:24: error: cannot find 'SIGKILL' in scope
 24 | private let _SIGABRT = SIGABRT
 25 | private let _SIGFPE = SIGFPE
 26 | private let _SIGKILL = SIGKILL
    |                        `- error: cannot find 'SIGKILL' in scope
 27 | private let _SIGBUS = SIGBUS
 28 | private let _SIGSEGV = SIGSEGV
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:27:23: error: cannot find 'SIGBUS' in scope
 25 | private let _SIGFPE = SIGFPE
 26 | private let _SIGKILL = SIGKILL
 27 | private let _SIGBUS = SIGBUS
    |                       `- error: cannot find 'SIGBUS' in scope
 28 | private let _SIGSEGV = SIGSEGV
 29 | private let _SIGSYS = SIGSYS
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:28:24: error: cannot find 'SIGSEGV' in scope
 26 | private let _SIGKILL = SIGKILL
 27 | private let _SIGBUS = SIGBUS
 28 | private let _SIGSEGV = SIGSEGV
    |                        `- error: cannot find 'SIGSEGV' in scope
 29 | private let _SIGSYS = SIGSYS
 30 | private let _SIGPIPE = SIGPIPE
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:29:23: error: cannot find 'SIGSYS' in scope
 27 | private let _SIGBUS = SIGBUS
 28 | private let _SIGSEGV = SIGSEGV
 29 | private let _SIGSYS = SIGSYS
    |                       `- error: cannot find 'SIGSYS' in scope
 30 | private let _SIGPIPE = SIGPIPE
 31 | private let _SIGALRM = SIGALRM
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:30:24: error: cannot find 'SIGPIPE' in scope
 28 | private let _SIGSEGV = SIGSEGV
 29 | private let _SIGSYS = SIGSYS
 30 | private let _SIGPIPE = SIGPIPE
    |                        `- error: cannot find 'SIGPIPE' in scope
 31 | private let _SIGALRM = SIGALRM
 32 | private let _SIGTERM = SIGTERM
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:31:24: error: cannot find 'SIGALRM' in scope
 29 | private let _SIGSYS = SIGSYS
 30 | private let _SIGPIPE = SIGPIPE
 31 | private let _SIGALRM = SIGALRM
    |                        `- error: cannot find 'SIGALRM' in scope
 32 | private let _SIGTERM = SIGTERM
 33 | private let _SIGURG = SIGURG
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:32:24: error: cannot find 'SIGTERM' in scope
 30 | private let _SIGPIPE = SIGPIPE
 31 | private let _SIGALRM = SIGALRM
 32 | private let _SIGTERM = SIGTERM
    |                        `- error: cannot find 'SIGTERM' in scope
 33 | private let _SIGURG = SIGURG
 34 | private let _SIGSTOP = SIGSTOP
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:33:23: error: cannot find 'SIGURG' in scope
 31 | private let _SIGALRM = SIGALRM
 32 | private let _SIGTERM = SIGTERM
 33 | private let _SIGURG = SIGURG
    |                       `- error: cannot find 'SIGURG' in scope
 34 | private let _SIGSTOP = SIGSTOP
 35 | private let _SIGTSTP = SIGTSTP
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:34:24: error: cannot find 'SIGSTOP' in scope
 32 | private let _SIGTERM = SIGTERM
 33 | private let _SIGURG = SIGURG
 34 | private let _SIGSTOP = SIGSTOP
    |                        `- error: cannot find 'SIGSTOP' in scope
 35 | private let _SIGTSTP = SIGTSTP
 36 | private let _SIGCONT = SIGCONT
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:35:24: error: cannot find 'SIGTSTP' in scope
 33 | private let _SIGURG = SIGURG
 34 | private let _SIGSTOP = SIGSTOP
 35 | private let _SIGTSTP = SIGTSTP
    |                        `- error: cannot find 'SIGTSTP' in scope
 36 | private let _SIGCONT = SIGCONT
 37 | private let _SIGCHLD = SIGCHLD
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:36:24: error: cannot find 'SIGCONT' in scope
 34 | private let _SIGSTOP = SIGSTOP
 35 | private let _SIGTSTP = SIGTSTP
 36 | private let _SIGCONT = SIGCONT
    |                        `- error: cannot find 'SIGCONT' in scope
 37 | private let _SIGCHLD = SIGCHLD
 38 | private let _SIGTTIN = SIGTTIN
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:37:24: error: cannot find 'SIGCHLD' in scope
 35 | private let _SIGTSTP = SIGTSTP
 36 | private let _SIGCONT = SIGCONT
 37 | private let _SIGCHLD = SIGCHLD
    |                        `- error: cannot find 'SIGCHLD' in scope
 38 | private let _SIGTTIN = SIGTTIN
 39 | private let _SIGTTOU = SIGTTOU
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:38:24: error: cannot find 'SIGTTIN' in scope
 36 | private let _SIGCONT = SIGCONT
 37 | private let _SIGCHLD = SIGCHLD
 38 | private let _SIGTTIN = SIGTTIN
    |                        `- error: cannot find 'SIGTTIN' in scope
 39 | private let _SIGTTOU = SIGTTOU
 40 | private let _SIGIO = SIGIO
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:39:24: error: cannot find 'SIGTTOU' in scope
 37 | private let _SIGCHLD = SIGCHLD
 38 | private let _SIGTTIN = SIGTTIN
 39 | private let _SIGTTOU = SIGTTOU
    |                        `- error: cannot find 'SIGTTOU' in scope
 40 | private let _SIGIO = SIGIO
 41 | private let _SIGXCPU = SIGXCPU
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:40:22: error: cannot find 'SIGIO' in scope
 38 | private let _SIGTTIN = SIGTTIN
 39 | private let _SIGTTOU = SIGTTOU
 40 | private let _SIGIO = SIGIO
    |                      `- error: cannot find 'SIGIO' in scope
 41 | private let _SIGXCPU = SIGXCPU
 42 | private let _SIGXFSZ = SIGXFSZ
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:41:24: error: cannot find 'SIGXCPU' in scope
 39 | private let _SIGTTOU = SIGTTOU
 40 | private let _SIGIO = SIGIO
 41 | private let _SIGXCPU = SIGXCPU
    |                        `- error: cannot find 'SIGXCPU' in scope
 42 | private let _SIGXFSZ = SIGXFSZ
 43 | private let _SIGVTALRM = SIGVTALRM
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:42:24: error: cannot find 'SIGXFSZ' in scope
 40 | private let _SIGIO = SIGIO
 41 | private let _SIGXCPU = SIGXCPU
 42 | private let _SIGXFSZ = SIGXFSZ
    |                        `- error: cannot find 'SIGXFSZ' in scope
 43 | private let _SIGVTALRM = SIGVTALRM
 44 | private let _SIGPROF = SIGPROF
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:43:26: error: cannot find 'SIGVTALRM' in scope
 41 | private let _SIGXCPU = SIGXCPU
 42 | private let _SIGXFSZ = SIGXFSZ
 43 | private let _SIGVTALRM = SIGVTALRM
    |                          `- error: cannot find 'SIGVTALRM' in scope
 44 | private let _SIGPROF = SIGPROF
 45 | private let _SIGWINCH = SIGWINCH
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:44:24: error: cannot find 'SIGPROF' in scope
 42 | private let _SIGXFSZ = SIGXFSZ
 43 | private let _SIGVTALRM = SIGVTALRM
 44 | private let _SIGPROF = SIGPROF
    |                        `- error: cannot find 'SIGPROF' in scope
 45 | private let _SIGWINCH = SIGWINCH
 46 | private let _SIGUSR1 = SIGUSR1
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:45:25: error: cannot find 'SIGWINCH' in scope
 43 | private let _SIGVTALRM = SIGVTALRM
 44 | private let _SIGPROF = SIGPROF
 45 | private let _SIGWINCH = SIGWINCH
    |                         `- error: cannot find 'SIGWINCH' in scope
 46 | private let _SIGUSR1 = SIGUSR1
 47 | private let _SIGUSR2 = SIGUSR2
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:46:24: error: cannot find 'SIGUSR1' in scope
 44 | private let _SIGPROF = SIGPROF
 45 | private let _SIGWINCH = SIGWINCH
 46 | private let _SIGUSR1 = SIGUSR1
    |                        `- error: cannot find 'SIGUSR1' in scope
 47 | private let _SIGUSR2 = SIGUSR2
 48 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:47:24: error: cannot find 'SIGUSR2' in scope
 45 | private let _SIGWINCH = SIGWINCH
 46 | private let _SIGUSR1 = SIGUSR1
 47 | private let _SIGUSR2 = SIGUSR2
    |                        `- error: cannot find 'SIGUSR2' in scope
 48 |
 49 | extension Signal {
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:82:25: error: cannot find type 'pid_t' in scope
 80 |
 81 | /// identical to C's `kill(2)`.
 82 | public func kill(_ pid: pid_t, _ sig: Signal) throws {
    |                         `- error: cannot find type 'pid_t' in scope
 83 |     try check(kill(pid, sig.rawValue))
 84 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:93:24: error: cannot find 'sigset_t' in scope
 91 | /// A swifty `sigset_t` — like Perl's `POSIX::SigSet`.
 92 | public struct SigSet: Sendable {
 93 |     internal var raw = sigset_t()
    |                        `- error: cannot find 'sigset_t' in scope
 94 |
 95 |     /// An empty set.
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:102:24: error: cannot find type 'sigset_t' in scope
100 |         for s in signals { insert(s) }
101 |     }
102 |     internal init(raw: sigset_t) { self.raw = raw }
    |                        `- error: cannot find type 'sigset_t' in scope
103 |
104 |     /// The empty set.
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:129:26: error: cannot find 'SIG_BLOCK' in scope
127 |     public init(rawValue: CInt) { self.rawValue = rawValue }
128 | }
129 | private let _SIG_BLOCK = SIG_BLOCK
    |                          `- error: cannot find 'SIG_BLOCK' in scope
130 | private let _SIG_UNBLOCK = SIG_UNBLOCK
131 | private let _SIG_SETMASK = SIG_SETMASK
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:130:28: error: cannot find 'SIG_UNBLOCK' in scope
128 | }
129 | private let _SIG_BLOCK = SIG_BLOCK
130 | private let _SIG_UNBLOCK = SIG_UNBLOCK
    |                            `- error: cannot find 'SIG_UNBLOCK' in scope
131 | private let _SIG_SETMASK = SIG_SETMASK
132 | extension SigmaskHow {
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:131:28: error: cannot find 'SIG_SETMASK' in scope
129 | private let _SIG_BLOCK = SIG_BLOCK
130 | private let _SIG_UNBLOCK = SIG_UNBLOCK
131 | private let _SIG_SETMASK = SIG_SETMASK
    |                            `- error: cannot find 'SIG_SETMASK' in scope
132 | extension SigmaskHow {
133 |     public static let SIG_BLOCK = SigmaskHow(rawValue: _SIG_BLOCK)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:173:28: error: cannot find type 'CSigHandler' in scope
171 |     case handler(@convention(c) (CInt) -> Void)
172 |
173 |     internal var cHandler: CSigHandler? {
    |                            `- error: cannot find type 'CSigHandler' in scope
174 |         switch self {
175 |         case .defaultAction: return nil // SIG_DFL
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:180:24: error: cannot find type 'CSigHandler' in scope
178 |         }
179 |     }
180 |     internal init(_ c: CSigHandler?) {
    |                        `- error: cannot find type 'CSigHandler' in scope
181 |         switch unsafeBitCast(c, to: Int.self) {
182 |         case 0: self = .defaultAction
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:88:15: error: cannot find 'C' in scope
 86 | /// identical to C's `raise(3)`.
 87 | public func raise(_ sig: Signal) throws {
 88 |     try check(C.raise(sig.rawValue))
    |               `- error: cannot find 'C' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:96:21: error: cannot find 'sigemptyset' in scope
 94 |
 95 |     /// An empty set.
 96 |     public init() { sigemptyset(&raw) }
    |                     `- error: cannot find 'sigemptyset' in scope
 97 |     /// A set containing the given signals.
 98 |     public init(_ signals: Signal...) {
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:99:9: error: cannot find 'sigemptyset' in scope
 97 |     /// A set containing the given signals.
 98 |     public init(_ signals: Signal...) {
 99 |         sigemptyset(&raw)
    |         `- error: cannot find 'sigemptyset' in scope
100 |         for s in signals { insert(s) }
101 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:109:9: error: cannot find 'sigfillset' in scope
107 |     public static var all: SigSet {
108 |         var s = SigSet()
109 |         sigfillset(&s.raw)
    |         `- error: cannot find 'sigfillset' in scope
110 |         return s
111 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:114:50: error: cannot find 'sigaddset' in scope
112 |
113 |     /// `sigaddset`.
114 |     public mutating func insert(_ sig: Signal) { sigaddset(&raw, sig.rawValue) }
    |                                                  `- error: cannot find 'sigaddset' in scope
115 |     /// `sigdelset`.
116 |     public mutating func remove(_ sig: Signal) { sigdelset(&raw, sig.rawValue) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:116:50: error: cannot find 'sigdelset' in scope
114 |     public mutating func insert(_ sig: Signal) { sigaddset(&raw, sig.rawValue) }
115 |     /// `sigdelset`.
116 |     public mutating func remove(_ sig: Signal) { sigdelset(&raw, sig.rawValue) }
    |                                                  `- error: cannot find 'sigdelset' in scope
117 |     /// `sigismember`.
118 |     public func contains(_ sig: Signal) -> Bool {
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:120:16: error: cannot find 'sigismember' in scope
118 |     public func contains(_ sig: Signal) -> Bool {
119 |         var copy = raw
120 |         return sigismember(&copy, sig.rawValue) == 1
    |                `- error: cannot find 'sigismember' in scope
121 |     }
122 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:141:15: error: cannot find 'sigset_t' in scope
139 | @discardableResult
140 | public func sigprocmask(_ how: SigmaskHow, _ set: SigSet?) throws -> SigSet {
141 |     var old = sigset_t()
    |               `- error: cannot find 'sigset_t' in scope
142 |     if var new = set?.raw {
143 |         try check(sigprocmask(how.rawValue, &new, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:143:51: error: extra argument in call
141 |     var old = sigset_t()
142 |     if var new = set?.raw {
143 |         try check(sigprocmask(how.rawValue, &new, &old))
    |                                                   `- error: extra argument in call
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:143:35: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SigmaskHow'
141 |     var old = sigset_t()
142 |     if var new = set?.raw {
143 |         try check(sigprocmask(how.rawValue, &new, &old))
    |                                   `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SigmaskHow'
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:143:45: error: cannot convert value of type '_' to expected argument type 'SigSet'
141 |     var old = sigset_t()
142 |     if var new = set?.raw {
143 |         try check(sigprocmask(how.rawValue, &new, &old))
    |                                             `- error: cannot convert value of type '_' to expected argument type 'SigSet'
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:145:50: error: extra argument in call
143 |         try check(sigprocmask(how.rawValue, &new, &old))
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
    |                                                  `- error: extra argument in call
146 |     }
147 |     return SigSet(raw: old)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:145:35: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SigmaskHow'
143 |         try check(sigprocmask(how.rawValue, &new, &old))
144 |     } else {
145 |         try check(sigprocmask(how.rawValue, nil, &old))
    |                                   `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'SigmaskHow'
146 |     }
147 |     return SigSet(raw: old)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:147:18: error: extraneous argument label 'raw:' in call
145 |         try check(sigprocmask(how.rawValue, nil, &old))
146 |     }
147 |     return SigSet(raw: old)
    |                  `- error: extraneous argument label 'raw:' in call
148 | }
149 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:152:15: error: cannot find 'sigset_t' in scope
150 | /// identical to C's `sigpending(2)`.
151 | public func sigpending() throws -> SigSet {
152 |     var set = sigset_t()
    |               `- error: cannot find 'sigset_t' in scope
153 |     try check(sigpending(&set))
154 |     return SigSet(raw: set)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:153:26: error: argument passed to call that takes no arguments
151 | public func sigpending() throws -> SigSet {
152 |     var set = sigset_t()
153 |     try check(sigpending(&set))
    |                          `- error: argument passed to call that takes no arguments
154 |     return SigSet(raw: set)
155 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:154:18: error: extraneous argument label 'raw:' in call
152 |     var set = sigset_t()
153 |     try check(sigpending(&set))
154 |     return SigSet(raw: set)
    |                  `- error: extraneous argument label 'raw:' in call
155 | }
156 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:161:20: error: cannot convert value of type '_' to expected argument type 'SigSet'
159 | public func sigsuspend(_ mask: SigSet) {
160 |     var m = mask.raw
161 |     _ = sigsuspend(&m)
    |                    `- error: cannot convert value of type '_' to expected argument type 'SigSet'
162 | }
163 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:176:58: error: cannot find 'CSigHandler' in scope
174 |         switch self {
175 |         case .defaultAction: return nil // SIG_DFL
176 |         case .ignore: return unsafeBitCast(1 as Int, to: CSigHandler.self) // SIG_IGN
    |                                                          `- error: cannot find 'CSigHandler' in scope
177 |         case .handler(let f): return f
178 |         }
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:205:25: error: missing argument for parameter #1 in call
202 | /// returns the previous action.
203 | @discardableResult
204 | public func sigaction(_ sig: Signal, _ action: SigAction? = nil) throws -> SigAction {
    |             `- note: 'sigaction' declared here
205 |     var old = sigaction()
    |                         `- error: missing argument for parameter #1 in call
206 |     if let action {
207 |         var new = sigaction()
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:207:29: error: missing argument for parameter #1 in call
202 | /// returns the previous action.
203 | @discardableResult
204 | public func sigaction(_ sig: Signal, _ action: SigAction? = nil) throws -> SigAction {
    |             `- note: 'sigaction' declared here
205 |     var old = sigaction()
206 |     if let action {
207 |         var new = sigaction()
    |                             `- error: missing argument for parameter #1 in call
208 |         #if canImport(Darwin)
209 |         new.__sigaction_u.__sa_handler = action.handler.cHandler
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:215:49: error: extra argument in call
213 |         new.sa_mask = action.mask.raw
214 |         new.sa_flags = action.flags
215 |         try check(sigaction(sig.rawValue, &new, &old))
    |                                                 `- error: extra argument in call
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:215:33: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Signal'
213 |         new.sa_mask = action.mask.raw
214 |         new.sa_flags = action.flags
215 |         try check(sigaction(sig.rawValue, &new, &old))
    |                                 `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Signal'
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:215:43: error: cannot convert value of type '_' to expected argument type 'SigAction'
213 |         new.sa_mask = action.mask.raw
214 |         new.sa_flags = action.flags
215 |         try check(sigaction(sig.rawValue, &new, &old))
    |                                           `- error: cannot convert value of type '_' to expected argument type 'SigAction'
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:217:48: error: extra argument in call
215 |         try check(sigaction(sig.rawValue, &new, &old))
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
    |                                                `- error: extra argument in call
218 |     }
219 |     #if canImport(Darwin)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:217:33: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Signal'
215 |         try check(sigaction(sig.rawValue, &new, &old))
216 |     } else {
217 |         try check(sigaction(sig.rawValue, nil, &old))
    |                                 `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Signal'
218 |     }
219 |     #if canImport(Darwin)
/host/spi-builder-workspace/Sources/POSIXGlobals/Signal.swift:224:55: error: extraneous argument label 'raw:' in call
222 |     let oldHandler = SigHandler(old.__sigaction_handler.sa_handler)
223 |     #endif
224 |     return SigAction(handler: oldHandler, mask: SigSet(raw: old.sa_mask), flags: old.sa_flags)
    |                                                       `- error: extraneous argument label 'raw:' in call
225 | }
226 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:13:17: error: argument passed to call that takes no arguments
11 | public func ctermid() -> String {
12 |     var buf = [CChar](repeating: 0, count: 1024) // >= L_ctermid
13 |     _ = ctermid(&buf)
   |                 `- error: argument passed to call that takes no arguments
14 |     return stringFromCChars(buf)
15 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:20:14: error: cannot find 'C' in scope
18 | /// user id (implemented via `getpwuid_r(3)`, which is what it means).
19 | public func cuserid() -> String? {
20 |     getpwuid(C.geteuid())?.name
   |              `- error: cannot find 'C' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:48:29: error: cannot find type 'uid_t' in scope
46 |
47 | /// identical to C's `getpwuid(3)` (via `getpwuid_r`).
48 | public func getpwuid(_ uid: uid_t) -> Passwd? {
   |                             `- error: cannot find type 'uid_t' in scope
49 |     var pw = passwd()
50 |     var buf = [CChar](repeating: 0, count: pwBufSize)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:25:49: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
23 | /// identical to C's `remove(3)`.
24 | public func remove(_ path: String) throws {
25 |     _ = try path.withCString { try check(remove($0)) }
   |                                                 `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
26 | }
27 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:32:30: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
30 |     _ = try old.withCString { o in
31 |         try new.withCString { n in
32 |             try check(rename(o, n))
   |                              `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
33 |         }
34 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:32:33: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
30 |     _ = try old.withCString { o in
31 |         try new.withCString { n in
32 |             try check(rename(o, n))
   |                                 `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
33 |         }
34 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdio.swift:42:32: error: cannot convert value of type '[CChar]' (aka 'Array<Int8>') to expected argument type 'String'
40 | public func mkstemp(_ template: String) throws -> (fd: CInt, path: String) {
41 |     var buf = Array(template.utf8CString)
42 |     let fd = try check(mkstemp(&buf))
   |                                `- error: cannot convert value of type '[CChar]' (aka 'Array<Int8>') to expected argument type 'String'
43 |     return (fd, stringFromCChars(buf))
44 | }
BUILD FAILURE 6.3 wasm