Build Information
Failed to build CommandLineKit, reference 1.1.1 (58aa1a), with Swift 6.1 for Wasm on 26 Jun 2026 13:38:22 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/objecthub/swift-commandlinekit.git
Reference: 1.1.1
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.1 -> FETCH_HEAD
HEAD is now at 58aa1a2 Finalize 1.1.1 release.
Cloned https://github.com/objecthub/swift-commandlinekit.git
Revision (git rev-parse @):
58aa1a2285c5b8ad54e874a2bd66f790eb7e1766
SUCCESS checkout https://github.com/objecthub/swift-commandlinekit.git at 1.1.1
========================================
Build
========================================
Selected platform: wasm
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-53886769-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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-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/25] 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/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: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: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:275:11: error: cannot find 'tcsetattr' in scope
273 | // Ctrl+C
274 | case 3:
275 | tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
| `- error: cannot find 'tcsetattr' in scope
276 | throw LineReaderError.CTRLC
277 | // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:275:35: error: cannot find 'TCSANOW' in scope
273 | // Ctrl+C
274 | case 3:
275 | tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
| `- error: cannot find 'TCSANOW' in scope
276 | throw LineReaderError.CTRLC
277 | // Ctrl+U — clear entire line
[5/27] Compiling CommandLineKit Command.swift
[6/27] Compiling CommandLineKit ControlCharacters.swift
[7/27] Compiling CommandLineKit ConvertibleFromString.swift
[8/27] Compiling CommandLineKit AnsiCodes.swift
[9/27] Compiling CommandLineKit AnsiText.swift
[10/27] Compiling CommandLineKit BackgroundColor.swift
[11/27] Compiling CommandLineKit LineReader.swift
/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: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: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 | }
[12/27] Compiling CommandLineKit LineReaderError.swift
/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: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: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 | }
[13/27] Compiling CommandLineKit FlagWrapper.swift
[14/27] Compiling CommandLineKit Flags.swift
[15/27] Compiling CommandLineKit LineReaderHistory.swift
[16/27] Compiling CommandLineKit String.swift
[17/27] 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.
[18/27] 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.
[19/27] 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.
[20/27] 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: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: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: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:275:11: error: cannot find 'tcsetattr' in scope
273 | // Ctrl+C
274 | case 3:
275 | tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
| `- error: cannot find 'tcsetattr' in scope
276 | throw LineReaderError.CTRLC
277 | // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:275:35: error: cannot find 'TCSANOW' in scope
273 | // Ctrl+C
274 | case 3:
275 | tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
| `- error: cannot find 'TCSANOW' in scope
276 | throw LineReaderError.CTRLC
277 | // 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: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 | }
[21/27] Compiling CommandLineKit TextColor.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: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: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: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:275:11: error: cannot find 'tcsetattr' in scope
273 | // Ctrl+C
274 | case 3:
275 | tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
| `- error: cannot find 'tcsetattr' in scope
276 | throw LineReaderError.CTRLC
277 | // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:275:35: error: cannot find 'TCSANOW' in scope
273 | // Ctrl+C
274 | case 3:
275 | tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
| `- error: cannot find 'TCSANOW' in scope
276 | throw LineReaderError.CTRLC
277 | // 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: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 | }
[22/27] Compiling CommandLineKit TextProperties.swift
[23/27] Compiling CommandLineKit TextStyle.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-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/23] Emitting module CommandLineKit
/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: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: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:275:11: error: cannot find 'tcsetattr' in scope
273 | // Ctrl+C
274 | case 3:
275 | tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
| `- error: cannot find 'tcsetattr' in scope
276 | throw LineReaderError.CTRLC
277 | // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:275:35: error: cannot find 'TCSANOW' in scope
273 | // Ctrl+C
274 | case 3:
275 | tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
| `- error: cannot find 'TCSANOW' in scope
276 | throw LineReaderError.CTRLC
277 | // Ctrl+U — clear entire line
[3/25] Compiling CommandLineKit Command.swift
[4/25] Compiling CommandLineKit ControlCharacters.swift
[5/25] Compiling CommandLineKit ConvertibleFromString.swift
[6/25] Compiling CommandLineKit LineReaderHistory.swift
[7/25] Compiling CommandLineKit String.swift
[8/25] 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: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: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: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:275:11: error: cannot find 'tcsetattr' in scope
273 | // Ctrl+C
274 | case 3:
275 | tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
| `- error: cannot find 'tcsetattr' in scope
276 | throw LineReaderError.CTRLC
277 | // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:275:35: error: cannot find 'TCSANOW' in scope
273 | // Ctrl+C
274 | case 3:
275 | tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
| `- error: cannot find 'TCSANOW' in scope
276 | throw LineReaderError.CTRLC
277 | // 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: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 | }
[9/25] Compiling CommandLineKit TextColor.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: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: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: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:275:11: error: cannot find 'tcsetattr' in scope
273 | // Ctrl+C
274 | case 3:
275 | tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
| `- error: cannot find 'tcsetattr' in scope
276 | throw LineReaderError.CTRLC
277 | // Ctrl+U — clear entire line
/host/spi-builder-workspace/Sources/CommandLineKit/Terminal.swift:275:35: error: cannot find 'TCSANOW' in scope
273 | // Ctrl+C
274 | case 3:
275 | tcsetattr(STDIN_FILENO, TCSANOW, &originalTermios)
| `- error: cannot find 'TCSANOW' in scope
276 | throw LineReaderError.CTRLC
277 | // 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: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 | }
[10/25] Compiling CommandLineKit EditState.swift
[11/25] Compiling CommandLineKit Flag.swift
[12/25] Compiling CommandLineKit FlagError.swift
[13/25] Compiling CommandLineKit TextProperties.swift
[14/25] Compiling CommandLineKit TextStyle.swift
[15/25] Compiling CommandLineKit AnsiCodes.swift
[16/25] Compiling CommandLineKit AnsiText.swift
[17/25] Compiling CommandLineKit BackgroundColor.swift
[18/25] Compiling CommandLineKit FlagWrapper.swift
[19/25] Compiling CommandLineKit Flags.swift
[20/25] Compiling CommandLineKit LineReader.swift
/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: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: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 | }
[21/25] Compiling CommandLineKit LineReaderError.swift
/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: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: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 | }
BUILD FAILURE 6.1 wasm