The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CommandLineKit, reference 0.3.5 (c66994), with Swift 6.1 for Android on 28 May 2025 12:36:10 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/objecthub/swift-commandlinekit.git
Reference: 0.3.5
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               0.3.5      -> FETCH_HEAD
HEAD is now at c66994d Improve color detection. Migrate project to Xcode 14.2.
Cloned https://github.com/objecthub/swift-commandlinekit.git
Revision (git rev-parse @):
c66994d36c654fdd4a27863e5f8aaadc101099eb
SUCCESS checkout https://github.com/objecthub/swift-commandlinekit.git at 0.3.5
========================================
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
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CommandLineKit",
  "name" : "CommandLineKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "CommandLineKit",
      "targets" : [
        "CommandLineKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CommandLineKitDemo",
      "targets" : [
        "CommandLineKitDemo"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "CommandLineKitTests",
      "module_type" : "SwiftTarget",
      "name" : "CommandLineKitTests",
      "path" : "Tests/CommandLineKitTests",
      "sources" : [
        "AnsiCodesTests.swift",
        "EditStateTests.swift",
        "FlagTests.swift",
        "LineReaderHistoryTests.swift"
      ],
      "target_dependencies" : [
        "CommandLineKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CommandLineKitDemo",
      "module_type" : "SwiftTarget",
      "name" : "CommandLineKitDemo",
      "path" : "Sources/CommandLineKitDemo",
      "product_memberships" : [
        "CommandLineKitDemo"
      ],
      "sources" : [
        "LinuxMain.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "CommandLineKit"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "CommandLineKit",
      "module_type" : "SwiftTarget",
      "name" : "CommandLineKit",
      "path" : "Sources/CommandLineKit",
      "product_memberships" : [
        "CommandLineKit",
        "CommandLineKitDemo"
      ],
      "sources" : [
        "AnsiCodes.swift",
        "BackgroundColor.swift",
        "ControlCharacters.swift",
        "ConvertibleFromString.swift",
        "EditState.swift",
        "Flag.swift",
        "FlagError.swift",
        "Flags.swift",
        "LineReader.swift",
        "LineReaderError.swift",
        "LineReaderHistory.swift",
        "Terminal.swift",
        "TextColor.swift",
        "TextProperties.swift",
        "TextStyle.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/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 finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/22] Compiling CommandLineKit ControlCharacters.swift
[5/22] Compiling CommandLineKit ConvertibleFromString.swift
[6/23] Compiling CommandLineKit TextColor.swift
/host/spi-builder-workspace/Sources/CommandLineKit/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
 39 | /// a string with the `apply(to:)` function.
 40 | ///
 41 | public struct TextProperties: Hashable {
    |               `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
 42 |   let textColor: TextColor?
 43 |   let backgroundColor: BackgroundColor?
 44 |   let textStyles: Set<TextStyle>
 45 |
 46 |   public static let none = TextProperties()
    |                     |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |
 48 |   public init(textColor: TextColor? = nil,
[7/23] Compiling CommandLineKit TextProperties.swift
/host/spi-builder-workspace/Sources/CommandLineKit/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
 39 | /// a string with the `apply(to:)` function.
 40 | ///
 41 | public struct TextProperties: Hashable {
    |               `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
 42 |   let textColor: TextColor?
 43 |   let backgroundColor: BackgroundColor?
 44 |   let textStyles: Set<TextStyle>
 45 |
 46 |   public static let none = TextProperties()
    |                     |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |
 48 |   public init(textColor: TextColor? = nil,
[8/23] Compiling CommandLineKit LineReaderHistory.swift
[9/23] Compiling CommandLineKit Terminal.swift
[10/23] 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.
[11/23] Compiling CommandLineKit Flags.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.
[12/23] Compiling CommandLineKit EditState.swift
[13/23] Compiling CommandLineKit Flag.swift
[14/23] 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:565:8: error: cannot find 'read' in scope
563 |   private func readByte() -> UInt8? {
564 |     var input: UInt8 = 0
565 |     if read(self.inputFile, &input, 1) == 0 {
    |        `- error: cannot find 'read' in scope
566 |       return nil
567 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:573:9: error: cannot find 'read' in scope
571 |   private func forceReadByte() -> UInt8 {
572 |     var input: UInt8 = 0
573 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
574 |     return input
575 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:579:9: error: cannot find 'read' in scope
577 |   private func readCharacter() -> Character? {
578 |     var input: UInt8 = 0
579 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
580 |     return Character(UnicodeScalar(input))
581 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:600:8: error: cannot find 'write' in scope
598 |
599 |   private func output(text: String) throws {
600 |     if write(self.outputFile, text, text.utf8.count) == -1 {
    |        `- error: cannot find 'write' in scope
601 |       throw LineReaderError.generalError("Unable to write to output")
602 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:696:26: error: cannot find type 'termios' in scope
694 |
695 |   private func withRawMode(body: () throws -> ()) throws {
696 |     var originalTermios: termios = termios()
    |                          `- error: cannot find type 'termios' in scope
697 |     defer {
698 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:11: error: cannot find 'tcsetattr' in scope
696 |     var originalTermios: termios = termios()
697 |     defer {
698 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |           `- error: cannot find 'tcsetattr' in scope
699 |     }
700 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:37: error: cannot find 'TCSADRAIN' in scope
696 |     var originalTermios: termios = termios()
697 |     defer {
698 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |                                     `- error: cannot find 'TCSADRAIN' in scope
699 |     }
700 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:700:8: error: cannot find 'tcgetattr' in scope
698 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
699 |     }
700 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
    |        `- error: cannot find 'tcgetattr' in scope
701 |       throw LineReaderError.generalError("could not get term attributes")
702 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:21: error: cannot find 'tcflag_t' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                     `- error: cannot find 'tcflag_t' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:30: error: cannot find 'BRKINT' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                              `- error: cannot find 'BRKINT' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:39: error: cannot find 'ICRNL' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                       `- error: cannot find 'ICRNL' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:47: error: cannot find 'INPCK' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                               `- error: cannot find 'INPCK' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:55: error: cannot find 'ISTRIP' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                       `- error: cannot find 'ISTRIP' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:64: error: cannot find 'IXON' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                                `- error: cannot find 'IXON' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:705:21: error: cannot find 'tcflag_t' in scope
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                     `- error: cannot find 'tcflag_t' in scope
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:705:30: error: cannot find 'OPOST' in scope
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                              `- error: cannot find 'OPOST' in scope
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:706:20: error: cannot find 'tcflag_t' in scope
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
    |                    `- error: cannot find 'tcflag_t' in scope
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
708 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:706:29: error: cannot find 'CS8' in scope
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
    |                             `- error: cannot find 'CS8' in scope
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
708 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:21: error: cannot find 'tcflag_t' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                     `- error: cannot find 'tcflag_t' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:30: error: cannot find 'ECHO' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                              `- error: cannot find 'ECHO' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:37: error: cannot find 'ICANON' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                     `- error: cannot find 'ICANON' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:46: error: cannot find 'IEXTEN' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                              `- error: cannot find 'IEXTEN' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:55: error: cannot find 'ISIG' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                                       `- error: cannot find 'ISIG' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:710:11: error: cannot find 'tcsetattr' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
710 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
711 |       throw LineReaderError.generalError("Could not set raw mode")
712 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:710:37: error: cannot find 'TCSADRAIN' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
710 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |                                     `- error: cannot find 'TCSADRAIN' in scope
711 |       throw LineReaderError.generalError("Could not set raw mode")
712 |     }
[15/23] Compiling CommandLineKit LineReaderError.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:565:8: error: cannot find 'read' in scope
563 |   private func readByte() -> UInt8? {
564 |     var input: UInt8 = 0
565 |     if read(self.inputFile, &input, 1) == 0 {
    |        `- error: cannot find 'read' in scope
566 |       return nil
567 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:573:9: error: cannot find 'read' in scope
571 |   private func forceReadByte() -> UInt8 {
572 |     var input: UInt8 = 0
573 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
574 |     return input
575 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:579:9: error: cannot find 'read' in scope
577 |   private func readCharacter() -> Character? {
578 |     var input: UInt8 = 0
579 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
580 |     return Character(UnicodeScalar(input))
581 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:600:8: error: cannot find 'write' in scope
598 |
599 |   private func output(text: String) throws {
600 |     if write(self.outputFile, text, text.utf8.count) == -1 {
    |        `- error: cannot find 'write' in scope
601 |       throw LineReaderError.generalError("Unable to write to output")
602 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:696:26: error: cannot find type 'termios' in scope
694 |
695 |   private func withRawMode(body: () throws -> ()) throws {
696 |     var originalTermios: termios = termios()
    |                          `- error: cannot find type 'termios' in scope
697 |     defer {
698 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:11: error: cannot find 'tcsetattr' in scope
696 |     var originalTermios: termios = termios()
697 |     defer {
698 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |           `- error: cannot find 'tcsetattr' in scope
699 |     }
700 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:37: error: cannot find 'TCSADRAIN' in scope
696 |     var originalTermios: termios = termios()
697 |     defer {
698 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |                                     `- error: cannot find 'TCSADRAIN' in scope
699 |     }
700 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:700:8: error: cannot find 'tcgetattr' in scope
698 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
699 |     }
700 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
    |        `- error: cannot find 'tcgetattr' in scope
701 |       throw LineReaderError.generalError("could not get term attributes")
702 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:21: error: cannot find 'tcflag_t' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                     `- error: cannot find 'tcflag_t' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:30: error: cannot find 'BRKINT' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                              `- error: cannot find 'BRKINT' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:39: error: cannot find 'ICRNL' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                       `- error: cannot find 'ICRNL' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:47: error: cannot find 'INPCK' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                               `- error: cannot find 'INPCK' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:55: error: cannot find 'ISTRIP' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                       `- error: cannot find 'ISTRIP' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:64: error: cannot find 'IXON' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                                `- error: cannot find 'IXON' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:705:21: error: cannot find 'tcflag_t' in scope
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                     `- error: cannot find 'tcflag_t' in scope
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:705:30: error: cannot find 'OPOST' in scope
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                              `- error: cannot find 'OPOST' in scope
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:706:20: error: cannot find 'tcflag_t' in scope
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
    |                    `- error: cannot find 'tcflag_t' in scope
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
708 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:706:29: error: cannot find 'CS8' in scope
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
    |                             `- error: cannot find 'CS8' in scope
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
708 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:21: error: cannot find 'tcflag_t' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                     `- error: cannot find 'tcflag_t' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:30: error: cannot find 'ECHO' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                              `- error: cannot find 'ECHO' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:37: error: cannot find 'ICANON' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                     `- error: cannot find 'ICANON' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:46: error: cannot find 'IEXTEN' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                              `- error: cannot find 'IEXTEN' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:55: error: cannot find 'ISIG' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                                       `- error: cannot find 'ISIG' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:710:11: error: cannot find 'tcsetattr' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
710 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
711 |       throw LineReaderError.generalError("Could not set raw mode")
712 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:710:37: error: cannot find 'TCSADRAIN' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
710 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |                                     `- error: cannot find 'TCSADRAIN' in scope
711 |       throw LineReaderError.generalError("Could not set raw mode")
712 |     }
[16/23] Compiling CommandLineKit AnsiCodes.swift
[17/23] Compiling CommandLineKit BackgroundColor.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/23] 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/TextProperties.swift:46:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
 39 | /// a string with the `apply(to:)` function.
 40 | ///
 41 | public struct TextProperties: Hashable {
    |               `- note: consider making struct 'TextProperties' conform to the 'Sendable' protocol
 42 |   let textColor: TextColor?
 43 |   let backgroundColor: BackgroundColor?
 44 |   let textStyles: Set<TextStyle>
 45 |
 46 |   public static let none = TextProperties()
    |                     |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TextProperties' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |
 48 |   public init(textColor: TextColor? = nil,
[19/23] Compiling CommandLineKit TextStyle.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/20] 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) {
[3/21] Compiling CommandLineKit TextColor.swift
[4/21] Compiling CommandLineKit TextProperties.swift
[5/21] Compiling CommandLineKit TextStyle.swift
[6/21] Compiling CommandLineKit LineReaderHistory.swift
[7/21] Compiling CommandLineKit Terminal.swift
[8/21] Compiling CommandLineKit FlagError.swift
[9/21] Compiling CommandLineKit Flags.swift
[10/21] Compiling CommandLineKit EditState.swift
[11/21] Compiling CommandLineKit Flag.swift
[12/21] Compiling CommandLineKit ControlCharacters.swift
[13/21] Compiling CommandLineKit ConvertibleFromString.swift
[14/21] 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:565:8: error: cannot find 'read' in scope
563 |   private func readByte() -> UInt8? {
564 |     var input: UInt8 = 0
565 |     if read(self.inputFile, &input, 1) == 0 {
    |        `- error: cannot find 'read' in scope
566 |       return nil
567 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:573:9: error: cannot find 'read' in scope
571 |   private func forceReadByte() -> UInt8 {
572 |     var input: UInt8 = 0
573 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
574 |     return input
575 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:579:9: error: cannot find 'read' in scope
577 |   private func readCharacter() -> Character? {
578 |     var input: UInt8 = 0
579 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
580 |     return Character(UnicodeScalar(input))
581 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:600:8: error: cannot find 'write' in scope
598 |
599 |   private func output(text: String) throws {
600 |     if write(self.outputFile, text, text.utf8.count) == -1 {
    |        `- error: cannot find 'write' in scope
601 |       throw LineReaderError.generalError("Unable to write to output")
602 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:696:26: error: cannot find type 'termios' in scope
694 |
695 |   private func withRawMode(body: () throws -> ()) throws {
696 |     var originalTermios: termios = termios()
    |                          `- error: cannot find type 'termios' in scope
697 |     defer {
698 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:11: error: cannot find 'tcsetattr' in scope
696 |     var originalTermios: termios = termios()
697 |     defer {
698 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |           `- error: cannot find 'tcsetattr' in scope
699 |     }
700 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:37: error: cannot find 'TCSADRAIN' in scope
696 |     var originalTermios: termios = termios()
697 |     defer {
698 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |                                     `- error: cannot find 'TCSADRAIN' in scope
699 |     }
700 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:700:8: error: cannot find 'tcgetattr' in scope
698 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
699 |     }
700 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
    |        `- error: cannot find 'tcgetattr' in scope
701 |       throw LineReaderError.generalError("could not get term attributes")
702 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:21: error: cannot find 'tcflag_t' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                     `- error: cannot find 'tcflag_t' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:30: error: cannot find 'BRKINT' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                              `- error: cannot find 'BRKINT' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:39: error: cannot find 'ICRNL' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                       `- error: cannot find 'ICRNL' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:47: error: cannot find 'INPCK' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                               `- error: cannot find 'INPCK' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:55: error: cannot find 'ISTRIP' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                       `- error: cannot find 'ISTRIP' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:64: error: cannot find 'IXON' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                                `- error: cannot find 'IXON' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:705:21: error: cannot find 'tcflag_t' in scope
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                     `- error: cannot find 'tcflag_t' in scope
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:705:30: error: cannot find 'OPOST' in scope
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                              `- error: cannot find 'OPOST' in scope
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:706:20: error: cannot find 'tcflag_t' in scope
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
    |                    `- error: cannot find 'tcflag_t' in scope
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
708 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:706:29: error: cannot find 'CS8' in scope
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
    |                             `- error: cannot find 'CS8' in scope
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
708 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:21: error: cannot find 'tcflag_t' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                     `- error: cannot find 'tcflag_t' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:30: error: cannot find 'ECHO' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                              `- error: cannot find 'ECHO' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:37: error: cannot find 'ICANON' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                     `- error: cannot find 'ICANON' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:46: error: cannot find 'IEXTEN' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                              `- error: cannot find 'IEXTEN' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:55: error: cannot find 'ISIG' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                                       `- error: cannot find 'ISIG' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:710:11: error: cannot find 'tcsetattr' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
710 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
711 |       throw LineReaderError.generalError("Could not set raw mode")
712 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:710:37: error: cannot find 'TCSADRAIN' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
710 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |                                     `- error: cannot find 'TCSADRAIN' in scope
711 |       throw LineReaderError.generalError("Could not set raw mode")
712 |     }
[15/21] Compiling CommandLineKit LineReaderError.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:565:8: error: cannot find 'read' in scope
563 |   private func readByte() -> UInt8? {
564 |     var input: UInt8 = 0
565 |     if read(self.inputFile, &input, 1) == 0 {
    |        `- error: cannot find 'read' in scope
566 |       return nil
567 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:573:9: error: cannot find 'read' in scope
571 |   private func forceReadByte() -> UInt8 {
572 |     var input: UInt8 = 0
573 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
574 |     return input
575 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:579:9: error: cannot find 'read' in scope
577 |   private func readCharacter() -> Character? {
578 |     var input: UInt8 = 0
579 |     _ = read(self.inputFile, &input, 1)
    |         `- error: cannot find 'read' in scope
580 |     return Character(UnicodeScalar(input))
581 |   }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:600:8: error: cannot find 'write' in scope
598 |
599 |   private func output(text: String) throws {
600 |     if write(self.outputFile, text, text.utf8.count) == -1 {
    |        `- error: cannot find 'write' in scope
601 |       throw LineReaderError.generalError("Unable to write to output")
602 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:696:26: error: cannot find type 'termios' in scope
694 |
695 |   private func withRawMode(body: () throws -> ()) throws {
696 |     var originalTermios: termios = termios()
    |                          `- error: cannot find type 'termios' in scope
697 |     defer {
698 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:11: error: cannot find 'tcsetattr' in scope
696 |     var originalTermios: termios = termios()
697 |     defer {
698 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |           `- error: cannot find 'tcsetattr' in scope
699 |     }
700 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:698:37: error: cannot find 'TCSADRAIN' in scope
696 |     var originalTermios: termios = termios()
697 |     defer {
698 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
    |                                     `- error: cannot find 'TCSADRAIN' in scope
699 |     }
700 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:700:8: error: cannot find 'tcgetattr' in scope
698 |       _ = tcsetattr(self.inputFile, TCSADRAIN, &originalTermios)
699 |     }
700 |     if tcgetattr(self.inputFile, &originalTermios) == -1 {
    |        `- error: cannot find 'tcgetattr' in scope
701 |       throw LineReaderError.generalError("could not get term attributes")
702 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:21: error: cannot find 'tcflag_t' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                     `- error: cannot find 'tcflag_t' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:30: error: cannot find 'BRKINT' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                              `- error: cannot find 'BRKINT' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:39: error: cannot find 'ICRNL' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                       `- error: cannot find 'ICRNL' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:47: error: cannot find 'INPCK' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                               `- error: cannot find 'INPCK' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:55: error: cannot find 'ISTRIP' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                       `- error: cannot find 'ISTRIP' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:704:64: error: cannot find 'IXON' in scope
702 |     }
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
    |                                                                `- error: cannot find 'IXON' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:705:21: error: cannot find 'tcflag_t' in scope
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                     `- error: cannot find 'tcflag_t' in scope
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:705:30: error: cannot find 'OPOST' in scope
703 |     var raw = originalTermios
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
    |                              `- error: cannot find 'OPOST' in scope
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:706:20: error: cannot find 'tcflag_t' in scope
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
    |                    `- error: cannot find 'tcflag_t' in scope
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
708 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:706:29: error: cannot find 'CS8' in scope
704 |     raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
    |                             `- error: cannot find 'CS8' in scope
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
708 |     // VMIN = 16
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:21: error: cannot find 'tcflag_t' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                     `- error: cannot find 'tcflag_t' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:30: error: cannot find 'ECHO' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                              `- error: cannot find 'ECHO' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:37: error: cannot find 'ICANON' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                     `- error: cannot find 'ICANON' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:46: error: cannot find 'IEXTEN' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                              `- error: cannot find 'IEXTEN' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:707:55: error: cannot find 'ISIG' in scope
705 |     raw.c_oflag &= ~tcflag_t(OPOST)
706 |     raw.c_cflag |= tcflag_t(CS8)
707 |     raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
    |                                                       `- error: cannot find 'ISIG' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:710:11: error: cannot find 'tcsetattr' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
710 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
711 |       throw LineReaderError.generalError("Could not set raw mode")
712 |     }
/host/spi-builder-workspace/Sources/CommandLineKit/LineReader.swift:710:37: error: cannot find 'TCSADRAIN' in scope
708 |     // VMIN = 16
709 |     raw.c_cc.16 = 1
710 |     guard tcsetattr(self.inputFile, TCSADRAIN, &raw) >= 0 else {
    |                                     `- error: cannot find 'TCSADRAIN' in scope
711 |       throw LineReaderError.generalError("Could not set raw mode")
712 |     }
[16/21] Compiling CommandLineKit AnsiCodes.swift
[17/21] Compiling CommandLineKit BackgroundColor.swift
BUILD FAILURE 6.1 android