The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftTUI, reference main (1ecb30), with Swift 6.1 for Android on 30 Sep 2026 22:14:37 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                       `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:32: error: cannot find 'ICANON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                `- error: cannot find 'ICANON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:42: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                          `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:51: error: cannot find 'ECHO' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                   `- error: cannot find 'ECHO' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:59: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                           `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:68: error: cannot find 'IXON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                    `- error: cannot find 'IXON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:76: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                            `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:85: error: cannot find 'ICRNL' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                                     `- error: cannot find 'ICRNL' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:11: error: cannot find 'tcsetattr' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:27: error: cannot find 'TCSANOW' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |                           `- error: cannot find 'TCSANOW' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:199:14: error: cannot find 'winsize' in scope
197 |     }
198 |
199 |     var ws = winsize()
    |              `- error: cannot find 'winsize' in scope
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
201 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:11: error: cannot find 'ioctl' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |           `- error: cannot find 'ioctl' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:23: error: cannot find 'TIOCGWINSZ' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |                       `- error: cannot find 'TIOCGWINSZ' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:206:24: error: cannot find 'EINVAL' in scope
204 |     let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
205 |     guard size.width > 0 && size.height > 0 else {
206 |       throw POSIXError(EINVAL)
    |                        `- error: cannot find 'EINVAL' in scope
207 |     }
208 |     _size = Mutex(size)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:5: error: cannot find 'signal' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |     `- error: cannot find 'signal' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:12: error: cannot find 'SIGWINCH' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |            `- error: cannot find 'SIGWINCH' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:22: error: cannot find 'SIG_IGN' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |                      `- error: cannot find 'SIG_IGN' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:212:5: error: cannot find 'installCrashHandler' in scope
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
212 |     installCrashHandler()
    |     `- error: cannot find 'installCrashHandler' in scope
213 |
214 |     // Unbounded: `.bufferingNewest(N)` drops *oldest* batches when the consumer
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:224:68: error: cannot find 'SIGWINCH' in scope
222 |
223 |     self.input = VTEventStream(AsyncThrowingStream(bufferingPolicy: .unbounded) { [hIn, hOut] continuation in
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
    |                                                                    `- error: cannot find 'SIGWINCH' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:226:18: error: cannot find 'winsize' in scope
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
    |                  `- error: cannot find 'winsize' in scope
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:12: error: cannot find 'ioctl' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |            `- error: cannot find 'ioctl' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:24: error: cannot find 'TIOCGWINSZ' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |                        `- error: cannot find 'TIOCGWINSZ' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:23: error: cannot find 'pollfd' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                       `- error: cannot find 'pollfd' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:53: error: cannot find 'POLLIN' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                                                     `- error: cannot find 'POLLIN' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:243:22: error: cannot find 'poll' in scope
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
243 |             let pr = poll(&pfd, 1, 50)
    |                      `- error: cannot find 'poll' in scope
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
245 |               break
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:18: error: cannot find 'errno' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                  `- error: cannot find 'errno' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:27: error: cannot find 'EINTR' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                           `- error: cannot find 'EINTR' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:255:27: error: cannot find 'read' in scope
253 |             let events = try withUnsafeTemporaryAllocation(of: CChar.self, capacity: 8192) {
254 |               guard let baseAddress = $0.baseAddress else { throw POSIXError() }
255 |               let count = read(hIn, baseAddress, $0.count)
    |                           `- error: cannot find 'read' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:20: error: cannot find 'errno' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                    `- error: cannot find 'errno' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:29: error: cannot find 'EINTR' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                             `- error: cannot find 'EINTR' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:344:9: error: cannot find 'Darwin' in scope
342 |     _ = Musl.write(self.hOut, "\u{1B}[?1006h", 8)
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
    |         `- error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:345:9: error: cannot find 'Darwin' in scope
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
    |         `- error: cannot find 'Darwin' in scope
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:346:9: error: cannot find 'Darwin' in scope
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
    |         `- error: cannot find 'Darwin' in scope
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
348 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:347:9: error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
    |         `- error: cannot find 'Darwin' in scope
348 | #endif
349 |   }
/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/VirtualTerminal/Platform/POSIXTerminal.swift:354:9: error: cannot find 'tcsetattr' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |         `- error: cannot find 'tcsetattr' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:354:30: error: cannot find 'TCSANOW' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |                              `- error: cannot find 'TCSANOW' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:368:9: error: cannot find 'Darwin' in scope
366 |     _ = Musl.write(self.hOut, "\u{1B}[?1006l", 8)
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
    |         `- error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:369:9: error: cannot find 'Darwin' in scope
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
    |         `- error: cannot find 'Darwin' in scope
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:370:9: error: cannot find 'Darwin' in scope
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
    |         `- error: cannot find 'Darwin' in scope
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
372 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:371:9: error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
    |         `- error: cannot find 'Darwin' in scope
372 | #endif
373 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:421:20: error: cannot find 'unistd' in scope
419 |     let pfnWrite = Darwin.write
420 | #else
421 |     let pfnWrite = unistd.write
    |                    `- error: cannot find 'unistd' in scope
422 | #endif
423 |     string.utf8.withContiguousStorageIfAvailable { view -> Void in
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:20: error: cannot find 'errno' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:29: error: cannot find 'EINTR' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                             `- error: cannot find 'EINTR' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:24: error: cannot find 'errno' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                        `- error: cannot find 'errno' in scope
452 |                     break
453 |                 }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:33: error: cannot find 'EINTR' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                                 `- error: cannot find 'EINTR' in scope
452 |                     break
453 |                 }
[525/641] Compiling SwiftTUI WindowsError.swift
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:91:28: error: cannot find type 'termios' in scope
 89 |   private let hIn: CInt
 90 |   private let hOut: CInt
 91 |   private let sAttributes: termios
    |                            `- error: cannot find type 'termios' in scope
 92 |
 93 |   /// Stream of terminal input events parsed from POSIX terminal input.
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:173:16: error: cannot find 'STDIN_FILENO' in scope
171 |   /// terminal is deallocated, ensuring the shell remains usable.
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
    |                `- error: cannot find 'STDIN_FILENO' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:174:17: error: cannot find 'STDOUT_FILENO' in scope
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
174 |     self.hOut = STDOUT_FILENO
    |                 `- error: cannot find 'STDOUT_FILENO' in scope
175 |
176 |     var attr: termios = termios()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:176:15: error: cannot find type 'termios' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
176 |     var attr: termios = termios()
    |               `- error: cannot find type 'termios' in scope
177 |     guard tcgetattr(hIn, &attr) == 0 else {
178 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:177:11: error: cannot find 'tcgetattr' in scope
175 |
176 |     var attr: termios = termios()
177 |     guard tcgetattr(hIn, &attr) == 0 else {
    |           `- error: cannot find 'tcgetattr' in scope
178 |       throw POSIXError()
179 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:18: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                  `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:27: error: cannot find 'ICANON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                           `- error: cannot find 'ICANON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:37: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                     `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:46: error: cannot find 'ECHO' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                              `- error: cannot find 'ECHO' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:54: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                      `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:63: error: cannot find 'IXON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                               `- error: cannot find 'IXON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:71: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                       `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:80: error: cannot find 'ICRNL' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                `- error: cannot find 'ICRNL' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:89: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                         `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:98: error: cannot find 'ISIG' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                                  `- error: cannot find 'ISIG' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:23: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                       `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:32: error: cannot find 'ICANON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                `- error: cannot find 'ICANON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:42: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                          `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:51: error: cannot find 'ECHO' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                   `- error: cannot find 'ECHO' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:59: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                           `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:68: error: cannot find 'IXON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                    `- error: cannot find 'IXON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:76: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                            `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:85: error: cannot find 'ICRNL' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                                     `- error: cannot find 'ICRNL' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:11: error: cannot find 'tcsetattr' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:27: error: cannot find 'TCSANOW' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |                           `- error: cannot find 'TCSANOW' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:199:14: error: cannot find 'winsize' in scope
197 |     }
198 |
199 |     var ws = winsize()
    |              `- error: cannot find 'winsize' in scope
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
201 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:11: error: cannot find 'ioctl' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |           `- error: cannot find 'ioctl' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:23: error: cannot find 'TIOCGWINSZ' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |                       `- error: cannot find 'TIOCGWINSZ' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:206:24: error: cannot find 'EINVAL' in scope
204 |     let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
205 |     guard size.width > 0 && size.height > 0 else {
206 |       throw POSIXError(EINVAL)
    |                        `- error: cannot find 'EINVAL' in scope
207 |     }
208 |     _size = Mutex(size)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:5: error: cannot find 'signal' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |     `- error: cannot find 'signal' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:12: error: cannot find 'SIGWINCH' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |            `- error: cannot find 'SIGWINCH' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:22: error: cannot find 'SIG_IGN' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |                      `- error: cannot find 'SIG_IGN' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:212:5: error: cannot find 'installCrashHandler' in scope
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
212 |     installCrashHandler()
    |     `- error: cannot find 'installCrashHandler' in scope
213 |
214 |     // Unbounded: `.bufferingNewest(N)` drops *oldest* batches when the consumer
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:224:68: error: cannot find 'SIGWINCH' in scope
222 |
223 |     self.input = VTEventStream(AsyncThrowingStream(bufferingPolicy: .unbounded) { [hIn, hOut] continuation in
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
    |                                                                    `- error: cannot find 'SIGWINCH' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:226:18: error: cannot find 'winsize' in scope
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
    |                  `- error: cannot find 'winsize' in scope
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:12: error: cannot find 'ioctl' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |            `- error: cannot find 'ioctl' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:24: error: cannot find 'TIOCGWINSZ' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |                        `- error: cannot find 'TIOCGWINSZ' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:23: error: cannot find 'pollfd' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                       `- error: cannot find 'pollfd' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:53: error: cannot find 'POLLIN' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                                                     `- error: cannot find 'POLLIN' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:243:22: error: cannot find 'poll' in scope
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
243 |             let pr = poll(&pfd, 1, 50)
    |                      `- error: cannot find 'poll' in scope
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
245 |               break
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:18: error: cannot find 'errno' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                  `- error: cannot find 'errno' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:27: error: cannot find 'EINTR' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                           `- error: cannot find 'EINTR' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:255:27: error: cannot find 'read' in scope
253 |             let events = try withUnsafeTemporaryAllocation(of: CChar.self, capacity: 8192) {
254 |               guard let baseAddress = $0.baseAddress else { throw POSIXError() }
255 |               let count = read(hIn, baseAddress, $0.count)
    |                           `- error: cannot find 'read' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:20: error: cannot find 'errno' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                    `- error: cannot find 'errno' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:29: error: cannot find 'EINTR' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                             `- error: cannot find 'EINTR' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:344:9: error: cannot find 'Darwin' in scope
342 |     _ = Musl.write(self.hOut, "\u{1B}[?1006h", 8)
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
    |         `- error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:345:9: error: cannot find 'Darwin' in scope
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
    |         `- error: cannot find 'Darwin' in scope
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:346:9: error: cannot find 'Darwin' in scope
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
    |         `- error: cannot find 'Darwin' in scope
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
348 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:347:9: error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
    |         `- error: cannot find 'Darwin' in scope
348 | #endif
349 |   }
/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/VirtualTerminal/Platform/POSIXTerminal.swift:354:9: error: cannot find 'tcsetattr' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |         `- error: cannot find 'tcsetattr' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:354:30: error: cannot find 'TCSANOW' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |                              `- error: cannot find 'TCSANOW' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:368:9: error: cannot find 'Darwin' in scope
366 |     _ = Musl.write(self.hOut, "\u{1B}[?1006l", 8)
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
    |         `- error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:369:9: error: cannot find 'Darwin' in scope
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
    |         `- error: cannot find 'Darwin' in scope
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:370:9: error: cannot find 'Darwin' in scope
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
    |         `- error: cannot find 'Darwin' in scope
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
372 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:371:9: error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
    |         `- error: cannot find 'Darwin' in scope
372 | #endif
373 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:421:20: error: cannot find 'unistd' in scope
419 |     let pfnWrite = Darwin.write
420 | #else
421 |     let pfnWrite = unistd.write
    |                    `- error: cannot find 'unistd' in scope
422 | #endif
423 |     string.utf8.withContiguousStorageIfAvailable { view -> Void in
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:20: error: cannot find 'errno' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:29: error: cannot find 'EINTR' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                             `- error: cannot find 'EINTR' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:24: error: cannot find 'errno' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                        `- error: cannot find 'errno' in scope
452 |                     break
453 |                 }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:33: error: cannot find 'EINTR' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                                 `- error: cannot find 'EINTR' in scope
452 |                     break
453 |                 }
[526/641] Compiling SwiftTUI PinnedScrollableViews.swift
[527/641] Compiling SwiftTUI AllowsHitTesting.swift
[528/641] Compiling SwiftTUI Background.swift
[529/641] Compiling SwiftTUI Bold.swift
[530/641] Compiling SwiftTUI Border.swift
[531/641] Compiling SwiftTUI Disabled.swift
[532/641] Compiling SwiftTUI DragGesture.swift
[533/641] Compiling SwiftTUI EquatableView.swift
[534/641] Compiling SwiftTUI FixedFrame.swift
[535/641] Compiling SwiftTUI FixedSizeLayoutPriority.swift
[536/641] Compiling SwiftTUI FlexibleFrame.swift
[537/641] Compiling SwiftTUI Focused.swift
[538/641] Compiling SwiftTUI ForegroundColor.swift
[539/641] Compiling SwiftTUI Hidden.swift
[540/641] Compiling SwiftTUI HitTestPassthrough.swift
[541/641] Compiling SwiftTUI Italic.swift
[542/641] Compiling SwiftTUI LineLimit.swift
[543/641] Compiling SwiftTUI OnAppear.swift
[544/641] Compiling SwiftTUI OnChange.swift
[545/641] Compiling SwiftTUI OnDisappear.swift
[546/641] Compiling SwiftTUI OnHover.swift
[547/641] Compiling SwiftTUI OnTapGesture.swift
[548/641] Compiling SwiftTUI OverlayBackground.swift
[549/641] Compiling SwiftTUI Element+logTree.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[550/641] Compiling SwiftTUI Node+logTree.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[551/641] Compiling SwiftTUI log.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[552/641] Compiling SwiftTUI AttributeScopes+SwiftTUIAttributes.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[553/641] Compiling SwiftTUI Cell.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[554/641] Compiling SwiftTUI CellAttributes.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[555/641] Compiling SwiftTUI Color.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[556/641] Compiling SwiftTUI Edges.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[557/641] Compiling SwiftTUI Extended.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[558/641] Compiling SwiftTUI Position.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[559/641] Compiling SwiftTUI Rect.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[560/641] Compiling SwiftTUI EscapeSequence.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[561/641] Compiling SwiftTUI Layer.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[562/641] Compiling SwiftTUI LayerDrawing.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[563/641] Compiling SwiftTUI Renderer.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[564/641] Compiling SwiftTUI ScreenBuffer.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[565/641] Compiling SwiftTUI Size.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[566/641] Compiling SwiftTUI Element.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[567/641] Compiling SwiftTUI Window.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[568/641] Compiling SwiftTUI Application.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[569/641] Compiling SwiftTUI Clipboard.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[570/641] Compiling SwiftTUI DismissAction.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[571/641] Compiling SwiftTUI FrameScheduler.swift
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:35: error: cannot find 'write' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                   `- error: cannot find 'write' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:41: error: cannot find 'STDOUT_FILENO' in scope
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                         `- error: cannot find 'STDOUT_FILENO' in scope
127 |             renderer.stop()
128 |             self.vtRenderer = nil
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:126:60: error: generic parameter 'U' could not be inferred
124 |             let seq =
125 |                 "\u{1B}[?25h\u{1B}[?1003l\u{1B}[?1002l\u{1B}[?1000l\u{1B}[?1006l\u{1B}[?1049l\u{1B}[?7h"
126 |             seq.withCString { _ = write(STDOUT_FILENO, $0, numericCast(strlen($0))) }
    |                                                            `- error: generic parameter 'U' could not be inferred
127 |             renderer.stop()
128 |             self.vtRenderer = nil
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:783:18: error: cannot find 'STDIN_FILENO' in scope
781 |         _ = FlushConsoleInputBuffer(handle)
782 |         #else
783 |         let fd = STDIN_FILENO
    |                  `- error: cannot find 'STDIN_FILENO' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:21: error: cannot find 'fcntl' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:784:31: error: cannot find 'F_GETFL' in scope
782 |         #else
783 |         let fd = STDIN_FILENO
784 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:13: error: cannot find 'fcntl' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |             `- error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:23: error: cannot find 'F_SETFL' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                       `- error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:786:40: error: cannot find 'O_NONBLOCK' in scope
784 |         let flags = fcntl(fd, F_GETFL)
785 |         guard flags >= 0 else { return }
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
    |                                        `- error: cannot find 'O_NONBLOCK' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:788:15: error: cannot find 'read' in scope
786 |         _ = fcntl(fd, F_SETFL, flags | O_NONBLOCK)
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
    |               `- error: cannot find 'read' in scope
789 |         _ = fcntl(fd, F_SETFL, flags)
790 |         #endif
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:13: error: cannot find 'fcntl' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |             `- error: cannot find 'fcntl' in scope
790 |         #endif
791 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/Host/Application.swift:789:23: error: cannot find 'F_SETFL' in scope
787 |         var buf = [UInt8](repeating: 0, count: 256)
788 |         while read(fd, &buf, buf.count) > 0 {}
789 |         _ = fcntl(fd, F_SETFL, flags)
    |                       `- error: cannot find 'F_SETFL' in scope
790 |         #endif
791 |     }
[572/641] Compiling SwiftTUI Padding.swift
[573/641] Compiling SwiftTUI ScrollViewReader.swift
[574/641] Compiling SwiftTUI Selectable.swift
[575/641] Compiling SwiftTUI SelectionDisabled.swift
[576/641] Compiling SwiftTUI SetEnvironment.swift
[577/641] Compiling SwiftTUI Strikethrough.swift
[578/641] Compiling SwiftTUI Tag.swift
[579/641] Compiling SwiftTUI TaskModifier.swift
[580/641] Compiling SwiftTUI TruncationMode.swift
[581/641] Compiling SwiftTUI Underline.swift
[582/641] Compiling SwiftTUI Visibility.swift
[583/641] Compiling SwiftTUI NavigationContext.swift
[584/641] Compiling SwiftTUI NavigationLink.swift
[585/641] Compiling SwiftTUI NavigationPath.swift
[586/641] Compiling SwiftTUI NavigationStack.swift
[587/641] Compiling SwiftTUI ToolbarContent.swift
[588/641] Compiling SwiftTUI ToolbarItemPlacement.swift
[589/641] Compiling SwiftTUI View+Toolbar.swift
[590/641] Compiling SwiftTUI View+NavigationDestination.swift
[591/641] Compiling SwiftTUI View+NavigationTitle.swift
[592/641] Compiling SwiftTUI Optional+View.swift
[593/641] Compiling SwiftTUI PresentationModifiers.swift
[594/641] Compiling SwiftTUI View+Alert.swift
[595/641] Compiling SwiftTUI MenuStyle.swift
[596/641] Compiling SwiftTUI PopupAnchorButton.swift
[597/641] Compiling SwiftTUI PopupPresenter.swift
[598/641] Compiling SwiftTUI Picker.swift
[599/641] Compiling SwiftTUI PickerStyle.swift
[600/641] Compiling SwiftTUI ProgressView.swift
[601/641] Compiling SwiftTUI ScrollView.swift
[602/641] Compiling SwiftTUI SecureField.swift
[603/641] Compiling SwiftTUI Slider.swift
[604/641] Compiling SwiftTUI Spacer.swift
[605/641] Compiling SwiftTUI Stepper.swift
[606/641] Compiling SwiftTUI Text.swift
[607/641] Compiling SwiftTUI TextEdit.swift
[608/641] Compiling SwiftTUI TextField.swift
[609/641] Compiling SwiftTUI TextFieldStyle.swift
[610/641] Compiling SwiftTUI Toggle.swift
[611/641] Compiling SwiftTUI ToggleStyle.swift
[612/641] Compiling SwiftTUI WidthReader.swift
[613/641] Compiling SwiftTUI EmptyView.swift
[614/641] Compiling SwiftTUI ForEach.swift
[615/641] Compiling SwiftTUI Group.swift
[616/641] Compiling SwiftTUI GridItem.swift
[617/641] Compiling SwiftTUI LazyVGrid.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[618/641] Emitting module SwiftTUI
/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/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/VirtualTerminal/Platform/POSIXTerminal.swift:91:28: error: cannot find type 'termios' in scope
 89 |   private let hIn: CInt
 90 |   private let hOut: CInt
 91 |   private let sAttributes: termios
    |                            `- error: cannot find type 'termios' in scope
 92 |
 93 |   /// Stream of terminal input events parsed from POSIX terminal input.
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:173:16: error: cannot find 'STDIN_FILENO' in scope
171 |   /// terminal is deallocated, ensuring the shell remains usable.
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
    |                `- error: cannot find 'STDIN_FILENO' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:174:17: error: cannot find 'STDOUT_FILENO' in scope
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
174 |     self.hOut = STDOUT_FILENO
    |                 `- error: cannot find 'STDOUT_FILENO' in scope
175 |
176 |     var attr: termios = termios()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:176:15: error: cannot find type 'termios' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
176 |     var attr: termios = termios()
    |               `- error: cannot find type 'termios' in scope
177 |     guard tcgetattr(hIn, &attr) == 0 else {
178 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:177:11: error: cannot find 'tcgetattr' in scope
175 |
176 |     var attr: termios = termios()
177 |     guard tcgetattr(hIn, &attr) == 0 else {
    |           `- error: cannot find 'tcgetattr' in scope
178 |       throw POSIXError()
179 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:18: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                  `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:27: error: cannot find 'ICANON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                           `- error: cannot find 'ICANON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:37: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                     `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:46: error: cannot find 'ECHO' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                              `- error: cannot find 'ECHO' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:54: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                      `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:63: error: cannot find 'IXON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                               `- error: cannot find 'IXON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:71: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                       `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:80: error: cannot find 'ICRNL' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                `- error: cannot find 'ICRNL' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:89: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                         `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:98: error: cannot find 'ISIG' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                                  `- error: cannot find 'ISIG' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:23: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                       `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:32: error: cannot find 'ICANON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                `- error: cannot find 'ICANON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:42: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                          `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:51: error: cannot find 'ECHO' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                   `- error: cannot find 'ECHO' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:59: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                           `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:68: error: cannot find 'IXON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                    `- error: cannot find 'IXON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:76: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                            `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:85: error: cannot find 'ICRNL' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                                     `- error: cannot find 'ICRNL' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:11: error: cannot find 'tcsetattr' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:27: error: cannot find 'TCSANOW' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |                           `- error: cannot find 'TCSANOW' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:199:14: error: cannot find 'winsize' in scope
197 |     }
198 |
199 |     var ws = winsize()
    |              `- error: cannot find 'winsize' in scope
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
201 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:11: error: cannot find 'ioctl' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |           `- error: cannot find 'ioctl' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:23: error: cannot find 'TIOCGWINSZ' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |                       `- error: cannot find 'TIOCGWINSZ' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:206:24: error: cannot find 'EINVAL' in scope
204 |     let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
205 |     guard size.width > 0 && size.height > 0 else {
206 |       throw POSIXError(EINVAL)
    |                        `- error: cannot find 'EINVAL' in scope
207 |     }
208 |     _size = Mutex(size)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:5: error: cannot find 'signal' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |     `- error: cannot find 'signal' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:12: error: cannot find 'SIGWINCH' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |            `- error: cannot find 'SIGWINCH' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:22: error: cannot find 'SIG_IGN' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |                      `- error: cannot find 'SIG_IGN' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:212:5: error: cannot find 'installCrashHandler' in scope
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
212 |     installCrashHandler()
    |     `- error: cannot find 'installCrashHandler' in scope
213 |
214 |     // Unbounded: `.bufferingNewest(N)` drops *oldest* batches when the consumer
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:224:68: error: cannot find 'SIGWINCH' in scope
222 |
223 |     self.input = VTEventStream(AsyncThrowingStream(bufferingPolicy: .unbounded) { [hIn, hOut] continuation in
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
    |                                                                    `- error: cannot find 'SIGWINCH' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:226:18: error: cannot find 'winsize' in scope
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
    |                  `- error: cannot find 'winsize' in scope
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:12: error: cannot find 'ioctl' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |            `- error: cannot find 'ioctl' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:24: error: cannot find 'TIOCGWINSZ' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |                        `- error: cannot find 'TIOCGWINSZ' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:23: error: cannot find 'pollfd' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                       `- error: cannot find 'pollfd' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:53: error: cannot find 'POLLIN' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                                                     `- error: cannot find 'POLLIN' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:243:22: error: cannot find 'poll' in scope
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
243 |             let pr = poll(&pfd, 1, 50)
    |                      `- error: cannot find 'poll' in scope
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
245 |               break
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:18: error: cannot find 'errno' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                  `- error: cannot find 'errno' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:27: error: cannot find 'EINTR' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                           `- error: cannot find 'EINTR' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:255:27: error: cannot find 'read' in scope
253 |             let events = try withUnsafeTemporaryAllocation(of: CChar.self, capacity: 8192) {
254 |               guard let baseAddress = $0.baseAddress else { throw POSIXError() }
255 |               let count = read(hIn, baseAddress, $0.count)
    |                           `- error: cannot find 'read' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:20: error: cannot find 'errno' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                    `- error: cannot find 'errno' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:29: error: cannot find 'EINTR' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                             `- error: cannot find 'EINTR' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:344:9: error: cannot find 'Darwin' in scope
342 |     _ = Musl.write(self.hOut, "\u{1B}[?1006h", 8)
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
    |         `- error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:345:9: error: cannot find 'Darwin' in scope
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
    |         `- error: cannot find 'Darwin' in scope
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:346:9: error: cannot find 'Darwin' in scope
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
    |         `- error: cannot find 'Darwin' in scope
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
348 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:347:9: error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
    |         `- error: cannot find 'Darwin' in scope
348 | #endif
349 |   }
[619/641] Compiling SwiftTUI View+ConfirmationDialog.swift
[620/641] Compiling SwiftTUI View+SheetPopover.swift
[621/641] Compiling SwiftTUI Section.swift
[622/641] Compiling SwiftTUI Alignment.swift
[623/641] Compiling SwiftTUI Axis.swift
[624/641] Compiling SwiftTUI HStack.swift
[625/641] Compiling SwiftTUI VStack.swift
[626/641] Compiling SwiftTUI ZStack.swift
[627/641] Compiling SwiftTUI StateEquality.swift
[628/641] Compiling SwiftTUI TupleView.swift
[629/641] Compiling SwiftTUI ViewBuilder.swift
[630/641] Compiling SwiftTUI _ConditionalView.swift
[631/641] Compiling SwiftTUI TextMetrics.swift
[632/641] Compiling SwiftTUI VTBuffer.swift
[633/641] Compiling SwiftTUI VTCell.swift
[634/641] Compiling SwiftTUI VTPosition.swift
[635/641] Compiling SwiftTUI VTStyle.swift
[636/641] Compiling SwiftTUI Duration+Extensions.swift
[637/641] Compiling SwiftTUI Task+Extensions.swift
[638/641] Compiling SwiftTUI VTEvent.swift
[639/641] Compiling SwiftTUI VTEventStream.swift
[640/641] Compiling SwiftTUI VTInputParser.swift
[641/641] Compiling SwiftTUI Event+POSIX.swift
BUILD FAILURE 6.1 android