The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftTUI, reference main (1ecb30), with Swift 6.2 for Android on 30 Sep 2026 22:19:40 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-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

    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[623/685] Compiling SwiftTUI CrashHandler.swift
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:41:11: error: cannot find 'close' in scope
 39 |     // Close channel.
 40 |     if Registry.fdBox.fds[0] != -1 {
 41 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:45:11: error: cannot find 'close' in scope
 43 |
 44 |     if Registry.fdBox.fds[1] != -1 {
 45 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 46 |     }
 47 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:53:11: error: cannot find 'pipe' in scope
 51 |
 52 |     // TODO(compnerd): use `signalfd` on Linux
 53 |     guard pipe(&Registry.fdBox.fds) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'pipe' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:17: error: cannot find 'fcntl' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                 `- error: cannot find 'fcntl' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_GETFL' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                                              `- error: cannot find 'F_GETFL' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:23: error: cannot find 'fcntl' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                       `- error: cannot find 'fcntl' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:52: error: cannot find 'F_SETFL' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                    `- error: cannot find 'F_SETFL' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:69: error: cannot find 'O_NONBLOCK' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                                     `- error: cannot find 'O_NONBLOCK' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:66:21: error: cannot find 'read' in scope
 64 |         guard let self else { return }
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
    |                     `- error: cannot find 'read' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:67:21: error: use of local variable 'errno' before its declaration
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
 67 |         let errno = errno
    |             |       `- error: use of local variable 'errno' before its declaration
    |             `- note: 'errno' declared here
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:69:23: error: cannot find 'EINTR' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
    |                       `- error: cannot find 'EINTR' in scope
 70 |           if errno == 0 { return }
 71 |           fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:92:11: error: cannot find 'close' in scope
 90 |     // Close channel.
 91 |     if Registry.fdBox.fds[0] != -1 {
 92 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 93 |       Registry.fdBox.fds[0] = -1
 94 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:97:11: error: cannot find 'close' in scope
 95 |
 96 |     if Registry.fdBox.fds[1] != -1 {
 97 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 98 |       Registry.fdBox.fds[1] = -1
 99 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:13: error: cannot find 'sigaction' in scope
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |             `- error: cannot find 'sigaction' in scope
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:45: error: 'nil' requires a contextual type
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |                                             `- error: 'nil' requires a contextual type
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:145:23: error: cannot find 'sigaction' in scope
143 |
144 |     // Save the original signal action
145 |     var disposition = sigaction()
    |                       `- error: cannot find 'sigaction' in scope
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
147 |     dispositions[signal] = disposition
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:11: error: cannot find 'sigaction' in scope
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:29: error: 'nil' requires a contextual type
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |                             `- error: 'nil' requires a contextual type
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:150:18: error: cannot find 'sigaction' in scope
148 |
149 |     // Install minimal signal handler
150 |     var action = sigaction()
    |                  `- error: cannot find 'sigaction' in scope
151 |     let handler: @convention(c) (CInt) -> Void = { signal in
152 |       // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:155:11: error: cannot find 'write' in scope
153 |       // signal context.
154 |       var signal = UInt8(signal)
155 |       _ = write(Registry.fdBox.fds[1], &signal, 1)
    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[624/685] Compiling SwiftTUI Darwin+Overlay.swift
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:41:11: error: cannot find 'close' in scope
 39 |     // Close channel.
 40 |     if Registry.fdBox.fds[0] != -1 {
 41 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:45:11: error: cannot find 'close' in scope
 43 |
 44 |     if Registry.fdBox.fds[1] != -1 {
 45 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 46 |     }
 47 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:53:11: error: cannot find 'pipe' in scope
 51 |
 52 |     // TODO(compnerd): use `signalfd` on Linux
 53 |     guard pipe(&Registry.fdBox.fds) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'pipe' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:17: error: cannot find 'fcntl' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                 `- error: cannot find 'fcntl' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_GETFL' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                                              `- error: cannot find 'F_GETFL' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:23: error: cannot find 'fcntl' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                       `- error: cannot find 'fcntl' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:52: error: cannot find 'F_SETFL' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                    `- error: cannot find 'F_SETFL' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:69: error: cannot find 'O_NONBLOCK' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                                     `- error: cannot find 'O_NONBLOCK' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:66:21: error: cannot find 'read' in scope
 64 |         guard let self else { return }
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
    |                     `- error: cannot find 'read' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:67:21: error: use of local variable 'errno' before its declaration
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
 67 |         let errno = errno
    |             |       `- error: use of local variable 'errno' before its declaration
    |             `- note: 'errno' declared here
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:69:23: error: cannot find 'EINTR' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
    |                       `- error: cannot find 'EINTR' in scope
 70 |           if errno == 0 { return }
 71 |           fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:92:11: error: cannot find 'close' in scope
 90 |     // Close channel.
 91 |     if Registry.fdBox.fds[0] != -1 {
 92 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 93 |       Registry.fdBox.fds[0] = -1
 94 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:97:11: error: cannot find 'close' in scope
 95 |
 96 |     if Registry.fdBox.fds[1] != -1 {
 97 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 98 |       Registry.fdBox.fds[1] = -1
 99 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:13: error: cannot find 'sigaction' in scope
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |             `- error: cannot find 'sigaction' in scope
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:45: error: 'nil' requires a contextual type
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |                                             `- error: 'nil' requires a contextual type
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:145:23: error: cannot find 'sigaction' in scope
143 |
144 |     // Save the original signal action
145 |     var disposition = sigaction()
    |                       `- error: cannot find 'sigaction' in scope
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
147 |     dispositions[signal] = disposition
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:11: error: cannot find 'sigaction' in scope
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:29: error: 'nil' requires a contextual type
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |                             `- error: 'nil' requires a contextual type
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:150:18: error: cannot find 'sigaction' in scope
148 |
149 |     // Install minimal signal handler
150 |     var action = sigaction()
    |                  `- error: cannot find 'sigaction' in scope
151 |     let handler: @convention(c) (CInt) -> Void = { signal in
152 |       // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:155:11: error: cannot find 'write' in scope
153 |       // signal context.
154 |       var signal = UInt8(signal)
155 |       _ = write(Registry.fdBox.fds[1], &signal, 1)
    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[625/685] Compiling SwiftTUI GNU+Overlay.swift
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:41:11: error: cannot find 'close' in scope
 39 |     // Close channel.
 40 |     if Registry.fdBox.fds[0] != -1 {
 41 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:45:11: error: cannot find 'close' in scope
 43 |
 44 |     if Registry.fdBox.fds[1] != -1 {
 45 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 46 |     }
 47 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:53:11: error: cannot find 'pipe' in scope
 51 |
 52 |     // TODO(compnerd): use `signalfd` on Linux
 53 |     guard pipe(&Registry.fdBox.fds) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'pipe' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:17: error: cannot find 'fcntl' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                 `- error: cannot find 'fcntl' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_GETFL' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                                              `- error: cannot find 'F_GETFL' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:23: error: cannot find 'fcntl' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                       `- error: cannot find 'fcntl' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:52: error: cannot find 'F_SETFL' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                    `- error: cannot find 'F_SETFL' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:69: error: cannot find 'O_NONBLOCK' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                                     `- error: cannot find 'O_NONBLOCK' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:66:21: error: cannot find 'read' in scope
 64 |         guard let self else { return }
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
    |                     `- error: cannot find 'read' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:67:21: error: use of local variable 'errno' before its declaration
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
 67 |         let errno = errno
    |             |       `- error: use of local variable 'errno' before its declaration
    |             `- note: 'errno' declared here
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:69:23: error: cannot find 'EINTR' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
    |                       `- error: cannot find 'EINTR' in scope
 70 |           if errno == 0 { return }
 71 |           fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:92:11: error: cannot find 'close' in scope
 90 |     // Close channel.
 91 |     if Registry.fdBox.fds[0] != -1 {
 92 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 93 |       Registry.fdBox.fds[0] = -1
 94 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:97:11: error: cannot find 'close' in scope
 95 |
 96 |     if Registry.fdBox.fds[1] != -1 {
 97 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 98 |       Registry.fdBox.fds[1] = -1
 99 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:13: error: cannot find 'sigaction' in scope
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |             `- error: cannot find 'sigaction' in scope
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:45: error: 'nil' requires a contextual type
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |                                             `- error: 'nil' requires a contextual type
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:145:23: error: cannot find 'sigaction' in scope
143 |
144 |     // Save the original signal action
145 |     var disposition = sigaction()
    |                       `- error: cannot find 'sigaction' in scope
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
147 |     dispositions[signal] = disposition
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:11: error: cannot find 'sigaction' in scope
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:29: error: 'nil' requires a contextual type
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |                             `- error: 'nil' requires a contextual type
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:150:18: error: cannot find 'sigaction' in scope
148 |
149 |     // Install minimal signal handler
150 |     var action = sigaction()
    |                  `- error: cannot find 'sigaction' in scope
151 |     let handler: @convention(c) (CInt) -> Void = { signal in
152 |       // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:155:11: error: cannot find 'write' in scope
153 |       // signal context.
154 |       var signal = UInt8(signal)
155 |       _ = write(Registry.fdBox.fds[1], &signal, 1)
    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[626/685] Compiling SwiftTUI Musl+Overlay.swift
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:41:11: error: cannot find 'close' in scope
 39 |     // Close channel.
 40 |     if Registry.fdBox.fds[0] != -1 {
 41 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:45:11: error: cannot find 'close' in scope
 43 |
 44 |     if Registry.fdBox.fds[1] != -1 {
 45 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 46 |     }
 47 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:53:11: error: cannot find 'pipe' in scope
 51 |
 52 |     // TODO(compnerd): use `signalfd` on Linux
 53 |     guard pipe(&Registry.fdBox.fds) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'pipe' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:17: error: cannot find 'fcntl' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                 `- error: cannot find 'fcntl' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_GETFL' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                                              `- error: cannot find 'F_GETFL' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:23: error: cannot find 'fcntl' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                       `- error: cannot find 'fcntl' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:52: error: cannot find 'F_SETFL' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                    `- error: cannot find 'F_SETFL' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:69: error: cannot find 'O_NONBLOCK' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                                     `- error: cannot find 'O_NONBLOCK' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:66:21: error: cannot find 'read' in scope
 64 |         guard let self else { return }
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
    |                     `- error: cannot find 'read' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:67:21: error: use of local variable 'errno' before its declaration
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
 67 |         let errno = errno
    |             |       `- error: use of local variable 'errno' before its declaration
    |             `- note: 'errno' declared here
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:69:23: error: cannot find 'EINTR' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
    |                       `- error: cannot find 'EINTR' in scope
 70 |           if errno == 0 { return }
 71 |           fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:92:11: error: cannot find 'close' in scope
 90 |     // Close channel.
 91 |     if Registry.fdBox.fds[0] != -1 {
 92 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 93 |       Registry.fdBox.fds[0] = -1
 94 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:97:11: error: cannot find 'close' in scope
 95 |
 96 |     if Registry.fdBox.fds[1] != -1 {
 97 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 98 |       Registry.fdBox.fds[1] = -1
 99 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:13: error: cannot find 'sigaction' in scope
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |             `- error: cannot find 'sigaction' in scope
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:45: error: 'nil' requires a contextual type
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |                                             `- error: 'nil' requires a contextual type
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:145:23: error: cannot find 'sigaction' in scope
143 |
144 |     // Save the original signal action
145 |     var disposition = sigaction()
    |                       `- error: cannot find 'sigaction' in scope
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
147 |     dispositions[signal] = disposition
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:11: error: cannot find 'sigaction' in scope
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:29: error: 'nil' requires a contextual type
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |                             `- error: 'nil' requires a contextual type
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:150:18: error: cannot find 'sigaction' in scope
148 |
149 |     // Install minimal signal handler
150 |     var action = sigaction()
    |                  `- error: cannot find 'sigaction' in scope
151 |     let handler: @convention(c) (CInt) -> Void = { signal in
152 |       // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:155:11: error: cannot find 'write' in scope
153 |       // signal context.
154 |       var signal = UInt8(signal)
155 |       _ = write(Registry.fdBox.fds[1], &signal, 1)
    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[627/685] Compiling SwiftTUI POSIXError.swift
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:41:11: error: cannot find 'close' in scope
 39 |     // Close channel.
 40 |     if Registry.fdBox.fds[0] != -1 {
 41 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:45:11: error: cannot find 'close' in scope
 43 |
 44 |     if Registry.fdBox.fds[1] != -1 {
 45 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 46 |     }
 47 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:53:11: error: cannot find 'pipe' in scope
 51 |
 52 |     // TODO(compnerd): use `signalfd` on Linux
 53 |     guard pipe(&Registry.fdBox.fds) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'pipe' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:17: error: cannot find 'fcntl' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                 `- error: cannot find 'fcntl' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_GETFL' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                                              `- error: cannot find 'F_GETFL' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:23: error: cannot find 'fcntl' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                       `- error: cannot find 'fcntl' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:52: error: cannot find 'F_SETFL' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                    `- error: cannot find 'F_SETFL' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:69: error: cannot find 'O_NONBLOCK' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                                     `- error: cannot find 'O_NONBLOCK' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:66:21: error: cannot find 'read' in scope
 64 |         guard let self else { return }
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
    |                     `- error: cannot find 'read' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:67:21: error: use of local variable 'errno' before its declaration
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
 67 |         let errno = errno
    |             |       `- error: use of local variable 'errno' before its declaration
    |             `- note: 'errno' declared here
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:69:23: error: cannot find 'EINTR' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
    |                       `- error: cannot find 'EINTR' in scope
 70 |           if errno == 0 { return }
 71 |           fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:92:11: error: cannot find 'close' in scope
 90 |     // Close channel.
 91 |     if Registry.fdBox.fds[0] != -1 {
 92 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 93 |       Registry.fdBox.fds[0] = -1
 94 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:97:11: error: cannot find 'close' in scope
 95 |
 96 |     if Registry.fdBox.fds[1] != -1 {
 97 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 98 |       Registry.fdBox.fds[1] = -1
 99 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:13: error: cannot find 'sigaction' in scope
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |             `- error: cannot find 'sigaction' in scope
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:45: error: 'nil' requires a contextual type
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |                                             `- error: 'nil' requires a contextual type
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:145:23: error: cannot find 'sigaction' in scope
143 |
144 |     // Save the original signal action
145 |     var disposition = sigaction()
    |                       `- error: cannot find 'sigaction' in scope
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
147 |     dispositions[signal] = disposition
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:11: error: cannot find 'sigaction' in scope
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:29: error: 'nil' requires a contextual type
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |                             `- error: 'nil' requires a contextual type
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:150:18: error: cannot find 'sigaction' in scope
148 |
149 |     // Install minimal signal handler
150 |     var action = sigaction()
    |                  `- error: cannot find 'sigaction' in scope
151 |     let handler: @convention(c) (CInt) -> Void = { signal in
152 |       // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:155:11: error: cannot find 'write' in scope
153 |       // signal context.
154 |       var signal = UInt8(signal)
155 |       _ = write(Registry.fdBox.fds[1], &signal, 1)
    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[628/685] Compiling SwiftTUI SignalHandler.swift
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:41:11: error: cannot find 'close' in scope
 39 |     // Close channel.
 40 |     if Registry.fdBox.fds[0] != -1 {
 41 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:45:11: error: cannot find 'close' in scope
 43 |
 44 |     if Registry.fdBox.fds[1] != -1 {
 45 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 46 |     }
 47 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:53:11: error: cannot find 'pipe' in scope
 51 |
 52 |     // TODO(compnerd): use `signalfd` on Linux
 53 |     guard pipe(&Registry.fdBox.fds) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'pipe' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:17: error: cannot find 'fcntl' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                 `- error: cannot find 'fcntl' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_GETFL' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                                              `- error: cannot find 'F_GETFL' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:23: error: cannot find 'fcntl' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                       `- error: cannot find 'fcntl' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:52: error: cannot find 'F_SETFL' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                    `- error: cannot find 'F_SETFL' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:69: error: cannot find 'O_NONBLOCK' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                                     `- error: cannot find 'O_NONBLOCK' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:66:21: error: cannot find 'read' in scope
 64 |         guard let self else { return }
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
    |                     `- error: cannot find 'read' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:67:21: error: use of local variable 'errno' before its declaration
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
 67 |         let errno = errno
    |             |       `- error: use of local variable 'errno' before its declaration
    |             `- note: 'errno' declared here
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:69:23: error: cannot find 'EINTR' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
    |                       `- error: cannot find 'EINTR' in scope
 70 |           if errno == 0 { return }
 71 |           fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:92:11: error: cannot find 'close' in scope
 90 |     // Close channel.
 91 |     if Registry.fdBox.fds[0] != -1 {
 92 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 93 |       Registry.fdBox.fds[0] = -1
 94 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:97:11: error: cannot find 'close' in scope
 95 |
 96 |     if Registry.fdBox.fds[1] != -1 {
 97 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 98 |       Registry.fdBox.fds[1] = -1
 99 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:13: error: cannot find 'sigaction' in scope
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |             `- error: cannot find 'sigaction' in scope
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:45: error: 'nil' requires a contextual type
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |                                             `- error: 'nil' requires a contextual type
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:145:23: error: cannot find 'sigaction' in scope
143 |
144 |     // Save the original signal action
145 |     var disposition = sigaction()
    |                       `- error: cannot find 'sigaction' in scope
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
147 |     dispositions[signal] = disposition
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:11: error: cannot find 'sigaction' in scope
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:29: error: 'nil' requires a contextual type
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |                             `- error: 'nil' requires a contextual type
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:150:18: error: cannot find 'sigaction' in scope
148 |
149 |     // Install minimal signal handler
150 |     var action = sigaction()
    |                  `- error: cannot find 'sigaction' in scope
151 |     let handler: @convention(c) (CInt) -> Void = { signal in
152 |       // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:155:11: error: cannot find 'write' in scope
153 |       // signal context.
154 |       var signal = UInt8(signal)
155 |       _ = write(Registry.fdBox.fds[1], &signal, 1)
    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[629/685] Compiling SwiftTUI SystemInfo+POSIX.swift
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:41:11: error: cannot find 'close' in scope
 39 |     // Close channel.
 40 |     if Registry.fdBox.fds[0] != -1 {
 41 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:45:11: error: cannot find 'close' in scope
 43 |
 44 |     if Registry.fdBox.fds[1] != -1 {
 45 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 46 |     }
 47 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:53:11: error: cannot find 'pipe' in scope
 51 |
 52 |     // TODO(compnerd): use `signalfd` on Linux
 53 |     guard pipe(&Registry.fdBox.fds) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'pipe' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:17: error: cannot find 'fcntl' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                 `- error: cannot find 'fcntl' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_GETFL' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                                              `- error: cannot find 'F_GETFL' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:23: error: cannot find 'fcntl' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                       `- error: cannot find 'fcntl' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:52: error: cannot find 'F_SETFL' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                    `- error: cannot find 'F_SETFL' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:69: error: cannot find 'O_NONBLOCK' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                                     `- error: cannot find 'O_NONBLOCK' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:66:21: error: cannot find 'read' in scope
 64 |         guard let self else { return }
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
    |                     `- error: cannot find 'read' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:67:21: error: use of local variable 'errno' before its declaration
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
 67 |         let errno = errno
    |             |       `- error: use of local variable 'errno' before its declaration
    |             `- note: 'errno' declared here
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:69:23: error: cannot find 'EINTR' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
    |                       `- error: cannot find 'EINTR' in scope
 70 |           if errno == 0 { return }
 71 |           fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:92:11: error: cannot find 'close' in scope
 90 |     // Close channel.
 91 |     if Registry.fdBox.fds[0] != -1 {
 92 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 93 |       Registry.fdBox.fds[0] = -1
 94 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:97:11: error: cannot find 'close' in scope
 95 |
 96 |     if Registry.fdBox.fds[1] != -1 {
 97 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 98 |       Registry.fdBox.fds[1] = -1
 99 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:13: error: cannot find 'sigaction' in scope
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |             `- error: cannot find 'sigaction' in scope
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:45: error: 'nil' requires a contextual type
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |                                             `- error: 'nil' requires a contextual type
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:145:23: error: cannot find 'sigaction' in scope
143 |
144 |     // Save the original signal action
145 |     var disposition = sigaction()
    |                       `- error: cannot find 'sigaction' in scope
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
147 |     dispositions[signal] = disposition
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:11: error: cannot find 'sigaction' in scope
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:29: error: 'nil' requires a contextual type
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |                             `- error: 'nil' requires a contextual type
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:150:18: error: cannot find 'sigaction' in scope
148 |
149 |     // Install minimal signal handler
150 |     var action = sigaction()
    |                  `- error: cannot find 'sigaction' in scope
151 |     let handler: @convention(c) (CInt) -> Void = { signal in
152 |       // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:155:11: error: cannot find 'write' in scope
153 |       // signal context.
154 |       var signal = UInt8(signal)
155 |       _ = write(Registry.fdBox.fds[1], &signal, 1)
    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[630/685] Compiling SwiftTUI RingBuffer.swift
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:41:11: error: cannot find 'close' in scope
 39 |     // Close channel.
 40 |     if Registry.fdBox.fds[0] != -1 {
 41 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:45:11: error: cannot find 'close' in scope
 43 |
 44 |     if Registry.fdBox.fds[1] != -1 {
 45 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 46 |     }
 47 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:53:11: error: cannot find 'pipe' in scope
 51 |
 52 |     // TODO(compnerd): use `signalfd` on Linux
 53 |     guard pipe(&Registry.fdBox.fds) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'pipe' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:17: error: cannot find 'fcntl' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                 `- error: cannot find 'fcntl' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_GETFL' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                                              `- error: cannot find 'F_GETFL' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:23: error: cannot find 'fcntl' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                       `- error: cannot find 'fcntl' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:52: error: cannot find 'F_SETFL' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                    `- error: cannot find 'F_SETFL' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:69: error: cannot find 'O_NONBLOCK' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                                     `- error: cannot find 'O_NONBLOCK' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:66:21: error: cannot find 'read' in scope
 64 |         guard let self else { return }
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
    |                     `- error: cannot find 'read' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:67:21: error: use of local variable 'errno' before its declaration
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
 67 |         let errno = errno
    |             |       `- error: use of local variable 'errno' before its declaration
    |             `- note: 'errno' declared here
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:69:23: error: cannot find 'EINTR' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
    |                       `- error: cannot find 'EINTR' in scope
 70 |           if errno == 0 { return }
 71 |           fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:92:11: error: cannot find 'close' in scope
 90 |     // Close channel.
 91 |     if Registry.fdBox.fds[0] != -1 {
 92 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 93 |       Registry.fdBox.fds[0] = -1
 94 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:97:11: error: cannot find 'close' in scope
 95 |
 96 |     if Registry.fdBox.fds[1] != -1 {
 97 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 98 |       Registry.fdBox.fds[1] = -1
 99 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:13: error: cannot find 'sigaction' in scope
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |             `- error: cannot find 'sigaction' in scope
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:45: error: 'nil' requires a contextual type
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |                                             `- error: 'nil' requires a contextual type
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:145:23: error: cannot find 'sigaction' in scope
143 |
144 |     // Save the original signal action
145 |     var disposition = sigaction()
    |                       `- error: cannot find 'sigaction' in scope
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
147 |     dispositions[signal] = disposition
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:11: error: cannot find 'sigaction' in scope
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:29: error: 'nil' requires a contextual type
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |                             `- error: 'nil' requires a contextual type
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:150:18: error: cannot find 'sigaction' in scope
148 |
149 |     // Install minimal signal handler
150 |     var action = sigaction()
    |                  `- error: cannot find 'sigaction' in scope
151 |     let handler: @convention(c) (CInt) -> Void = { signal in
152 |       // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:155:11: error: cannot find 'write' in scope
153 |       // signal context.
154 |       var signal = UInt8(signal)
155 |       _ = write(Registry.fdBox.fds[1], &signal, 1)
    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[631/685] Compiling SwiftTUI Bindable.swift
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:41:11: error: cannot find 'close' in scope
 39 |     // Close channel.
 40 |     if Registry.fdBox.fds[0] != -1 {
 41 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:45:11: error: cannot find 'close' in scope
 43 |
 44 |     if Registry.fdBox.fds[1] != -1 {
 45 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 46 |     }
 47 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:53:11: error: cannot find 'pipe' in scope
 51 |
 52 |     // TODO(compnerd): use `signalfd` on Linux
 53 |     guard pipe(&Registry.fdBox.fds) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'pipe' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:17: error: cannot find 'fcntl' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                 `- error: cannot find 'fcntl' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_GETFL' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                                              `- error: cannot find 'F_GETFL' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:23: error: cannot find 'fcntl' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                       `- error: cannot find 'fcntl' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:52: error: cannot find 'F_SETFL' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                    `- error: cannot find 'F_SETFL' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:69: error: cannot find 'O_NONBLOCK' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                                     `- error: cannot find 'O_NONBLOCK' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:66:21: error: cannot find 'read' in scope
 64 |         guard let self else { return }
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
    |                     `- error: cannot find 'read' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:67:21: error: use of local variable 'errno' before its declaration
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
 67 |         let errno = errno
    |             |       `- error: use of local variable 'errno' before its declaration
    |             `- note: 'errno' declared here
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:69:23: error: cannot find 'EINTR' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
    |                       `- error: cannot find 'EINTR' in scope
 70 |           if errno == 0 { return }
 71 |           fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:92:11: error: cannot find 'close' in scope
 90 |     // Close channel.
 91 |     if Registry.fdBox.fds[0] != -1 {
 92 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 93 |       Registry.fdBox.fds[0] = -1
 94 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:97:11: error: cannot find 'close' in scope
 95 |
 96 |     if Registry.fdBox.fds[1] != -1 {
 97 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 98 |       Registry.fdBox.fds[1] = -1
 99 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:13: error: cannot find 'sigaction' in scope
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |             `- error: cannot find 'sigaction' in scope
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:45: error: 'nil' requires a contextual type
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |                                             `- error: 'nil' requires a contextual type
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:145:23: error: cannot find 'sigaction' in scope
143 |
144 |     // Save the original signal action
145 |     var disposition = sigaction()
    |                       `- error: cannot find 'sigaction' in scope
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
147 |     dispositions[signal] = disposition
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:11: error: cannot find 'sigaction' in scope
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:29: error: 'nil' requires a contextual type
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |                             `- error: 'nil' requires a contextual type
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:150:18: error: cannot find 'sigaction' in scope
148 |
149 |     // Install minimal signal handler
150 |     var action = sigaction()
    |                  `- error: cannot find 'sigaction' in scope
151 |     let handler: @convention(c) (CInt) -> Void = { signal in
152 |       // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:155:11: error: cannot find 'write' in scope
153 |       // signal context.
154 |       var signal = UInt8(signal)
155 |       _ = write(Registry.fdBox.fds[1], &signal, 1)
    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[632/685] Compiling SwiftTUI Binding.swift
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:41:11: error: cannot find 'close' in scope
 39 |     // Close channel.
 40 |     if Registry.fdBox.fds[0] != -1 {
 41 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:45:11: error: cannot find 'close' in scope
 43 |
 44 |     if Registry.fdBox.fds[1] != -1 {
 45 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 46 |     }
 47 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:53:11: error: cannot find 'pipe' in scope
 51 |
 52 |     // TODO(compnerd): use `signalfd` on Linux
 53 |     guard pipe(&Registry.fdBox.fds) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'pipe' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:17: error: cannot find 'fcntl' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                 `- error: cannot find 'fcntl' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_GETFL' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                                              `- error: cannot find 'F_GETFL' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:23: error: cannot find 'fcntl' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                       `- error: cannot find 'fcntl' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:52: error: cannot find 'F_SETFL' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                    `- error: cannot find 'F_SETFL' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:69: error: cannot find 'O_NONBLOCK' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                                     `- error: cannot find 'O_NONBLOCK' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:66:21: error: cannot find 'read' in scope
 64 |         guard let self else { return }
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
    |                     `- error: cannot find 'read' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:67:21: error: use of local variable 'errno' before its declaration
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
 67 |         let errno = errno
    |             |       `- error: use of local variable 'errno' before its declaration
    |             `- note: 'errno' declared here
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:69:23: error: cannot find 'EINTR' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
    |                       `- error: cannot find 'EINTR' in scope
 70 |           if errno == 0 { return }
 71 |           fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:92:11: error: cannot find 'close' in scope
 90 |     // Close channel.
 91 |     if Registry.fdBox.fds[0] != -1 {
 92 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 93 |       Registry.fdBox.fds[0] = -1
 94 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:97:11: error: cannot find 'close' in scope
 95 |
 96 |     if Registry.fdBox.fds[1] != -1 {
 97 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 98 |       Registry.fdBox.fds[1] = -1
 99 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:13: error: cannot find 'sigaction' in scope
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |             `- error: cannot find 'sigaction' in scope
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:45: error: 'nil' requires a contextual type
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |                                             `- error: 'nil' requires a contextual type
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:145:23: error: cannot find 'sigaction' in scope
143 |
144 |     // Save the original signal action
145 |     var disposition = sigaction()
    |                       `- error: cannot find 'sigaction' in scope
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
147 |     dispositions[signal] = disposition
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:11: error: cannot find 'sigaction' in scope
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:29: error: 'nil' requires a contextual type
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |                             `- error: 'nil' requires a contextual type
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:150:18: error: cannot find 'sigaction' in scope
148 |
149 |     // Install minimal signal handler
150 |     var action = sigaction()
    |                  `- error: cannot find 'sigaction' in scope
151 |     let handler: @convention(c) (CInt) -> Void = { signal in
152 |       // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:155:11: error: cannot find 'write' in scope
153 |       // signal context.
154 |       var signal = UInt8(signal)
155 |       _ = write(Registry.fdBox.fds[1], &signal, 1)
    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[633/685] Compiling SwiftTUI Environment.swift
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:41:11: error: cannot find 'close' in scope
 39 |     // Close channel.
 40 |     if Registry.fdBox.fds[0] != -1 {
 41 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:45:11: error: cannot find 'close' in scope
 43 |
 44 |     if Registry.fdBox.fds[1] != -1 {
 45 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 46 |     }
 47 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:53:11: error: cannot find 'pipe' in scope
 51 |
 52 |     // TODO(compnerd): use `signalfd` on Linux
 53 |     guard pipe(&Registry.fdBox.fds) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'pipe' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:17: error: cannot find 'fcntl' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                 `- error: cannot find 'fcntl' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_GETFL' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                                              `- error: cannot find 'F_GETFL' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:23: error: cannot find 'fcntl' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                       `- error: cannot find 'fcntl' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:52: error: cannot find 'F_SETFL' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                    `- error: cannot find 'F_SETFL' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:69: error: cannot find 'O_NONBLOCK' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                                     `- error: cannot find 'O_NONBLOCK' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:66:21: error: cannot find 'read' in scope
 64 |         guard let self else { return }
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
    |                     `- error: cannot find 'read' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:67:21: error: use of local variable 'errno' before its declaration
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
 67 |         let errno = errno
    |             |       `- error: use of local variable 'errno' before its declaration
    |             `- note: 'errno' declared here
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:69:23: error: cannot find 'EINTR' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
    |                       `- error: cannot find 'EINTR' in scope
 70 |           if errno == 0 { return }
 71 |           fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:92:11: error: cannot find 'close' in scope
 90 |     // Close channel.
 91 |     if Registry.fdBox.fds[0] != -1 {
 92 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 93 |       Registry.fdBox.fds[0] = -1
 94 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:97:11: error: cannot find 'close' in scope
 95 |
 96 |     if Registry.fdBox.fds[1] != -1 {
 97 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 98 |       Registry.fdBox.fds[1] = -1
 99 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:13: error: cannot find 'sigaction' in scope
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |             `- error: cannot find 'sigaction' in scope
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:45: error: 'nil' requires a contextual type
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |                                             `- error: 'nil' requires a contextual type
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:145:23: error: cannot find 'sigaction' in scope
143 |
144 |     // Save the original signal action
145 |     var disposition = sigaction()
    |                       `- error: cannot find 'sigaction' in scope
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
147 |     dispositions[signal] = disposition
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:11: error: cannot find 'sigaction' in scope
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:29: error: 'nil' requires a contextual type
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |                             `- error: 'nil' requires a contextual type
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:150:18: error: cannot find 'sigaction' in scope
148 |
149 |     // Install minimal signal handler
150 |     var action = sigaction()
    |                  `- error: cannot find 'sigaction' in scope
151 |     let handler: @convention(c) (CInt) -> Void = { signal in
152 |       // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:155:11: error: cannot find 'write' in scope
153 |       // signal context.
154 |       var signal = UInt8(signal)
155 |       _ = write(Registry.fdBox.fds[1], &signal, 1)
    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[634/685] Compiling SwiftTUI FocusState.swift
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:41:11: error: cannot find 'close' in scope
 39 |     // Close channel.
 40 |     if Registry.fdBox.fds[0] != -1 {
 41 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:45:11: error: cannot find 'close' in scope
 43 |
 44 |     if Registry.fdBox.fds[1] != -1 {
 45 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 46 |     }
 47 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:53:11: error: cannot find 'pipe' in scope
 51 |
 52 |     // TODO(compnerd): use `signalfd` on Linux
 53 |     guard pipe(&Registry.fdBox.fds) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'pipe' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:17: error: cannot find 'fcntl' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                 `- error: cannot find 'fcntl' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_GETFL' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                                              `- error: cannot find 'F_GETFL' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:23: error: cannot find 'fcntl' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                       `- error: cannot find 'fcntl' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:52: error: cannot find 'F_SETFL' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                    `- error: cannot find 'F_SETFL' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:69: error: cannot find 'O_NONBLOCK' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                                     `- error: cannot find 'O_NONBLOCK' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:66:21: error: cannot find 'read' in scope
 64 |         guard let self else { return }
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
    |                     `- error: cannot find 'read' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:67:21: error: use of local variable 'errno' before its declaration
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
 67 |         let errno = errno
    |             |       `- error: use of local variable 'errno' before its declaration
    |             `- note: 'errno' declared here
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:69:23: error: cannot find 'EINTR' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
    |                       `- error: cannot find 'EINTR' in scope
 70 |           if errno == 0 { return }
 71 |           fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:92:11: error: cannot find 'close' in scope
 90 |     // Close channel.
 91 |     if Registry.fdBox.fds[0] != -1 {
 92 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 93 |       Registry.fdBox.fds[0] = -1
 94 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:97:11: error: cannot find 'close' in scope
 95 |
 96 |     if Registry.fdBox.fds[1] != -1 {
 97 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 98 |       Registry.fdBox.fds[1] = -1
 99 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:13: error: cannot find 'sigaction' in scope
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |             `- error: cannot find 'sigaction' in scope
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:45: error: 'nil' requires a contextual type
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |                                             `- error: 'nil' requires a contextual type
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:145:23: error: cannot find 'sigaction' in scope
143 |
144 |     // Save the original signal action
145 |     var disposition = sigaction()
    |                       `- error: cannot find 'sigaction' in scope
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
147 |     dispositions[signal] = disposition
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:11: error: cannot find 'sigaction' in scope
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:29: error: 'nil' requires a contextual type
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |                             `- error: 'nil' requires a contextual type
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:150:18: error: cannot find 'sigaction' in scope
148 |
149 |     // Install minimal signal handler
150 |     var action = sigaction()
    |                  `- error: cannot find 'sigaction' in scope
151 |     let handler: @convention(c) (CInt) -> Void = { signal in
152 |       // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:155:11: error: cannot find 'write' in scope
153 |       // signal context.
154 |       var signal = UInt8(signal)
155 |       _ = write(Registry.fdBox.fds[1], &signal, 1)
    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[635/685] Compiling SwiftTUI ModelContextKey.swift
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:41:11: error: cannot find 'close' in scope
 39 |     // Close channel.
 40 |     if Registry.fdBox.fds[0] != -1 {
 41 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:45:11: error: cannot find 'close' in scope
 43 |
 44 |     if Registry.fdBox.fds[1] != -1 {
 45 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 46 |     }
 47 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:53:11: error: cannot find 'pipe' in scope
 51 |
 52 |     // TODO(compnerd): use `signalfd` on Linux
 53 |     guard pipe(&Registry.fdBox.fds) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'pipe' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:17: error: cannot find 'fcntl' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                 `- error: cannot find 'fcntl' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_GETFL' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                                              `- error: cannot find 'F_GETFL' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:23: error: cannot find 'fcntl' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                       `- error: cannot find 'fcntl' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:52: error: cannot find 'F_SETFL' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                    `- error: cannot find 'F_SETFL' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:69: error: cannot find 'O_NONBLOCK' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                                     `- error: cannot find 'O_NONBLOCK' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:66:21: error: cannot find 'read' in scope
 64 |         guard let self else { return }
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
    |                     `- error: cannot find 'read' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:67:21: error: use of local variable 'errno' before its declaration
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
 67 |         let errno = errno
    |             |       `- error: use of local variable 'errno' before its declaration
    |             `- note: 'errno' declared here
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:69:23: error: cannot find 'EINTR' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
    |                       `- error: cannot find 'EINTR' in scope
 70 |           if errno == 0 { return }
 71 |           fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:92:11: error: cannot find 'close' in scope
 90 |     // Close channel.
 91 |     if Registry.fdBox.fds[0] != -1 {
 92 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 93 |       Registry.fdBox.fds[0] = -1
 94 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:97:11: error: cannot find 'close' in scope
 95 |
 96 |     if Registry.fdBox.fds[1] != -1 {
 97 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 98 |       Registry.fdBox.fds[1] = -1
 99 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:13: error: cannot find 'sigaction' in scope
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |             `- error: cannot find 'sigaction' in scope
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:45: error: 'nil' requires a contextual type
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |                                             `- error: 'nil' requires a contextual type
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:145:23: error: cannot find 'sigaction' in scope
143 |
144 |     // Save the original signal action
145 |     var disposition = sigaction()
    |                       `- error: cannot find 'sigaction' in scope
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
147 |     dispositions[signal] = disposition
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:11: error: cannot find 'sigaction' in scope
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:29: error: 'nil' requires a contextual type
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |                             `- error: 'nil' requires a contextual type
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:150:18: error: cannot find 'sigaction' in scope
148 |
149 |     // Install minimal signal handler
150 |     var action = sigaction()
    |                  `- error: cannot find 'sigaction' in scope
151 |     let handler: @convention(c) (CInt) -> Void = { signal in
152 |       // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:155:11: error: cannot find 'write' in scope
153 |       // signal context.
154 |       var signal = UInt8(signal)
155 |       _ = write(Registry.fdBox.fds[1], &signal, 1)
    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[636/685] Compiling SwiftTUI Query.swift
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:41:11: error: cannot find 'close' in scope
 39 |     // Close channel.
 40 |     if Registry.fdBox.fds[0] != -1 {
 41 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:45:11: error: cannot find 'close' in scope
 43 |
 44 |     if Registry.fdBox.fds[1] != -1 {
 45 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 46 |     }
 47 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:53:11: error: cannot find 'pipe' in scope
 51 |
 52 |     // TODO(compnerd): use `signalfd` on Linux
 53 |     guard pipe(&Registry.fdBox.fds) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'pipe' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:17: error: cannot find 'fcntl' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                 `- error: cannot find 'fcntl' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_GETFL' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                                              `- error: cannot find 'F_GETFL' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:23: error: cannot find 'fcntl' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                       `- error: cannot find 'fcntl' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:52: error: cannot find 'F_SETFL' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                    `- error: cannot find 'F_SETFL' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:69: error: cannot find 'O_NONBLOCK' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                                     `- error: cannot find 'O_NONBLOCK' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:66:21: error: cannot find 'read' in scope
 64 |         guard let self else { return }
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
    |                     `- error: cannot find 'read' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:67:21: error: use of local variable 'errno' before its declaration
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
 67 |         let errno = errno
    |             |       `- error: use of local variable 'errno' before its declaration
    |             `- note: 'errno' declared here
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:69:23: error: cannot find 'EINTR' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
    |                       `- error: cannot find 'EINTR' in scope
 70 |           if errno == 0 { return }
 71 |           fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:92:11: error: cannot find 'close' in scope
 90 |     // Close channel.
 91 |     if Registry.fdBox.fds[0] != -1 {
 92 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 93 |       Registry.fdBox.fds[0] = -1
 94 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:97:11: error: cannot find 'close' in scope
 95 |
 96 |     if Registry.fdBox.fds[1] != -1 {
 97 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 98 |       Registry.fdBox.fds[1] = -1
 99 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:13: error: cannot find 'sigaction' in scope
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |             `- error: cannot find 'sigaction' in scope
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:45: error: 'nil' requires a contextual type
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |                                             `- error: 'nil' requires a contextual type
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:145:23: error: cannot find 'sigaction' in scope
143 |
144 |     // Save the original signal action
145 |     var disposition = sigaction()
    |                       `- error: cannot find 'sigaction' in scope
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
147 |     dispositions[signal] = disposition
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:11: error: cannot find 'sigaction' in scope
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:29: error: 'nil' requires a contextual type
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |                             `- error: 'nil' requires a contextual type
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:150:18: error: cannot find 'sigaction' in scope
148 |
149 |     // Install minimal signal handler
150 |     var action = sigaction()
    |                  `- error: cannot find 'sigaction' in scope
151 |     let handler: @convention(c) (CInt) -> Void = { signal in
152 |       // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:155:11: error: cannot find 'write' in scope
153 |       // signal context.
154 |       var signal = UInt8(signal)
155 |       _ = write(Registry.fdBox.fds[1], &signal, 1)
    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[637/685] Compiling SwiftTUI State.swift
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:41:11: error: cannot find 'close' in scope
 39 |     // Close channel.
 40 |     if Registry.fdBox.fds[0] != -1 {
 41 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:45:11: error: cannot find 'close' in scope
 43 |
 44 |     if Registry.fdBox.fds[1] != -1 {
 45 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 46 |     }
 47 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:53:11: error: cannot find 'pipe' in scope
 51 |
 52 |     // TODO(compnerd): use `signalfd` on Linux
 53 |     guard pipe(&Registry.fdBox.fds) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'pipe' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:17: error: cannot find 'fcntl' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                 `- error: cannot find 'fcntl' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_GETFL' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                                              `- error: cannot find 'F_GETFL' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:23: error: cannot find 'fcntl' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                       `- error: cannot find 'fcntl' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:52: error: cannot find 'F_SETFL' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                    `- error: cannot find 'F_SETFL' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:69: error: cannot find 'O_NONBLOCK' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                                     `- error: cannot find 'O_NONBLOCK' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:66:21: error: cannot find 'read' in scope
 64 |         guard let self else { return }
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
    |                     `- error: cannot find 'read' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:67:21: error: use of local variable 'errno' before its declaration
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
 67 |         let errno = errno
    |             |       `- error: use of local variable 'errno' before its declaration
    |             `- note: 'errno' declared here
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:69:23: error: cannot find 'EINTR' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
    |                       `- error: cannot find 'EINTR' in scope
 70 |           if errno == 0 { return }
 71 |           fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:92:11: error: cannot find 'close' in scope
 90 |     // Close channel.
 91 |     if Registry.fdBox.fds[0] != -1 {
 92 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 93 |       Registry.fdBox.fds[0] = -1
 94 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:97:11: error: cannot find 'close' in scope
 95 |
 96 |     if Registry.fdBox.fds[1] != -1 {
 97 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 98 |       Registry.fdBox.fds[1] = -1
 99 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:13: error: cannot find 'sigaction' in scope
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |             `- error: cannot find 'sigaction' in scope
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:45: error: 'nil' requires a contextual type
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |                                             `- error: 'nil' requires a contextual type
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:145:23: error: cannot find 'sigaction' in scope
143 |
144 |     // Save the original signal action
145 |     var disposition = sigaction()
    |                       `- error: cannot find 'sigaction' in scope
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
147 |     dispositions[signal] = disposition
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:11: error: cannot find 'sigaction' in scope
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:29: error: 'nil' requires a contextual type
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |                             `- error: 'nil' requires a contextual type
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:150:18: error: cannot find 'sigaction' in scope
148 |
149 |     // Install minimal signal handler
150 |     var action = sigaction()
    |                  `- error: cannot find 'sigaction' in scope
151 |     let handler: @convention(c) (CInt) -> Void = { signal in
152 |       // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:155:11: error: cannot find 'write' in scope
153 |       // signal context.
154 |       var signal = UInt8(signal)
155 |       _ = write(Registry.fdBox.fds[1], &signal, 1)
    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[638/685] Compiling SwiftTUI View+Environment.swift
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:41:11: error: cannot find 'close' in scope
 39 |     // Close channel.
 40 |     if Registry.fdBox.fds[0] != -1 {
 41 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:45:11: error: cannot find 'close' in scope
 43 |
 44 |     if Registry.fdBox.fds[1] != -1 {
 45 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 46 |     }
 47 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:53:11: error: cannot find 'pipe' in scope
 51 |
 52 |     // TODO(compnerd): use `signalfd` on Linux
 53 |     guard pipe(&Registry.fdBox.fds) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'pipe' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:17: error: cannot find 'fcntl' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                 `- error: cannot find 'fcntl' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_GETFL' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                                              `- error: cannot find 'F_GETFL' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:23: error: cannot find 'fcntl' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                       `- error: cannot find 'fcntl' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:52: error: cannot find 'F_SETFL' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                    `- error: cannot find 'F_SETFL' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:69: error: cannot find 'O_NONBLOCK' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                                     `- error: cannot find 'O_NONBLOCK' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:66:21: error: cannot find 'read' in scope
 64 |         guard let self else { return }
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
    |                     `- error: cannot find 'read' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:67:21: error: use of local variable 'errno' before its declaration
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
 67 |         let errno = errno
    |             |       `- error: use of local variable 'errno' before its declaration
    |             `- note: 'errno' declared here
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:69:23: error: cannot find 'EINTR' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
    |                       `- error: cannot find 'EINTR' in scope
 70 |           if errno == 0 { return }
 71 |           fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:92:11: error: cannot find 'close' in scope
 90 |     // Close channel.
 91 |     if Registry.fdBox.fds[0] != -1 {
 92 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 93 |       Registry.fdBox.fds[0] = -1
 94 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:97:11: error: cannot find 'close' in scope
 95 |
 96 |     if Registry.fdBox.fds[1] != -1 {
 97 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 98 |       Registry.fdBox.fds[1] = -1
 99 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:13: error: cannot find 'sigaction' in scope
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |             `- error: cannot find 'sigaction' in scope
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:45: error: 'nil' requires a contextual type
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |                                             `- error: 'nil' requires a contextual type
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:145:23: error: cannot find 'sigaction' in scope
143 |
144 |     // Save the original signal action
145 |     var disposition = sigaction()
    |                       `- error: cannot find 'sigaction' in scope
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
147 |     dispositions[signal] = disposition
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:11: error: cannot find 'sigaction' in scope
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:29: error: 'nil' requires a contextual type
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |                             `- error: 'nil' requires a contextual type
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:150:18: error: cannot find 'sigaction' in scope
148 |
149 |     // Install minimal signal handler
150 |     var action = sigaction()
    |                  `- error: cannot find 'sigaction' in scope
151 |     let handler: @convention(c) (CInt) -> Void = { signal in
152 |       // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:155:11: error: cannot find 'write' in scope
153 |       // signal context.
154 |       var signal = UInt8(signal)
155 |       _ = write(Registry.fdBox.fds[1], &signal, 1)
    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[639/685] Compiling SwiftTUI View+State.swift
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:18:11: error: cannot find 'strerror_r' in scope
16 |     return withUnsafeTemporaryAllocation(of: CChar.self, capacity: 256) {
17 |       guard let baseAddress = $0.baseAddress,
18 |           strerror_r(code, baseAddress, $0.count) == 0 else {
   |           `- error: cannot find 'strerror_r' in scope
19 |         return "POSIX Error \(code)"
20 |       }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:41:11: error: cannot find 'close' in scope
 39 |     // Close channel.
 40 |     if Registry.fdBox.fds[0] != -1 {
 41 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:45:11: error: cannot find 'close' in scope
 43 |
 44 |     if Registry.fdBox.fds[1] != -1 {
 45 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 46 |     }
 47 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:53:11: error: cannot find 'pipe' in scope
 51 |
 52 |     // TODO(compnerd): use `signalfd` on Linux
 53 |     guard pipe(&Registry.fdBox.fds) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'pipe' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:17: error: cannot find 'fcntl' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                 `- error: cannot find 'fcntl' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:56:46: error: cannot find 'F_GETFL' in scope
 54 |
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
    |                                              `- error: cannot find 'F_GETFL' in scope
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
 58 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:23: error: cannot find 'fcntl' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                       `- error: cannot find 'fcntl' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:52: error: cannot find 'F_SETFL' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                    `- error: cannot find 'F_SETFL' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:57:69: error: cannot find 'O_NONBLOCK' in scope
 55 |     // Make the write non-blocking for the handler
 56 |     let flags = fcntl(Registry.fdBox.fds[1], F_GETFL)
 57 |     guard flags >= 0, fcntl(Registry.fdBox.fds[1], F_SETFL, flags | O_NONBLOCK) == 0 else {
    |                                                                     `- error: cannot find 'O_NONBLOCK' in scope
 58 |       throw POSIXError()
 59 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:66:21: error: cannot find 'read' in scope
 64 |         guard let self else { return }
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
    |                     `- error: cannot find 'read' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:67:21: error: use of local variable 'errno' before its declaration
 65 |
 66 |         let count = read(Registry.fdBox.fds[0], &buffer, buffer.count)
 67 |         let errno = errno
    |             |       `- error: use of local variable 'errno' before its declaration
    |             `- note: 'errno' declared here
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:69:23: error: cannot find 'EINTR' in scope
 67 |         let errno = errno
 68 |         guard count > 0 else {
 69 |           if errno == EINTR { continue }
    |                       `- error: cannot find 'EINTR' in scope
 70 |           if errno == 0 { return }
 71 |           fatalError("read failure from signal pipe: \(POSIXError(errno))")
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:92:11: error: cannot find 'close' in scope
 90 |     // Close channel.
 91 |     if Registry.fdBox.fds[0] != -1 {
 92 |       _ = close(Registry.fdBox.fds[0])
    |           `- error: cannot find 'close' in scope
 93 |       Registry.fdBox.fds[0] = -1
 94 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:97:11: error: cannot find 'close' in scope
 95 |
 96 |     if Registry.fdBox.fds[1] != -1 {
 97 |       _ = close(Registry.fdBox.fds[1])
    |           `- error: cannot find 'close' in scope
 98 |       Registry.fdBox.fds[1] = -1
 99 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:13: error: cannot find 'sigaction' in scope
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |             `- error: cannot find 'sigaction' in scope
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:130:45: error: 'nil' requires a contextual type
128 |       if var disposition = dispositions.removeValue(forKey: signal) {
129 |         // Ignore errors - there is not much that can be done in the cleanup.
130 |         _ = sigaction(signal, &disposition, nil)
    |                                             `- error: 'nil' requires a contextual type
131 |       }
132 |       handlers.removeValue(forKey: signal)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:145:23: error: cannot find 'sigaction' in scope
143 |
144 |     // Save the original signal action
145 |     var disposition = sigaction()
    |                       `- error: cannot find 'sigaction' in scope
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
147 |     dispositions[signal] = disposition
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:11: error: cannot find 'sigaction' in scope
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:146:29: error: 'nil' requires a contextual type
144 |     // Save the original signal action
145 |     var disposition = sigaction()
146 |     guard sigaction(signal, nil, &disposition) == 0 else { throw POSIXError() }
    |                             `- error: 'nil' requires a contextual type
147 |     dispositions[signal] = disposition
148 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:150:18: error: cannot find 'sigaction' in scope
148 |
149 |     // Install minimal signal handler
150 |     var action = sigaction()
    |                  `- error: cannot find 'sigaction' in scope
151 |     let handler: @convention(c) (CInt) -> Void = { signal in
152 |       // Ignore errors - there is not much that can be done safely in the
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:155:11: error: cannot find 'write' in scope
153 |       // signal context.
154 |       var signal = UInt8(signal)
155 |       _ = write(Registry.fdBox.fds[1], &signal, 1)
    |           `- error: cannot find 'write' in scope
156 |     }
157 |     #if os(Linux)
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:168:11: error: cannot find 'sigemptyset' in scope
166 |     action.__sigaction_u.__sa_handler = handler
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigemptyset' in scope
169 |     action.sa_flags = SA_RESTART
170 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:169:23: error: cannot find 'SA_RESTART' in scope
167 |     #endif
168 |     guard sigemptyset(&action.sa_mask) == 0 else { throw POSIXError() }
169 |     action.sa_flags = SA_RESTART
    |                       `- error: cannot find 'SA_RESTART' in scope
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:11: error: cannot find 'sigaction' in scope
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |           `- error: cannot find 'sigaction' in scope
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:171:38: error: 'nil' requires a contextual type
169 |     action.sa_flags = SA_RESTART
170 |
171 |     guard sigaction(signal, &action, nil) == 0 else { throw POSIXError() }
    |                                      `- error: 'nil' requires a contextual type
172 |   }
173 |
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:16: error: cannot find 'sysconf' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                `- error: cannot find 'sysconf' in scope
 9 |   }
10 | }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SystemInfo+POSIX.swift:8:24: error: cannot find '_SC_PAGESIZE' in scope
 6 | public enum SystemInfo {
 7 |   public static var PageSize: Int {
 8 |     return Int(sysconf(_SC_PAGESIZE))
   |                        `- error: cannot find '_SC_PAGESIZE' in scope
 9 |   }
10 | }
[640/685] Compiling SwiftTUI MenuStyle.swift
[641/685] Compiling SwiftTUI PopupAnchorButton.swift
[642/685] Compiling SwiftTUI PopupPresenter.swift
[643/685] Compiling SwiftTUI Picker.swift
[644/685] Compiling SwiftTUI PickerStyle.swift
[645/685] Compiling SwiftTUI ProgressView.swift
[646/685] Compiling SwiftTUI ScrollView.swift
[647/685] Compiling SwiftTUI SecureField.swift
[648/685] Compiling SwiftTUI Slider.swift
[649/685] Compiling SwiftTUI Spacer.swift
[650/685] Compiling SwiftTUI Stepper.swift
[651/685] Compiling SwiftTUI Text.swift
[652/685] Compiling SwiftTUI TextEdit.swift
[653/685] Compiling SwiftTUI TextField.swift
[654/685] Compiling SwiftTUI TextFieldStyle.swift
[655/685] Compiling SwiftTUI Toggle.swift
[656/685] Compiling SwiftTUI ToggleStyle.swift
[657/685] Compiling SwiftTUI WidthReader.swift
[658/685] Compiling SwiftTUI EmptyView.swift
[659/685] Compiling SwiftTUI ForEach.swift
[660/685] Compiling SwiftTUI Group.swift
[661/685] Compiling SwiftTUI GridItem.swift
[662/685] Compiling SwiftTUI LazyVGrid.swift
[663/685] Compiling SwiftTUI PinnedScrollableViews.swift
[664/685] Compiling SwiftTUI AllowsHitTesting.swift
[665/685] Compiling SwiftTUI Background.swift
[666/685] Compiling SwiftTUI Bold.swift
[667/685] Compiling SwiftTUI Border.swift
[668/685] Compiling SwiftTUI Disabled.swift
[669/685] Compiling SwiftTUI DragGesture.swift
[670/685] Compiling SwiftTUI EquatableView.swift
[671/685] Compiling SwiftTUI FixedFrame.swift
[672/685] Compiling SwiftTUI FixedSizeLayoutPriority.swift
[673/685] Compiling SwiftTUI FlexibleFrame.swift
[674/685] Compiling SwiftTUI Focused.swift
[675/685] Compiling SwiftTUI ForegroundColor.swift
[676/685] Compiling SwiftTUI Hidden.swift
[677/685] Compiling SwiftTUI HitTestPassthrough.swift
[678/685] Compiling SwiftTUI Italic.swift
[679/685] Compiling SwiftTUI LineLimit.swift
[680/685] Compiling SwiftTUI OnAppear.swift
[681/685] Compiling SwiftTUI OnChange.swift
[682/685] Compiling SwiftTUI OnDisappear.swift
[683/685] Compiling SwiftTUI OnHover.swift
[684/685] Compiling SwiftTUI OnTapGesture.swift
[685/685] Compiling SwiftTUI OverlayBackground.swift
BUILD FAILURE 6.2 android