The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CommandLineKit, reference 1.1.4 (d0681f), with Swift 6.1 for Android on 18 Nov 2026 17:34:19 UTC.

Build Command

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

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/objecthub/swift-commandlinekit.git
Reference: 1.1.4
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/objecthub/swift-commandlinekit
 * tag               1.1.4      -> FETCH_HEAD
HEAD is now at d0681f1 Finalize release 1.1.4.
Cloned https://github.com/objecthub/swift-commandlinekit.git
Revision (git rev-parse @):
d0681f1876b37acf41810a6a26addfbb97c15bc2
SUCCESS checkout https://github.com/objecthub/swift-commandlinekit.git at 1.1.4
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/objecthub/swift-commandlinekit.git
https://github.com/objecthub/swift-commandlinekit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-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 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:4a2fa435ac333753e63ed6c656fe70fcece760f0601ff6567c222f81f55cb110
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/26] Emitting module CommandLineKit
/host/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:53:14: warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
42 |
43 |   /// The description of the error.
44 |   public enum Kind {
   |               `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
45 |     case unknownFlag(String)
46 |     case missingValue
   :
51 |
52 |   /// The error kind.
53 |   public let kind: Kind
   |              `- warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
54 |
55 |   /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
/host/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:57:14: warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
55 |   /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
56 |   /// parsing the command-line as a whole.
57 |   public let flag: Flag?
   |              `- warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
58 |
59 |   /// Initializes a new flag error from an error kind and a corresponding flag.
/host/spi-builder-workspace/Sources/CommandLineKit/Flag.swift:46:14: note: class 'Flag' does not conform to the 'Sendable' protocol
 44 | /// Method `isOption` can be used to distinguish between options and arguments.
 45 | ///
 46 | public class Flag {
    |              `- note: class 'Flag' does not conform to the 'Sendable' protocol
 47 |
 48 |   /// The short name of the flag.
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:75:35: error: cannot find 'STDIN_FILENO' in scope
 73 |
 74 |   /// Initializer
 75 |   public init?(inputFile: Int32 = STDIN_FILENO,
    |                                   `- error: cannot find 'STDIN_FILENO' in scope
 76 |                outputFile: Int32 = STDOUT_FILENO,
 77 |                completionCallback: ((String) -> [String])? = nil,
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:76:36: error: cannot find 'STDOUT_FILENO' in scope
 74 |   /// Initializer
 75 |   public init?(inputFile: Int32 = STDIN_FILENO,
 76 |                outputFile: Int32 = STDOUT_FILENO,
    |                                    `- error: cannot find 'STDOUT_FILENO' in scope
 77 |                completionCallback: ((String) -> [String])? = nil,
 78 |                hintsCallback: ((String) -> (String, TextProperties)?)? = nil) {
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:63:27: error: cannot find 'termios' in scope
 61 |     print(prompt, terminator: "")
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
    |                           `- error: cannot find 'termios' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:64:5: error: cannot find 'tcgetattr' in scope
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
    |     `- error: cannot find 'tcgetattr' in scope
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:64:15: error: cannot find 'STDIN_FILENO' in scope
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
    |               `- error: cannot find 'STDIN_FILENO' in scope
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:28: error: cannot find 'tcflag_t' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                            `- error: cannot find 'tcflag_t' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:37: error: cannot find 'ECHO' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                     `- error: cannot find 'ECHO' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:44: error: cannot find 'ICANON' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                            `- error: cannot find 'ICANON' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:53: error: cannot find 'ISIG' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                                     `- error: cannot find 'ISIG' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:5: error: cannot find 'tcsetattr' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |     `- error: cannot find 'tcsetattr' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:15: error: cannot find 'STDIN_FILENO' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |               `- error: cannot find 'STDIN_FILENO' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:29: error: cannot find 'TCSANOW' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |                             `- error: cannot find 'TCSANOW' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:11: error: cannot find 'tcsetattr' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |           `- error: cannot find 'tcsetattr' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:21: error: cannot find 'STDIN_FILENO' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                     `- error: cannot find 'STDIN_FILENO' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:35: error: cannot find 'TCSANOW' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                                   `- error: cannot find 'TCSANOW' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:62:12: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 60 |                                     replacementChar: Character = "•") throws -> String {
 61 |     print(prompt, terminator: "")
 62 |     fflush(stdout)
    |            `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 63 |     var originalTermios = termios()
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:213:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
211 |           if !allowEmpty && characters.isEmpty {
212 |             print("\u{07}", terminator: "")  // BEL — signal that empty is not allowed
213 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
214 |             continue
215 |           }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:245:22: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
243 |             case .arrowUp, .arrowDown:
244 |               print("\u{07}", terminator: "") // BEL
245 |               fflush(stdout)
    |                      `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
246 |               break
247 |             case .unknown:
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:274:18: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
272 |           characters.removeAll()
273 |           cursorIndex = 0
274 |           fflush(stdout)
    |                  `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
275 |           continue
276 |         // Printable character
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:292:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
290 |           if let max = maxLength, characters.count >= max {
291 |             print("\u{07}", terminator: "")  // BEL
292 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
293 |             continue
294 |           }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:301:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
299 |             // Cursor is at the end — simple append, no redraw needed
300 |             print("\(replacementChar)", terminator: "")
301 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
302 |           } else {
303 |             // Cursor is in the middle — redraw replacement characters from insertion point
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
[5/28] Compiling CommandLineKit String.swift
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:63:27: error: cannot find 'termios' in scope
 61 |     print(prompt, terminator: "")
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
    |                           `- error: cannot find 'termios' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:64:5: error: cannot find 'tcgetattr' in scope
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
    |     `- error: cannot find 'tcgetattr' in scope
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:64:15: error: cannot find 'STDIN_FILENO' in scope
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
    |               `- error: cannot find 'STDIN_FILENO' in scope
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:28: error: cannot find 'tcflag_t' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                            `- error: cannot find 'tcflag_t' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:37: error: cannot find 'ECHO' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                     `- error: cannot find 'ECHO' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:44: error: cannot find 'ICANON' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                            `- error: cannot find 'ICANON' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:53: error: cannot find 'ISIG' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                                     `- error: cannot find 'ISIG' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:5: error: cannot find 'tcsetattr' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |     `- error: cannot find 'tcsetattr' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:15: error: cannot find 'STDIN_FILENO' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |               `- error: cannot find 'STDIN_FILENO' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:29: error: cannot find 'TCSANOW' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |                             `- error: cannot find 'TCSANOW' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:71:7: error: cannot find 'tcsetattr' in scope
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |       `- error: cannot find 'tcsetattr' in scope
 72 |       print()
 73 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:71:17: error: cannot find 'STDIN_FILENO' in scope
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                 `- error: cannot find 'STDIN_FILENO' in scope
 72 |       print()
 73 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:71:31: error: cannot find 'TCSANOW' in scope
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                               `- error: cannot find 'TCSANOW' in scope
 72 |       print()
 73 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:89:13: error: cannot find 'read' in scope
 87 |     func readUnicodeScalar() -> (scalar: Unicode.Scalar, bytes: [UInt8])? {
 88 |       var firstByte: UInt8 = 0
 89 |       guard read(STDIN_FILENO, &firstByte, 1) == 1 else {
    |             `- error: cannot find 'read' in scope
 90 |         return nil
 91 |       }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:89:18: error: cannot find 'STDIN_FILENO' in scope
 87 |     func readUnicodeScalar() -> (scalar: Unicode.Scalar, bytes: [UInt8])? {
 88 |       var firstByte: UInt8 = 0
 89 |       guard read(STDIN_FILENO, &firstByte, 1) == 1 else {
    |                  `- error: cannot find 'STDIN_FILENO' in scope
 90 |         return nil
 91 |       }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:100:15: error: cannot find 'read' in scope
 98 |       for _ in 1..<length {
 99 |         var contByte: UInt8 = 0
100 |         guard read(STDIN_FILENO, &contByte, 1) == 1 else { return nil }
    |               `- error: cannot find 'read' in scope
101 |           // Continuation bytes must be 10xxxxxx
102 |         guard (contByte & 0xC0) == 0x80 else { return nil }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:100:20: error: cannot find 'STDIN_FILENO' in scope
 98 |       for _ in 1..<length {
 99 |         var contByte: UInt8 = 0
100 |         guard read(STDIN_FILENO, &contByte, 1) == 1 else { return nil }
    |                    `- error: cannot find 'STDIN_FILENO' in scope
101 |           // Continuation bytes must be 10xxxxxx
102 |         guard (contByte & 0xC0) == 0x80 else { return nil }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:137:13: error: cannot find 'read' in scope
135 |     func readEscapeSequence() -> EscapeResult {
136 |       var byte: UInt8 = 0
137 |       guard read(STDIN_FILENO, &byte, 1) == 1 else {
    |             `- error: cannot find 'read' in scope
138 |         return .unknown
139 |       }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:137:18: error: cannot find 'STDIN_FILENO' in scope
135 |     func readEscapeSequence() -> EscapeResult {
136 |       var byte: UInt8 = 0
137 |       guard read(STDIN_FILENO, &byte, 1) == 1 else {
    |                  `- error: cannot find 'STDIN_FILENO' in scope
138 |         return .unknown
139 |       }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:143:17: error: cannot find 'read' in scope
141 |         case UInt8(ascii: "["):
142 |           // CSI sequence — read the final byte
143 |           guard read(STDIN_FILENO, &byte, 1) == 1 else { return .unknown }
    |                 `- error: cannot find 'read' in scope
144 |           // Drain extended sequences e.g. ESC [ 1 ~
145 |           if byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9") {
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:143:22: error: cannot find 'STDIN_FILENO' in scope
141 |         case UInt8(ascii: "["):
142 |           // CSI sequence — read the final byte
143 |           guard read(STDIN_FILENO, &byte, 1) == 1 else { return .unknown }
    |                      `- error: cannot find 'STDIN_FILENO' in scope
144 |           // Drain extended sequences e.g. ESC [ 1 ~
145 |           if byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9") {
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:147:17: error: cannot find 'read' in scope
145 |           if byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9") {
146 |             var extra: UInt8 = 0
147 |             _ = read(STDIN_FILENO, &extra, 1)
    |                 `- error: cannot find 'read' in scope
148 |             return .unknown
149 |           }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:147:22: error: cannot find 'STDIN_FILENO' in scope
145 |           if byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9") {
146 |             var extra: UInt8 = 0
147 |             _ = read(STDIN_FILENO, &extra, 1)
    |                      `- error: cannot find 'STDIN_FILENO' in scope
148 |             return .unknown
149 |           }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:11: error: cannot find 'tcsetattr' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |           `- error: cannot find 'tcsetattr' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:21: error: cannot find 'STDIN_FILENO' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                     `- error: cannot find 'STDIN_FILENO' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:35: error: cannot find 'TCSANOW' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                                   `- error: cannot find 'TCSANOW' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:62:12: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 60 |                                     replacementChar: Character = "•") throws -> String {
 61 |     print(prompt, terminator: "")
 62 |     fflush(stdout)
    |            `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 63 |     var originalTermios = termios()
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:171:14: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
169 |       guard n > 0 else { return }
170 |       print("\u{1B}[\(n)D", terminator: "")
171 |       fflush(stdout)
    |              `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
172 |     }
173 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:178:14: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
176 |       guard n > 0 else { return }
177 |       print("\u{1B}[\(n)C", terminator: "")
178 |       fflush(stdout)
    |              `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
179 |     }
180 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:189:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
187 |         print(String(repeating: replacementChar, count: suffixCount), terminator: "")
188 |         print(String(repeating: " ", count: replacementWidth), terminator: "")
189 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
190 |         cursorLeft((suffixCount + 1) * replacementWidth)
191 |       } else {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:194:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
192 |         // Insertion: overwrite old replacement characters and add a new one at the end
193 |         print(String(repeating: replacementChar, count: suffixCount + 1), terminator: "")
194 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
195 |         cursorLeft(suffixCount * replacementWidth)
196 |       }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:213:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
211 |           if !allowEmpty && characters.isEmpty {
212 |             print("\u{07}", terminator: "")  // BEL — signal that empty is not allowed
213 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
214 |             continue
215 |           }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:245:22: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
243 |             case .arrowUp, .arrowDown:
244 |               print("\u{07}", terminator: "") // BEL
245 |               fflush(stdout)
    |                      `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
246 |               break
247 |             case .unknown:
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:274:18: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
272 |           characters.removeAll()
273 |           cursorIndex = 0
274 |           fflush(stdout)
    |                  `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
275 |           continue
276 |         // Printable character
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:292:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
290 |           if let max = maxLength, characters.count >= max {
291 |             print("\u{07}", terminator: "")  // BEL
292 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
293 |             continue
294 |           }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:301:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
299 |             // Cursor is at the end — simple append, no redraw needed
300 |             print("\(replacementChar)", terminator: "")
301 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
302 |           } else {
303 |             // Cursor is in the middle — redraw replacement characters from insertion point
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:325:14: error: cannot find 'winsize' in scope
323 |   /// component refers to the number of columns.
324 |   public static var size: (lines: Int, columns: Int)? {
325 |     var ws = winsize()
    |              `- error: cannot find 'winsize' in scope
326 |     if ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &ws) >= 0, ws.ws_col > 0 {
327 |       return (lines: Int(ws.ws_row), columns: Int(ws.ws_col))
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:326:8: error: cannot find 'ioctl' in scope
324 |   public static var size: (lines: Int, columns: Int)? {
325 |     var ws = winsize()
326 |     if ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &ws) >= 0, ws.ws_col > 0 {
    |        `- error: cannot find 'ioctl' in scope
327 |       return (lines: Int(ws.ws_row), columns: Int(ws.ws_col))
328 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:326:14: error: cannot find 'STDOUT_FILENO' in scope
324 |   public static var size: (lines: Int, columns: Int)? {
325 |     var ws = winsize()
326 |     if ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &ws) >= 0, ws.ws_col > 0 {
    |              `- error: cannot find 'STDOUT_FILENO' in scope
327 |       return (lines: Int(ws.ws_row), columns: Int(ws.ws_col))
328 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:326:34: error: cannot find 'TIOCGWINSZ' in scope
324 |   public static var size: (lines: Int, columns: Int)? {
325 |     var ws = winsize()
326 |     if ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &ws) >= 0, ws.ws_col > 0 {
    |                                  `- error: cannot find 'TIOCGWINSZ' in scope
327 |       return (lines: Int(ws.ws_row), columns: Int(ws.ws_col))
328 |     }
[6/28] Compiling CommandLineKit Terminal.swift
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:63:27: error: cannot find 'termios' in scope
 61 |     print(prompt, terminator: "")
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
    |                           `- error: cannot find 'termios' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:64:5: error: cannot find 'tcgetattr' in scope
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
    |     `- error: cannot find 'tcgetattr' in scope
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:64:15: error: cannot find 'STDIN_FILENO' in scope
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
    |               `- error: cannot find 'STDIN_FILENO' in scope
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:28: error: cannot find 'tcflag_t' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                            `- error: cannot find 'tcflag_t' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:37: error: cannot find 'ECHO' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                     `- error: cannot find 'ECHO' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:44: error: cannot find 'ICANON' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                            `- error: cannot find 'ICANON' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:53: error: cannot find 'ISIG' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                                     `- error: cannot find 'ISIG' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:5: error: cannot find 'tcsetattr' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |     `- error: cannot find 'tcsetattr' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:15: error: cannot find 'STDIN_FILENO' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |               `- error: cannot find 'STDIN_FILENO' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:29: error: cannot find 'TCSANOW' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |                             `- error: cannot find 'TCSANOW' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:71:7: error: cannot find 'tcsetattr' in scope
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |       `- error: cannot find 'tcsetattr' in scope
 72 |       print()
 73 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:71:17: error: cannot find 'STDIN_FILENO' in scope
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                 `- error: cannot find 'STDIN_FILENO' in scope
 72 |       print()
 73 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:71:31: error: cannot find 'TCSANOW' in scope
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                               `- error: cannot find 'TCSANOW' in scope
 72 |       print()
 73 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:89:13: error: cannot find 'read' in scope
 87 |     func readUnicodeScalar() -> (scalar: Unicode.Scalar, bytes: [UInt8])? {
 88 |       var firstByte: UInt8 = 0
 89 |       guard read(STDIN_FILENO, &firstByte, 1) == 1 else {
    |             `- error: cannot find 'read' in scope
 90 |         return nil
 91 |       }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:89:18: error: cannot find 'STDIN_FILENO' in scope
 87 |     func readUnicodeScalar() -> (scalar: Unicode.Scalar, bytes: [UInt8])? {
 88 |       var firstByte: UInt8 = 0
 89 |       guard read(STDIN_FILENO, &firstByte, 1) == 1 else {
    |                  `- error: cannot find 'STDIN_FILENO' in scope
 90 |         return nil
 91 |       }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:100:15: error: cannot find 'read' in scope
 98 |       for _ in 1..<length {
 99 |         var contByte: UInt8 = 0
100 |         guard read(STDIN_FILENO, &contByte, 1) == 1 else { return nil }
    |               `- error: cannot find 'read' in scope
101 |           // Continuation bytes must be 10xxxxxx
102 |         guard (contByte & 0xC0) == 0x80 else { return nil }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:100:20: error: cannot find 'STDIN_FILENO' in scope
 98 |       for _ in 1..<length {
 99 |         var contByte: UInt8 = 0
100 |         guard read(STDIN_FILENO, &contByte, 1) == 1 else { return nil }
    |                    `- error: cannot find 'STDIN_FILENO' in scope
101 |           // Continuation bytes must be 10xxxxxx
102 |         guard (contByte & 0xC0) == 0x80 else { return nil }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:137:13: error: cannot find 'read' in scope
135 |     func readEscapeSequence() -> EscapeResult {
136 |       var byte: UInt8 = 0
137 |       guard read(STDIN_FILENO, &byte, 1) == 1 else {
    |             `- error: cannot find 'read' in scope
138 |         return .unknown
139 |       }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:137:18: error: cannot find 'STDIN_FILENO' in scope
135 |     func readEscapeSequence() -> EscapeResult {
136 |       var byte: UInt8 = 0
137 |       guard read(STDIN_FILENO, &byte, 1) == 1 else {
    |                  `- error: cannot find 'STDIN_FILENO' in scope
138 |         return .unknown
139 |       }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:143:17: error: cannot find 'read' in scope
141 |         case UInt8(ascii: "["):
142 |           // CSI sequence — read the final byte
143 |           guard read(STDIN_FILENO, &byte, 1) == 1 else { return .unknown }
    |                 `- error: cannot find 'read' in scope
144 |           // Drain extended sequences e.g. ESC [ 1 ~
145 |           if byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9") {
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:143:22: error: cannot find 'STDIN_FILENO' in scope
141 |         case UInt8(ascii: "["):
142 |           // CSI sequence — read the final byte
143 |           guard read(STDIN_FILENO, &byte, 1) == 1 else { return .unknown }
    |                      `- error: cannot find 'STDIN_FILENO' in scope
144 |           // Drain extended sequences e.g. ESC [ 1 ~
145 |           if byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9") {
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:147:17: error: cannot find 'read' in scope
145 |           if byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9") {
146 |             var extra: UInt8 = 0
147 |             _ = read(STDIN_FILENO, &extra, 1)
    |                 `- error: cannot find 'read' in scope
148 |             return .unknown
149 |           }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:147:22: error: cannot find 'STDIN_FILENO' in scope
145 |           if byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9") {
146 |             var extra: UInt8 = 0
147 |             _ = read(STDIN_FILENO, &extra, 1)
    |                      `- error: cannot find 'STDIN_FILENO' in scope
148 |             return .unknown
149 |           }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:11: error: cannot find 'tcsetattr' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |           `- error: cannot find 'tcsetattr' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:21: error: cannot find 'STDIN_FILENO' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                     `- error: cannot find 'STDIN_FILENO' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:35: error: cannot find 'TCSANOW' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                                   `- error: cannot find 'TCSANOW' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:62:12: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 60 |                                     replacementChar: Character = "•") throws -> String {
 61 |     print(prompt, terminator: "")
 62 |     fflush(stdout)
    |            `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 63 |     var originalTermios = termios()
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:171:14: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
169 |       guard n > 0 else { return }
170 |       print("\u{1B}[\(n)D", terminator: "")
171 |       fflush(stdout)
    |              `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
172 |     }
173 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:178:14: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
176 |       guard n > 0 else { return }
177 |       print("\u{1B}[\(n)C", terminator: "")
178 |       fflush(stdout)
    |              `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
179 |     }
180 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:189:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
187 |         print(String(repeating: replacementChar, count: suffixCount), terminator: "")
188 |         print(String(repeating: " ", count: replacementWidth), terminator: "")
189 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
190 |         cursorLeft((suffixCount + 1) * replacementWidth)
191 |       } else {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:194:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
192 |         // Insertion: overwrite old replacement characters and add a new one at the end
193 |         print(String(repeating: replacementChar, count: suffixCount + 1), terminator: "")
194 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
195 |         cursorLeft(suffixCount * replacementWidth)
196 |       }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:213:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
211 |           if !allowEmpty && characters.isEmpty {
212 |             print("\u{07}", terminator: "")  // BEL — signal that empty is not allowed
213 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
214 |             continue
215 |           }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:245:22: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
243 |             case .arrowUp, .arrowDown:
244 |               print("\u{07}", terminator: "") // BEL
245 |               fflush(stdout)
    |                      `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
246 |               break
247 |             case .unknown:
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:274:18: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
272 |           characters.removeAll()
273 |           cursorIndex = 0
274 |           fflush(stdout)
    |                  `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
275 |           continue
276 |         // Printable character
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:292:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
290 |           if let max = maxLength, characters.count >= max {
291 |             print("\u{07}", terminator: "")  // BEL
292 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
293 |             continue
294 |           }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:301:20: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
299 |             // Cursor is at the end — simple append, no redraw needed
300 |             print("\(replacementChar)", terminator: "")
301 |             fflush(stdout)
    |                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
302 |           } else {
303 |             // Cursor is in the middle — redraw replacement characters from insertion point
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:325:14: error: cannot find 'winsize' in scope
323 |   /// component refers to the number of columns.
324 |   public static var size: (lines: Int, columns: Int)? {
325 |     var ws = winsize()
    |              `- error: cannot find 'winsize' in scope
326 |     if ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &ws) >= 0, ws.ws_col > 0 {
327 |       return (lines: Int(ws.ws_row), columns: Int(ws.ws_col))
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:326:8: error: cannot find 'ioctl' in scope
324 |   public static var size: (lines: Int, columns: Int)? {
325 |     var ws = winsize()
326 |     if ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &ws) >= 0, ws.ws_col > 0 {
    |        `- error: cannot find 'ioctl' in scope
327 |       return (lines: Int(ws.ws_row), columns: Int(ws.ws_col))
328 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:326:14: error: cannot find 'STDOUT_FILENO' in scope
324 |   public static var size: (lines: Int, columns: Int)? {
325 |     var ws = winsize()
326 |     if ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &ws) >= 0, ws.ws_col > 0 {
    |              `- error: cannot find 'STDOUT_FILENO' in scope
327 |       return (lines: Int(ws.ws_row), columns: Int(ws.ws_col))
328 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:326:34: error: cannot find 'TIOCGWINSZ' in scope
324 |   public static var size: (lines: Int, columns: Int)? {
325 |     var ws = winsize()
326 |     if ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &ws) >= 0, ws.ws_col > 0 {
    |                                  `- error: cannot find 'TIOCGWINSZ' in scope
327 |       return (lines: Int(ws.ws_row), columns: Int(ws.ws_col))
328 |     }
[7/28] Compiling CommandLineKit TerminalWidthTables.swift
[8/28] Compiling CommandLineKit TextColor.swift
[9/28] Compiling CommandLineKit Command.swift
[10/28] Compiling CommandLineKit ControlCharacters.swift
[11/28] Compiling CommandLineKit ConvertibleFromString.swift
[12/28] Compiling CommandLineKit LineReaderError.swift
[13/28] Compiling CommandLineKit LineReaderHistory.swift
[14/28] Compiling CommandLineKit EditState.swift
/host/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:53:14: warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
42 |
43 |   /// The description of the error.
44 |   public enum Kind {
   |               `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
45 |     case unknownFlag(String)
46 |     case missingValue
   :
51 |
52 |   /// The error kind.
53 |   public let kind: Kind
   |              `- warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
54 |
55 |   /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
/host/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:57:14: warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
55 |   /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
56 |   /// parsing the command-line as a whole.
57 |   public let flag: Flag?
   |              `- warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
58 |
59 |   /// Initializes a new flag error from an error kind and a corresponding flag.
/host/spi-builder-workspace/Sources/CommandLineKit/Flag.swift:46:14: note: class 'Flag' does not conform to the 'Sendable' protocol
 44 | /// Method `isOption` can be used to distinguish between options and arguments.
 45 | ///
 46 | public class Flag {
    |              `- note: class 'Flag' does not conform to the 'Sendable' protocol
 47 |
 48 |   /// The short name of the flag.
[15/28] Compiling CommandLineKit Flag.swift
/host/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:53:14: warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
42 |
43 |   /// The description of the error.
44 |   public enum Kind {
   |               `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
45 |     case unknownFlag(String)
46 |     case missingValue
   :
51 |
52 |   /// The error kind.
53 |   public let kind: Kind
   |              `- warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
54 |
55 |   /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
/host/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:57:14: warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
55 |   /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
56 |   /// parsing the command-line as a whole.
57 |   public let flag: Flag?
   |              `- warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
58 |
59 |   /// Initializes a new flag error from an error kind and a corresponding flag.
/host/spi-builder-workspace/Sources/CommandLineKit/Flag.swift:46:14: note: class 'Flag' does not conform to the 'Sendable' protocol
 44 | /// Method `isOption` can be used to distinguish between options and arguments.
 45 | ///
 46 | public class Flag {
    |              `- note: class 'Flag' does not conform to the 'Sendable' protocol
 47 |
 48 |   /// The short name of the flag.
[16/28] Compiling CommandLineKit FlagError.swift
/host/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:53:14: warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
42 |
43 |   /// The description of the error.
44 |   public enum Kind {
   |               `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
45 |     case unknownFlag(String)
46 |     case missingValue
   :
51 |
52 |   /// The error kind.
53 |   public let kind: Kind
   |              `- warning: stored property 'kind' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'FlagError.Kind'; this is an error in the Swift 6 language mode
54 |
55 |   /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
/host/spi-builder-workspace/Sources/CommandLineKit/FlagError.swift:57:14: warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
55 |   /// The flag to which the error belongs. If `flag` is set to nil, the error is related to
56 |   /// parsing the command-line as a whole.
57 |   public let flag: Flag?
   |              `- warning: stored property 'flag' of 'Sendable'-conforming struct 'FlagError' has non-sendable type 'Flag?'; this is an error in the Swift 6 language mode
58 |
59 |   /// Initializes a new flag error from an error kind and a corresponding flag.
/host/spi-builder-workspace/Sources/CommandLineKit/Flag.swift:46:14: note: class 'Flag' does not conform to the 'Sendable' protocol
 44 | /// Method `isOption` can be used to distinguish between options and arguments.
 45 | ///
 46 | public class Flag {
    |              `- note: class 'Flag' does not conform to the 'Sendable' protocol
 47 |
 48 |   /// The short name of the flag.
[17/28] Compiling CommandLineKit FlagWrapper.swift
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:75:35: error: cannot find 'STDIN_FILENO' in scope
 73 |
 74 |   /// Initializer
 75 |   public init?(inputFile: Int32 = STDIN_FILENO,
    |                                   `- error: cannot find 'STDIN_FILENO' in scope
 76 |                outputFile: Int32 = STDOUT_FILENO,
 77 |                completionCallback: ((String) -> [String])? = nil,
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:76:36: error: cannot find 'STDOUT_FILENO' in scope
 74 |   /// Initializer
 75 |   public init?(inputFile: Int32 = STDIN_FILENO,
 76 |                outputFile: Int32 = STDOUT_FILENO,
    |                                    `- error: cannot find 'STDOUT_FILENO' in scope
 77 |                completionCallback: ((String) -> [String])? = nil,
 78 |                hintsCallback: ((String) -> (String, TextProperties)?)? = nil) {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:82:8: error: cannot find 'isatty' in scope
 80 |     self.outputFile = outputFile
 81 |     self.currentTerm = Terminal.current
 82 |     if isatty(inputFile) != 1 {
    |        `- error: cannot find 'isatty' in scope
 83 |       return nil
 84 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:197:15: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
195 |                                  parenProperties: TextProperties) throws -> String {
196 |     var line: String = ""
197 |     if fileno(stdout) == self.outputFile {
    |               `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
198 |       fflush(stdout)
199 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:198:14: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
196 |     var line: String = ""
197 |     if fileno(stdout) == self.outputFile {
198 |       fflush(stdout)
    |              `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
199 |     }
200 |     try self.withRawMode {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:493:19: error: cannot find 'winsize' in scope
491 |
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
    |                   `- error: cannot find 'winsize' in scope
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
495 |       return 80
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:494:8: error: cannot find 'ioctl' in scope
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
    |        `- error: cannot find 'ioctl' in scope
495 |       return 80
496 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:494:22: error: cannot find 'TIOCGWINSZ' in scope
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
    |                      `- error: cannot find 'TIOCGWINSZ' in scope
495 |       return 80
496 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:507:11: error: cannot find 'ioctl' in scope
505 |   private var bytesAvailable: Int {
506 |     var available: Int = 0
507 |     guard ioctl(self.inputFile, LineReader.FIONREAD, &available) >= 0 else {
    |           `- error: cannot find 'ioctl' in scope
508 |       return 0
509 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:559:8: error: cannot find 'read' in scope
557 |   private func readByte() -> UInt8? {
558 |     var input: UInt8 = 0
559 |     if read(self.inputFile, &input, 1) == 0 {
    |        `- error: cannot find 'read' in scope
560 |       return nil
561 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:567:9: error: cannot find 'read' in scope
565 |   private func forceReadByte() -> UInt8 {
566 |     var input: UInt8 = 0
567 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
568 |     return input
569 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:573:9: error: cannot find 'read' in scope
571 |   private func readCharacter() -> Character? {
572 |     var input: UInt8 = 0
573 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
574 |     return Character(UnicodeScalar(input))
575 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:594:8: error: cannot find 'write' in scope
592 |
593 |   private func output(text: String) throws {
594 |     if write(self.outputFile, text, text.utf8.count) == -1 {
    |        `- error: cannot find 'write' in scope
595 |       throw LineReaderError.generalError("Unable to write to output")
596 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:690:26: error: cannot find type 'termios' in scope
688 |
689 |   private func withRawMode(body: () throws -> ()) throws {
690 |     var originalTermios: termios = termios()
    |                          `- error: cannot find type 'termios' in scope
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:692:11: error: cannot find 'tcsetattr' in scope
690 |     var originalTermios: termios = termios()
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |           `- error: cannot find 'tcsetattr' in scope
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:692:37: error: cannot find 'TCSADRAIN' in scope
690 |     var originalTermios: termios = termios()
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |                                     `- error: cannot find 'TCSADRAIN' in scope
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:694:8: error: cannot find 'tcgetattr' in scope
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
    |        `- error: cannot find 'tcgetattr' in scope
695 |       throw LineReaderError.generalError("could not get term attributes")
696 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:21: error: cannot find 'tcflag_t' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                     `- error: cannot find 'tcflag_t' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:30: error: cannot find 'BRKINT' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                              `- error: cannot find 'BRKINT' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:39: error: cannot find 'ICRNL' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                       `- error: cannot find 'ICRNL' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:47: error: cannot find 'INPCK' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                               `- error: cannot find 'INPCK' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:55: error: cannot find 'ISTRIP' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                       `- error: cannot find 'ISTRIP' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:64: error: cannot find 'IXON' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                                `- error: cannot find 'IXON' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:699:21: error: cannot find 'tcflag_t' in scope
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                     `- error: cannot find 'tcflag_t' in scope
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:699:30: error: cannot find 'OPOST' in scope
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                              `- error: cannot find 'OPOST' in scope
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:700:20: error: cannot find 'tcflag_t' in scope
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
    |                    `- error: cannot find 'tcflag_t' in scope
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
702 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:700:29: error: cannot find 'CS8' in scope
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
    |                             `- error: cannot find 'CS8' in scope
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
702 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:21: error: cannot find 'tcflag_t' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                     `- error: cannot find 'tcflag_t' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:30: error: cannot find 'ECHO' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                              `- error: cannot find 'ECHO' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:37: error: cannot find 'ICANON' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                     `- error: cannot find 'ICANON' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:46: error: cannot find 'IEXTEN' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                              `- error: cannot find 'IEXTEN' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:55: error: cannot find 'ISIG' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                                       `- error: cannot find 'ISIG' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:11: error: cannot find 'tcsetattr' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
704 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
705 |       throw LineReaderError.generalError("Could not set raw mode")
706 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:37: error: cannot find 'TCSADRAIN' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
704 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |                                     `- error: cannot find 'TCSADRAIN' in scope
705 |       throw LineReaderError.generalError("Could not set raw mode")
706 |     }
[18/28] Compiling CommandLineKit Flags.swift
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:75:35: error: cannot find 'STDIN_FILENO' in scope
 73 |
 74 |   /// Initializer
 75 |   public init?(inputFile: Int32 = STDIN_FILENO,
    |                                   `- error: cannot find 'STDIN_FILENO' in scope
 76 |                outputFile: Int32 = STDOUT_FILENO,
 77 |                completionCallback: ((String) -> [String])? = nil,
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:76:36: error: cannot find 'STDOUT_FILENO' in scope
 74 |   /// Initializer
 75 |   public init?(inputFile: Int32 = STDIN_FILENO,
 76 |                outputFile: Int32 = STDOUT_FILENO,
    |                                    `- error: cannot find 'STDOUT_FILENO' in scope
 77 |                completionCallback: ((String) -> [String])? = nil,
 78 |                hintsCallback: ((String) -> (String, TextProperties)?)? = nil) {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:82:8: error: cannot find 'isatty' in scope
 80 |     self.outputFile = outputFile
 81 |     self.currentTerm = Terminal.current
 82 |     if isatty(inputFile) != 1 {
    |        `- error: cannot find 'isatty' in scope
 83 |       return nil
 84 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:197:15: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
195 |                                  parenProperties: TextProperties) throws -> String {
196 |     var line: String = ""
197 |     if fileno(stdout) == self.outputFile {
    |               `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
198 |       fflush(stdout)
199 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:198:14: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
196 |     var line: String = ""
197 |     if fileno(stdout) == self.outputFile {
198 |       fflush(stdout)
    |              `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
199 |     }
200 |     try self.withRawMode {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:493:19: error: cannot find 'winsize' in scope
491 |
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
    |                   `- error: cannot find 'winsize' in scope
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
495 |       return 80
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:494:8: error: cannot find 'ioctl' in scope
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
    |        `- error: cannot find 'ioctl' in scope
495 |       return 80
496 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:494:22: error: cannot find 'TIOCGWINSZ' in scope
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
    |                      `- error: cannot find 'TIOCGWINSZ' in scope
495 |       return 80
496 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:507:11: error: cannot find 'ioctl' in scope
505 |   private var bytesAvailable: Int {
506 |     var available: Int = 0
507 |     guard ioctl(self.inputFile, LineReader.FIONREAD, &available) >= 0 else {
    |           `- error: cannot find 'ioctl' in scope
508 |       return 0
509 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:559:8: error: cannot find 'read' in scope
557 |   private func readByte() -> UInt8? {
558 |     var input: UInt8 = 0
559 |     if read(self.inputFile, &input, 1) == 0 {
    |        `- error: cannot find 'read' in scope
560 |       return nil
561 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:567:9: error: cannot find 'read' in scope
565 |   private func forceReadByte() -> UInt8 {
566 |     var input: UInt8 = 0
567 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
568 |     return input
569 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:573:9: error: cannot find 'read' in scope
571 |   private func readCharacter() -> Character? {
572 |     var input: UInt8 = 0
573 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
574 |     return Character(UnicodeScalar(input))
575 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:594:8: error: cannot find 'write' in scope
592 |
593 |   private func output(text: String) throws {
594 |     if write(self.outputFile, text, text.utf8.count) == -1 {
    |        `- error: cannot find 'write' in scope
595 |       throw LineReaderError.generalError("Unable to write to output")
596 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:690:26: error: cannot find type 'termios' in scope
688 |
689 |   private func withRawMode(body: () throws -> ()) throws {
690 |     var originalTermios: termios = termios()
    |                          `- error: cannot find type 'termios' in scope
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:692:11: error: cannot find 'tcsetattr' in scope
690 |     var originalTermios: termios = termios()
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |           `- error: cannot find 'tcsetattr' in scope
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:692:37: error: cannot find 'TCSADRAIN' in scope
690 |     var originalTermios: termios = termios()
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |                                     `- error: cannot find 'TCSADRAIN' in scope
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:694:8: error: cannot find 'tcgetattr' in scope
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
    |        `- error: cannot find 'tcgetattr' in scope
695 |       throw LineReaderError.generalError("could not get term attributes")
696 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:21: error: cannot find 'tcflag_t' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                     `- error: cannot find 'tcflag_t' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:30: error: cannot find 'BRKINT' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                              `- error: cannot find 'BRKINT' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:39: error: cannot find 'ICRNL' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                       `- error: cannot find 'ICRNL' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:47: error: cannot find 'INPCK' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                               `- error: cannot find 'INPCK' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:55: error: cannot find 'ISTRIP' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                       `- error: cannot find 'ISTRIP' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:64: error: cannot find 'IXON' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                                `- error: cannot find 'IXON' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:699:21: error: cannot find 'tcflag_t' in scope
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                     `- error: cannot find 'tcflag_t' in scope
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:699:30: error: cannot find 'OPOST' in scope
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                              `- error: cannot find 'OPOST' in scope
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:700:20: error: cannot find 'tcflag_t' in scope
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
    |                    `- error: cannot find 'tcflag_t' in scope
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
702 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:700:29: error: cannot find 'CS8' in scope
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
    |                             `- error: cannot find 'CS8' in scope
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
702 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:21: error: cannot find 'tcflag_t' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                     `- error: cannot find 'tcflag_t' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:30: error: cannot find 'ECHO' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                              `- error: cannot find 'ECHO' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:37: error: cannot find 'ICANON' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                     `- error: cannot find 'ICANON' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:46: error: cannot find 'IEXTEN' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                              `- error: cannot find 'IEXTEN' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:55: error: cannot find 'ISIG' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                                       `- error: cannot find 'ISIG' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:11: error: cannot find 'tcsetattr' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
704 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
705 |       throw LineReaderError.generalError("Could not set raw mode")
706 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:37: error: cannot find 'TCSADRAIN' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
704 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |                                     `- error: cannot find 'TCSADRAIN' in scope
705 |       throw LineReaderError.generalError("Could not set raw mode")
706 |     }
[19/28] Compiling CommandLineKit LineReader.swift
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:75:35: error: cannot find 'STDIN_FILENO' in scope
 73 |
 74 |   /// Initializer
 75 |   public init?(inputFile: Int32 = STDIN_FILENO,
    |                                   `- error: cannot find 'STDIN_FILENO' in scope
 76 |                outputFile: Int32 = STDOUT_FILENO,
 77 |                completionCallback: ((String) -> [String])? = nil,
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:76:36: error: cannot find 'STDOUT_FILENO' in scope
 74 |   /// Initializer
 75 |   public init?(inputFile: Int32 = STDIN_FILENO,
 76 |                outputFile: Int32 = STDOUT_FILENO,
    |                                    `- error: cannot find 'STDOUT_FILENO' in scope
 77 |                completionCallback: ((String) -> [String])? = nil,
 78 |                hintsCallback: ((String) -> (String, TextProperties)?)? = nil) {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:82:8: error: cannot find 'isatty' in scope
 80 |     self.outputFile = outputFile
 81 |     self.currentTerm = Terminal.current
 82 |     if isatty(inputFile) != 1 {
    |        `- error: cannot find 'isatty' in scope
 83 |       return nil
 84 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:197:15: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
195 |                                  parenProperties: TextProperties) throws -> String {
196 |     var line: String = ""
197 |     if fileno(stdout) == self.outputFile {
    |               `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
198 |       fflush(stdout)
199 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:198:14: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
196 |     var line: String = ""
197 |     if fileno(stdout) == self.outputFile {
198 |       fflush(stdout)
    |              `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
199 |     }
200 |     try self.withRawMode {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:493:19: error: cannot find 'winsize' in scope
491 |
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
    |                   `- error: cannot find 'winsize' in scope
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
495 |       return 80
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:494:8: error: cannot find 'ioctl' in scope
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
    |        `- error: cannot find 'ioctl' in scope
495 |       return 80
496 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:494:22: error: cannot find 'TIOCGWINSZ' in scope
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
    |                      `- error: cannot find 'TIOCGWINSZ' in scope
495 |       return 80
496 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:507:11: error: cannot find 'ioctl' in scope
505 |   private var bytesAvailable: Int {
506 |     var available: Int = 0
507 |     guard ioctl(self.inputFile, LineReader.FIONREAD, &available) >= 0 else {
    |           `- error: cannot find 'ioctl' in scope
508 |       return 0
509 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:559:8: error: cannot find 'read' in scope
557 |   private func readByte() -> UInt8? {
558 |     var input: UInt8 = 0
559 |     if read(self.inputFile, &input, 1) == 0 {
    |        `- error: cannot find 'read' in scope
560 |       return nil
561 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:567:9: error: cannot find 'read' in scope
565 |   private func forceReadByte() -> UInt8 {
566 |     var input: UInt8 = 0
567 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
568 |     return input
569 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:573:9: error: cannot find 'read' in scope
571 |   private func readCharacter() -> Character? {
572 |     var input: UInt8 = 0
573 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
574 |     return Character(UnicodeScalar(input))
575 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:594:8: error: cannot find 'write' in scope
592 |
593 |   private func output(text: String) throws {
594 |     if write(self.outputFile, text, text.utf8.count) == -1 {
    |        `- error: cannot find 'write' in scope
595 |       throw LineReaderError.generalError("Unable to write to output")
596 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:690:26: error: cannot find type 'termios' in scope
688 |
689 |   private func withRawMode(body: () throws -> ()) throws {
690 |     var originalTermios: termios = termios()
    |                          `- error: cannot find type 'termios' in scope
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:692:11: error: cannot find 'tcsetattr' in scope
690 |     var originalTermios: termios = termios()
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |           `- error: cannot find 'tcsetattr' in scope
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:692:37: error: cannot find 'TCSADRAIN' in scope
690 |     var originalTermios: termios = termios()
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |                                     `- error: cannot find 'TCSADRAIN' in scope
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:694:8: error: cannot find 'tcgetattr' in scope
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
    |        `- error: cannot find 'tcgetattr' in scope
695 |       throw LineReaderError.generalError("could not get term attributes")
696 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:21: error: cannot find 'tcflag_t' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                     `- error: cannot find 'tcflag_t' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:30: error: cannot find 'BRKINT' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                              `- error: cannot find 'BRKINT' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:39: error: cannot find 'ICRNL' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                       `- error: cannot find 'ICRNL' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:47: error: cannot find 'INPCK' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                               `- error: cannot find 'INPCK' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:55: error: cannot find 'ISTRIP' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                       `- error: cannot find 'ISTRIP' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:64: error: cannot find 'IXON' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                                `- error: cannot find 'IXON' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:699:21: error: cannot find 'tcflag_t' in scope
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                     `- error: cannot find 'tcflag_t' in scope
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:699:30: error: cannot find 'OPOST' in scope
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                              `- error: cannot find 'OPOST' in scope
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:700:20: error: cannot find 'tcflag_t' in scope
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
    |                    `- error: cannot find 'tcflag_t' in scope
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
702 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:700:29: error: cannot find 'CS8' in scope
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
    |                             `- error: cannot find 'CS8' in scope
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
702 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:21: error: cannot find 'tcflag_t' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                     `- error: cannot find 'tcflag_t' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:30: error: cannot find 'ECHO' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                              `- error: cannot find 'ECHO' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:37: error: cannot find 'ICANON' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                     `- error: cannot find 'ICANON' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:46: error: cannot find 'IEXTEN' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                              `- error: cannot find 'IEXTEN' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:55: error: cannot find 'ISIG' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                                       `- error: cannot find 'ISIG' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:11: error: cannot find 'tcsetattr' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
704 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
705 |       throw LineReaderError.generalError("Could not set raw mode")
706 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:37: error: cannot find 'TCSADRAIN' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
704 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |                                     `- error: cannot find 'TCSADRAIN' in scope
705 |       throw LineReaderError.generalError("Could not set raw mode")
706 |     }
[20/28] Compiling CommandLineKit TextProperties.swift
[21/28] Compiling CommandLineKit TextStyle.swift
[22/28] Compiling CommandLineKit AnsiCodes.swift
[23/28] Compiling CommandLineKit AnsiText.swift
[24/28] Compiling CommandLineKit BackgroundColor.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-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
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:4a2fa435ac333753e63ed6c656fe70fcece760f0601ff6567c222f81f55cb110
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
[2/24] Compiling CommandLineKit TerminalWidthTables.swift
[3/24] Compiling CommandLineKit TextColor.swift
[4/24] Compiling CommandLineKit LineReaderError.swift
[5/24] Compiling CommandLineKit LineReaderHistory.swift
[6/26] Compiling CommandLineKit Command.swift
[7/26] Compiling CommandLineKit ControlCharacters.swift
[8/26] Compiling CommandLineKit ConvertibleFromString.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/26] Emitting module CommandLineKit
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:75:35: error: cannot find 'STDIN_FILENO' in scope
 73 |
 74 |   /// Initializer
 75 |   public init?(inputFile: Int32 = STDIN_FILENO,
    |                                   `- error: cannot find 'STDIN_FILENO' in scope
 76 |                outputFile: Int32 = STDOUT_FILENO,
 77 |                completionCallback: ((String) -> [String])? = nil,
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:76:36: error: cannot find 'STDOUT_FILENO' in scope
 74 |   /// Initializer
 75 |   public init?(inputFile: Int32 = STDIN_FILENO,
 76 |                outputFile: Int32 = STDOUT_FILENO,
    |                                    `- error: cannot find 'STDOUT_FILENO' in scope
 77 |                completionCallback: ((String) -> [String])? = nil,
 78 |                hintsCallback: ((String) -> (String, TextProperties)?)? = nil) {
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:63:27: error: cannot find 'termios' in scope
 61 |     print(prompt, terminator: "")
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
    |                           `- error: cannot find 'termios' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:64:5: error: cannot find 'tcgetattr' in scope
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
    |     `- error: cannot find 'tcgetattr' in scope
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:64:15: error: cannot find 'STDIN_FILENO' in scope
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
    |               `- error: cannot find 'STDIN_FILENO' in scope
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:28: error: cannot find 'tcflag_t' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                            `- error: cannot find 'tcflag_t' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:37: error: cannot find 'ECHO' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                     `- error: cannot find 'ECHO' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:44: error: cannot find 'ICANON' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                            `- error: cannot find 'ICANON' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:53: error: cannot find 'ISIG' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                                     `- error: cannot find 'ISIG' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:5: error: cannot find 'tcsetattr' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |     `- error: cannot find 'tcsetattr' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:15: error: cannot find 'STDIN_FILENO' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |               `- error: cannot find 'STDIN_FILENO' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:29: error: cannot find 'TCSANOW' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |                             `- error: cannot find 'TCSANOW' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:11: error: cannot find 'tcsetattr' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |           `- error: cannot find 'tcsetattr' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:21: error: cannot find 'STDIN_FILENO' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                     `- error: cannot find 'STDIN_FILENO' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:35: error: cannot find 'TCSANOW' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                                   `- error: cannot find 'TCSANOW' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
[10/26] Compiling CommandLineKit EditState.swift
[11/26] Compiling CommandLineKit Flag.swift
[12/26] Compiling CommandLineKit FlagError.swift
[13/26] Compiling CommandLineKit String.swift
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:63:27: error: cannot find 'termios' in scope
 61 |     print(prompt, terminator: "")
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
    |                           `- error: cannot find 'termios' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:64:5: error: cannot find 'tcgetattr' in scope
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
    |     `- error: cannot find 'tcgetattr' in scope
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:64:15: error: cannot find 'STDIN_FILENO' in scope
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
    |               `- error: cannot find 'STDIN_FILENO' in scope
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:28: error: cannot find 'tcflag_t' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                            `- error: cannot find 'tcflag_t' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:37: error: cannot find 'ECHO' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                     `- error: cannot find 'ECHO' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:44: error: cannot find 'ICANON' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                            `- error: cannot find 'ICANON' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:53: error: cannot find 'ISIG' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                                     `- error: cannot find 'ISIG' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:5: error: cannot find 'tcsetattr' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |     `- error: cannot find 'tcsetattr' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:15: error: cannot find 'STDIN_FILENO' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |               `- error: cannot find 'STDIN_FILENO' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:29: error: cannot find 'TCSANOW' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |                             `- error: cannot find 'TCSANOW' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:71:7: error: cannot find 'tcsetattr' in scope
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |       `- error: cannot find 'tcsetattr' in scope
 72 |       print()
 73 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:71:17: error: cannot find 'STDIN_FILENO' in scope
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                 `- error: cannot find 'STDIN_FILENO' in scope
 72 |       print()
 73 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:71:31: error: cannot find 'TCSANOW' in scope
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                               `- error: cannot find 'TCSANOW' in scope
 72 |       print()
 73 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:89:13: error: cannot find 'read' in scope
 87 |     func readUnicodeScalar() -> (scalar: Unicode.Scalar, bytes: [UInt8])? {
 88 |       var firstByte: UInt8 = 0
 89 |       guard read(STDIN_FILENO, &firstByte, 1) == 1 else {
    |             `- error: cannot find 'read' in scope
 90 |         return nil
 91 |       }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:89:18: error: cannot find 'STDIN_FILENO' in scope
 87 |     func readUnicodeScalar() -> (scalar: Unicode.Scalar, bytes: [UInt8])? {
 88 |       var firstByte: UInt8 = 0
 89 |       guard read(STDIN_FILENO, &firstByte, 1) == 1 else {
    |                  `- error: cannot find 'STDIN_FILENO' in scope
 90 |         return nil
 91 |       }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:100:15: error: cannot find 'read' in scope
 98 |       for _ in 1..<length {
 99 |         var contByte: UInt8 = 0
100 |         guard read(STDIN_FILENO, &contByte, 1) == 1 else { return nil }
    |               `- error: cannot find 'read' in scope
101 |           // Continuation bytes must be 10xxxxxx
102 |         guard (contByte & 0xC0) == 0x80 else { return nil }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:100:20: error: cannot find 'STDIN_FILENO' in scope
 98 |       for _ in 1..<length {
 99 |         var contByte: UInt8 = 0
100 |         guard read(STDIN_FILENO, &contByte, 1) == 1 else { return nil }
    |                    `- error: cannot find 'STDIN_FILENO' in scope
101 |           // Continuation bytes must be 10xxxxxx
102 |         guard (contByte & 0xC0) == 0x80 else { return nil }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:137:13: error: cannot find 'read' in scope
135 |     func readEscapeSequence() -> EscapeResult {
136 |       var byte: UInt8 = 0
137 |       guard read(STDIN_FILENO, &byte, 1) == 1 else {
    |             `- error: cannot find 'read' in scope
138 |         return .unknown
139 |       }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:137:18: error: cannot find 'STDIN_FILENO' in scope
135 |     func readEscapeSequence() -> EscapeResult {
136 |       var byte: UInt8 = 0
137 |       guard read(STDIN_FILENO, &byte, 1) == 1 else {
    |                  `- error: cannot find 'STDIN_FILENO' in scope
138 |         return .unknown
139 |       }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:143:17: error: cannot find 'read' in scope
141 |         case UInt8(ascii: "["):
142 |           // CSI sequence — read the final byte
143 |           guard read(STDIN_FILENO, &byte, 1) == 1 else { return .unknown }
    |                 `- error: cannot find 'read' in scope
144 |           // Drain extended sequences e.g. ESC [ 1 ~
145 |           if byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9") {
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:143:22: error: cannot find 'STDIN_FILENO' in scope
141 |         case UInt8(ascii: "["):
142 |           // CSI sequence — read the final byte
143 |           guard read(STDIN_FILENO, &byte, 1) == 1 else { return .unknown }
    |                      `- error: cannot find 'STDIN_FILENO' in scope
144 |           // Drain extended sequences e.g. ESC [ 1 ~
145 |           if byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9") {
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:147:17: error: cannot find 'read' in scope
145 |           if byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9") {
146 |             var extra: UInt8 = 0
147 |             _ = read(STDIN_FILENO, &extra, 1)
    |                 `- error: cannot find 'read' in scope
148 |             return .unknown
149 |           }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:147:22: error: cannot find 'STDIN_FILENO' in scope
145 |           if byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9") {
146 |             var extra: UInt8 = 0
147 |             _ = read(STDIN_FILENO, &extra, 1)
    |                      `- error: cannot find 'STDIN_FILENO' in scope
148 |             return .unknown
149 |           }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:11: error: cannot find 'tcsetattr' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |           `- error: cannot find 'tcsetattr' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:21: error: cannot find 'STDIN_FILENO' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                     `- error: cannot find 'STDIN_FILENO' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:35: error: cannot find 'TCSANOW' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                                   `- error: cannot find 'TCSANOW' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:325:14: error: cannot find 'winsize' in scope
323 |   /// component refers to the number of columns.
324 |   public static var size: (lines: Int, columns: Int)? {
325 |     var ws = winsize()
    |              `- error: cannot find 'winsize' in scope
326 |     if ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &ws) >= 0, ws.ws_col > 0 {
327 |       return (lines: Int(ws.ws_row), columns: Int(ws.ws_col))
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:326:8: error: cannot find 'ioctl' in scope
324 |   public static var size: (lines: Int, columns: Int)? {
325 |     var ws = winsize()
326 |     if ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &ws) >= 0, ws.ws_col > 0 {
    |        `- error: cannot find 'ioctl' in scope
327 |       return (lines: Int(ws.ws_row), columns: Int(ws.ws_col))
328 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:326:14: error: cannot find 'STDOUT_FILENO' in scope
324 |   public static var size: (lines: Int, columns: Int)? {
325 |     var ws = winsize()
326 |     if ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &ws) >= 0, ws.ws_col > 0 {
    |              `- error: cannot find 'STDOUT_FILENO' in scope
327 |       return (lines: Int(ws.ws_row), columns: Int(ws.ws_col))
328 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:326:34: error: cannot find 'TIOCGWINSZ' in scope
324 |   public static var size: (lines: Int, columns: Int)? {
325 |     var ws = winsize()
326 |     if ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &ws) >= 0, ws.ws_col > 0 {
    |                                  `- error: cannot find 'TIOCGWINSZ' in scope
327 |       return (lines: Int(ws.ws_row), columns: Int(ws.ws_col))
328 |     }
[14/26] Compiling CommandLineKit Terminal.swift
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:63:27: error: cannot find 'termios' in scope
 61 |     print(prompt, terminator: "")
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
    |                           `- error: cannot find 'termios' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:64:5: error: cannot find 'tcgetattr' in scope
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
    |     `- error: cannot find 'tcgetattr' in scope
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:64:15: error: cannot find 'STDIN_FILENO' in scope
 62 |     fflush(stdout)
 63 |     var originalTermios = termios()
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
    |               `- error: cannot find 'STDIN_FILENO' in scope
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:28: error: cannot find 'tcflag_t' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                            `- error: cannot find 'tcflag_t' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:37: error: cannot find 'ECHO' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                     `- error: cannot find 'ECHO' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:44: error: cannot find 'ICANON' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                            `- error: cannot find 'ICANON' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:66:53: error: cannot find 'ISIG' in scope
 64 |     tcgetattr(STDIN_FILENO, &originalTermios)
 65 |     var rawTermios = originalTermios
 66 |     rawTermios.c_lflag &= ~tcflag_t(ECHO | ICANON | ISIG)
    |                                                     `- error: cannot find 'ISIG' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:5: error: cannot find 'tcsetattr' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |     `- error: cannot find 'tcsetattr' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:15: error: cannot find 'STDIN_FILENO' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |               `- error: cannot find 'STDIN_FILENO' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:69:29: error: cannot find 'TCSANOW' in scope
 67 |     rawTermios.c_cc.16 = 1  // VMIN
 68 |     rawTermios.c_cc.17 = 0  // VTIME
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
    |                             `- error: cannot find 'TCSANOW' in scope
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:71:7: error: cannot find 'tcsetattr' in scope
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |       `- error: cannot find 'tcsetattr' in scope
 72 |       print()
 73 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:71:17: error: cannot find 'STDIN_FILENO' in scope
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                 `- error: cannot find 'STDIN_FILENO' in scope
 72 |       print()
 73 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:71:31: error: cannot find 'TCSANOW' in scope
 69 |     tcsetattr(STDIN_FILENO, TCSANOW, &rawTermios)
 70 |     defer {
 71 |       tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                               `- error: cannot find 'TCSANOW' in scope
 72 |       print()
 73 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:89:13: error: cannot find 'read' in scope
 87 |     func readUnicodeScalar() -> (scalar: Unicode.Scalar, bytes: [UInt8])? {
 88 |       var firstByte: UInt8 = 0
 89 |       guard read(STDIN_FILENO, &firstByte, 1) == 1 else {
    |             `- error: cannot find 'read' in scope
 90 |         return nil
 91 |       }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:89:18: error: cannot find 'STDIN_FILENO' in scope
 87 |     func readUnicodeScalar() -> (scalar: Unicode.Scalar, bytes: [UInt8])? {
 88 |       var firstByte: UInt8 = 0
 89 |       guard read(STDIN_FILENO, &firstByte, 1) == 1 else {
    |                  `- error: cannot find 'STDIN_FILENO' in scope
 90 |         return nil
 91 |       }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:100:15: error: cannot find 'read' in scope
 98 |       for _ in 1..<length {
 99 |         var contByte: UInt8 = 0
100 |         guard read(STDIN_FILENO, &contByte, 1) == 1 else { return nil }
    |               `- error: cannot find 'read' in scope
101 |           // Continuation bytes must be 10xxxxxx
102 |         guard (contByte & 0xC0) == 0x80 else { return nil }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:100:20: error: cannot find 'STDIN_FILENO' in scope
 98 |       for _ in 1..<length {
 99 |         var contByte: UInt8 = 0
100 |         guard read(STDIN_FILENO, &contByte, 1) == 1 else { return nil }
    |                    `- error: cannot find 'STDIN_FILENO' in scope
101 |           // Continuation bytes must be 10xxxxxx
102 |         guard (contByte & 0xC0) == 0x80 else { return nil }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:137:13: error: cannot find 'read' in scope
135 |     func readEscapeSequence() -> EscapeResult {
136 |       var byte: UInt8 = 0
137 |       guard read(STDIN_FILENO, &byte, 1) == 1 else {
    |             `- error: cannot find 'read' in scope
138 |         return .unknown
139 |       }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:137:18: error: cannot find 'STDIN_FILENO' in scope
135 |     func readEscapeSequence() -> EscapeResult {
136 |       var byte: UInt8 = 0
137 |       guard read(STDIN_FILENO, &byte, 1) == 1 else {
    |                  `- error: cannot find 'STDIN_FILENO' in scope
138 |         return .unknown
139 |       }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:143:17: error: cannot find 'read' in scope
141 |         case UInt8(ascii: "["):
142 |           // CSI sequence — read the final byte
143 |           guard read(STDIN_FILENO, &byte, 1) == 1 else { return .unknown }
    |                 `- error: cannot find 'read' in scope
144 |           // Drain extended sequences e.g. ESC [ 1 ~
145 |           if byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9") {
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:143:22: error: cannot find 'STDIN_FILENO' in scope
141 |         case UInt8(ascii: "["):
142 |           // CSI sequence — read the final byte
143 |           guard read(STDIN_FILENO, &byte, 1) == 1 else { return .unknown }
    |                      `- error: cannot find 'STDIN_FILENO' in scope
144 |           // Drain extended sequences e.g. ESC [ 1 ~
145 |           if byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9") {
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:147:17: error: cannot find 'read' in scope
145 |           if byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9") {
146 |             var extra: UInt8 = 0
147 |             _ = read(STDIN_FILENO, &extra, 1)
    |                 `- error: cannot find 'read' in scope
148 |             return .unknown
149 |           }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:147:22: error: cannot find 'STDIN_FILENO' in scope
145 |           if byte >= UInt8(ascii: "0") && byte <= UInt8(ascii: "9") {
146 |             var extra: UInt8 = 0
147 |             _ = read(STDIN_FILENO, &extra, 1)
    |                      `- error: cannot find 'STDIN_FILENO' in scope
148 |             return .unknown
149 |           }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:11: error: cannot find 'tcsetattr' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |           `- error: cannot find 'tcsetattr' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:21: error: cannot find 'STDIN_FILENO' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                     `- error: cannot find 'STDIN_FILENO' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:263:35: error: cannot find 'TCSANOW' in scope
261 |         // Ctrl+C
262 |         case 3:
263 |           tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
    |                                   `- error: cannot find 'TCSANOW' in scope
264 |           throw LineReaderError.CTRLC
265 |         // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:325:14: error: cannot find 'winsize' in scope
323 |   /// component refers to the number of columns.
324 |   public static var size: (lines: Int, columns: Int)? {
325 |     var ws = winsize()
    |              `- error: cannot find 'winsize' in scope
326 |     if ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &ws) >= 0, ws.ws_col > 0 {
327 |       return (lines: Int(ws.ws_row), columns: Int(ws.ws_col))
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:326:8: error: cannot find 'ioctl' in scope
324 |   public static var size: (lines: Int, columns: Int)? {
325 |     var ws = winsize()
326 |     if ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &ws) >= 0, ws.ws_col > 0 {
    |        `- error: cannot find 'ioctl' in scope
327 |       return (lines: Int(ws.ws_row), columns: Int(ws.ws_col))
328 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:326:14: error: cannot find 'STDOUT_FILENO' in scope
324 |   public static var size: (lines: Int, columns: Int)? {
325 |     var ws = winsize()
326 |     if ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &ws) >= 0, ws.ws_col > 0 {
    |              `- error: cannot find 'STDOUT_FILENO' in scope
327 |       return (lines: Int(ws.ws_row), columns: Int(ws.ws_col))
328 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:326:34: error: cannot find 'TIOCGWINSZ' in scope
324 |   public static var size: (lines: Int, columns: Int)? {
325 |     var ws = winsize()
326 |     if ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &ws) >= 0, ws.ws_col > 0 {
    |                                  `- error: cannot find 'TIOCGWINSZ' in scope
327 |       return (lines: Int(ws.ws_row), columns: Int(ws.ws_col))
328 |     }
[15/26] Compiling CommandLineKit TextProperties.swift
[16/26] Compiling CommandLineKit TextStyle.swift
[17/26] Compiling CommandLineKit AnsiCodes.swift
[18/26] Compiling CommandLineKit AnsiText.swift
[19/26] Compiling CommandLineKit BackgroundColor.swift
[20/26] Compiling CommandLineKit FlagWrapper.swift
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:75:35: error: cannot find 'STDIN_FILENO' in scope
 73 |
 74 |   /// Initializer
 75 |   public init?(inputFile: Int32 = STDIN_FILENO,
    |                                   `- error: cannot find 'STDIN_FILENO' in scope
 76 |                outputFile: Int32 = STDOUT_FILENO,
 77 |                completionCallback: ((String) -> [String])? = nil,
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:76:36: error: cannot find 'STDOUT_FILENO' in scope
 74 |   /// Initializer
 75 |   public init?(inputFile: Int32 = STDIN_FILENO,
 76 |                outputFile: Int32 = STDOUT_FILENO,
    |                                    `- error: cannot find 'STDOUT_FILENO' in scope
 77 |                completionCallback: ((String) -> [String])? = nil,
 78 |                hintsCallback: ((String) -> (String, TextProperties)?)? = nil) {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:82:8: error: cannot find 'isatty' in scope
 80 |     self.outputFile = outputFile
 81 |     self.currentTerm = Terminal.current
 82 |     if isatty(inputFile) != 1 {
    |        `- error: cannot find 'isatty' in scope
 83 |       return nil
 84 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:493:19: error: cannot find 'winsize' in scope
491 |
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
    |                   `- error: cannot find 'winsize' in scope
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
495 |       return 80
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:494:8: error: cannot find 'ioctl' in scope
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
    |        `- error: cannot find 'ioctl' in scope
495 |       return 80
496 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:494:22: error: cannot find 'TIOCGWINSZ' in scope
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
    |                      `- error: cannot find 'TIOCGWINSZ' in scope
495 |       return 80
496 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:507:11: error: cannot find 'ioctl' in scope
505 |   private var bytesAvailable: Int {
506 |     var available: Int = 0
507 |     guard ioctl(self.inputFile, LineReader.FIONREAD, &available) >= 0 else {
    |           `- error: cannot find 'ioctl' in scope
508 |       return 0
509 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:559:8: error: cannot find 'read' in scope
557 |   private func readByte() -> UInt8? {
558 |     var input: UInt8 = 0
559 |     if read(self.inputFile, &input, 1) == 0 {
    |        `- error: cannot find 'read' in scope
560 |       return nil
561 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:567:9: error: cannot find 'read' in scope
565 |   private func forceReadByte() -> UInt8 {
566 |     var input: UInt8 = 0
567 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
568 |     return input
569 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:573:9: error: cannot find 'read' in scope
571 |   private func readCharacter() -> Character? {
572 |     var input: UInt8 = 0
573 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
574 |     return Character(UnicodeScalar(input))
575 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:594:8: error: cannot find 'write' in scope
592 |
593 |   private func output(text: String) throws {
594 |     if write(self.outputFile, text, text.utf8.count) == -1 {
    |        `- error: cannot find 'write' in scope
595 |       throw LineReaderError.generalError("Unable to write to output")
596 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:690:26: error: cannot find type 'termios' in scope
688 |
689 |   private func withRawMode(body: () throws -> ()) throws {
690 |     var originalTermios: termios = termios()
    |                          `- error: cannot find type 'termios' in scope
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:692:11: error: cannot find 'tcsetattr' in scope
690 |     var originalTermios: termios = termios()
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |           `- error: cannot find 'tcsetattr' in scope
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:692:37: error: cannot find 'TCSADRAIN' in scope
690 |     var originalTermios: termios = termios()
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |                                     `- error: cannot find 'TCSADRAIN' in scope
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:694:8: error: cannot find 'tcgetattr' in scope
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
    |        `- error: cannot find 'tcgetattr' in scope
695 |       throw LineReaderError.generalError("could not get term attributes")
696 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:21: error: cannot find 'tcflag_t' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                     `- error: cannot find 'tcflag_t' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:30: error: cannot find 'BRKINT' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                              `- error: cannot find 'BRKINT' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:39: error: cannot find 'ICRNL' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                       `- error: cannot find 'ICRNL' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:47: error: cannot find 'INPCK' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                               `- error: cannot find 'INPCK' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:55: error: cannot find 'ISTRIP' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                       `- error: cannot find 'ISTRIP' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:64: error: cannot find 'IXON' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                                `- error: cannot find 'IXON' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:699:21: error: cannot find 'tcflag_t' in scope
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                     `- error: cannot find 'tcflag_t' in scope
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:699:30: error: cannot find 'OPOST' in scope
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                              `- error: cannot find 'OPOST' in scope
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:700:20: error: cannot find 'tcflag_t' in scope
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
    |                    `- error: cannot find 'tcflag_t' in scope
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
702 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:700:29: error: cannot find 'CS8' in scope
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
    |                             `- error: cannot find 'CS8' in scope
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
702 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:21: error: cannot find 'tcflag_t' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                     `- error: cannot find 'tcflag_t' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:30: error: cannot find 'ECHO' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                              `- error: cannot find 'ECHO' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:37: error: cannot find 'ICANON' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                     `- error: cannot find 'ICANON' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:46: error: cannot find 'IEXTEN' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                              `- error: cannot find 'IEXTEN' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:55: error: cannot find 'ISIG' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                                       `- error: cannot find 'ISIG' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:11: error: cannot find 'tcsetattr' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
704 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
705 |       throw LineReaderError.generalError("Could not set raw mode")
706 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:37: error: cannot find 'TCSADRAIN' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
704 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |                                     `- error: cannot find 'TCSADRAIN' in scope
705 |       throw LineReaderError.generalError("Could not set raw mode")
706 |     }
[21/26] Compiling CommandLineKit Flags.swift
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:75:35: error: cannot find 'STDIN_FILENO' in scope
 73 |
 74 |   /// Initializer
 75 |   public init?(inputFile: Int32 = STDIN_FILENO,
    |                                   `- error: cannot find 'STDIN_FILENO' in scope
 76 |                outputFile: Int32 = STDOUT_FILENO,
 77 |                completionCallback: ((String) -> [String])? = nil,
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:76:36: error: cannot find 'STDOUT_FILENO' in scope
 74 |   /// Initializer
 75 |   public init?(inputFile: Int32 = STDIN_FILENO,
 76 |                outputFile: Int32 = STDOUT_FILENO,
    |                                    `- error: cannot find 'STDOUT_FILENO' in scope
 77 |                completionCallback: ((String) -> [String])? = nil,
 78 |                hintsCallback: ((String) -> (String, TextProperties)?)? = nil) {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:82:8: error: cannot find 'isatty' in scope
 80 |     self.outputFile = outputFile
 81 |     self.currentTerm = Terminal.current
 82 |     if isatty(inputFile) != 1 {
    |        `- error: cannot find 'isatty' in scope
 83 |       return nil
 84 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:493:19: error: cannot find 'winsize' in scope
491 |
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
    |                   `- error: cannot find 'winsize' in scope
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
495 |       return 80
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:494:8: error: cannot find 'ioctl' in scope
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
    |        `- error: cannot find 'ioctl' in scope
495 |       return 80
496 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:494:22: error: cannot find 'TIOCGWINSZ' in scope
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
    |                      `- error: cannot find 'TIOCGWINSZ' in scope
495 |       return 80
496 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:507:11: error: cannot find 'ioctl' in scope
505 |   private var bytesAvailable: Int {
506 |     var available: Int = 0
507 |     guard ioctl(self.inputFile, LineReader.FIONREAD, &available) >= 0 else {
    |           `- error: cannot find 'ioctl' in scope
508 |       return 0
509 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:559:8: error: cannot find 'read' in scope
557 |   private func readByte() -> UInt8? {
558 |     var input: UInt8 = 0
559 |     if read(self.inputFile, &input, 1) == 0 {
    |        `- error: cannot find 'read' in scope
560 |       return nil
561 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:567:9: error: cannot find 'read' in scope
565 |   private func forceReadByte() -> UInt8 {
566 |     var input: UInt8 = 0
567 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
568 |     return input
569 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:573:9: error: cannot find 'read' in scope
571 |   private func readCharacter() -> Character? {
572 |     var input: UInt8 = 0
573 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
574 |     return Character(UnicodeScalar(input))
575 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:594:8: error: cannot find 'write' in scope
592 |
593 |   private func output(text: String) throws {
594 |     if write(self.outputFile, text, text.utf8.count) == -1 {
    |        `- error: cannot find 'write' in scope
595 |       throw LineReaderError.generalError("Unable to write to output")
596 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:690:26: error: cannot find type 'termios' in scope
688 |
689 |   private func withRawMode(body: () throws -> ()) throws {
690 |     var originalTermios: termios = termios()
    |                          `- error: cannot find type 'termios' in scope
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:692:11: error: cannot find 'tcsetattr' in scope
690 |     var originalTermios: termios = termios()
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |           `- error: cannot find 'tcsetattr' in scope
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:692:37: error: cannot find 'TCSADRAIN' in scope
690 |     var originalTermios: termios = termios()
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |                                     `- error: cannot find 'TCSADRAIN' in scope
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:694:8: error: cannot find 'tcgetattr' in scope
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
    |        `- error: cannot find 'tcgetattr' in scope
695 |       throw LineReaderError.generalError("could not get term attributes")
696 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:21: error: cannot find 'tcflag_t' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                     `- error: cannot find 'tcflag_t' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:30: error: cannot find 'BRKINT' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                              `- error: cannot find 'BRKINT' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:39: error: cannot find 'ICRNL' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                       `- error: cannot find 'ICRNL' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:47: error: cannot find 'INPCK' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                               `- error: cannot find 'INPCK' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:55: error: cannot find 'ISTRIP' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                       `- error: cannot find 'ISTRIP' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:64: error: cannot find 'IXON' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                                `- error: cannot find 'IXON' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:699:21: error: cannot find 'tcflag_t' in scope
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                     `- error: cannot find 'tcflag_t' in scope
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:699:30: error: cannot find 'OPOST' in scope
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                              `- error: cannot find 'OPOST' in scope
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:700:20: error: cannot find 'tcflag_t' in scope
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
    |                    `- error: cannot find 'tcflag_t' in scope
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
702 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:700:29: error: cannot find 'CS8' in scope
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
    |                             `- error: cannot find 'CS8' in scope
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
702 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:21: error: cannot find 'tcflag_t' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                     `- error: cannot find 'tcflag_t' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:30: error: cannot find 'ECHO' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                              `- error: cannot find 'ECHO' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:37: error: cannot find 'ICANON' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                     `- error: cannot find 'ICANON' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:46: error: cannot find 'IEXTEN' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                              `- error: cannot find 'IEXTEN' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:55: error: cannot find 'ISIG' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                                       `- error: cannot find 'ISIG' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:11: error: cannot find 'tcsetattr' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
704 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
705 |       throw LineReaderError.generalError("Could not set raw mode")
706 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:37: error: cannot find 'TCSADRAIN' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
704 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |                                     `- error: cannot find 'TCSADRAIN' in scope
705 |       throw LineReaderError.generalError("Could not set raw mode")
706 |     }
[22/26] Compiling CommandLineKit LineReader.swift
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:75:35: error: cannot find 'STDIN_FILENO' in scope
 73 |
 74 |   /// Initializer
 75 |   public init?(inputFile: Int32 = STDIN_FILENO,
    |                                   `- error: cannot find 'STDIN_FILENO' in scope
 76 |                outputFile: Int32 = STDOUT_FILENO,
 77 |                completionCallback: ((String) -> [String])? = nil,
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:76:36: error: cannot find 'STDOUT_FILENO' in scope
 74 |   /// Initializer
 75 |   public init?(inputFile: Int32 = STDIN_FILENO,
 76 |                outputFile: Int32 = STDOUT_FILENO,
    |                                    `- error: cannot find 'STDOUT_FILENO' in scope
 77 |                completionCallback: ((String) -> [String])? = nil,
 78 |                hintsCallback: ((String) -> (String, TextProperties)?)? = nil) {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:82:8: error: cannot find 'isatty' in scope
 80 |     self.outputFile = outputFile
 81 |     self.currentTerm = Terminal.current
 82 |     if isatty(inputFile) != 1 {
    |        `- error: cannot find 'isatty' in scope
 83 |       return nil
 84 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:493:19: error: cannot find 'winsize' in scope
491 |
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
    |                   `- error: cannot find 'winsize' in scope
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
495 |       return 80
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:494:8: error: cannot find 'ioctl' in scope
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
    |        `- error: cannot find 'ioctl' in scope
495 |       return 80
496 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:494:22: error: cannot find 'TIOCGWINSZ' in scope
492 |   private var numColumns: Int {
493 |     var winSize = winsize()
494 |     if ioctl(1, UInt(TIOCGWINSZ), &winSize) == -1 || winSize.ws_col == 0 {
    |                      `- error: cannot find 'TIOCGWINSZ' in scope
495 |       return 80
496 |     } else {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:507:11: error: cannot find 'ioctl' in scope
505 |   private var bytesAvailable: Int {
506 |     var available: Int = 0
507 |     guard ioctl(self.inputFile, LineReader.FIONREAD, &available) >= 0 else {
    |           `- error: cannot find 'ioctl' in scope
508 |       return 0
509 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:559:8: error: cannot find 'read' in scope
557 |   private func readByte() -> UInt8? {
558 |     var input: UInt8 = 0
559 |     if read(self.inputFile, &input, 1) == 0 {
    |        `- error: cannot find 'read' in scope
560 |       return nil
561 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:567:9: error: cannot find 'read' in scope
565 |   private func forceReadByte() -> UInt8 {
566 |     var input: UInt8 = 0
567 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
568 |     return input
569 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:573:9: error: cannot find 'read' in scope
571 |   private func readCharacter() -> Character? {
572 |     var input: UInt8 = 0
573 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
574 |     return Character(UnicodeScalar(input))
575 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:594:8: error: cannot find 'write' in scope
592 |
593 |   private func output(text: String) throws {
594 |     if write(self.outputFile, text, text.utf8.count) == -1 {
    |        `- error: cannot find 'write' in scope
595 |       throw LineReaderError.generalError("Unable to write to output")
596 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:690:26: error: cannot find type 'termios' in scope
688 |
689 |   private func withRawMode(body: () throws -> ()) throws {
690 |     var originalTermios: termios = termios()
    |                          `- error: cannot find type 'termios' in scope
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:692:11: error: cannot find 'tcsetattr' in scope
690 |     var originalTermios: termios = termios()
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |           `- error: cannot find 'tcsetattr' in scope
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:692:37: error: cannot find 'TCSADRAIN' in scope
690 |     var originalTermios: termios = termios()
691 |     defer {
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |                                     `- error: cannot find 'TCSADRAIN' in scope
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:694:8: error: cannot find 'tcgetattr' in scope
692 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
693 |     }
694 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
    |        `- error: cannot find 'tcgetattr' in scope
695 |       throw LineReaderError.generalError("could not get term attributes")
696 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:21: error: cannot find 'tcflag_t' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                     `- error: cannot find 'tcflag_t' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:30: error: cannot find 'BRKINT' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                              `- error: cannot find 'BRKINT' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:39: error: cannot find 'ICRNL' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                       `- error: cannot find 'ICRNL' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:47: error: cannot find 'INPCK' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                               `- error: cannot find 'INPCK' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:55: error: cannot find 'ISTRIP' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                       `- error: cannot find 'ISTRIP' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:64: error: cannot find 'IXON' in scope
696 |     }
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                                `- error: cannot find 'IXON' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:699:21: error: cannot find 'tcflag_t' in scope
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                     `- error: cannot find 'tcflag_t' in scope
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:699:30: error: cannot find 'OPOST' in scope
697 |     var raw = originalTermios
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                              `- error: cannot find 'OPOST' in scope
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:700:20: error: cannot find 'tcflag_t' in scope
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
    |                    `- error: cannot find 'tcflag_t' in scope
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
702 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:700:29: error: cannot find 'CS8' in scope
698 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
    |                             `- error: cannot find 'CS8' in scope
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
702 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:21: error: cannot find 'tcflag_t' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                     `- error: cannot find 'tcflag_t' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:30: error: cannot find 'ECHO' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                              `- error: cannot find 'ECHO' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:37: error: cannot find 'ICANON' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                     `- error: cannot find 'ICANON' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:46: error: cannot find 'IEXTEN' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                              `- error: cannot find 'IEXTEN' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:701:55: error: cannot find 'ISIG' in scope
699 |     raw.c_oflag &= ~tcflag_t(OPOST)
700 |     raw.c_cflag |= tcflag_t(CS8)
701 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                                       `- error: cannot find 'ISIG' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:11: error: cannot find 'tcsetattr' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
704 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
705 |       throw LineReaderError.generalError("Could not set raw mode")
706 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:37: error: cannot find 'TCSADRAIN' in scope
702 |     // VMIN = 16
703 |     raw.c_cc.16 = 1
704 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |                                     `- error: cannot find 'TCSADRAIN' in scope
705 |       throw LineReaderError.generalError("Could not set raw mode")
706 |     }
BUILD FAILURE 6.1 android