The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-posix, reference main (6feac9), with Swift 6.2 for Android on 19 Aug 2026 09:05:18 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

42 |     let r = name.withCString { getpwnam_r($0, &pw, &buf, pwBufSize, &result) }
43 |     guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:42:32: error: cannot find 'getpwnam_r' in scope
40 |     var buf = [CChar](repeating: 0, count: pwBufSize)
41 |     var result: UnsafeMutablePointer<passwd>? = nil
42 |     let r = name.withCString { getpwnam_r($0, &pw, &buf, pwBufSize, &result) }
   |                                `- error: cannot find 'getpwnam_r' in scope
43 |     guard r == 0, result != nil else { return nil }
44 |     return Passwd(pw)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:49:14: error: cannot find 'passwd' in scope
47 | /// identical to C's `getpwuid(3)` (via `getpwuid_r`).
48 | public func getpwuid(_ uid: uid_t) -> Passwd? {
49 |     var pw = passwd()
   |              `- error: cannot find 'passwd' in scope
50 |     var buf = [CChar](repeating: 0, count: pwBufSize)
51 |     var result: UnsafeMutablePointer<passwd>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:51:38: error: cannot find type 'passwd' in scope
49 |     var pw = passwd()
50 |     var buf = [CChar](repeating: 0, count: pwBufSize)
51 |     var result: UnsafeMutablePointer<passwd>? = nil
   |                                      `- error: cannot find type 'passwd' in scope
52 |     let r = getpwuid_r(uid, &pw, &buf, pwBufSize, &result)
53 |     guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:52:13: error: cannot find 'getpwuid_r' in scope
50 |     var buf = [CChar](repeating: 0, count: pwBufSize)
51 |     var result: UnsafeMutablePointer<passwd>? = nil
52 |     let r = getpwuid_r(uid, &pw, &buf, pwBufSize, &result)
   |             `- error: cannot find 'getpwuid_r' in scope
53 |     guard r == 0, result != nil else { return nil }
54 |     return Passwd(pw)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:82:14: error: cannot find 'group' in scope
80 | /// identical to C's `getgrnam(3)` (via `getgrnam_r`).
81 | public func getgrnam(_ name: String) -> Group? {
82 |     var gr = group()
   |              `- error: cannot find 'group' in scope
83 |     var buf = [CChar](repeating: 0, count: pwBufSize)
84 |     var result: UnsafeMutablePointer<group>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:84:38: error: cannot find type 'group' in scope
82 |     var gr = group()
83 |     var buf = [CChar](repeating: 0, count: pwBufSize)
84 |     var result: UnsafeMutablePointer<group>? = nil
   |                                      `- error: cannot find type 'group' in scope
85 |     let r = name.withCString { getgrnam_r($0, &gr, &buf, pwBufSize, &result) }
86 |     guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:85:32: error: cannot find 'getgrnam_r' in scope
83 |     var buf = [CChar](repeating: 0, count: pwBufSize)
84 |     var result: UnsafeMutablePointer<group>? = nil
85 |     let r = name.withCString { getgrnam_r($0, &gr, &buf, pwBufSize, &result) }
   |                                `- error: cannot find 'getgrnam_r' in scope
86 |     guard r == 0, result != nil else { return nil }
87 |     return Group(gr)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:92:14: error: cannot find 'group' in scope
90 | /// identical to C's `getgrgid(3)` (via `getgrgid_r`).
91 | public func getgrgid(_ gid: gid_t) -> Group? {
92 |     var gr = group()
   |              `- error: cannot find 'group' in scope
93 |     var buf = [CChar](repeating: 0, count: pwBufSize)
94 |     var result: UnsafeMutablePointer<group>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:94:38: error: cannot find type 'group' in scope
92 |     var gr = group()
93 |     var buf = [CChar](repeating: 0, count: pwBufSize)
94 |     var result: UnsafeMutablePointer<group>? = nil
   |                                      `- error: cannot find type 'group' in scope
95 |     let r = getgrgid_r(gid, &gr, &buf, pwBufSize, &result)
96 |     guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:95:13: error: cannot find 'getgrgid_r' in scope
93 |     var buf = [CChar](repeating: 0, count: pwBufSize)
94 |     var result: UnsafeMutablePointer<group>? = nil
95 |     let r = getgrgid_r(gid, &gr, &buf, pwBufSize, &result)
   |             `- error: cannot find 'getgrgid_r' in scope
96 |     guard r == 0, result != nil else { return nil }
97 |     return Group(gr)
[20/23] Compiling POSIXGlobals Platform.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:17:43: error: cannot find 'C' in scope
 15 |
 16 | /// identical to C's `acos(3)`.
 17 | public func acos(_ x: Double) -> Double { C.acos(x) }
    |                                           `- error: cannot find 'C' in scope
 18 | /// identical to C's `acosh(3)`.
 19 | public func acosh(_ x: Double) -> Double { C.acosh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:19:44: error: cannot find 'C' in scope
 17 | public func acos(_ x: Double) -> Double { C.acos(x) }
 18 | /// identical to C's `acosh(3)`.
 19 | public func acosh(_ x: Double) -> Double { C.acosh(x) }
    |                                            `- error: cannot find 'C' in scope
 20 | /// identical to C's `asin(3)`.
 21 | public func asin(_ x: Double) -> Double { C.asin(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:21:43: error: cannot find 'C' in scope
 19 | public func acosh(_ x: Double) -> Double { C.acosh(x) }
 20 | /// identical to C's `asin(3)`.
 21 | public func asin(_ x: Double) -> Double { C.asin(x) }
    |                                           `- error: cannot find 'C' in scope
 22 | /// identical to C's `asinh(3)`.
 23 | public func asinh(_ x: Double) -> Double { C.asinh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:23:44: error: cannot find 'C' in scope
 21 | public func asin(_ x: Double) -> Double { C.asin(x) }
 22 | /// identical to C's `asinh(3)`.
 23 | public func asinh(_ x: Double) -> Double { C.asinh(x) }
    |                                            `- error: cannot find 'C' in scope
 24 | /// identical to C's `atan(3)`.
 25 | public func atan(_ x: Double) -> Double { C.atan(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:25:43: error: cannot find 'C' in scope
 23 | public func asinh(_ x: Double) -> Double { C.asinh(x) }
 24 | /// identical to C's `atan(3)`.
 25 | public func atan(_ x: Double) -> Double { C.atan(x) }
    |                                           `- error: cannot find 'C' in scope
 26 | /// identical to C's `atan2(3)`.
 27 | public func atan2(_ y: Double, _ x: Double) -> Double { C.atan2(y, x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:27:57: error: cannot find 'C' in scope
 25 | public func atan(_ x: Double) -> Double { C.atan(x) }
 26 | /// identical to C's `atan2(3)`.
 27 | public func atan2(_ y: Double, _ x: Double) -> Double { C.atan2(y, x) }
    |                                                         `- error: cannot find 'C' in scope
 28 | /// identical to C's `atanh(3)`.
 29 | public func atanh(_ x: Double) -> Double { C.atanh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:29:44: error: cannot find 'C' in scope
 27 | public func atan2(_ y: Double, _ x: Double) -> Double { C.atan2(y, x) }
 28 | /// identical to C's `atanh(3)`.
 29 | public func atanh(_ x: Double) -> Double { C.atanh(x) }
    |                                            `- error: cannot find 'C' in scope
 30 | /// identical to C's `cbrt(3)`.
 31 | public func cbrt(_ x: Double) -> Double { C.cbrt(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:31:43: error: cannot find 'C' in scope
 29 | public func atanh(_ x: Double) -> Double { C.atanh(x) }
 30 | /// identical to C's `cbrt(3)`.
 31 | public func cbrt(_ x: Double) -> Double { C.cbrt(x) }
    |                                           `- error: cannot find 'C' in scope
 32 | /// identical to C's `cos(3)`.
 33 | public func cos(_ x: Double) -> Double { C.cos(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:33:42: error: cannot find 'C' in scope
 31 | public func cbrt(_ x: Double) -> Double { C.cbrt(x) }
 32 | /// identical to C's `cos(3)`.
 33 | public func cos(_ x: Double) -> Double { C.cos(x) }
    |                                          `- error: cannot find 'C' in scope
 34 | /// identical to C's `cosh(3)`.
 35 | public func cosh(_ x: Double) -> Double { C.cosh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:35:43: error: cannot find 'C' in scope
 33 | public func cos(_ x: Double) -> Double { C.cos(x) }
 34 | /// identical to C's `cosh(3)`.
 35 | public func cosh(_ x: Double) -> Double { C.cosh(x) }
    |                                           `- error: cannot find 'C' in scope
 36 | /// identical to C's `erf(3)`.
 37 | public func erf(_ x: Double) -> Double { C.erf(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:37:42: error: cannot find 'C' in scope
 35 | public func cosh(_ x: Double) -> Double { C.cosh(x) }
 36 | /// identical to C's `erf(3)`.
 37 | public func erf(_ x: Double) -> Double { C.erf(x) }
    |                                          `- error: cannot find 'C' in scope
 38 | /// identical to C's `erfc(3)`.
 39 | public func erfc(_ x: Double) -> Double { C.erfc(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:39:43: error: cannot find 'C' in scope
 37 | public func erf(_ x: Double) -> Double { C.erf(x) }
 38 | /// identical to C's `erfc(3)`.
 39 | public func erfc(_ x: Double) -> Double { C.erfc(x) }
    |                                           `- error: cannot find 'C' in scope
 40 | /// identical to C's `exp(3)`.
 41 | public func exp(_ x: Double) -> Double { C.exp(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:41:42: error: cannot find 'C' in scope
 39 | public func erfc(_ x: Double) -> Double { C.erfc(x) }
 40 | /// identical to C's `exp(3)`.
 41 | public func exp(_ x: Double) -> Double { C.exp(x) }
    |                                          `- error: cannot find 'C' in scope
 42 | /// identical to C's `exp2(3)`.
 43 | public func exp2(_ x: Double) -> Double { C.exp2(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:43:43: error: cannot find 'C' in scope
 41 | public func exp(_ x: Double) -> Double { C.exp(x) }
 42 | /// identical to C's `exp2(3)`.
 43 | public func exp2(_ x: Double) -> Double { C.exp2(x) }
    |                                           `- error: cannot find 'C' in scope
 44 | /// identical to C's `expm1(3)`.
 45 | public func expm1(_ x: Double) -> Double { C.expm1(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:45:44: error: cannot find 'C' in scope
 43 | public func exp2(_ x: Double) -> Double { C.exp2(x) }
 44 | /// identical to C's `expm1(3)`.
 45 | public func expm1(_ x: Double) -> Double { C.expm1(x) }
    |                                            `- error: cannot find 'C' in scope
 46 | /// identical to C's `hypot(3)`.
 47 | public func hypot(_ x: Double, _ y: Double) -> Double { C.hypot(x, y) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:47:57: error: cannot find 'C' in scope
 45 | public func expm1(_ x: Double) -> Double { C.expm1(x) }
 46 | /// identical to C's `hypot(3)`.
 47 | public func hypot(_ x: Double, _ y: Double) -> Double { C.hypot(x, y) }
    |                                                         `- error: cannot find 'C' in scope
 48 | /// identical to C's `lgamma(3)` (thread-safe; the sign is discarded).
 49 | public func lgamma(_ x: Double) -> Double {
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:51:12: error: cannot find 'lgamma_r' in scope
 49 | public func lgamma(_ x: Double) -> Double {
 50 |     var sign: CInt = 0
 51 |     return lgamma_r(x, &sign)
    |            `- error: cannot find 'lgamma_r' in scope
 52 | }
 53 | /// identical to C's `log(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:54:42: error: cannot find 'C' in scope
 52 | }
 53 | /// identical to C's `log(3)`.
 54 | public func log(_ x: Double) -> Double { C.log(x) }
    |                                          `- error: cannot find 'C' in scope
 55 | /// identical to C's `log10(3)`.
 56 | public func log10(_ x: Double) -> Double { C.log10(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:56:44: error: cannot find 'C' in scope
 54 | public func log(_ x: Double) -> Double { C.log(x) }
 55 | /// identical to C's `log10(3)`.
 56 | public func log10(_ x: Double) -> Double { C.log10(x) }
    |                                            `- error: cannot find 'C' in scope
 57 | /// identical to C's `log1p(3)`.
 58 | public func log1p(_ x: Double) -> Double { C.log1p(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:58:44: error: cannot find 'C' in scope
 56 | public func log10(_ x: Double) -> Double { C.log10(x) }
 57 | /// identical to C's `log1p(3)`.
 58 | public func log1p(_ x: Double) -> Double { C.log1p(x) }
    |                                            `- error: cannot find 'C' in scope
 59 | /// identical to C's `log2(3)`.
 60 | public func log2(_ x: Double) -> Double { C.log2(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:60:43: error: cannot find 'C' in scope
 58 | public func log1p(_ x: Double) -> Double { C.log1p(x) }
 59 | /// identical to C's `log2(3)`.
 60 | public func log2(_ x: Double) -> Double { C.log2(x) }
    |                                           `- error: cannot find 'C' in scope
 61 | /// identical to C's `pow(3)`.
 62 | public func pow(_ x: Double, _ y: Double) -> Double { C.pow(x, y) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:62:55: error: cannot find 'C' in scope
 60 | public func log2(_ x: Double) -> Double { C.log2(x) }
 61 | /// identical to C's `pow(3)`.
 62 | public func pow(_ x: Double, _ y: Double) -> Double { C.pow(x, y) }
    |                                                       `- error: cannot find 'C' in scope
 63 | /// identical to C's `sin(3)`.
 64 | public func sin(_ x: Double) -> Double { C.sin(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:64:42: error: cannot find 'C' in scope
 62 | public func pow(_ x: Double, _ y: Double) -> Double { C.pow(x, y) }
 63 | /// identical to C's `sin(3)`.
 64 | public func sin(_ x: Double) -> Double { C.sin(x) }
    |                                          `- error: cannot find 'C' in scope
 65 | /// identical to C's `sinh(3)`.
 66 | public func sinh(_ x: Double) -> Double { C.sinh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:66:43: error: cannot find 'C' in scope
 64 | public func sin(_ x: Double) -> Double { C.sin(x) }
 65 | /// identical to C's `sinh(3)`.
 66 | public func sinh(_ x: Double) -> Double { C.sinh(x) }
    |                                           `- error: cannot find 'C' in scope
 67 | /// identical to C's `tan(3)`.
 68 | public func tan(_ x: Double) -> Double { C.tan(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:68:42: error: cannot find 'C' in scope
 66 | public func sinh(_ x: Double) -> Double { C.sinh(x) }
 67 | /// identical to C's `tan(3)`.
 68 | public func tan(_ x: Double) -> Double { C.tan(x) }
    |                                          `- error: cannot find 'C' in scope
 69 | /// identical to C's `tanh(3)`.
 70 | public func tanh(_ x: Double) -> Double { C.tanh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:70:43: error: cannot find 'C' in scope
 68 | public func tan(_ x: Double) -> Double { C.tan(x) }
 69 | /// identical to C's `tanh(3)`.
 70 | public func tanh(_ x: Double) -> Double { C.tanh(x) }
    |                                           `- error: cannot find 'C' in scope
 71 | /// identical to C's `tgamma(3)`.
 72 | public func tgamma(_ x: Double) -> Double { C.tgamma(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:72:45: error: cannot find 'C' in scope
 70 | public func tanh(_ x: Double) -> Double { C.tanh(x) }
 71 | /// identical to C's `tgamma(3)`.
 72 | public func tgamma(_ x: Double) -> Double { C.tgamma(x) }
    |                                             `- error: cannot find 'C' in scope
 73 |
 74 | // MARK: rounding, decomposition, and friends (Swift-native)
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:103:26: error: extra argument in call
101 | public func remquo(_ x: Double, _ y: Double) -> (remainder: Double, quotient: Int) {
102 |     var q: CInt = 0
103 |     let r = remquo(x, y, &q)
    |                          `- error: extra argument in call
104 |     return (r, Int(q))
105 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:128:22: error: extra argument in call
126 | public func frexp(_ x: Double) -> (mantissa: Double, exponent: Int) {
127 |     var e: CInt = 0
128 |     let m = frexp(x, &e)
    |                      `- error: extra argument in call
129 |     return (m, Int(e))
130 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:132:65: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
130 | }
131 | /// identical to C's `ldexp(3)`: x * 2**exp.
132 | public func ldexp(_ x: Double, _ exp: Int) -> Double { ldexp(x, CInt(exp)) }
    |                                                                 `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
133 | /// identical to C's `scalbn(3)`: x * 2**exp.
134 | public func scalbn(_ x: Double, _ exp: Int) -> Double { scalbn(x, CInt(exp)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:134:67: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
132 | public func ldexp(_ x: Double, _ exp: Int) -> Double { ldexp(x, CInt(exp)) }
133 | /// identical to C's `scalbn(3)`: x * 2**exp.
134 | public func scalbn(_ x: Double, _ exp: Int) -> Double { scalbn(x, CInt(exp)) }
    |                                                                   `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
135 | /// identical to C's `modf(3)`; returns the fractional and integral parts.
136 | public func modf(_ x: Double) -> (fractional: Double, integral: Double) {
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:138:21: error: extra argument in call
136 | public func modf(_ x: Double) -> (fractional: Double, integral: Double) {
137 |     var i: Double = 0
138 |     let f = modf(x, &i)
    |                     `- error: extra argument in call
139 |     return (f, i)
140 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:142:43: error: cannot find 'C' in scope
140 | }
141 | /// identical to C's `logb(3)`.
142 | public func logb(_ x: Double) -> Double { C.logb(x) }
    |                                           `- error: cannot find 'C' in scope
143 | /// identical to C's `ilogb(3)`.
144 | public func ilogb(_ x: Double) -> Int { Int(C.ilogb(x)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:144:45: error: cannot find 'C' in scope
142 | public func logb(_ x: Double) -> Double { C.logb(x) }
143 | /// identical to C's `ilogb(3)`.
144 | public func ilogb(_ x: Double) -> Int { Int(C.ilogb(x)) }
    |                                             `- error: cannot find 'C' in scope
145 | /// identical to C's `nan(3)`.
146 | public func nan(_ tag: String = "") -> Double { tag.withCString { nan($0) } }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:146:71: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
144 | public func ilogb(_ x: Double) -> Int { Int(C.ilogb(x)) }
145 | /// identical to C's `nan(3)`.
146 | public func nan(_ tag: String = "") -> Double { tag.withCString { nan($0) } }
    |                                                                       `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
147 |
148 | // MARK: classification (Swift-native, swifty return types)
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:179:36: error: cannot find 'C' in scope
177 |
178 | /// identical to C's `fegetround(3)`.
179 | public func fegetround() -> CInt { C.fegetround() }
    |                                    `- error: cannot find 'C' in scope
180 | /// identical to C's `fesetround(3)`.
181 | @discardableResult
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:182:48: error: cannot find 'C' in scope
180 | /// identical to C's `fesetround(3)`.
181 | @discardableResult
182 | public func fesetround(_ mode: CInt) -> CInt { C.fesetround(mode) }
    |                                                `- error: cannot find 'C' in scope
183 |
184 | // (FE_* and M_* constants are re-exported in Platform.swift)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:15:21: error: cannot find type 'uid_t' in scope
13 |     public let name: String
14 |     /// user id (`pw_uid`)
15 |     public let uid: uid_t
   |                     `- error: cannot find type 'uid_t' in scope
16 |     /// group id (`pw_gid`)
17 |     public let gid: gid_t
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:17:21: error: cannot find type 'gid_t' in scope
15 |     public let uid: uid_t
16 |     /// group id (`pw_gid`)
17 |     public let gid: gid_t
   |                     `- error: cannot find type 'gid_t' in scope
18 |     /// real name / GECOS field (`pw_gecos`)
19 |     public let gecos: String
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:25:25: error: cannot find type 'passwd' in scope
23 |     public let shell: String
24 |
25 |     internal init(_ pw: passwd) {
   |                         `- error: cannot find type 'passwd' in scope
26 |         name = pw.pw_name.map { String(cString: $0) } ?? ""
27 |         uid = pw.pw_uid
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:11:15: error: type 'Passwd' does not conform to protocol 'Hashable'
 9 |
10 | /// A swifty `struct passwd`.
11 | public struct Passwd: Hashable, Sendable {
   |               `- error: type 'Passwd' does not conform to protocol 'Hashable'
12 |     /// user name (`pw_name`)
13 |     public let name: String
14 |     /// user id (`pw_uid`)
15 |     public let uid: uid_t
   |                `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Passwd' to 'Hashable'
16 |     /// group id (`pw_gid`)
17 |     public let gid: gid_t
   |                `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Passwd' to 'Hashable'
18 |     /// real name / GECOS field (`pw_gecos`)
19 |     public let gecos: String
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:11:15: error: type 'Passwd' does not conform to protocol 'Equatable'
 9 |
10 | /// A swifty `struct passwd`.
11 | public struct Passwd: Hashable, Sendable {
   |               |- error: type 'Passwd' does not conform to protocol 'Equatable'
   |               `- note: add stubs for conformance
12 |     /// user name (`pw_name`)
13 |     public let name: String
14 |     /// user id (`pw_uid`)
15 |     public let uid: uid_t
   |                `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Passwd' to 'Equatable'
16 |     /// group id (`pw_gid`)
17 |     public let gid: gid_t
   |                `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Passwd' to 'Equatable'
18 |     /// real name / GECOS field (`pw_gecos`)
19 |     public let gecos: String
Swift.==:1:24: note: candidate would match if 'Passwd' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
  |                        `- note: candidate would match if 'Passwd' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Passwd' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Passwd' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Passwd' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'Passwd' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Passwd' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Passwd' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Passwd' 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 'Passwd' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Passwd' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'Passwd' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Passwd' 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 'Passwd' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Passwd' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'Passwd' conformed to 'SIMD'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Passwd, Passwd) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(Passwd, Passwd) -> Bool'
3 |
/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/PwdGrp.swift:62:21: error: cannot find type 'gid_t' in scope
60 |     public let name: String
61 |     /// group id (`gr_gid`)
62 |     public let gid: gid_t
   |                     `- error: cannot find type 'gid_t' in scope
63 |     /// member user names (`gr_mem`)
64 |     public let members: [String]
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:66:25: error: cannot find type 'group' in scope
64 |     public let members: [String]
65 |
66 |     internal init(_ gr: group) {
   |                         `- error: cannot find type 'group' in scope
67 |         name = gr.gr_name.map { String(cString: $0) } ?? ""
68 |         gid = gr.gr_gid
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:58:15: error: type 'Group' does not conform to protocol 'Hashable'
56 |
57 | /// A swifty `struct group`.
58 | public struct Group: Hashable, Sendable {
   |               `- error: type 'Group' does not conform to protocol 'Hashable'
59 |     /// group name (`gr_name`)
60 |     public let name: String
61 |     /// group id (`gr_gid`)
62 |     public let gid: gid_t
   |                `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Group' to 'Hashable'
63 |     /// member user names (`gr_mem`)
64 |     public let members: [String]
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:58:15: error: type 'Group' does not conform to protocol 'Equatable'
56 |
57 | /// A swifty `struct group`.
58 | public struct Group: Hashable, Sendable {
   |               |- error: type 'Group' does not conform to protocol 'Equatable'
   |               `- note: add stubs for conformance
59 |     /// group name (`gr_name`)
60 |     public let name: String
61 |     /// group id (`gr_gid`)
62 |     public let gid: gid_t
   |                `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Group' to 'Equatable'
63 |     /// member user names (`gr_mem`)
64 |     public let members: [String]
Swift.==:1:24: note: candidate would match if 'Group' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
  |                        `- note: candidate would match if 'Group' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Group' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Group' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Group' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'Group' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Group' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Group' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Group' 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 'Group' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Group' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'Group' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Group' 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 'Group' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Group' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'Group' conformed to 'SIMD'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Group, Group) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(Group, Group) -> Bool'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:91:29: error: cannot find type 'gid_t' in scope
89 |
90 | /// identical to C's `getgrgid(3)` (via `getgrgid_r`).
91 | public func getgrgid(_ gid: gid_t) -> Group? {
   |                             `- error: cannot find type 'gid_t' in scope
92 |     var gr = group()
93 |     var buf = [CChar](repeating: 0, count: pwBufSize)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:39:14: error: cannot find 'passwd' in scope
37 | /// identical to C's `getpwnam(3)` (via `getpwnam_r`).
38 | public func getpwnam(_ name: String) -> Passwd? {
39 |     var pw = passwd()
   |              `- error: cannot find 'passwd' in scope
40 |     var buf = [CChar](repeating: 0, count: pwBufSize)
41 |     var result: UnsafeMutablePointer<passwd>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:41:38: error: cannot find type 'passwd' in scope
39 |     var pw = passwd()
40 |     var buf = [CChar](repeating: 0, count: pwBufSize)
41 |     var result: UnsafeMutablePointer<passwd>? = nil
   |                                      `- error: cannot find type 'passwd' in scope
42 |     let r = name.withCString { getpwnam_r($0, &pw, &buf, pwBufSize, &result) }
43 |     guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:42:32: error: cannot find 'getpwnam_r' in scope
40 |     var buf = [CChar](repeating: 0, count: pwBufSize)
41 |     var result: UnsafeMutablePointer<passwd>? = nil
42 |     let r = name.withCString { getpwnam_r($0, &pw, &buf, pwBufSize, &result) }
   |                                `- error: cannot find 'getpwnam_r' in scope
43 |     guard r == 0, result != nil else { return nil }
44 |     return Passwd(pw)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:49:14: error: cannot find 'passwd' in scope
47 | /// identical to C's `getpwuid(3)` (via `getpwuid_r`).
48 | public func getpwuid(_ uid: uid_t) -> Passwd? {
49 |     var pw = passwd()
   |              `- error: cannot find 'passwd' in scope
50 |     var buf = [CChar](repeating: 0, count: pwBufSize)
51 |     var result: UnsafeMutablePointer<passwd>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:51:38: error: cannot find type 'passwd' in scope
49 |     var pw = passwd()
50 |     var buf = [CChar](repeating: 0, count: pwBufSize)
51 |     var result: UnsafeMutablePointer<passwd>? = nil
   |                                      `- error: cannot find type 'passwd' in scope
52 |     let r = getpwuid_r(uid, &pw, &buf, pwBufSize, &result)
53 |     guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:52:13: error: cannot find 'getpwuid_r' in scope
50 |     var buf = [CChar](repeating: 0, count: pwBufSize)
51 |     var result: UnsafeMutablePointer<passwd>? = nil
52 |     let r = getpwuid_r(uid, &pw, &buf, pwBufSize, &result)
   |             `- error: cannot find 'getpwuid_r' in scope
53 |     guard r == 0, result != nil else { return nil }
54 |     return Passwd(pw)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:82:14: error: cannot find 'group' in scope
80 | /// identical to C's `getgrnam(3)` (via `getgrnam_r`).
81 | public func getgrnam(_ name: String) -> Group? {
82 |     var gr = group()
   |              `- error: cannot find 'group' in scope
83 |     var buf = [CChar](repeating: 0, count: pwBufSize)
84 |     var result: UnsafeMutablePointer<group>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:84:38: error: cannot find type 'group' in scope
82 |     var gr = group()
83 |     var buf = [CChar](repeating: 0, count: pwBufSize)
84 |     var result: UnsafeMutablePointer<group>? = nil
   |                                      `- error: cannot find type 'group' in scope
85 |     let r = name.withCString { getgrnam_r($0, &gr, &buf, pwBufSize, &result) }
86 |     guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:85:32: error: cannot find 'getgrnam_r' in scope
83 |     var buf = [CChar](repeating: 0, count: pwBufSize)
84 |     var result: UnsafeMutablePointer<group>? = nil
85 |     let r = name.withCString { getgrnam_r($0, &gr, &buf, pwBufSize, &result) }
   |                                `- error: cannot find 'getgrnam_r' in scope
86 |     guard r == 0, result != nil else { return nil }
87 |     return Group(gr)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:92:14: error: cannot find 'group' in scope
90 | /// identical to C's `getgrgid(3)` (via `getgrgid_r`).
91 | public func getgrgid(_ gid: gid_t) -> Group? {
92 |     var gr = group()
   |              `- error: cannot find 'group' in scope
93 |     var buf = [CChar](repeating: 0, count: pwBufSize)
94 |     var result: UnsafeMutablePointer<group>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:94:38: error: cannot find type 'group' in scope
92 |     var gr = group()
93 |     var buf = [CChar](repeating: 0, count: pwBufSize)
94 |     var result: UnsafeMutablePointer<group>? = nil
   |                                      `- error: cannot find type 'group' in scope
95 |     let r = getgrgid_r(gid, &gr, &buf, pwBufSize, &result)
96 |     guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:95:13: error: cannot find 'getgrgid_r' in scope
93 |     var buf = [CChar](repeating: 0, count: pwBufSize)
94 |     var result: UnsafeMutablePointer<group>? = nil
95 |     let r = getgrgid_r(gid, &gr, &buf, pwBufSize, &result)
   |             `- error: cannot find 'getgrgid_r' in scope
96 |     guard r == 0, result != nil else { return nil }
97 |     return Group(gr)
[21/23] Compiling POSIXGlobals PwdGrp.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:17:43: error: cannot find 'C' in scope
 15 |
 16 | /// identical to C's `acos(3)`.
 17 | public func acos(_ x: Double) -> Double { C.acos(x) }
    |                                           `- error: cannot find 'C' in scope
 18 | /// identical to C's `acosh(3)`.
 19 | public func acosh(_ x: Double) -> Double { C.acosh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:19:44: error: cannot find 'C' in scope
 17 | public func acos(_ x: Double) -> Double { C.acos(x) }
 18 | /// identical to C's `acosh(3)`.
 19 | public func acosh(_ x: Double) -> Double { C.acosh(x) }
    |                                            `- error: cannot find 'C' in scope
 20 | /// identical to C's `asin(3)`.
 21 | public func asin(_ x: Double) -> Double { C.asin(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:21:43: error: cannot find 'C' in scope
 19 | public func acosh(_ x: Double) -> Double { C.acosh(x) }
 20 | /// identical to C's `asin(3)`.
 21 | public func asin(_ x: Double) -> Double { C.asin(x) }
    |                                           `- error: cannot find 'C' in scope
 22 | /// identical to C's `asinh(3)`.
 23 | public func asinh(_ x: Double) -> Double { C.asinh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:23:44: error: cannot find 'C' in scope
 21 | public func asin(_ x: Double) -> Double { C.asin(x) }
 22 | /// identical to C's `asinh(3)`.
 23 | public func asinh(_ x: Double) -> Double { C.asinh(x) }
    |                                            `- error: cannot find 'C' in scope
 24 | /// identical to C's `atan(3)`.
 25 | public func atan(_ x: Double) -> Double { C.atan(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:25:43: error: cannot find 'C' in scope
 23 | public func asinh(_ x: Double) -> Double { C.asinh(x) }
 24 | /// identical to C's `atan(3)`.
 25 | public func atan(_ x: Double) -> Double { C.atan(x) }
    |                                           `- error: cannot find 'C' in scope
 26 | /// identical to C's `atan2(3)`.
 27 | public func atan2(_ y: Double, _ x: Double) -> Double { C.atan2(y, x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:27:57: error: cannot find 'C' in scope
 25 | public func atan(_ x: Double) -> Double { C.atan(x) }
 26 | /// identical to C's `atan2(3)`.
 27 | public func atan2(_ y: Double, _ x: Double) -> Double { C.atan2(y, x) }
    |                                                         `- error: cannot find 'C' in scope
 28 | /// identical to C's `atanh(3)`.
 29 | public func atanh(_ x: Double) -> Double { C.atanh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:29:44: error: cannot find 'C' in scope
 27 | public func atan2(_ y: Double, _ x: Double) -> Double { C.atan2(y, x) }
 28 | /// identical to C's `atanh(3)`.
 29 | public func atanh(_ x: Double) -> Double { C.atanh(x) }
    |                                            `- error: cannot find 'C' in scope
 30 | /// identical to C's `cbrt(3)`.
 31 | public func cbrt(_ x: Double) -> Double { C.cbrt(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:31:43: error: cannot find 'C' in scope
 29 | public func atanh(_ x: Double) -> Double { C.atanh(x) }
 30 | /// identical to C's `cbrt(3)`.
 31 | public func cbrt(_ x: Double) -> Double { C.cbrt(x) }
    |                                           `- error: cannot find 'C' in scope
 32 | /// identical to C's `cos(3)`.
 33 | public func cos(_ x: Double) -> Double { C.cos(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:33:42: error: cannot find 'C' in scope
 31 | public func cbrt(_ x: Double) -> Double { C.cbrt(x) }
 32 | /// identical to C's `cos(3)`.
 33 | public func cos(_ x: Double) -> Double { C.cos(x) }
    |                                          `- error: cannot find 'C' in scope
 34 | /// identical to C's `cosh(3)`.
 35 | public func cosh(_ x: Double) -> Double { C.cosh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:35:43: error: cannot find 'C' in scope
 33 | public func cos(_ x: Double) -> Double { C.cos(x) }
 34 | /// identical to C's `cosh(3)`.
 35 | public func cosh(_ x: Double) -> Double { C.cosh(x) }
    |                                           `- error: cannot find 'C' in scope
 36 | /// identical to C's `erf(3)`.
 37 | public func erf(_ x: Double) -> Double { C.erf(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:37:42: error: cannot find 'C' in scope
 35 | public func cosh(_ x: Double) -> Double { C.cosh(x) }
 36 | /// identical to C's `erf(3)`.
 37 | public func erf(_ x: Double) -> Double { C.erf(x) }
    |                                          `- error: cannot find 'C' in scope
 38 | /// identical to C's `erfc(3)`.
 39 | public func erfc(_ x: Double) -> Double { C.erfc(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:39:43: error: cannot find 'C' in scope
 37 | public func erf(_ x: Double) -> Double { C.erf(x) }
 38 | /// identical to C's `erfc(3)`.
 39 | public func erfc(_ x: Double) -> Double { C.erfc(x) }
    |                                           `- error: cannot find 'C' in scope
 40 | /// identical to C's `exp(3)`.
 41 | public func exp(_ x: Double) -> Double { C.exp(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:41:42: error: cannot find 'C' in scope
 39 | public func erfc(_ x: Double) -> Double { C.erfc(x) }
 40 | /// identical to C's `exp(3)`.
 41 | public func exp(_ x: Double) -> Double { C.exp(x) }
    |                                          `- error: cannot find 'C' in scope
 42 | /// identical to C's `exp2(3)`.
 43 | public func exp2(_ x: Double) -> Double { C.exp2(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:43:43: error: cannot find 'C' in scope
 41 | public func exp(_ x: Double) -> Double { C.exp(x) }
 42 | /// identical to C's `exp2(3)`.
 43 | public func exp2(_ x: Double) -> Double { C.exp2(x) }
    |                                           `- error: cannot find 'C' in scope
 44 | /// identical to C's `expm1(3)`.
 45 | public func expm1(_ x: Double) -> Double { C.expm1(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:45:44: error: cannot find 'C' in scope
 43 | public func exp2(_ x: Double) -> Double { C.exp2(x) }
 44 | /// identical to C's `expm1(3)`.
 45 | public func expm1(_ x: Double) -> Double { C.expm1(x) }
    |                                            `- error: cannot find 'C' in scope
 46 | /// identical to C's `hypot(3)`.
 47 | public func hypot(_ x: Double, _ y: Double) -> Double { C.hypot(x, y) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:47:57: error: cannot find 'C' in scope
 45 | public func expm1(_ x: Double) -> Double { C.expm1(x) }
 46 | /// identical to C's `hypot(3)`.
 47 | public func hypot(_ x: Double, _ y: Double) -> Double { C.hypot(x, y) }
    |                                                         `- error: cannot find 'C' in scope
 48 | /// identical to C's `lgamma(3)` (thread-safe; the sign is discarded).
 49 | public func lgamma(_ x: Double) -> Double {
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:51:12: error: cannot find 'lgamma_r' in scope
 49 | public func lgamma(_ x: Double) -> Double {
 50 |     var sign: CInt = 0
 51 |     return lgamma_r(x, &sign)
    |            `- error: cannot find 'lgamma_r' in scope
 52 | }
 53 | /// identical to C's `log(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:54:42: error: cannot find 'C' in scope
 52 | }
 53 | /// identical to C's `log(3)`.
 54 | public func log(_ x: Double) -> Double { C.log(x) }
    |                                          `- error: cannot find 'C' in scope
 55 | /// identical to C's `log10(3)`.
 56 | public func log10(_ x: Double) -> Double { C.log10(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:56:44: error: cannot find 'C' in scope
 54 | public func log(_ x: Double) -> Double { C.log(x) }
 55 | /// identical to C's `log10(3)`.
 56 | public func log10(_ x: Double) -> Double { C.log10(x) }
    |                                            `- error: cannot find 'C' in scope
 57 | /// identical to C's `log1p(3)`.
 58 | public func log1p(_ x: Double) -> Double { C.log1p(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:58:44: error: cannot find 'C' in scope
 56 | public func log10(_ x: Double) -> Double { C.log10(x) }
 57 | /// identical to C's `log1p(3)`.
 58 | public func log1p(_ x: Double) -> Double { C.log1p(x) }
    |                                            `- error: cannot find 'C' in scope
 59 | /// identical to C's `log2(3)`.
 60 | public func log2(_ x: Double) -> Double { C.log2(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:60:43: error: cannot find 'C' in scope
 58 | public func log1p(_ x: Double) -> Double { C.log1p(x) }
 59 | /// identical to C's `log2(3)`.
 60 | public func log2(_ x: Double) -> Double { C.log2(x) }
    |                                           `- error: cannot find 'C' in scope
 61 | /// identical to C's `pow(3)`.
 62 | public func pow(_ x: Double, _ y: Double) -> Double { C.pow(x, y) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:62:55: error: cannot find 'C' in scope
 60 | public func log2(_ x: Double) -> Double { C.log2(x) }
 61 | /// identical to C's `pow(3)`.
 62 | public func pow(_ x: Double, _ y: Double) -> Double { C.pow(x, y) }
    |                                                       `- error: cannot find 'C' in scope
 63 | /// identical to C's `sin(3)`.
 64 | public func sin(_ x: Double) -> Double { C.sin(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:64:42: error: cannot find 'C' in scope
 62 | public func pow(_ x: Double, _ y: Double) -> Double { C.pow(x, y) }
 63 | /// identical to C's `sin(3)`.
 64 | public func sin(_ x: Double) -> Double { C.sin(x) }
    |                                          `- error: cannot find 'C' in scope
 65 | /// identical to C's `sinh(3)`.
 66 | public func sinh(_ x: Double) -> Double { C.sinh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:66:43: error: cannot find 'C' in scope
 64 | public func sin(_ x: Double) -> Double { C.sin(x) }
 65 | /// identical to C's `sinh(3)`.
 66 | public func sinh(_ x: Double) -> Double { C.sinh(x) }
    |                                           `- error: cannot find 'C' in scope
 67 | /// identical to C's `tan(3)`.
 68 | public func tan(_ x: Double) -> Double { C.tan(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:68:42: error: cannot find 'C' in scope
 66 | public func sinh(_ x: Double) -> Double { C.sinh(x) }
 67 | /// identical to C's `tan(3)`.
 68 | public func tan(_ x: Double) -> Double { C.tan(x) }
    |                                          `- error: cannot find 'C' in scope
 69 | /// identical to C's `tanh(3)`.
 70 | public func tanh(_ x: Double) -> Double { C.tanh(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:70:43: error: cannot find 'C' in scope
 68 | public func tan(_ x: Double) -> Double { C.tan(x) }
 69 | /// identical to C's `tanh(3)`.
 70 | public func tanh(_ x: Double) -> Double { C.tanh(x) }
    |                                           `- error: cannot find 'C' in scope
 71 | /// identical to C's `tgamma(3)`.
 72 | public func tgamma(_ x: Double) -> Double { C.tgamma(x) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:72:45: error: cannot find 'C' in scope
 70 | public func tanh(_ x: Double) -> Double { C.tanh(x) }
 71 | /// identical to C's `tgamma(3)`.
 72 | public func tgamma(_ x: Double) -> Double { C.tgamma(x) }
    |                                             `- error: cannot find 'C' in scope
 73 |
 74 | // MARK: rounding, decomposition, and friends (Swift-native)
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:103:26: error: extra argument in call
101 | public func remquo(_ x: Double, _ y: Double) -> (remainder: Double, quotient: Int) {
102 |     var q: CInt = 0
103 |     let r = remquo(x, y, &q)
    |                          `- error: extra argument in call
104 |     return (r, Int(q))
105 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:128:22: error: extra argument in call
126 | public func frexp(_ x: Double) -> (mantissa: Double, exponent: Int) {
127 |     var e: CInt = 0
128 |     let m = frexp(x, &e)
    |                      `- error: extra argument in call
129 |     return (m, Int(e))
130 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:132:65: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
130 | }
131 | /// identical to C's `ldexp(3)`: x * 2**exp.
132 | public func ldexp(_ x: Double, _ exp: Int) -> Double { ldexp(x, CInt(exp)) }
    |                                                                 `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
133 | /// identical to C's `scalbn(3)`: x * 2**exp.
134 | public func scalbn(_ x: Double, _ exp: Int) -> Double { scalbn(x, CInt(exp)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:134:67: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
132 | public func ldexp(_ x: Double, _ exp: Int) -> Double { ldexp(x, CInt(exp)) }
133 | /// identical to C's `scalbn(3)`: x * 2**exp.
134 | public func scalbn(_ x: Double, _ exp: Int) -> Double { scalbn(x, CInt(exp)) }
    |                                                                   `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'Int'
135 | /// identical to C's `modf(3)`; returns the fractional and integral parts.
136 | public func modf(_ x: Double) -> (fractional: Double, integral: Double) {
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:138:21: error: extra argument in call
136 | public func modf(_ x: Double) -> (fractional: Double, integral: Double) {
137 |     var i: Double = 0
138 |     let f = modf(x, &i)
    |                     `- error: extra argument in call
139 |     return (f, i)
140 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:142:43: error: cannot find 'C' in scope
140 | }
141 | /// identical to C's `logb(3)`.
142 | public func logb(_ x: Double) -> Double { C.logb(x) }
    |                                           `- error: cannot find 'C' in scope
143 | /// identical to C's `ilogb(3)`.
144 | public func ilogb(_ x: Double) -> Int { Int(C.ilogb(x)) }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:144:45: error: cannot find 'C' in scope
142 | public func logb(_ x: Double) -> Double { C.logb(x) }
143 | /// identical to C's `ilogb(3)`.
144 | public func ilogb(_ x: Double) -> Int { Int(C.ilogb(x)) }
    |                                             `- error: cannot find 'C' in scope
145 | /// identical to C's `nan(3)`.
146 | public func nan(_ tag: String = "") -> Double { tag.withCString { nan($0) } }
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:146:71: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
144 | public func ilogb(_ x: Double) -> Int { Int(C.ilogb(x)) }
145 | /// identical to C's `nan(3)`.
146 | public func nan(_ tag: String = "") -> Double { tag.withCString { nan($0) } }
    |                                                                       `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
147 |
148 | // MARK: classification (Swift-native, swifty return types)
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:179:36: error: cannot find 'C' in scope
177 |
178 | /// identical to C's `fegetround(3)`.
179 | public func fegetround() -> CInt { C.fegetround() }
    |                                    `- error: cannot find 'C' in scope
180 | /// identical to C's `fesetround(3)`.
181 | @discardableResult
/host/spi-builder-workspace/Sources/POSIXGlobals/Math.swift:182:48: error: cannot find 'C' in scope
180 | /// identical to C's `fesetround(3)`.
181 | @discardableResult
182 | public func fesetround(_ mode: CInt) -> CInt { C.fesetround(mode) }
    |                                                `- error: cannot find 'C' in scope
183 |
184 | // (FE_* and M_* constants are re-exported in Platform.swift)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:15:21: error: cannot find type 'uid_t' in scope
13 |     public let name: String
14 |     /// user id (`pw_uid`)
15 |     public let uid: uid_t
   |                     `- error: cannot find type 'uid_t' in scope
16 |     /// group id (`pw_gid`)
17 |     public let gid: gid_t
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:17:21: error: cannot find type 'gid_t' in scope
15 |     public let uid: uid_t
16 |     /// group id (`pw_gid`)
17 |     public let gid: gid_t
   |                     `- error: cannot find type 'gid_t' in scope
18 |     /// real name / GECOS field (`pw_gecos`)
19 |     public let gecos: String
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:25:25: error: cannot find type 'passwd' in scope
23 |     public let shell: String
24 |
25 |     internal init(_ pw: passwd) {
   |                         `- error: cannot find type 'passwd' in scope
26 |         name = pw.pw_name.map { String(cString: $0) } ?? ""
27 |         uid = pw.pw_uid
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:11:15: error: type 'Passwd' does not conform to protocol 'Hashable'
 9 |
10 | /// A swifty `struct passwd`.
11 | public struct Passwd: Hashable, Sendable {
   |               `- error: type 'Passwd' does not conform to protocol 'Hashable'
12 |     /// user name (`pw_name`)
13 |     public let name: String
14 |     /// user id (`pw_uid`)
15 |     public let uid: uid_t
   |                `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Passwd' to 'Hashable'
16 |     /// group id (`pw_gid`)
17 |     public let gid: gid_t
   |                `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Passwd' to 'Hashable'
18 |     /// real name / GECOS field (`pw_gecos`)
19 |     public let gecos: String
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:11:15: error: type 'Passwd' does not conform to protocol 'Equatable'
 9 |
10 | /// A swifty `struct passwd`.
11 | public struct Passwd: Hashable, Sendable {
   |               |- error: type 'Passwd' does not conform to protocol 'Equatable'
   |               `- note: add stubs for conformance
12 |     /// user name (`pw_name`)
13 |     public let name: String
14 |     /// user id (`pw_uid`)
15 |     public let uid: uid_t
   |                `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Passwd' to 'Equatable'
16 |     /// group id (`pw_gid`)
17 |     public let gid: gid_t
   |                `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Passwd' to 'Equatable'
18 |     /// real name / GECOS field (`pw_gecos`)
19 |     public let gecos: String
Swift.==:1:24: note: candidate would match if 'Passwd' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
  |                        `- note: candidate would match if 'Passwd' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Passwd' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Passwd' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Passwd' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'Passwd' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Passwd' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Passwd' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Passwd' 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 'Passwd' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Passwd' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'Passwd' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Passwd' 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 'Passwd' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Passwd' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'Passwd' conformed to 'SIMD'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Passwd, Passwd) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(Passwd, Passwd) -> Bool'
3 |
/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/PwdGrp.swift:62:21: error: cannot find type 'gid_t' in scope
60 |     public let name: String
61 |     /// group id (`gr_gid`)
62 |     public let gid: gid_t
   |                     `- error: cannot find type 'gid_t' in scope
63 |     /// member user names (`gr_mem`)
64 |     public let members: [String]
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:66:25: error: cannot find type 'group' in scope
64 |     public let members: [String]
65 |
66 |     internal init(_ gr: group) {
   |                         `- error: cannot find type 'group' in scope
67 |         name = gr.gr_name.map { String(cString: $0) } ?? ""
68 |         gid = gr.gr_gid
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:58:15: error: type 'Group' does not conform to protocol 'Hashable'
56 |
57 | /// A swifty `struct group`.
58 | public struct Group: Hashable, Sendable {
   |               `- error: type 'Group' does not conform to protocol 'Hashable'
59 |     /// group name (`gr_name`)
60 |     public let name: String
61 |     /// group id (`gr_gid`)
62 |     public let gid: gid_t
   |                `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Group' to 'Hashable'
63 |     /// member user names (`gr_mem`)
64 |     public let members: [String]
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:58:15: error: type 'Group' does not conform to protocol 'Equatable'
56 |
57 | /// A swifty `struct group`.
58 | public struct Group: Hashable, Sendable {
   |               |- error: type 'Group' does not conform to protocol 'Equatable'
   |               `- note: add stubs for conformance
59 |     /// group name (`gr_name`)
60 |     public let name: String
61 |     /// group id (`gr_gid`)
62 |     public let gid: gid_t
   |                `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Group' to 'Equatable'
63 |     /// member user names (`gr_mem`)
64 |     public let members: [String]
Swift.==:1:24: note: candidate would match if 'Group' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
  |                        `- note: candidate would match if 'Group' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Group' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Group' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Group' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'Group' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Group' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Group' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Group' 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 'Group' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Group' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'Group' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Group' 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 'Group' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Group' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'Group' conformed to 'SIMD'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Group, Group) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(Group, Group) -> Bool'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:91:29: error: cannot find type 'gid_t' in scope
89 |
90 | /// identical to C's `getgrgid(3)` (via `getgrgid_r`).
91 | public func getgrgid(_ gid: gid_t) -> Group? {
   |                             `- error: cannot find type 'gid_t' in scope
92 |     var gr = group()
93 |     var buf = [CChar](repeating: 0, count: pwBufSize)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:39:14: error: cannot find 'passwd' in scope
37 | /// identical to C's `getpwnam(3)` (via `getpwnam_r`).
38 | public func getpwnam(_ name: String) -> Passwd? {
39 |     var pw = passwd()
   |              `- error: cannot find 'passwd' in scope
40 |     var buf = [CChar](repeating: 0, count: pwBufSize)
41 |     var result: UnsafeMutablePointer<passwd>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:41:38: error: cannot find type 'passwd' in scope
39 |     var pw = passwd()
40 |     var buf = [CChar](repeating: 0, count: pwBufSize)
41 |     var result: UnsafeMutablePointer<passwd>? = nil
   |                                      `- error: cannot find type 'passwd' in scope
42 |     let r = name.withCString { getpwnam_r($0, &pw, &buf, pwBufSize, &result) }
43 |     guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:42:32: error: cannot find 'getpwnam_r' in scope
40 |     var buf = [CChar](repeating: 0, count: pwBufSize)
41 |     var result: UnsafeMutablePointer<passwd>? = nil
42 |     let r = name.withCString { getpwnam_r($0, &pw, &buf, pwBufSize, &result) }
   |                                `- error: cannot find 'getpwnam_r' in scope
43 |     guard r == 0, result != nil else { return nil }
44 |     return Passwd(pw)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:49:14: error: cannot find 'passwd' in scope
47 | /// identical to C's `getpwuid(3)` (via `getpwuid_r`).
48 | public func getpwuid(_ uid: uid_t) -> Passwd? {
49 |     var pw = passwd()
   |              `- error: cannot find 'passwd' in scope
50 |     var buf = [CChar](repeating: 0, count: pwBufSize)
51 |     var result: UnsafeMutablePointer<passwd>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:51:38: error: cannot find type 'passwd' in scope
49 |     var pw = passwd()
50 |     var buf = [CChar](repeating: 0, count: pwBufSize)
51 |     var result: UnsafeMutablePointer<passwd>? = nil
   |                                      `- error: cannot find type 'passwd' in scope
52 |     let r = getpwuid_r(uid, &pw, &buf, pwBufSize, &result)
53 |     guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:52:13: error: cannot find 'getpwuid_r' in scope
50 |     var buf = [CChar](repeating: 0, count: pwBufSize)
51 |     var result: UnsafeMutablePointer<passwd>? = nil
52 |     let r = getpwuid_r(uid, &pw, &buf, pwBufSize, &result)
   |             `- error: cannot find 'getpwuid_r' in scope
53 |     guard r == 0, result != nil else { return nil }
54 |     return Passwd(pw)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:82:14: error: cannot find 'group' in scope
80 | /// identical to C's `getgrnam(3)` (via `getgrnam_r`).
81 | public func getgrnam(_ name: String) -> Group? {
82 |     var gr = group()
   |              `- error: cannot find 'group' in scope
83 |     var buf = [CChar](repeating: 0, count: pwBufSize)
84 |     var result: UnsafeMutablePointer<group>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:84:38: error: cannot find type 'group' in scope
82 |     var gr = group()
83 |     var buf = [CChar](repeating: 0, count: pwBufSize)
84 |     var result: UnsafeMutablePointer<group>? = nil
   |                                      `- error: cannot find type 'group' in scope
85 |     let r = name.withCString { getgrnam_r($0, &gr, &buf, pwBufSize, &result) }
86 |     guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:85:32: error: cannot find 'getgrnam_r' in scope
83 |     var buf = [CChar](repeating: 0, count: pwBufSize)
84 |     var result: UnsafeMutablePointer<group>? = nil
85 |     let r = name.withCString { getgrnam_r($0, &gr, &buf, pwBufSize, &result) }
   |                                `- error: cannot find 'getgrnam_r' in scope
86 |     guard r == 0, result != nil else { return nil }
87 |     return Group(gr)
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:92:14: error: cannot find 'group' in scope
90 | /// identical to C's `getgrgid(3)` (via `getgrgid_r`).
91 | public func getgrgid(_ gid: gid_t) -> Group? {
92 |     var gr = group()
   |              `- error: cannot find 'group' in scope
93 |     var buf = [CChar](repeating: 0, count: pwBufSize)
94 |     var result: UnsafeMutablePointer<group>? = nil
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:94:38: error: cannot find type 'group' in scope
92 |     var gr = group()
93 |     var buf = [CChar](repeating: 0, count: pwBufSize)
94 |     var result: UnsafeMutablePointer<group>? = nil
   |                                      `- error: cannot find type 'group' in scope
95 |     let r = getgrgid_r(gid, &gr, &buf, pwBufSize, &result)
96 |     guard r == 0, result != nil else { return nil }
/host/spi-builder-workspace/Sources/POSIXGlobals/PwdGrp.swift:95:13: error: cannot find 'getgrgid_r' in scope
93 |     var buf = [CChar](repeating: 0, count: pwBufSize)
94 |     var result: UnsafeMutablePointer<group>? = nil
95 |     let r = getgrgid_r(gid, &gr, &buf, pwBufSize, &result)
   |             `- error: cannot find 'getgrgid_r' in scope
96 |     guard r == 0, result != nil else { return nil }
97 |     return Group(gr)
[22/23] Compiling POSIXGlobals Stdlib.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:83:41: error: cannot find type 'wchar_t' in scope
 81 | /// to a wide character; returns the wide character and the number of
 82 | /// bytes consumed, or nil on an invalid sequence.
 83 | public func mbtowc(_ s: String) -> (wc: wchar_t, length: Int)? {
    |                                         `- error: cannot find type 'wchar_t' in scope
 84 |     s.withCString { p -> (wc: wchar_t, length: Int)? in
 85 |         var wc: wchar_t = 0
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:94:26: error: cannot find type 'wchar_t' in scope
 92 | /// identical to C's `wctomb(3)`: converts a wide character to its
 93 | /// multibyte representation, or nil if it has none.
 94 | public func wctomb(_ wc: wchar_t) -> String? {
    |                          `- error: cannot find type 'wchar_t' in scope
 95 |     var buf = [CChar](repeating: 0, count: 16) // >= MB_CUR_MAX
 96 |     let n = wctomb(&buf, wc)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:103:39: error: cannot find type 'wchar_t' in scope
101 | /// identical to C's `mbstowcs(3)`: converts a multibyte string to an
102 | /// array of wide characters, or nil on an invalid sequence.
103 | public func mbstowcs(_ s: String) -> [wchar_t]? {
    |                                       `- error: cannot find type 'wchar_t' in scope
104 |     s.withCString { p -> [wchar_t]? in
105 |         let n = mbstowcs(nil, p, 0)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:115:30: error: cannot find type 'wchar_t' in scope
113 | /// identical to C's `wcstombs(3)`: converts an array of wide characters
114 | /// to a (multibyte) string, or nil if it cannot be represented.
115 | public func wcstombs(_ wcs: [wchar_t]) -> String? {
    |                              `- error: cannot find type 'wchar_t' in scope
116 |     var w = wcs + [0]
117 |     let n = wcstombs(nil, &w, 0)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:10:49: error: cannot find 'C' in scope
  8 |
  9 | /// identical to C's `exit(3)`.
 10 | public func exit(_ status: CInt = 0) -> Never { C.exit(status) }
    |                                                 `- error: cannot find 'C' in scope
 11 |
 12 | /// identical to C's `abort(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:13:32: error: cannot find 'C' in scope
 11 |
 12 | /// identical to C's `abort(3)`.
 13 | public func abort() -> Never { C.abort() }
    |                                `- error: cannot find 'C' in scope
 14 |
 15 | public let EXIT_SUCCESS: CInt = 0
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:21:30: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 19 | public func getenv(_ name: String) -> String? {
 20 |     name.withCString { p -> String? in
 21 |         guard let v = getenv(p) else { return nil }
    |                              `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 22 |         return String(cString: v)
 23 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:30:30: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 28 |     _ = try name.withCString { n in
 29 |         try value.withCString { v in
 30 |             try check(setenv(n, v, overwrite ? 1 : 0))
    |                              `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 31 |         }
 32 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:30:33: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 28 |     _ = try name.withCString { n in
 29 |         try value.withCString { v in
 30 |             try check(setenv(n, v, overwrite ? 1 : 0))
    |                                 `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 31 |         }
 32 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:37:51: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 35 | /// identical to C's `unsetenv(3)`.
 36 | public func unsetenv(_ name: String) throws {
 37 |     _ = try name.withCString { try check(unsetenv($0)) }
    |                                                   `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 38 | }
 39 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:45:27: error: extra argument in call
 43 |     s.withCString { p in
 44 |         var end: UnsafeMutablePointer<CChar>? = nil
 45 |         let v = strtod(p, &end)
    |                           `- error: extra argument in call
 46 |         let consumed = end.map { p.distance(to: $0) } ?? 0
 47 |         return (v, s.utf8.count - consumed)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:45:24: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 43 |     s.withCString { p in
 44 |         var end: UnsafeMutablePointer<CChar>? = nil
 45 |         let v = strtod(p, &end)
    |                        `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 46 |         let consumed = end.map { p.distance(to: $0) } ?? 0
 47 |         return (v, s.utf8.count - consumed)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:56:33: error: extra argument in call
 54 |     s.withCString { p in
 55 |         var end: UnsafeMutablePointer<CChar>? = nil
 56 |         let v = strtol(p, &end, base)
    |                                 `- error: extra argument in call
 57 |         let consumed = end.map { p.distance(to: $0) } ?? 0
 58 |         return (v, s.utf8.count - consumed)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:56:24: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 54 |     s.withCString { p in
 55 |         var end: UnsafeMutablePointer<CChar>? = nil
 56 |         let v = strtol(p, &end, base)
    |                        `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 57 |         let consumed = end.map { p.distance(to: $0) } ?? 0
 58 |         return (v, s.utf8.count - consumed)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:56:27: error: cannot convert value of type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') to expected argument type 'CInt' (aka 'Int32')
 54 |     s.withCString { p in
 55 |         var end: UnsafeMutablePointer<CChar>? = nil
 56 |         let v = strtol(p, &end, base)
    |                           `- error: cannot convert value of type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') to expected argument type 'CInt' (aka 'Int32')
 57 |         let consumed = end.map { p.distance(to: $0) } ?? 0
 58 |         return (v, s.utf8.count - consumed)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:67:34: error: extra argument in call
 65 |     s.withCString { p in
 66 |         var end: UnsafeMutablePointer<CChar>? = nil
 67 |         let v = strtoul(p, &end, base)
    |                                  `- error: extra argument in call
 68 |         let consumed = end.map { p.distance(to: $0) } ?? 0
 69 |         return (v, s.utf8.count - consumed)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:67:25: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 65 |     s.withCString { p in
 66 |         var end: UnsafeMutablePointer<CChar>? = nil
 67 |         let v = strtoul(p, &end, base)
    |                         `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 68 |         let consumed = end.map { p.distance(to: $0) } ?? 0
 69 |         return (v, s.utf8.count - consumed)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:67:28: error: cannot convert value of type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') to expected argument type 'CInt' (aka 'Int32')
 65 |     s.withCString { p in
 66 |         var end: UnsafeMutablePointer<CChar>? = nil
 67 |         let v = strtoul(p, &end, base)
    |                            `- error: cannot convert value of type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') to expected argument type 'CInt' (aka 'Int32')
 68 |         let consumed = end.map { p.distance(to: $0) } ?? 0
 69 |         return (v, s.utf8.count - consumed)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:77:48: error: extra argument in call
 75 | public func mblen(_ s: String) -> Int {
 76 |     // + 1 so the terminating NUL is visible: mblen("") is then 0, not -1
 77 |     s.withCString { Int(mblen($0, s.utf8.count + 1)) }
    |                                                `- error: extra argument in call
 78 | }
 79 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:77:31: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 75 | public func mblen(_ s: String) -> Int {
 76 |     // + 1 so the terminating NUL is visible: mblen("") is then 0, not -1
 77 |     s.withCString { Int(mblen($0, s.utf8.count + 1)) }
    |                               `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 78 | }
 79 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:117:22: error: 'nil' requires a contextual type
115 | public func wcstombs(_ wcs: [wchar_t]) -> String? {
116 |     var w = wcs + [0]
117 |     let n = wcstombs(nil, &w, 0)
    |                      `- error: 'nil' requires a contextual type
118 |     guard n != -1 else { return nil }
119 |     var buf = [CChar](repeating: 0, count: n + 1)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:129:61: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
127 | /// Returns a negative, zero, or positive value.
128 | public func strcoll(_ a: String, _ b: String) -> Int {
129 |     a.withCString { pa in b.withCString { pb in Int(strcoll(pa, pb)) } }
    |                                                             `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
130 | }
131 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:129:65: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
127 | /// Returns a negative, zero, or positive value.
128 | public func strcoll(_ a: String, _ b: String) -> Int {
129 |     a.withCString { pa in b.withCString { pb in Int(strcoll(pa, pb)) } }
    |                                                                 `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
130 | }
131 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:135:24: error: extra arguments at positions #2, #3 in call
131 |
132 | /// identical to C's `strxfrm(3)`: the locale-collation transform of the string.
133 | public func strxfrm(_ s: String) -> String {
    |             `- note: 'strxfrm' declared here
134 |     s.withCString { p -> String in
135 |         let n = strxfrm(nil, p, 0)
    |                        `- error: extra arguments at positions #2, #3 in call
136 |         var buf = [CChar](repeating: 0, count: n + 1)
137 |         _ = strxfrm(&buf, p, n + 1)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:135:25: error: 'nil' is not compatible with expected argument type 'String'
133 | public func strxfrm(_ s: String) -> String {
134 |     s.withCString { p -> String in
135 |         let n = strxfrm(nil, p, 0)
    |                         `- error: 'nil' is not compatible with expected argument type 'String'
136 |         var buf = [CChar](repeating: 0, count: n + 1)
137 |         _ = strxfrm(&buf, p, n + 1)
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:17:25: error: cannot find type 'timespec' in scope
 15 |         self.nanoseconds = nanoseconds
 16 |     }
 17 |     internal init(_ ts: timespec) {
    |                         `- error: cannot find type 'timespec' in scope
 18 |         self.init(seconds: Int(ts.tv_sec), nanoseconds: Int(ts.tv_nsec))
 19 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:29:26: error: cannot find type 'mode_t' in scope
 27 | /// File permission bits, as an OptionSet: `[.S_IRUSR, .S_IWUSR]`.
 28 | public struct FilePermissions: OptionSet, Sendable {
 29 |     public var rawValue: mode_t
    |                          `- error: cannot find type 'mode_t' in scope
 30 |     public init(rawValue: mode_t) { self.rawValue = rawValue }
 31 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:30:27: error: cannot find type 'mode_t' in scope
 28 | public struct FilePermissions: OptionSet, Sendable {
 29 |     public var rawValue: mode_t
 30 |     public init(rawValue: mode_t) { self.rawValue = rawValue }
    |                           `- error: cannot find type 'mode_t' in scope
 31 | }
 32 | private let _S_ISUID = S_ISUID
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:28:15: error: type 'FilePermissions' does not conform to protocol 'SetAlgebra'
 26 |
 27 | /// File permission bits, as an OptionSet: `[.S_IRUSR, .S_IWUSR]`.
 28 | public struct FilePermissions: OptionSet, Sendable {
    |               `- error: type 'FilePermissions' does not conform to protocol 'SetAlgebra'
 29 |     public var rawValue: mode_t
 30 |     public init(rawValue: mode_t) { self.rawValue = rawValue }
Swift.OptionSet.init:2:19: note: candidate would match if 'FilePermissions.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public init()}
  |                   `- note: candidate would match if 'FilePermissions.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formUnion:2:33: note: candidate would match if 'FilePermissions.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formUnion(_ other: Self)}
  |                                 `- note: candidate would match if 'FilePermissions.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formIntersection:2:33: note: candidate would match if 'FilePermissions.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formIntersection(_ other: Self)}
  |                                 `- note: candidate would match if 'FilePermissions.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formSymmetricDifference:2:33: note: candidate would match if 'FilePermissions.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formSymmetricDifference(_ other: Self)}
  |                                 `- note: candidate would match if 'FilePermissions.RawValue' conformed to 'FixedWidthInteger'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:28:15: error: type 'FilePermissions' does not conform to protocol 'RawRepresentable'
 26 |
 27 | /// File permission bits, as an OptionSet: `[.S_IRUSR, .S_IWUSR]`.
 28 | public struct FilePermissions: OptionSet, Sendable {
    |               `- error: type 'FilePermissions' does not conform to protocol 'RawRepresentable'
 29 |     public var rawValue: mode_t
 30 |     public init(rawValue: mode_t) { self.rawValue = rawValue }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:28:15: error: type 'FilePermissions' does not conform to protocol 'Equatable'
 26 |
 27 | /// File permission bits, as an OptionSet: `[.S_IRUSR, .S_IWUSR]`.
 28 | public struct FilePermissions: OptionSet, Sendable {
    |               |- error: type 'FilePermissions' does not conform to protocol 'Equatable'
    |               `- note: add stubs for conformance
 29 |     public var rawValue: mode_t
    |                `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'FilePermissions' to 'Equatable'
 30 |     public init(rawValue: mode_t) { self.rawValue = rawValue }
 31 | }
Swift.==:1:24: note: candidate would match if 'FilePermissions.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 'FilePermissions.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'FilePermissions' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'FilePermissions' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'FilePermissions' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'FilePermissions' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'FilePermissions' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'FilePermissions' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'FilePermissions' 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 'FilePermissions' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'FilePermissions' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'FilePermissions' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'FilePermissions' 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 'FilePermissions' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'FilePermissions' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'FilePermissions' 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 FilePermissions) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formUnion(_ other: __owned Self)}
  |               `- note: protocol requires function 'formUnion' with type '(__owned FilePermissions) -> ()'
3 |
Swift.SetAlgebra.formIntersection:2:15: note: protocol requires function 'formIntersection' with type '(FilePermissions) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formIntersection(_ other: Self)}
  |               `- note: protocol requires function 'formIntersection' with type '(FilePermissions) -> ()'
3 |
Swift.SetAlgebra.formSymmetricDifference:2:15: note: protocol requires function 'formSymmetricDifference' with type '(__owned FilePermissions) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formSymmetricDifference(_ other: __owned Self)}
  |               `- note: protocol requires function 'formSymmetricDifference' with type '(__owned FilePermissions) -> ()'
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 '(FilePermissions, FilePermissions) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(FilePermissions, FilePermissions) -> Bool'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:32:24: error: cannot find 'S_ISUID' in scope
 30 |     public init(rawValue: mode_t) { self.rawValue = rawValue }
 31 | }
 32 | private let _S_ISUID = S_ISUID
    |                        `- error: cannot find 'S_ISUID' in scope
 33 | private let _S_ISGID = S_ISGID
 34 | private let _S_ISVTX = S_ISVTX
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:33:24: error: cannot find 'S_ISGID' in scope
 31 | }
 32 | private let _S_ISUID = S_ISUID
 33 | private let _S_ISGID = S_ISGID
    |                        `- error: cannot find 'S_ISGID' in scope
 34 | private let _S_ISVTX = S_ISVTX
 35 | private let _S_IRWXU = S_IRWXU
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:34:24: error: cannot find 'S_ISVTX' in scope
 32 | private let _S_ISUID = S_ISUID
 33 | private let _S_ISGID = S_ISGID
 34 | private let _S_ISVTX = S_ISVTX
    |                        `- error: cannot find 'S_ISVTX' in scope
 35 | private let _S_IRWXU = S_IRWXU
 36 | private let _S_IRUSR = S_IRUSR
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:35:24: error: cannot find 'S_IRWXU' in scope
 33 | private let _S_ISGID = S_ISGID
 34 | private let _S_ISVTX = S_ISVTX
 35 | private let _S_IRWXU = S_IRWXU
    |                        `- error: cannot find 'S_IRWXU' in scope
 36 | private let _S_IRUSR = S_IRUSR
 37 | private let _S_IWUSR = S_IWUSR
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:36:24: error: cannot find 'S_IRUSR' in scope
 34 | private let _S_ISVTX = S_ISVTX
 35 | private let _S_IRWXU = S_IRWXU
 36 | private let _S_IRUSR = S_IRUSR
    |                        `- error: cannot find 'S_IRUSR' in scope
 37 | private let _S_IWUSR = S_IWUSR
 38 | private let _S_IXUSR = S_IXUSR
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:37:24: error: cannot find 'S_IWUSR' in scope
 35 | private let _S_IRWXU = S_IRWXU
 36 | private let _S_IRUSR = S_IRUSR
 37 | private let _S_IWUSR = S_IWUSR
    |                        `- error: cannot find 'S_IWUSR' in scope
 38 | private let _S_IXUSR = S_IXUSR
 39 | private let _S_IRWXG = S_IRWXG
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:38:24: error: cannot find 'S_IXUSR' in scope
 36 | private let _S_IRUSR = S_IRUSR
 37 | private let _S_IWUSR = S_IWUSR
 38 | private let _S_IXUSR = S_IXUSR
    |                        `- error: cannot find 'S_IXUSR' in scope
 39 | private let _S_IRWXG = S_IRWXG
 40 | private let _S_IRGRP = S_IRGRP
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:39:24: error: cannot find 'S_IRWXG' in scope
 37 | private let _S_IWUSR = S_IWUSR
 38 | private let _S_IXUSR = S_IXUSR
 39 | private let _S_IRWXG = S_IRWXG
    |                        `- error: cannot find 'S_IRWXG' in scope
 40 | private let _S_IRGRP = S_IRGRP
 41 | private let _S_IWGRP = S_IWGRP
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:40:24: error: cannot find 'S_IRGRP' in scope
 38 | private let _S_IXUSR = S_IXUSR
 39 | private let _S_IRWXG = S_IRWXG
 40 | private let _S_IRGRP = S_IRGRP
    |                        `- error: cannot find 'S_IRGRP' in scope
 41 | private let _S_IWGRP = S_IWGRP
 42 | private let _S_IXGRP = S_IXGRP
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:41:24: error: cannot find 'S_IWGRP' in scope
 39 | private let _S_IRWXG = S_IRWXG
 40 | private let _S_IRGRP = S_IRGRP
 41 | private let _S_IWGRP = S_IWGRP
    |                        `- error: cannot find 'S_IWGRP' in scope
 42 | private let _S_IXGRP = S_IXGRP
 43 | private let _S_IRWXO = S_IRWXO
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:42:24: error: cannot find 'S_IXGRP' in scope
 40 | private let _S_IRGRP = S_IRGRP
 41 | private let _S_IWGRP = S_IWGRP
 42 | private let _S_IXGRP = S_IXGRP
    |                        `- error: cannot find 'S_IXGRP' in scope
 43 | private let _S_IRWXO = S_IRWXO
 44 | private let _S_IROTH = S_IROTH
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:43:24: error: cannot find 'S_IRWXO' in scope
 41 | private let _S_IWGRP = S_IWGRP
 42 | private let _S_IXGRP = S_IXGRP
 43 | private let _S_IRWXO = S_IRWXO
    |                        `- error: cannot find 'S_IRWXO' in scope
 44 | private let _S_IROTH = S_IROTH
 45 | private let _S_IWOTH = S_IWOTH
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:44:24: error: cannot find 'S_IROTH' in scope
 42 | private let _S_IXGRP = S_IXGRP
 43 | private let _S_IRWXO = S_IRWXO
 44 | private let _S_IROTH = S_IROTH
    |                        `- error: cannot find 'S_IROTH' in scope
 45 | private let _S_IWOTH = S_IWOTH
 46 | private let _S_IXOTH = S_IXOTH
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:45:24: error: cannot find 'S_IWOTH' in scope
 43 | private let _S_IRWXO = S_IRWXO
 44 | private let _S_IROTH = S_IROTH
 45 | private let _S_IWOTH = S_IWOTH
    |                        `- error: cannot find 'S_IWOTH' in scope
 46 | private let _S_IXOTH = S_IXOTH
 47 | extension FilePermissions {
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:46:24: error: cannot find 'S_IXOTH' in scope
 44 | private let _S_IROTH = S_IROTH
 45 | private let _S_IWOTH = S_IWOTH
 46 | private let _S_IXOTH = S_IXOTH
    |                        `- error: cannot find 'S_IXOTH' in scope
 47 | extension FilePermissions {
 48 |     public static let S_ISUID = FilePermissions(rawValue: mode_t(_S_ISUID))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:48:59: error: cannot find 'mode_t' in scope
 46 | private let _S_IXOTH = S_IXOTH
 47 | extension FilePermissions {
 48 |     public static let S_ISUID = FilePermissions(rawValue: mode_t(_S_ISUID))
    |                                                           `- error: cannot find 'mode_t' in scope
 49 |     public static let S_ISGID = FilePermissions(rawValue: mode_t(_S_ISGID))
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:48:48: error: extraneous argument label 'rawValue:' in call
 46 | private let _S_IXOTH = S_IXOTH
 47 | extension FilePermissions {
 48 |     public static let S_ISUID = FilePermissions(rawValue: mode_t(_S_ISUID))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 49 |     public static let S_ISGID = FilePermissions(rawValue: mode_t(_S_ISGID))
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:49:59: error: cannot find 'mode_t' in scope
 47 | extension FilePermissions {
 48 |     public static let S_ISUID = FilePermissions(rawValue: mode_t(_S_ISUID))
 49 |     public static let S_ISGID = FilePermissions(rawValue: mode_t(_S_ISGID))
    |                                                           `- error: cannot find 'mode_t' in scope
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:49:48: error: extraneous argument label 'rawValue:' in call
 47 | extension FilePermissions {
 48 |     public static let S_ISUID = FilePermissions(rawValue: mode_t(_S_ISUID))
 49 |     public static let S_ISGID = FilePermissions(rawValue: mode_t(_S_ISGID))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:50:59: error: cannot find 'mode_t' in scope
 48 |     public static let S_ISUID = FilePermissions(rawValue: mode_t(_S_ISUID))
 49 |     public static let S_ISGID = FilePermissions(rawValue: mode_t(_S_ISGID))
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
    |                                                           `- error: cannot find 'mode_t' in scope
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:50:48: error: extraneous argument label 'rawValue:' in call
 48 |     public static let S_ISUID = FilePermissions(rawValue: mode_t(_S_ISUID))
 49 |     public static let S_ISGID = FilePermissions(rawValue: mode_t(_S_ISGID))
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:51:59: error: cannot find 'mode_t' in scope
 49 |     public static let S_ISGID = FilePermissions(rawValue: mode_t(_S_ISGID))
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
    |                                                           `- error: cannot find 'mode_t' in scope
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:51:48: error: extraneous argument label 'rawValue:' in call
 49 |     public static let S_ISGID = FilePermissions(rawValue: mode_t(_S_ISGID))
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:52:59: error: cannot find 'mode_t' in scope
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
    |                                                           `- error: cannot find 'mode_t' in scope
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:52:48: error: extraneous argument label 'rawValue:' in call
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:53:59: error: cannot find 'mode_t' in scope
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
    |                                                           `- error: cannot find 'mode_t' in scope
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:53:48: error: extraneous argument label 'rawValue:' in call
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:54:59: error: cannot find 'mode_t' in scope
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
    |                                                           `- error: cannot find 'mode_t' in scope
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:54:48: error: extraneous argument label 'rawValue:' in call
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:55:59: error: cannot find 'mode_t' in scope
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
    |                                                           `- error: cannot find 'mode_t' in scope
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:55:48: error: extraneous argument label 'rawValue:' in call
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:56:59: error: cannot find 'mode_t' in scope
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
    |                                                           `- error: cannot find 'mode_t' in scope
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:56:48: error: extraneous argument label 'rawValue:' in call
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:57:59: error: cannot find 'mode_t' in scope
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
    |                                                           `- error: cannot find 'mode_t' in scope
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:57:48: error: extraneous argument label 'rawValue:' in call
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:58:59: error: cannot find 'mode_t' in scope
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
    |                                                           `- error: cannot find 'mode_t' in scope
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:58:48: error: extraneous argument label 'rawValue:' in call
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:59:59: error: cannot find 'mode_t' in scope
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
    |                                                           `- error: cannot find 'mode_t' in scope
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
 61 |     public static let S_IWOTH = FilePermissions(rawValue: mode_t(_S_IWOTH))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:59:48: error: extraneous argument label 'rawValue:' in call
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
 61 |     public static let S_IWOTH = FilePermissions(rawValue: mode_t(_S_IWOTH))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:60:59: error: cannot find 'mode_t' in scope
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
    |                                                           `- error: cannot find 'mode_t' in scope
 61 |     public static let S_IWOTH = FilePermissions(rawValue: mode_t(_S_IWOTH))
 62 |     public static let S_IXOTH = FilePermissions(rawValue: mode_t(_S_IXOTH))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:60:48: error: extraneous argument label 'rawValue:' in call
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 61 |     public static let S_IWOTH = FilePermissions(rawValue: mode_t(_S_IWOTH))
 62 |     public static let S_IXOTH = FilePermissions(rawValue: mode_t(_S_IXOTH))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:61:59: error: cannot find 'mode_t' in scope
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
 61 |     public static let S_IWOTH = FilePermissions(rawValue: mode_t(_S_IWOTH))
    |                                                           `- error: cannot find 'mode_t' in scope
 62 |     public static let S_IXOTH = FilePermissions(rawValue: mode_t(_S_IXOTH))
 63 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:61:48: error: extraneous argument label 'rawValue:' in call
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
 61 |     public static let S_IWOTH = FilePermissions(rawValue: mode_t(_S_IWOTH))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 62 |     public static let S_IXOTH = FilePermissions(rawValue: mode_t(_S_IXOTH))
 63 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:62:59: error: cannot find 'mode_t' in scope
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
 61 |     public static let S_IWOTH = FilePermissions(rawValue: mode_t(_S_IWOTH))
 62 |     public static let S_IXOTH = FilePermissions(rawValue: mode_t(_S_IXOTH))
    |                                                           `- error: cannot find 'mode_t' in scope
 63 | }
 64 |
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:62:48: error: extraneous argument label 'rawValue:' in call
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
 61 |     public static let S_IWOTH = FilePermissions(rawValue: mode_t(_S_IWOTH))
 62 |     public static let S_IXOTH = FilePermissions(rawValue: mode_t(_S_IXOTH))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 63 | }
 64 |
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:65:23: error: cannot find 'S_IFMT' in scope
 63 | }
 64 |
 65 | private let _S_IFMT = S_IFMT
    |                       `- error: cannot find 'S_IFMT' in scope
 66 | private let _S_IFIFO = S_IFIFO
 67 | private let _S_IFCHR = S_IFCHR
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:66:24: error: cannot find 'S_IFIFO' in scope
 64 |
 65 | private let _S_IFMT = S_IFMT
 66 | private let _S_IFIFO = S_IFIFO
    |                        `- error: cannot find 'S_IFIFO' in scope
 67 | private let _S_IFCHR = S_IFCHR
 68 | private let _S_IFDIR = S_IFDIR
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:67:24: error: cannot find 'S_IFCHR' in scope
 65 | private let _S_IFMT = S_IFMT
 66 | private let _S_IFIFO = S_IFIFO
 67 | private let _S_IFCHR = S_IFCHR
    |                        `- error: cannot find 'S_IFCHR' in scope
 68 | private let _S_IFDIR = S_IFDIR
 69 | private let _S_IFBLK = S_IFBLK
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:68:24: error: cannot find 'S_IFDIR' in scope
 66 | private let _S_IFIFO = S_IFIFO
 67 | private let _S_IFCHR = S_IFCHR
 68 | private let _S_IFDIR = S_IFDIR
    |                        `- error: cannot find 'S_IFDIR' in scope
 69 | private let _S_IFBLK = S_IFBLK
 70 | private let _S_IFREG = S_IFREG
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:69:24: error: cannot find 'S_IFBLK' in scope
 67 | private let _S_IFCHR = S_IFCHR
 68 | private let _S_IFDIR = S_IFDIR
 69 | private let _S_IFBLK = S_IFBLK
    |                        `- error: cannot find 'S_IFBLK' in scope
 70 | private let _S_IFREG = S_IFREG
 71 | private let _S_IFLNK = S_IFLNK
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:70:24: error: cannot find 'S_IFREG' in scope
 68 | private let _S_IFDIR = S_IFDIR
 69 | private let _S_IFBLK = S_IFBLK
 70 | private let _S_IFREG = S_IFREG
    |                        `- error: cannot find 'S_IFREG' in scope
 71 | private let _S_IFLNK = S_IFLNK
 72 | private let _S_IFSOCK = S_IFSOCK
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:71:24: error: cannot find 'S_IFLNK' in scope
 69 | private let _S_IFBLK = S_IFBLK
 70 | private let _S_IFREG = S_IFREG
 71 | private let _S_IFLNK = S_IFLNK
    |                        `- error: cannot find 'S_IFLNK' in scope
 72 | private let _S_IFSOCK = S_IFSOCK
 73 |
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:72:25: error: cannot find 'S_IFSOCK' in scope
 70 | private let _S_IFREG = S_IFREG
 71 | private let _S_IFLNK = S_IFLNK
 72 | private let _S_IFSOCK = S_IFSOCK
    |                         `- error: cannot find 'S_IFSOCK' in scope
 73 |
 74 | /// The type of a file, derived from `st_mode`.
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:79:25: error: cannot find type 'mode_t' in scope
 77 |     case blockDevice, characterDevice, unknown
 78 |
 79 |     internal init(mode: mode_t) {
    |                         `- error: cannot find type 'mode_t' in scope
 80 |         switch mode & mode_t(_S_IFMT) {
 81 |         case mode_t(_S_IFREG): self = .regular
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:96:21: error: cannot find type 'dev_t' in scope
 94 | public struct Stat: Sendable {
 95 |     /// device id (`st_dev`)
 96 |     public let dev: dev_t
    |                     `- error: cannot find type 'dev_t' in scope
 97 |     /// inode number (`st_ino`)
 98 |     public let ino: ino_t
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:98:21: error: cannot find type 'ino_t' in scope
 96 |     public let dev: dev_t
 97 |     /// inode number (`st_ino`)
 98 |     public let ino: ino_t
    |                     `- error: cannot find type 'ino_t' in scope
 99 |     /// file mode, type and permissions (`st_mode`)
100 |     public let mode: mode_t
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:100:22: error: cannot find type 'mode_t' in scope
 98 |     public let ino: ino_t
 99 |     /// file mode, type and permissions (`st_mode`)
100 |     public let mode: mode_t
    |                      `- error: cannot find type 'mode_t' in scope
101 |     /// number of hard links (`st_nlink`)
102 |     public let nlink: nlink_t
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:102:23: error: cannot find type 'nlink_t' in scope
100 |     public let mode: mode_t
101 |     /// number of hard links (`st_nlink`)
102 |     public let nlink: nlink_t
    |                       `- error: cannot find type 'nlink_t' in scope
103 |     /// owner's user id (`st_uid`)
104 |     public let uid: uid_t
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:104:21: error: cannot find type 'uid_t' in scope
102 |     public let nlink: nlink_t
103 |     /// owner's user id (`st_uid`)
104 |     public let uid: uid_t
    |                     `- error: cannot find type 'uid_t' in scope
105 |     /// owner's group id (`st_gid`)
106 |     public let gid: gid_t
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:106:21: error: cannot find type 'gid_t' in scope
104 |     public let uid: uid_t
105 |     /// owner's group id (`st_gid`)
106 |     public let gid: gid_t
    |                     `- error: cannot find type 'gid_t' in scope
107 |     /// device id, for special files (`st_rdev`)
108 |     public let rdev: dev_t
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:108:22: error: cannot find type 'dev_t' in scope
106 |     public let gid: gid_t
107 |     /// device id, for special files (`st_rdev`)
108 |     public let rdev: dev_t
    |                      `- error: cannot find type 'dev_t' in scope
109 |     /// size in bytes (`st_size`)
110 |     public let size: off_t
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:110:22: error: cannot find type 'off_t' in scope
108 |     public let rdev: dev_t
109 |     /// size in bytes (`st_size`)
110 |     public let size: off_t
    |                      `- error: cannot find type 'off_t' in scope
111 |     /// last access time (`st_atime`)
112 |     public let atime: TimeSpec
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:118:25: error: cannot find type 'blksize_t' in scope
116 |     public let ctime: TimeSpec
117 |     /// preferred I/O block size (`st_blksize`)
118 |     public let blksize: blksize_t
    |                         `- error: cannot find type 'blksize_t' in scope
119 |     /// number of 512-byte blocks allocated (`st_blocks`)
120 |     public let blocks: blkcnt_t
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:120:24: error: cannot find type 'blkcnt_t' in scope
118 |     public let blksize: blksize_t
119 |     /// number of 512-byte blocks allocated (`st_blocks`)
120 |     public let blocks: blkcnt_t
    |                        `- error: cannot find type 'blkcnt_t' in scope
121 |
122 |     /// the file's type, from the mode bits.
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:141:25: error: cannot find type 'stat' in scope
139 |     public var isCharacterDevice: Bool { type == .characterDevice }
140 |
141 |     internal init(_ st: stat) {
    |                         `- error: cannot find type 'stat' in scope
142 |         dev = st.st_dev
143 |         ino = st.st_ino
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:186:43: error: cannot find type 'mode_t' in scope
184 |
185 | /// identical to C's `chmod(2)`.
186 | public func chmod(_ path: String, _ mode: mode_t) throws {
    |                                           `- error: cannot find type 'mode_t' in scope
187 |     _ = try path.withCString { try check(chmod($0, mode)) }
188 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:191:43: error: cannot find type 'mode_t' in scope
189 |
190 | /// identical to C's `mkdir(2)`.
191 | public func mkdir(_ path: String, _ mode: mode_t = 0o777) throws {
    |                                           `- error: cannot find type 'mode_t' in scope
192 |     _ = try path.withCString { try check(mkdir($0, mode)) }
193 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:196:44: error: cannot find type 'mode_t' in scope
194 |
195 | /// identical to C's `mkfifo(2)`.
196 | public func mkfifo(_ path: String, _ mode: mode_t = 0o666) throws {
    |                                            `- error: cannot find type 'mode_t' in scope
197 |     _ = try path.withCString { try check(mkfifo($0, mode)) }
198 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:202:39: error: cannot find type 'mode_t' in scope
200 | /// identical to C's `umask(2)`; returns the previous mask.
201 | @discardableResult
202 | public func umask(_ cmask: mode_t) -> mode_t { C.umask(cmask) }
    |                                       `- error: cannot find type 'mode_t' in scope
203 |
204 | /// identical to C's `utime(3)`; nil times mean "now".
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:202:28: error: cannot find type 'mode_t' in scope
200 | /// identical to C's `umask(2)`; returns the previous mask.
201 | @discardableResult
202 | public func umask(_ cmask: mode_t) -> mode_t { C.umask(cmask) }
    |                            `- error: cannot find type 'mode_t' in scope
203 |
204 | /// identical to C's `utime(3)`; nil times mean "now".
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:205:42: error: cannot find type 'time_t' in scope
203 |
204 | /// identical to C's `utime(3)`; nil times mean "now".
205 | public func utime(_ path: String, atime: time_t? = nil, mtime: time_t? = nil) throws {
    |                                          `- error: cannot find type 'time_t' in scope
206 |     try path.withCString { p in
207 |         if atime == nil && mtime == nil {
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:205:64: error: cannot find type 'time_t' in scope
203 |
204 | /// identical to C's `utime(3)`; nil times mean "now".
205 | public func utime(_ path: String, atime: time_t? = nil, mtime: time_t? = nil) throws {
    |                                                                `- error: cannot find type 'time_t' in scope
206 |     try path.withCString { p in
207 |         if atime == nil && mtime == nil {
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:80:23: error: cannot find 'mode_t' in scope
 78 |
 79 |     internal init(mode: mode_t) {
 80 |         switch mode & mode_t(_S_IFMT) {
    |                       `- error: cannot find 'mode_t' in scope
 81 |         case mode_t(_S_IFREG): self = .regular
 82 |         case mode_t(_S_IFDIR): self = .directory
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:81:14: error: cannot find 'mode_t' in scope
 79 |     internal init(mode: mode_t) {
 80 |         switch mode & mode_t(_S_IFMT) {
 81 |         case mode_t(_S_IFREG): self = .regular
    |              `- error: cannot find 'mode_t' in scope
 82 |         case mode_t(_S_IFDIR): self = .directory
 83 |         case mode_t(_S_IFLNK): self = .symbolicLink
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:82:14: error: cannot find 'mode_t' in scope
 80 |         switch mode & mode_t(_S_IFMT) {
 81 |         case mode_t(_S_IFREG): self = .regular
 82 |         case mode_t(_S_IFDIR): self = .directory
    |              `- error: cannot find 'mode_t' in scope
 83 |         case mode_t(_S_IFLNK): self = .symbolicLink
 84 |         case mode_t(_S_IFIFO): self = .fifo
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:83:14: error: cannot find 'mode_t' in scope
 81 |         case mode_t(_S_IFREG): self = .regular
 82 |         case mode_t(_S_IFDIR): self = .directory
 83 |         case mode_t(_S_IFLNK): self = .symbolicLink
    |              `- error: cannot find 'mode_t' in scope
 84 |         case mode_t(_S_IFIFO): self = .fifo
 85 |         case mode_t(_S_IFSOCK): self = .socket
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:84:14: error: cannot find 'mode_t' in scope
 82 |         case mode_t(_S_IFDIR): self = .directory
 83 |         case mode_t(_S_IFLNK): self = .symbolicLink
 84 |         case mode_t(_S_IFIFO): self = .fifo
    |              `- error: cannot find 'mode_t' in scope
 85 |         case mode_t(_S_IFSOCK): self = .socket
 86 |         case mode_t(_S_IFBLK): self = .blockDevice
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:85:14: error: cannot find 'mode_t' in scope
 83 |         case mode_t(_S_IFLNK): self = .symbolicLink
 84 |         case mode_t(_S_IFIFO): self = .fifo
 85 |         case mode_t(_S_IFSOCK): self = .socket
    |              `- error: cannot find 'mode_t' in scope
 86 |         case mode_t(_S_IFBLK): self = .blockDevice
 87 |         case mode_t(_S_IFCHR): self = .characterDevice
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:86:14: error: cannot find 'mode_t' in scope
 84 |         case mode_t(_S_IFIFO): self = .fifo
 85 |         case mode_t(_S_IFSOCK): self = .socket
 86 |         case mode_t(_S_IFBLK): self = .blockDevice
    |              `- error: cannot find 'mode_t' in scope
 87 |         case mode_t(_S_IFCHR): self = .characterDevice
 88 |         default: self = .unknown
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:87:14: error: cannot find 'mode_t' in scope
 85 |         case mode_t(_S_IFSOCK): self = .socket
 86 |         case mode_t(_S_IFBLK): self = .blockDevice
 87 |         case mode_t(_S_IFCHR): self = .characterDevice
    |              `- error: cannot find 'mode_t' in scope
 88 |         default: self = .unknown
 89 |         }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:125:62: error: extraneous argument label 'rawValue:' in call
123 |     public var type: FileType { FileType(mode: mode) }
124 |     /// the permission (and setuid/setgid/sticky) bits of the mode.
125 |     public var permissions: FilePermissions { FilePermissions(rawValue: mode & 0o7777) }
    |                                                              `- error: extraneous argument label 'rawValue:' in call
126 |     /// true iff this is a regular file (`S_ISREG`).
127 |     public var isRegularFile: Bool { type == .regular }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:155:26: error: missing argument label 'seconds:' in call
153 |         ctime = TimeSpec(st.st_ctimespec)
154 |         #else
155 |         atime = TimeSpec(st.st_atim)
    |                          `- error: missing argument label 'seconds:' in call
156 |         mtime = TimeSpec(st.st_mtim)
157 |         ctime = TimeSpec(st.st_ctim)
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:156:26: error: missing argument label 'seconds:' in call
154 |         #else
155 |         atime = TimeSpec(st.st_atim)
156 |         mtime = TimeSpec(st.st_mtim)
    |                          `- error: missing argument label 'seconds:' in call
157 |         ctime = TimeSpec(st.st_ctim)
158 |         #endif
/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/SysStat.swift:157:26: error: missing argument label 'seconds:' in call
155 |         atime = TimeSpec(st.st_atim)
156 |         mtime = TimeSpec(st.st_mtim)
157 |         ctime = TimeSpec(st.st_ctim)
    |                          `- error: missing argument label 'seconds:' in call
158 |         #endif
159 |         blksize = st.st_blksize
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:166:19: error: missing argument for parameter #1 in call
163 |
164 | /// identical to C's `stat(2)`, but returns a swifty `Stat`.
165 | public func stat(_ path: String) throws -> Stat {
    |             `- note: 'stat' declared here
166 |     var st = stat()
    |                   `- error: missing argument for parameter #1 in call
167 |     _ = try path.withCString { try check(stat($0, &st)) }
168 |     return Stat(st)
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:167:51: error: extra argument in call
165 | public func stat(_ path: String) throws -> Stat {
166 |     var st = stat()
167 |     _ = try path.withCString { try check(stat($0, &st)) }
    |                                                   `- error: extra argument in call
168 |     return Stat(st)
169 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:167:47: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
165 | public func stat(_ path: String) throws -> Stat {
166 |     var st = stat()
167 |     _ = try path.withCString { try check(stat($0, &st)) }
    |                                               `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
168 |     return Stat(st)
169 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:173:19: error: missing argument for parameter #1 in call
163 |
164 | /// identical to C's `stat(2)`, but returns a swifty `Stat`.
165 | public func stat(_ path: String) throws -> Stat {
    |             `- note: 'stat' declared here
166 |     var st = stat()
167 |     _ = try path.withCString { try check(stat($0, &st)) }
    :
171 | /// identical to C's `lstat(2)`, but returns a swifty `Stat`.
172 | public func lstat(_ path: String) throws -> Stat {
173 |     var st = stat()
    |                   `- error: missing argument for parameter #1 in call
174 |     _ = try path.withCString { try check(lstat($0, &st)) }
175 |     return Stat(st)
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:174:52: error: extra argument in call
172 | public func lstat(_ path: String) throws -> Stat {
173 |     var st = stat()
174 |     _ = try path.withCString { try check(lstat($0, &st)) }
    |                                                    `- error: extra argument in call
175 |     return Stat(st)
176 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:174:48: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
172 | public func lstat(_ path: String) throws -> Stat {
173 |     var st = stat()
174 |     _ = try path.withCString { try check(lstat($0, &st)) }
    |                                                `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
175 |     return Stat(st)
176 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:180:19: error: missing argument for parameter #1 in call
163 |
164 | /// identical to C's `stat(2)`, but returns a swifty `Stat`.
165 | public func stat(_ path: String) throws -> Stat {
    |             `- note: 'stat' declared here
166 |     var st = stat()
167 |     _ = try path.withCString { try check(stat($0, &st)) }
    :
178 | /// identical to C's `fstat(2)`, but returns a swifty `Stat`.
179 | public func fstat(_ fd: CInt) throws -> Stat {
180 |     var st = stat()
    |                   `- error: missing argument for parameter #1 in call
181 |     try check(fstat(fd, &st))
182 |     return Stat(st)
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:181:25: error: extra argument in call
179 | public func fstat(_ fd: CInt) throws -> Stat {
180 |     var st = stat()
181 |     try check(fstat(fd, &st))
    |                         `- error: extra argument in call
182 |     return Stat(st)
183 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:211:25: error: cannot find 'utimbuf' in scope
209 |         } else {
210 |             let now = time(nil)
211 |             var times = utimbuf(actime: atime ?? now, modtime: mtime ?? now)
    |                         `- error: cannot find 'utimbuf' in scope
212 |             try check(utime(p, &times))
213 |         }
/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)`.
[23/23] Compiling POSIXGlobals SysStat.swift
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:83:41: error: cannot find type 'wchar_t' in scope
 81 | /// to a wide character; returns the wide character and the number of
 82 | /// bytes consumed, or nil on an invalid sequence.
 83 | public func mbtowc(_ s: String) -> (wc: wchar_t, length: Int)? {
    |                                         `- error: cannot find type 'wchar_t' in scope
 84 |     s.withCString { p -> (wc: wchar_t, length: Int)? in
 85 |         var wc: wchar_t = 0
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:94:26: error: cannot find type 'wchar_t' in scope
 92 | /// identical to C's `wctomb(3)`: converts a wide character to its
 93 | /// multibyte representation, or nil if it has none.
 94 | public func wctomb(_ wc: wchar_t) -> String? {
    |                          `- error: cannot find type 'wchar_t' in scope
 95 |     var buf = [CChar](repeating: 0, count: 16) // >= MB_CUR_MAX
 96 |     let n = wctomb(&buf, wc)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:103:39: error: cannot find type 'wchar_t' in scope
101 | /// identical to C's `mbstowcs(3)`: converts a multibyte string to an
102 | /// array of wide characters, or nil on an invalid sequence.
103 | public func mbstowcs(_ s: String) -> [wchar_t]? {
    |                                       `- error: cannot find type 'wchar_t' in scope
104 |     s.withCString { p -> [wchar_t]? in
105 |         let n = mbstowcs(nil, p, 0)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:115:30: error: cannot find type 'wchar_t' in scope
113 | /// identical to C's `wcstombs(3)`: converts an array of wide characters
114 | /// to a (multibyte) string, or nil if it cannot be represented.
115 | public func wcstombs(_ wcs: [wchar_t]) -> String? {
    |                              `- error: cannot find type 'wchar_t' in scope
116 |     var w = wcs + [0]
117 |     let n = wcstombs(nil, &w, 0)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:10:49: error: cannot find 'C' in scope
  8 |
  9 | /// identical to C's `exit(3)`.
 10 | public func exit(_ status: CInt = 0) -> Never { C.exit(status) }
    |                                                 `- error: cannot find 'C' in scope
 11 |
 12 | /// identical to C's `abort(3)`.
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:13:32: error: cannot find 'C' in scope
 11 |
 12 | /// identical to C's `abort(3)`.
 13 | public func abort() -> Never { C.abort() }
    |                                `- error: cannot find 'C' in scope
 14 |
 15 | public let EXIT_SUCCESS: CInt = 0
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:21:30: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 19 | public func getenv(_ name: String) -> String? {
 20 |     name.withCString { p -> String? in
 21 |         guard let v = getenv(p) else { return nil }
    |                              `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 22 |         return String(cString: v)
 23 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:30:30: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 28 |     _ = try name.withCString { n in
 29 |         try value.withCString { v in
 30 |             try check(setenv(n, v, overwrite ? 1 : 0))
    |                              `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 31 |         }
 32 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:30:33: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 28 |     _ = try name.withCString { n in
 29 |         try value.withCString { v in
 30 |             try check(setenv(n, v, overwrite ? 1 : 0))
    |                                 `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 31 |         }
 32 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:37:51: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 35 | /// identical to C's `unsetenv(3)`.
 36 | public func unsetenv(_ name: String) throws {
 37 |     _ = try name.withCString { try check(unsetenv($0)) }
    |                                                   `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 38 | }
 39 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:45:27: error: extra argument in call
 43 |     s.withCString { p in
 44 |         var end: UnsafeMutablePointer<CChar>? = nil
 45 |         let v = strtod(p, &end)
    |                           `- error: extra argument in call
 46 |         let consumed = end.map { p.distance(to: $0) } ?? 0
 47 |         return (v, s.utf8.count - consumed)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:45:24: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 43 |     s.withCString { p in
 44 |         var end: UnsafeMutablePointer<CChar>? = nil
 45 |         let v = strtod(p, &end)
    |                        `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 46 |         let consumed = end.map { p.distance(to: $0) } ?? 0
 47 |         return (v, s.utf8.count - consumed)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:56:33: error: extra argument in call
 54 |     s.withCString { p in
 55 |         var end: UnsafeMutablePointer<CChar>? = nil
 56 |         let v = strtol(p, &end, base)
    |                                 `- error: extra argument in call
 57 |         let consumed = end.map { p.distance(to: $0) } ?? 0
 58 |         return (v, s.utf8.count - consumed)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:56:24: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 54 |     s.withCString { p in
 55 |         var end: UnsafeMutablePointer<CChar>? = nil
 56 |         let v = strtol(p, &end, base)
    |                        `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 57 |         let consumed = end.map { p.distance(to: $0) } ?? 0
 58 |         return (v, s.utf8.count - consumed)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:56:27: error: cannot convert value of type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') to expected argument type 'CInt' (aka 'Int32')
 54 |     s.withCString { p in
 55 |         var end: UnsafeMutablePointer<CChar>? = nil
 56 |         let v = strtol(p, &end, base)
    |                           `- error: cannot convert value of type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') to expected argument type 'CInt' (aka 'Int32')
 57 |         let consumed = end.map { p.distance(to: $0) } ?? 0
 58 |         return (v, s.utf8.count - consumed)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:67:34: error: extra argument in call
 65 |     s.withCString { p in
 66 |         var end: UnsafeMutablePointer<CChar>? = nil
 67 |         let v = strtoul(p, &end, base)
    |                                  `- error: extra argument in call
 68 |         let consumed = end.map { p.distance(to: $0) } ?? 0
 69 |         return (v, s.utf8.count - consumed)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:67:25: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 65 |     s.withCString { p in
 66 |         var end: UnsafeMutablePointer<CChar>? = nil
 67 |         let v = strtoul(p, &end, base)
    |                         `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 68 |         let consumed = end.map { p.distance(to: $0) } ?? 0
 69 |         return (v, s.utf8.count - consumed)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:67:28: error: cannot convert value of type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') to expected argument type 'CInt' (aka 'Int32')
 65 |     s.withCString { p in
 66 |         var end: UnsafeMutablePointer<CChar>? = nil
 67 |         let v = strtoul(p, &end, base)
    |                            `- error: cannot convert value of type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') to expected argument type 'CInt' (aka 'Int32')
 68 |         let consumed = end.map { p.distance(to: $0) } ?? 0
 69 |         return (v, s.utf8.count - consumed)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:77:48: error: extra argument in call
 75 | public func mblen(_ s: String) -> Int {
 76 |     // + 1 so the terminating NUL is visible: mblen("") is then 0, not -1
 77 |     s.withCString { Int(mblen($0, s.utf8.count + 1)) }
    |                                                `- error: extra argument in call
 78 | }
 79 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:77:31: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 75 | public func mblen(_ s: String) -> Int {
 76 |     // + 1 so the terminating NUL is visible: mblen("") is then 0, not -1
 77 |     s.withCString { Int(mblen($0, s.utf8.count + 1)) }
    |                               `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
 78 | }
 79 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:117:22: error: 'nil' requires a contextual type
115 | public func wcstombs(_ wcs: [wchar_t]) -> String? {
116 |     var w = wcs + [0]
117 |     let n = wcstombs(nil, &w, 0)
    |                      `- error: 'nil' requires a contextual type
118 |     guard n != -1 else { return nil }
119 |     var buf = [CChar](repeating: 0, count: n + 1)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:129:61: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
127 | /// Returns a negative, zero, or positive value.
128 | public func strcoll(_ a: String, _ b: String) -> Int {
129 |     a.withCString { pa in b.withCString { pb in Int(strcoll(pa, pb)) } }
    |                                                             `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
130 | }
131 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:129:65: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
127 | /// Returns a negative, zero, or positive value.
128 | public func strcoll(_ a: String, _ b: String) -> Int {
129 |     a.withCString { pa in b.withCString { pb in Int(strcoll(pa, pb)) } }
    |                                                                 `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
130 | }
131 |
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:135:24: error: extra arguments at positions #2, #3 in call
131 |
132 | /// identical to C's `strxfrm(3)`: the locale-collation transform of the string.
133 | public func strxfrm(_ s: String) -> String {
    |             `- note: 'strxfrm' declared here
134 |     s.withCString { p -> String in
135 |         let n = strxfrm(nil, p, 0)
    |                        `- error: extra arguments at positions #2, #3 in call
136 |         var buf = [CChar](repeating: 0, count: n + 1)
137 |         _ = strxfrm(&buf, p, n + 1)
/host/spi-builder-workspace/Sources/POSIXGlobals/Stdlib.swift:135:25: error: 'nil' is not compatible with expected argument type 'String'
133 | public func strxfrm(_ s: String) -> String {
134 |     s.withCString { p -> String in
135 |         let n = strxfrm(nil, p, 0)
    |                         `- error: 'nil' is not compatible with expected argument type 'String'
136 |         var buf = [CChar](repeating: 0, count: n + 1)
137 |         _ = strxfrm(&buf, p, n + 1)
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:17:25: error: cannot find type 'timespec' in scope
 15 |         self.nanoseconds = nanoseconds
 16 |     }
 17 |     internal init(_ ts: timespec) {
    |                         `- error: cannot find type 'timespec' in scope
 18 |         self.init(seconds: Int(ts.tv_sec), nanoseconds: Int(ts.tv_nsec))
 19 |     }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:29:26: error: cannot find type 'mode_t' in scope
 27 | /// File permission bits, as an OptionSet: `[.S_IRUSR, .S_IWUSR]`.
 28 | public struct FilePermissions: OptionSet, Sendable {
 29 |     public var rawValue: mode_t
    |                          `- error: cannot find type 'mode_t' in scope
 30 |     public init(rawValue: mode_t) { self.rawValue = rawValue }
 31 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:30:27: error: cannot find type 'mode_t' in scope
 28 | public struct FilePermissions: OptionSet, Sendable {
 29 |     public var rawValue: mode_t
 30 |     public init(rawValue: mode_t) { self.rawValue = rawValue }
    |                           `- error: cannot find type 'mode_t' in scope
 31 | }
 32 | private let _S_ISUID = S_ISUID
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:28:15: error: type 'FilePermissions' does not conform to protocol 'SetAlgebra'
 26 |
 27 | /// File permission bits, as an OptionSet: `[.S_IRUSR, .S_IWUSR]`.
 28 | public struct FilePermissions: OptionSet, Sendable {
    |               `- error: type 'FilePermissions' does not conform to protocol 'SetAlgebra'
 29 |     public var rawValue: mode_t
 30 |     public init(rawValue: mode_t) { self.rawValue = rawValue }
Swift.OptionSet.init:2:19: note: candidate would match if 'FilePermissions.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public init()}
  |                   `- note: candidate would match if 'FilePermissions.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formUnion:2:33: note: candidate would match if 'FilePermissions.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formUnion(_ other: Self)}
  |                                 `- note: candidate would match if 'FilePermissions.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formIntersection:2:33: note: candidate would match if 'FilePermissions.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formIntersection(_ other: Self)}
  |                                 `- note: candidate would match if 'FilePermissions.RawValue' conformed to 'FixedWidthInteger'
3 |
Swift.OptionSet.formSymmetricDifference:2:33: note: candidate would match if 'FilePermissions.RawValue' conformed to 'FixedWidthInteger'
1 | protocol OptionSet {
2 | @inlinable public mutating func formSymmetricDifference(_ other: Self)}
  |                                 `- note: candidate would match if 'FilePermissions.RawValue' conformed to 'FixedWidthInteger'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:28:15: error: type 'FilePermissions' does not conform to protocol 'RawRepresentable'
 26 |
 27 | /// File permission bits, as an OptionSet: `[.S_IRUSR, .S_IWUSR]`.
 28 | public struct FilePermissions: OptionSet, Sendable {
    |               `- error: type 'FilePermissions' does not conform to protocol 'RawRepresentable'
 29 |     public var rawValue: mode_t
 30 |     public init(rawValue: mode_t) { self.rawValue = rawValue }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:28:15: error: type 'FilePermissions' does not conform to protocol 'Equatable'
 26 |
 27 | /// File permission bits, as an OptionSet: `[.S_IRUSR, .S_IWUSR]`.
 28 | public struct FilePermissions: OptionSet, Sendable {
    |               |- error: type 'FilePermissions' does not conform to protocol 'Equatable'
    |               `- note: add stubs for conformance
 29 |     public var rawValue: mode_t
    |                `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'FilePermissions' to 'Equatable'
 30 |     public init(rawValue: mode_t) { self.rawValue = rawValue }
 31 | }
Swift.==:1:24: note: candidate would match if 'FilePermissions.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 'FilePermissions.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'FilePermissions' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'FilePermissions' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'FilePermissions' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'FilePermissions' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'FilePermissions' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'FilePermissions' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'FilePermissions' 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 'FilePermissions' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'FilePermissions' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'FilePermissions' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'FilePermissions' 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 'FilePermissions' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'FilePermissions' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'FilePermissions' 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 FilePermissions) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formUnion(_ other: __owned Self)}
  |               `- note: protocol requires function 'formUnion' with type '(__owned FilePermissions) -> ()'
3 |
Swift.SetAlgebra.formIntersection:2:15: note: protocol requires function 'formIntersection' with type '(FilePermissions) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formIntersection(_ other: Self)}
  |               `- note: protocol requires function 'formIntersection' with type '(FilePermissions) -> ()'
3 |
Swift.SetAlgebra.formSymmetricDifference:2:15: note: protocol requires function 'formSymmetricDifference' with type '(__owned FilePermissions) -> ()'
1 | protocol SetAlgebra {
2 | mutating func formSymmetricDifference(_ other: __owned Self)}
  |               `- note: protocol requires function 'formSymmetricDifference' with type '(__owned FilePermissions) -> ()'
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 '(FilePermissions, FilePermissions) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(FilePermissions, FilePermissions) -> Bool'
3 |
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:32:24: error: cannot find 'S_ISUID' in scope
 30 |     public init(rawValue: mode_t) { self.rawValue = rawValue }
 31 | }
 32 | private let _S_ISUID = S_ISUID
    |                        `- error: cannot find 'S_ISUID' in scope
 33 | private let _S_ISGID = S_ISGID
 34 | private let _S_ISVTX = S_ISVTX
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:33:24: error: cannot find 'S_ISGID' in scope
 31 | }
 32 | private let _S_ISUID = S_ISUID
 33 | private let _S_ISGID = S_ISGID
    |                        `- error: cannot find 'S_ISGID' in scope
 34 | private let _S_ISVTX = S_ISVTX
 35 | private let _S_IRWXU = S_IRWXU
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:34:24: error: cannot find 'S_ISVTX' in scope
 32 | private let _S_ISUID = S_ISUID
 33 | private let _S_ISGID = S_ISGID
 34 | private let _S_ISVTX = S_ISVTX
    |                        `- error: cannot find 'S_ISVTX' in scope
 35 | private let _S_IRWXU = S_IRWXU
 36 | private let _S_IRUSR = S_IRUSR
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:35:24: error: cannot find 'S_IRWXU' in scope
 33 | private let _S_ISGID = S_ISGID
 34 | private let _S_ISVTX = S_ISVTX
 35 | private let _S_IRWXU = S_IRWXU
    |                        `- error: cannot find 'S_IRWXU' in scope
 36 | private let _S_IRUSR = S_IRUSR
 37 | private let _S_IWUSR = S_IWUSR
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:36:24: error: cannot find 'S_IRUSR' in scope
 34 | private let _S_ISVTX = S_ISVTX
 35 | private let _S_IRWXU = S_IRWXU
 36 | private let _S_IRUSR = S_IRUSR
    |                        `- error: cannot find 'S_IRUSR' in scope
 37 | private let _S_IWUSR = S_IWUSR
 38 | private let _S_IXUSR = S_IXUSR
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:37:24: error: cannot find 'S_IWUSR' in scope
 35 | private let _S_IRWXU = S_IRWXU
 36 | private let _S_IRUSR = S_IRUSR
 37 | private let _S_IWUSR = S_IWUSR
    |                        `- error: cannot find 'S_IWUSR' in scope
 38 | private let _S_IXUSR = S_IXUSR
 39 | private let _S_IRWXG = S_IRWXG
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:38:24: error: cannot find 'S_IXUSR' in scope
 36 | private let _S_IRUSR = S_IRUSR
 37 | private let _S_IWUSR = S_IWUSR
 38 | private let _S_IXUSR = S_IXUSR
    |                        `- error: cannot find 'S_IXUSR' in scope
 39 | private let _S_IRWXG = S_IRWXG
 40 | private let _S_IRGRP = S_IRGRP
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:39:24: error: cannot find 'S_IRWXG' in scope
 37 | private let _S_IWUSR = S_IWUSR
 38 | private let _S_IXUSR = S_IXUSR
 39 | private let _S_IRWXG = S_IRWXG
    |                        `- error: cannot find 'S_IRWXG' in scope
 40 | private let _S_IRGRP = S_IRGRP
 41 | private let _S_IWGRP = S_IWGRP
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:40:24: error: cannot find 'S_IRGRP' in scope
 38 | private let _S_IXUSR = S_IXUSR
 39 | private let _S_IRWXG = S_IRWXG
 40 | private let _S_IRGRP = S_IRGRP
    |                        `- error: cannot find 'S_IRGRP' in scope
 41 | private let _S_IWGRP = S_IWGRP
 42 | private let _S_IXGRP = S_IXGRP
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:41:24: error: cannot find 'S_IWGRP' in scope
 39 | private let _S_IRWXG = S_IRWXG
 40 | private let _S_IRGRP = S_IRGRP
 41 | private let _S_IWGRP = S_IWGRP
    |                        `- error: cannot find 'S_IWGRP' in scope
 42 | private let _S_IXGRP = S_IXGRP
 43 | private let _S_IRWXO = S_IRWXO
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:42:24: error: cannot find 'S_IXGRP' in scope
 40 | private let _S_IRGRP = S_IRGRP
 41 | private let _S_IWGRP = S_IWGRP
 42 | private let _S_IXGRP = S_IXGRP
    |                        `- error: cannot find 'S_IXGRP' in scope
 43 | private let _S_IRWXO = S_IRWXO
 44 | private let _S_IROTH = S_IROTH
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:43:24: error: cannot find 'S_IRWXO' in scope
 41 | private let _S_IWGRP = S_IWGRP
 42 | private let _S_IXGRP = S_IXGRP
 43 | private let _S_IRWXO = S_IRWXO
    |                        `- error: cannot find 'S_IRWXO' in scope
 44 | private let _S_IROTH = S_IROTH
 45 | private let _S_IWOTH = S_IWOTH
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:44:24: error: cannot find 'S_IROTH' in scope
 42 | private let _S_IXGRP = S_IXGRP
 43 | private let _S_IRWXO = S_IRWXO
 44 | private let _S_IROTH = S_IROTH
    |                        `- error: cannot find 'S_IROTH' in scope
 45 | private let _S_IWOTH = S_IWOTH
 46 | private let _S_IXOTH = S_IXOTH
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:45:24: error: cannot find 'S_IWOTH' in scope
 43 | private let _S_IRWXO = S_IRWXO
 44 | private let _S_IROTH = S_IROTH
 45 | private let _S_IWOTH = S_IWOTH
    |                        `- error: cannot find 'S_IWOTH' in scope
 46 | private let _S_IXOTH = S_IXOTH
 47 | extension FilePermissions {
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:46:24: error: cannot find 'S_IXOTH' in scope
 44 | private let _S_IROTH = S_IROTH
 45 | private let _S_IWOTH = S_IWOTH
 46 | private let _S_IXOTH = S_IXOTH
    |                        `- error: cannot find 'S_IXOTH' in scope
 47 | extension FilePermissions {
 48 |     public static let S_ISUID = FilePermissions(rawValue: mode_t(_S_ISUID))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:48:59: error: cannot find 'mode_t' in scope
 46 | private let _S_IXOTH = S_IXOTH
 47 | extension FilePermissions {
 48 |     public static let S_ISUID = FilePermissions(rawValue: mode_t(_S_ISUID))
    |                                                           `- error: cannot find 'mode_t' in scope
 49 |     public static let S_ISGID = FilePermissions(rawValue: mode_t(_S_ISGID))
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:48:48: error: extraneous argument label 'rawValue:' in call
 46 | private let _S_IXOTH = S_IXOTH
 47 | extension FilePermissions {
 48 |     public static let S_ISUID = FilePermissions(rawValue: mode_t(_S_ISUID))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 49 |     public static let S_ISGID = FilePermissions(rawValue: mode_t(_S_ISGID))
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:49:59: error: cannot find 'mode_t' in scope
 47 | extension FilePermissions {
 48 |     public static let S_ISUID = FilePermissions(rawValue: mode_t(_S_ISUID))
 49 |     public static let S_ISGID = FilePermissions(rawValue: mode_t(_S_ISGID))
    |                                                           `- error: cannot find 'mode_t' in scope
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:49:48: error: extraneous argument label 'rawValue:' in call
 47 | extension FilePermissions {
 48 |     public static let S_ISUID = FilePermissions(rawValue: mode_t(_S_ISUID))
 49 |     public static let S_ISGID = FilePermissions(rawValue: mode_t(_S_ISGID))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:50:59: error: cannot find 'mode_t' in scope
 48 |     public static let S_ISUID = FilePermissions(rawValue: mode_t(_S_ISUID))
 49 |     public static let S_ISGID = FilePermissions(rawValue: mode_t(_S_ISGID))
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
    |                                                           `- error: cannot find 'mode_t' in scope
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:50:48: error: extraneous argument label 'rawValue:' in call
 48 |     public static let S_ISUID = FilePermissions(rawValue: mode_t(_S_ISUID))
 49 |     public static let S_ISGID = FilePermissions(rawValue: mode_t(_S_ISGID))
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:51:59: error: cannot find 'mode_t' in scope
 49 |     public static let S_ISGID = FilePermissions(rawValue: mode_t(_S_ISGID))
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
    |                                                           `- error: cannot find 'mode_t' in scope
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:51:48: error: extraneous argument label 'rawValue:' in call
 49 |     public static let S_ISGID = FilePermissions(rawValue: mode_t(_S_ISGID))
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:52:59: error: cannot find 'mode_t' in scope
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
    |                                                           `- error: cannot find 'mode_t' in scope
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:52:48: error: extraneous argument label 'rawValue:' in call
 50 |     public static let S_ISVTX = FilePermissions(rawValue: mode_t(_S_ISVTX))
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:53:59: error: cannot find 'mode_t' in scope
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
    |                                                           `- error: cannot find 'mode_t' in scope
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:53:48: error: extraneous argument label 'rawValue:' in call
 51 |     public static let S_IRWXU = FilePermissions(rawValue: mode_t(_S_IRWXU))
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:54:59: error: cannot find 'mode_t' in scope
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
    |                                                           `- error: cannot find 'mode_t' in scope
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:54:48: error: extraneous argument label 'rawValue:' in call
 52 |     public static let S_IRUSR = FilePermissions(rawValue: mode_t(_S_IRUSR))
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:55:59: error: cannot find 'mode_t' in scope
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
    |                                                           `- error: cannot find 'mode_t' in scope
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:55:48: error: extraneous argument label 'rawValue:' in call
 53 |     public static let S_IWUSR = FilePermissions(rawValue: mode_t(_S_IWUSR))
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:56:59: error: cannot find 'mode_t' in scope
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
    |                                                           `- error: cannot find 'mode_t' in scope
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:56:48: error: extraneous argument label 'rawValue:' in call
 54 |     public static let S_IXUSR = FilePermissions(rawValue: mode_t(_S_IXUSR))
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:57:59: error: cannot find 'mode_t' in scope
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
    |                                                           `- error: cannot find 'mode_t' in scope
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:57:48: error: extraneous argument label 'rawValue:' in call
 55 |     public static let S_IRWXG = FilePermissions(rawValue: mode_t(_S_IRWXG))
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:58:59: error: cannot find 'mode_t' in scope
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
    |                                                           `- error: cannot find 'mode_t' in scope
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:58:48: error: extraneous argument label 'rawValue:' in call
 56 |     public static let S_IRGRP = FilePermissions(rawValue: mode_t(_S_IRGRP))
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:59:59: error: cannot find 'mode_t' in scope
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
    |                                                           `- error: cannot find 'mode_t' in scope
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
 61 |     public static let S_IWOTH = FilePermissions(rawValue: mode_t(_S_IWOTH))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:59:48: error: extraneous argument label 'rawValue:' in call
 57 |     public static let S_IWGRP = FilePermissions(rawValue: mode_t(_S_IWGRP))
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
 61 |     public static let S_IWOTH = FilePermissions(rawValue: mode_t(_S_IWOTH))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:60:59: error: cannot find 'mode_t' in scope
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
    |                                                           `- error: cannot find 'mode_t' in scope
 61 |     public static let S_IWOTH = FilePermissions(rawValue: mode_t(_S_IWOTH))
 62 |     public static let S_IXOTH = FilePermissions(rawValue: mode_t(_S_IXOTH))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:60:48: error: extraneous argument label 'rawValue:' in call
 58 |     public static let S_IXGRP = FilePermissions(rawValue: mode_t(_S_IXGRP))
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 61 |     public static let S_IWOTH = FilePermissions(rawValue: mode_t(_S_IWOTH))
 62 |     public static let S_IXOTH = FilePermissions(rawValue: mode_t(_S_IXOTH))
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:61:59: error: cannot find 'mode_t' in scope
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
 61 |     public static let S_IWOTH = FilePermissions(rawValue: mode_t(_S_IWOTH))
    |                                                           `- error: cannot find 'mode_t' in scope
 62 |     public static let S_IXOTH = FilePermissions(rawValue: mode_t(_S_IXOTH))
 63 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:61:48: error: extraneous argument label 'rawValue:' in call
 59 |     public static let S_IRWXO = FilePermissions(rawValue: mode_t(_S_IRWXO))
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
 61 |     public static let S_IWOTH = FilePermissions(rawValue: mode_t(_S_IWOTH))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 62 |     public static let S_IXOTH = FilePermissions(rawValue: mode_t(_S_IXOTH))
 63 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:62:59: error: cannot find 'mode_t' in scope
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
 61 |     public static let S_IWOTH = FilePermissions(rawValue: mode_t(_S_IWOTH))
 62 |     public static let S_IXOTH = FilePermissions(rawValue: mode_t(_S_IXOTH))
    |                                                           `- error: cannot find 'mode_t' in scope
 63 | }
 64 |
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:62:48: error: extraneous argument label 'rawValue:' in call
 60 |     public static let S_IROTH = FilePermissions(rawValue: mode_t(_S_IROTH))
 61 |     public static let S_IWOTH = FilePermissions(rawValue: mode_t(_S_IWOTH))
 62 |     public static let S_IXOTH = FilePermissions(rawValue: mode_t(_S_IXOTH))
    |                                                `- error: extraneous argument label 'rawValue:' in call
 63 | }
 64 |
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:65:23: error: cannot find 'S_IFMT' in scope
 63 | }
 64 |
 65 | private let _S_IFMT = S_IFMT
    |                       `- error: cannot find 'S_IFMT' in scope
 66 | private let _S_IFIFO = S_IFIFO
 67 | private let _S_IFCHR = S_IFCHR
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:66:24: error: cannot find 'S_IFIFO' in scope
 64 |
 65 | private let _S_IFMT = S_IFMT
 66 | private let _S_IFIFO = S_IFIFO
    |                        `- error: cannot find 'S_IFIFO' in scope
 67 | private let _S_IFCHR = S_IFCHR
 68 | private let _S_IFDIR = S_IFDIR
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:67:24: error: cannot find 'S_IFCHR' in scope
 65 | private let _S_IFMT = S_IFMT
 66 | private let _S_IFIFO = S_IFIFO
 67 | private let _S_IFCHR = S_IFCHR
    |                        `- error: cannot find 'S_IFCHR' in scope
 68 | private let _S_IFDIR = S_IFDIR
 69 | private let _S_IFBLK = S_IFBLK
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:68:24: error: cannot find 'S_IFDIR' in scope
 66 | private let _S_IFIFO = S_IFIFO
 67 | private let _S_IFCHR = S_IFCHR
 68 | private let _S_IFDIR = S_IFDIR
    |                        `- error: cannot find 'S_IFDIR' in scope
 69 | private let _S_IFBLK = S_IFBLK
 70 | private let _S_IFREG = S_IFREG
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:69:24: error: cannot find 'S_IFBLK' in scope
 67 | private let _S_IFCHR = S_IFCHR
 68 | private let _S_IFDIR = S_IFDIR
 69 | private let _S_IFBLK = S_IFBLK
    |                        `- error: cannot find 'S_IFBLK' in scope
 70 | private let _S_IFREG = S_IFREG
 71 | private let _S_IFLNK = S_IFLNK
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:70:24: error: cannot find 'S_IFREG' in scope
 68 | private let _S_IFDIR = S_IFDIR
 69 | private let _S_IFBLK = S_IFBLK
 70 | private let _S_IFREG = S_IFREG
    |                        `- error: cannot find 'S_IFREG' in scope
 71 | private let _S_IFLNK = S_IFLNK
 72 | private let _S_IFSOCK = S_IFSOCK
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:71:24: error: cannot find 'S_IFLNK' in scope
 69 | private let _S_IFBLK = S_IFBLK
 70 | private let _S_IFREG = S_IFREG
 71 | private let _S_IFLNK = S_IFLNK
    |                        `- error: cannot find 'S_IFLNK' in scope
 72 | private let _S_IFSOCK = S_IFSOCK
 73 |
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:72:25: error: cannot find 'S_IFSOCK' in scope
 70 | private let _S_IFREG = S_IFREG
 71 | private let _S_IFLNK = S_IFLNK
 72 | private let _S_IFSOCK = S_IFSOCK
    |                         `- error: cannot find 'S_IFSOCK' in scope
 73 |
 74 | /// The type of a file, derived from `st_mode`.
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:79:25: error: cannot find type 'mode_t' in scope
 77 |     case blockDevice, characterDevice, unknown
 78 |
 79 |     internal init(mode: mode_t) {
    |                         `- error: cannot find type 'mode_t' in scope
 80 |         switch mode & mode_t(_S_IFMT) {
 81 |         case mode_t(_S_IFREG): self = .regular
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:96:21: error: cannot find type 'dev_t' in scope
 94 | public struct Stat: Sendable {
 95 |     /// device id (`st_dev`)
 96 |     public let dev: dev_t
    |                     `- error: cannot find type 'dev_t' in scope
 97 |     /// inode number (`st_ino`)
 98 |     public let ino: ino_t
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:98:21: error: cannot find type 'ino_t' in scope
 96 |     public let dev: dev_t
 97 |     /// inode number (`st_ino`)
 98 |     public let ino: ino_t
    |                     `- error: cannot find type 'ino_t' in scope
 99 |     /// file mode, type and permissions (`st_mode`)
100 |     public let mode: mode_t
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:100:22: error: cannot find type 'mode_t' in scope
 98 |     public let ino: ino_t
 99 |     /// file mode, type and permissions (`st_mode`)
100 |     public let mode: mode_t
    |                      `- error: cannot find type 'mode_t' in scope
101 |     /// number of hard links (`st_nlink`)
102 |     public let nlink: nlink_t
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:102:23: error: cannot find type 'nlink_t' in scope
100 |     public let mode: mode_t
101 |     /// number of hard links (`st_nlink`)
102 |     public let nlink: nlink_t
    |                       `- error: cannot find type 'nlink_t' in scope
103 |     /// owner's user id (`st_uid`)
104 |     public let uid: uid_t
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:104:21: error: cannot find type 'uid_t' in scope
102 |     public let nlink: nlink_t
103 |     /// owner's user id (`st_uid`)
104 |     public let uid: uid_t
    |                     `- error: cannot find type 'uid_t' in scope
105 |     /// owner's group id (`st_gid`)
106 |     public let gid: gid_t
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:106:21: error: cannot find type 'gid_t' in scope
104 |     public let uid: uid_t
105 |     /// owner's group id (`st_gid`)
106 |     public let gid: gid_t
    |                     `- error: cannot find type 'gid_t' in scope
107 |     /// device id, for special files (`st_rdev`)
108 |     public let rdev: dev_t
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:108:22: error: cannot find type 'dev_t' in scope
106 |     public let gid: gid_t
107 |     /// device id, for special files (`st_rdev`)
108 |     public let rdev: dev_t
    |                      `- error: cannot find type 'dev_t' in scope
109 |     /// size in bytes (`st_size`)
110 |     public let size: off_t
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:110:22: error: cannot find type 'off_t' in scope
108 |     public let rdev: dev_t
109 |     /// size in bytes (`st_size`)
110 |     public let size: off_t
    |                      `- error: cannot find type 'off_t' in scope
111 |     /// last access time (`st_atime`)
112 |     public let atime: TimeSpec
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:118:25: error: cannot find type 'blksize_t' in scope
116 |     public let ctime: TimeSpec
117 |     /// preferred I/O block size (`st_blksize`)
118 |     public let blksize: blksize_t
    |                         `- error: cannot find type 'blksize_t' in scope
119 |     /// number of 512-byte blocks allocated (`st_blocks`)
120 |     public let blocks: blkcnt_t
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:120:24: error: cannot find type 'blkcnt_t' in scope
118 |     public let blksize: blksize_t
119 |     /// number of 512-byte blocks allocated (`st_blocks`)
120 |     public let blocks: blkcnt_t
    |                        `- error: cannot find type 'blkcnt_t' in scope
121 |
122 |     /// the file's type, from the mode bits.
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:141:25: error: cannot find type 'stat' in scope
139 |     public var isCharacterDevice: Bool { type == .characterDevice }
140 |
141 |     internal init(_ st: stat) {
    |                         `- error: cannot find type 'stat' in scope
142 |         dev = st.st_dev
143 |         ino = st.st_ino
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:186:43: error: cannot find type 'mode_t' in scope
184 |
185 | /// identical to C's `chmod(2)`.
186 | public func chmod(_ path: String, _ mode: mode_t) throws {
    |                                           `- error: cannot find type 'mode_t' in scope
187 |     _ = try path.withCString { try check(chmod($0, mode)) }
188 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:191:43: error: cannot find type 'mode_t' in scope
189 |
190 | /// identical to C's `mkdir(2)`.
191 | public func mkdir(_ path: String, _ mode: mode_t = 0o777) throws {
    |                                           `- error: cannot find type 'mode_t' in scope
192 |     _ = try path.withCString { try check(mkdir($0, mode)) }
193 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:196:44: error: cannot find type 'mode_t' in scope
194 |
195 | /// identical to C's `mkfifo(2)`.
196 | public func mkfifo(_ path: String, _ mode: mode_t = 0o666) throws {
    |                                            `- error: cannot find type 'mode_t' in scope
197 |     _ = try path.withCString { try check(mkfifo($0, mode)) }
198 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:202:39: error: cannot find type 'mode_t' in scope
200 | /// identical to C's `umask(2)`; returns the previous mask.
201 | @discardableResult
202 | public func umask(_ cmask: mode_t) -> mode_t { C.umask(cmask) }
    |                                       `- error: cannot find type 'mode_t' in scope
203 |
204 | /// identical to C's `utime(3)`; nil times mean "now".
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:202:28: error: cannot find type 'mode_t' in scope
200 | /// identical to C's `umask(2)`; returns the previous mask.
201 | @discardableResult
202 | public func umask(_ cmask: mode_t) -> mode_t { C.umask(cmask) }
    |                            `- error: cannot find type 'mode_t' in scope
203 |
204 | /// identical to C's `utime(3)`; nil times mean "now".
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:205:42: error: cannot find type 'time_t' in scope
203 |
204 | /// identical to C's `utime(3)`; nil times mean "now".
205 | public func utime(_ path: String, atime: time_t? = nil, mtime: time_t? = nil) throws {
    |                                          `- error: cannot find type 'time_t' in scope
206 |     try path.withCString { p in
207 |         if atime == nil && mtime == nil {
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:205:64: error: cannot find type 'time_t' in scope
203 |
204 | /// identical to C's `utime(3)`; nil times mean "now".
205 | public func utime(_ path: String, atime: time_t? = nil, mtime: time_t? = nil) throws {
    |                                                                `- error: cannot find type 'time_t' in scope
206 |     try path.withCString { p in
207 |         if atime == nil && mtime == nil {
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:80:23: error: cannot find 'mode_t' in scope
 78 |
 79 |     internal init(mode: mode_t) {
 80 |         switch mode & mode_t(_S_IFMT) {
    |                       `- error: cannot find 'mode_t' in scope
 81 |         case mode_t(_S_IFREG): self = .regular
 82 |         case mode_t(_S_IFDIR): self = .directory
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:81:14: error: cannot find 'mode_t' in scope
 79 |     internal init(mode: mode_t) {
 80 |         switch mode & mode_t(_S_IFMT) {
 81 |         case mode_t(_S_IFREG): self = .regular
    |              `- error: cannot find 'mode_t' in scope
 82 |         case mode_t(_S_IFDIR): self = .directory
 83 |         case mode_t(_S_IFLNK): self = .symbolicLink
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:82:14: error: cannot find 'mode_t' in scope
 80 |         switch mode & mode_t(_S_IFMT) {
 81 |         case mode_t(_S_IFREG): self = .regular
 82 |         case mode_t(_S_IFDIR): self = .directory
    |              `- error: cannot find 'mode_t' in scope
 83 |         case mode_t(_S_IFLNK): self = .symbolicLink
 84 |         case mode_t(_S_IFIFO): self = .fifo
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:83:14: error: cannot find 'mode_t' in scope
 81 |         case mode_t(_S_IFREG): self = .regular
 82 |         case mode_t(_S_IFDIR): self = .directory
 83 |         case mode_t(_S_IFLNK): self = .symbolicLink
    |              `- error: cannot find 'mode_t' in scope
 84 |         case mode_t(_S_IFIFO): self = .fifo
 85 |         case mode_t(_S_IFSOCK): self = .socket
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:84:14: error: cannot find 'mode_t' in scope
 82 |         case mode_t(_S_IFDIR): self = .directory
 83 |         case mode_t(_S_IFLNK): self = .symbolicLink
 84 |         case mode_t(_S_IFIFO): self = .fifo
    |              `- error: cannot find 'mode_t' in scope
 85 |         case mode_t(_S_IFSOCK): self = .socket
 86 |         case mode_t(_S_IFBLK): self = .blockDevice
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:85:14: error: cannot find 'mode_t' in scope
 83 |         case mode_t(_S_IFLNK): self = .symbolicLink
 84 |         case mode_t(_S_IFIFO): self = .fifo
 85 |         case mode_t(_S_IFSOCK): self = .socket
    |              `- error: cannot find 'mode_t' in scope
 86 |         case mode_t(_S_IFBLK): self = .blockDevice
 87 |         case mode_t(_S_IFCHR): self = .characterDevice
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:86:14: error: cannot find 'mode_t' in scope
 84 |         case mode_t(_S_IFIFO): self = .fifo
 85 |         case mode_t(_S_IFSOCK): self = .socket
 86 |         case mode_t(_S_IFBLK): self = .blockDevice
    |              `- error: cannot find 'mode_t' in scope
 87 |         case mode_t(_S_IFCHR): self = .characterDevice
 88 |         default: self = .unknown
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:87:14: error: cannot find 'mode_t' in scope
 85 |         case mode_t(_S_IFSOCK): self = .socket
 86 |         case mode_t(_S_IFBLK): self = .blockDevice
 87 |         case mode_t(_S_IFCHR): self = .characterDevice
    |              `- error: cannot find 'mode_t' in scope
 88 |         default: self = .unknown
 89 |         }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:125:62: error: extraneous argument label 'rawValue:' in call
123 |     public var type: FileType { FileType(mode: mode) }
124 |     /// the permission (and setuid/setgid/sticky) bits of the mode.
125 |     public var permissions: FilePermissions { FilePermissions(rawValue: mode & 0o7777) }
    |                                                              `- error: extraneous argument label 'rawValue:' in call
126 |     /// true iff this is a regular file (`S_ISREG`).
127 |     public var isRegularFile: Bool { type == .regular }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:155:26: error: missing argument label 'seconds:' in call
153 |         ctime = TimeSpec(st.st_ctimespec)
154 |         #else
155 |         atime = TimeSpec(st.st_atim)
    |                          `- error: missing argument label 'seconds:' in call
156 |         mtime = TimeSpec(st.st_mtim)
157 |         ctime = TimeSpec(st.st_ctim)
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:156:26: error: missing argument label 'seconds:' in call
154 |         #else
155 |         atime = TimeSpec(st.st_atim)
156 |         mtime = TimeSpec(st.st_mtim)
    |                          `- error: missing argument label 'seconds:' in call
157 |         ctime = TimeSpec(st.st_ctim)
158 |         #endif
/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/SysStat.swift:157:26: error: missing argument label 'seconds:' in call
155 |         atime = TimeSpec(st.st_atim)
156 |         mtime = TimeSpec(st.st_mtim)
157 |         ctime = TimeSpec(st.st_ctim)
    |                          `- error: missing argument label 'seconds:' in call
158 |         #endif
159 |         blksize = st.st_blksize
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:166:19: error: missing argument for parameter #1 in call
163 |
164 | /// identical to C's `stat(2)`, but returns a swifty `Stat`.
165 | public func stat(_ path: String) throws -> Stat {
    |             `- note: 'stat' declared here
166 |     var st = stat()
    |                   `- error: missing argument for parameter #1 in call
167 |     _ = try path.withCString { try check(stat($0, &st)) }
168 |     return Stat(st)
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:167:51: error: extra argument in call
165 | public func stat(_ path: String) throws -> Stat {
166 |     var st = stat()
167 |     _ = try path.withCString { try check(stat($0, &st)) }
    |                                                   `- error: extra argument in call
168 |     return Stat(st)
169 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:167:47: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
165 | public func stat(_ path: String) throws -> Stat {
166 |     var st = stat()
167 |     _ = try path.withCString { try check(stat($0, &st)) }
    |                                               `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
168 |     return Stat(st)
169 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:173:19: error: missing argument for parameter #1 in call
163 |
164 | /// identical to C's `stat(2)`, but returns a swifty `Stat`.
165 | public func stat(_ path: String) throws -> Stat {
    |             `- note: 'stat' declared here
166 |     var st = stat()
167 |     _ = try path.withCString { try check(stat($0, &st)) }
    :
171 | /// identical to C's `lstat(2)`, but returns a swifty `Stat`.
172 | public func lstat(_ path: String) throws -> Stat {
173 |     var st = stat()
    |                   `- error: missing argument for parameter #1 in call
174 |     _ = try path.withCString { try check(lstat($0, &st)) }
175 |     return Stat(st)
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:174:52: error: extra argument in call
172 | public func lstat(_ path: String) throws -> Stat {
173 |     var st = stat()
174 |     _ = try path.withCString { try check(lstat($0, &st)) }
    |                                                    `- error: extra argument in call
175 |     return Stat(st)
176 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:174:48: error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
172 | public func lstat(_ path: String) throws -> Stat {
173 |     var st = stat()
174 |     _ = try path.withCString { try check(lstat($0, &st)) }
    |                                                `- error: cannot convert value of type 'UnsafePointer<Int8>' to expected argument type 'String'
175 |     return Stat(st)
176 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:180:19: error: missing argument for parameter #1 in call
163 |
164 | /// identical to C's `stat(2)`, but returns a swifty `Stat`.
165 | public func stat(_ path: String) throws -> Stat {
    |             `- note: 'stat' declared here
166 |     var st = stat()
167 |     _ = try path.withCString { try check(stat($0, &st)) }
    :
178 | /// identical to C's `fstat(2)`, but returns a swifty `Stat`.
179 | public func fstat(_ fd: CInt) throws -> Stat {
180 |     var st = stat()
    |                   `- error: missing argument for parameter #1 in call
181 |     try check(fstat(fd, &st))
182 |     return Stat(st)
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:181:25: error: extra argument in call
179 | public func fstat(_ fd: CInt) throws -> Stat {
180 |     var st = stat()
181 |     try check(fstat(fd, &st))
    |                         `- error: extra argument in call
182 |     return Stat(st)
183 | }
/host/spi-builder-workspace/Sources/POSIXGlobals/SysStat.swift:211:25: error: cannot find 'utimbuf' in scope
209 |         } else {
210 |             let now = time(nil)
211 |             var times = utimbuf(actime: atime ?? now, modtime: mtime ?? now)
    |                         `- error: cannot find 'utimbuf' in scope
212 |             try check(utime(p, &times))
213 |         }
/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)`.
BUILD FAILURE 6.2 android