Build Information
Failed to build AsyncLineReader, reference main (8db134), with Swift 6.2 for Wasm on 3 Sep 2026 09:07:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PADL/AsyncLineReader.git
Reference: main
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/PADL/AsyncLineReader
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 8db134e Stop the POSIX source the way setSource now expects
Cloned https://github.com/PADL/AsyncLineReader.git
Revision (git rev-parse @):
8db134e05a1ed5e000604e21b65476f60d89df35
SUCCESS checkout https://github.com/PADL/AsyncLineReader.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/PADL/AsyncLineReader.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:70428a4f4110aef5b17a27427e965f31cf3855e8cf1dfdc416ed61c780337965
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/16] Compiling AsyncLineReader LineBuffer.swift
[5/17] Compiling AsyncLineReader WindowsConsole.swift
[6/17] Compiling AsyncLineReader Terminal.swift
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:38:48: error: cannot find 'STDIN_FILENO' in scope
36 | public static let standard = Terminal(input: 0, output: 1)
37 | #else
38 | public static let standard = Terminal(input: STDIN_FILENO, output: STDOUT_FILENO)
| `- error: cannot find 'STDIN_FILENO' in scope
39 | #endif
40 |
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:38:70: error: cannot find 'STDOUT_FILENO' in scope
36 | public static let standard = Terminal(input: 0, output: 1)
37 | #else
38 | public static let standard = Terminal(input: STDIN_FILENO, output: STDOUT_FILENO)
| `- error: cannot find 'STDOUT_FILENO' in scope
39 | #endif
40 |
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:136:19: error: cannot find type 'termios' in scope
134 | let outputCodePage: UINT
135 | #else
136 | let attributes: termios
| `- error: cannot find type 'termios' in scope
137 | #endif
138 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:52:5: error: cannot find 'isatty' in scope
50 | isConsole(input) && isConsole(output)
51 | #else
52 | isatty(input) != 0 && isatty(output) != 0
| `- error: cannot find 'isatty' in scope
53 | #endif
54 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:52:27: error: cannot find 'isatty' in scope
50 | isConsole(input) && isConsole(output)
51 | #else
52 | isatty(input) != 0 && isatty(output) != 0
| `- error: cannot find 'isatty' in scope
53 | #endif
54 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:67:16: error: cannot find 'winsize' in scope
65 | return columns > 0 ? columns : 80
66 | #else
67 | var size = winsize()
| `- error: cannot find 'winsize' in scope
68 | guard ioctl(output, UInt(TIOCGWINSZ), &size) == 0, size.ws_col > 0 else { return 80 }
69 | return Int(size.ws_col)
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:68:11: error: cannot find 'ioctl' in scope
66 | #else
67 | var size = winsize()
68 | guard ioctl(output, UInt(TIOCGWINSZ), &size) == 0, size.ws_col > 0 else { return 80 }
| `- error: cannot find 'ioctl' in scope
69 | return Int(size.ws_col)
70 | #endif
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:68:30: error: cannot find 'TIOCGWINSZ' in scope
66 | #else
67 | var size = winsize()
68 | guard ioctl(output, UInt(TIOCGWINSZ), &size) == 0, size.ws_col > 0 else { return 80 }
| `- error: cannot find 'TIOCGWINSZ' in scope
69 | return Int(size.ws_col)
70 | #endif
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:99:9: error: cannot find 'write' in scope
97 | while offset < bytes.count {
98 | let count = bytes[offset...].withUnsafeBytes {
99 | write(output, $0.baseAddress, $0.count)
| `- error: cannot find 'write' in scope
100 | }
101 | if count > 0 {
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:104:28: error: cannot find 'errno' in scope
102 | offset += count
103 | attempts = 0
104 | } else if count < 0, errno == EINTR {
| `- error: cannot find 'errno' in scope
105 | // an escape sequence written by halves would be seen as text, so keep trying
106 | continue
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:104:37: error: cannot find 'EINTR' in scope
102 | offset += count
103 | attempts = 0
104 | } else if count < 0, errno == EINTR {
| `- error: cannot find 'EINTR' in scope
105 | // an escape sequence written by halves would be seen as text, so keep trying
106 | continue
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:107:28: error: cannot find 'errno' in scope
105 | // an escape sequence written by halves would be seen as text, so keep trying
106 | continue
107 | } else if count < 0, errno == EAGAIN || errno == EWOULDBLOCK, attempts < maximumAttempts {
| `- error: cannot find 'errno' in scope
108 | // Somebody else has made this descriptor non-blocking — the reader no longer does. Give
109 | // the terminal time to drain, but in small pieces: this runs on a thread of the
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:107:37: error: cannot find 'EAGAIN' in scope
105 | // an escape sequence written by halves would be seen as text, so keep trying
106 | continue
107 | } else if count < 0, errno == EAGAIN || errno == EWOULDBLOCK, attempts < maximumAttempts {
| `- error: cannot find 'EAGAIN' in scope
108 | // Somebody else has made this descriptor non-blocking — the reader no longer does. Give
109 | // the terminal time to drain, but in small pieces: this runs on a thread of the
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:107:47: error: cannot find 'errno' in scope
105 | // an escape sequence written by halves would be seen as text, so keep trying
106 | continue
107 | } else if count < 0, errno == EAGAIN || errno == EWOULDBLOCK, attempts < maximumAttempts {
| `- error: cannot find 'errno' in scope
108 | // Somebody else has made this descriptor non-blocking — the reader no longer does. Give
109 | // the terminal time to drain, but in small pieces: this runs on a thread of the
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:107:56: error: cannot find 'EWOULDBLOCK' in scope
105 | // an escape sequence written by halves would be seen as text, so keep trying
106 | continue
107 | } else if count < 0, errno == EAGAIN || errno == EWOULDBLOCK, attempts < maximumAttempts {
| `- error: cannot find 'EWOULDBLOCK' in scope
108 | // Somebody else has made this descriptor non-blocking — the reader no longer does. Give
109 | // the terminal time to drain, but in small pieces: this runs on a thread of the
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:113:11: error: cannot find 'sched_yield' in scope
111 | attempts += 1
112 | if attempts < yieldAttempts {
113 | sched_yield()
| `- error: cannot find 'sched_yield' in scope
114 | } else {
115 | var pause = timespec(tv_sec: 0, tv_nsec: 1_000_000)
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:115:23: error: cannot find 'timespec' in scope
113 | sched_yield()
114 | } else {
115 | var pause = timespec(tv_sec: 0, tv_nsec: 1_000_000)
| `- error: cannot find 'timespec' in scope
116 | nanosleep(&pause, nil)
117 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:116:11: error: cannot find 'nanosleep' in scope
114 | } else {
115 | var pause = timespec(tv_sec: 0, tv_nsec: 1_000_000)
116 | nanosleep(&pause, nil)
| `- error: cannot find 'nanosleep' in scope
117 | }
118 | continue
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:116:29: error: 'nil' requires a contextual type
114 | } else {
115 | var pause = timespec(tv_sec: 0, tv_nsec: 1_000_000)
116 | nanosleep(&pause, nil)
| `- error: 'nil' requires a contextual type
117 | }
118 | continue
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:242:22: error: cannot find 'termios' in scope
240 | enum TerminalMode {
241 | static func current(_ terminal: Terminal) -> TerminalSettings? {
242 | var attributes = termios()
| `- error: cannot find 'termios' in scope
243 | guard tcgetattr(terminal.input, &attributes) == 0 else { return nil }
244 | return TerminalSettings(attributes: attributes)
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:243:11: error: cannot find 'tcgetattr' in scope
241 | static func current(_ terminal: Terminal) -> TerminalSettings? {
242 | var attributes = termios()
243 | guard tcgetattr(terminal.input, &attributes) == 0 else { return nil }
| `- error: cannot find 'tcgetattr' in scope
244 | return TerminalSettings(attributes: attributes)
245 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:253:21: error: cannot find 'tcflag_t' in scope
251 |
252 | var raw = saved.attributes
253 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
| `- error: cannot find 'tcflag_t' in scope
254 | raw.c_oflag &= ~tcflag_t(OPOST)
255 | raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:253:30: error: cannot find 'BRKINT' in scope
251 |
252 | var raw = saved.attributes
253 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
| `- error: cannot find 'BRKINT' in scope
254 | raw.c_oflag &= ~tcflag_t(OPOST)
255 | raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:253:39: error: cannot find 'ICRNL' in scope
251 |
252 | var raw = saved.attributes
253 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
| `- error: cannot find 'ICRNL' in scope
254 | raw.c_oflag &= ~tcflag_t(OPOST)
255 | raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:253:47: error: cannot find 'INPCK' in scope
251 |
252 | var raw = saved.attributes
253 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
| `- error: cannot find 'INPCK' in scope
254 | raw.c_oflag &= ~tcflag_t(OPOST)
255 | raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:253:55: error: cannot find 'ISTRIP' in scope
251 |
252 | var raw = saved.attributes
253 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
| `- error: cannot find 'ISTRIP' in scope
254 | raw.c_oflag &= ~tcflag_t(OPOST)
255 | raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:253:64: error: cannot find 'IXON' in scope
251 |
252 | var raw = saved.attributes
253 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
| `- error: cannot find 'IXON' in scope
254 | raw.c_oflag &= ~tcflag_t(OPOST)
255 | raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:254:21: error: cannot find 'tcflag_t' in scope
252 | var raw = saved.attributes
253 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
254 | raw.c_oflag &= ~tcflag_t(OPOST)
| `- error: cannot find 'tcflag_t' in scope
255 | raw.c_cflag |= tcflag_t(CS8)
256 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:254:30: error: cannot find 'OPOST' in scope
252 | var raw = saved.attributes
253 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
254 | raw.c_oflag &= ~tcflag_t(OPOST)
| `- error: cannot find 'OPOST' in scope
255 | raw.c_cflag |= tcflag_t(CS8)
256 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:255:20: error: cannot find 'tcflag_t' in scope
253 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
254 | raw.c_oflag &= ~tcflag_t(OPOST)
255 | raw.c_cflag |= tcflag_t(CS8)
| `- error: cannot find 'tcflag_t' in scope
256 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
257 | withUnsafeMutablePointer(to: &raw.c_cc) {
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:255:29: error: cannot find 'CS8' in scope
253 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
254 | raw.c_oflag &= ~tcflag_t(OPOST)
255 | raw.c_cflag |= tcflag_t(CS8)
| `- error: cannot find 'CS8' in scope
256 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
257 | withUnsafeMutablePointer(to: &raw.c_cc) {
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:256:21: error: cannot find 'tcflag_t' in scope
254 | raw.c_oflag &= ~tcflag_t(OPOST)
255 | raw.c_cflag |= tcflag_t(CS8)
256 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
| `- error: cannot find 'tcflag_t' in scope
257 | withUnsafeMutablePointer(to: &raw.c_cc) {
258 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { controlCharacters in
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:256:30: error: cannot find 'ECHO' in scope
254 | raw.c_oflag &= ~tcflag_t(OPOST)
255 | raw.c_cflag |= tcflag_t(CS8)
256 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
| `- error: cannot find 'ECHO' in scope
257 | withUnsafeMutablePointer(to: &raw.c_cc) {
258 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { controlCharacters in
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:256:37: error: cannot find 'ICANON' in scope
254 | raw.c_oflag &= ~tcflag_t(OPOST)
255 | raw.c_cflag |= tcflag_t(CS8)
256 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
| `- error: cannot find 'ICANON' in scope
257 | withUnsafeMutablePointer(to: &raw.c_cc) {
258 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { controlCharacters in
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:256:46: error: cannot find 'IEXTEN' in scope
254 | raw.c_oflag &= ~tcflag_t(OPOST)
255 | raw.c_cflag |= tcflag_t(CS8)
256 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
| `- error: cannot find 'IEXTEN' in scope
257 | withUnsafeMutablePointer(to: &raw.c_cc) {
258 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { controlCharacters in
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:256:55: error: cannot find 'ISIG' in scope
254 | raw.c_oflag &= ~tcflag_t(OPOST)
255 | raw.c_cflag |= tcflag_t(CS8)
256 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
| `- error: cannot find 'ISIG' in scope
257 | withUnsafeMutablePointer(to: &raw.c_cc) {
258 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { controlCharacters in
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:258:32: error: cannot find 'cc_t' in scope
256 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
257 | withUnsafeMutablePointer(to: &raw.c_cc) {
258 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { controlCharacters in
| `- error: cannot find 'cc_t' in scope
259 | controlCharacters[Int(VMIN)] = 1
260 | controlCharacters[Int(VTIME)] = 0
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:258:57: error: cannot find 'NCCS' in scope
256 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
257 | withUnsafeMutablePointer(to: &raw.c_cc) {
258 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { controlCharacters in
| `- error: cannot find 'NCCS' in scope
259 | controlCharacters[Int(VMIN)] = 1
260 | controlCharacters[Int(VTIME)] = 0
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:259:31: error: cannot find 'VMIN' in scope
257 | withUnsafeMutablePointer(to: &raw.c_cc) {
258 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { controlCharacters in
259 | controlCharacters[Int(VMIN)] = 1
| `- error: cannot find 'VMIN' in scope
260 | controlCharacters[Int(VTIME)] = 0
261 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:260:31: error: cannot find 'VTIME' in scope
258 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { controlCharacters in
259 | controlCharacters[Int(VMIN)] = 1
260 | controlCharacters[Int(VTIME)] = 0
| `- error: cannot find 'VTIME' in scope
261 | }
262 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:264:11: error: cannot find 'tcsetattr' in scope
262 | }
263 |
264 | guard tcsetattr(terminal.input, TCSADRAIN, &raw) == 0 else { return nil }
| `- error: cannot find 'tcsetattr' in scope
265 | return saved
266 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:264:37: error: cannot find 'TCSADRAIN' in scope
262 | }
263 |
264 | guard tcsetattr(terminal.input, TCSADRAIN, &raw) == 0 else { return nil }
| `- error: cannot find 'TCSADRAIN' in scope
265 | return saved
266 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:274:21: error: cannot find 'tcflag_t' in scope
272 |
273 | var raw = saved.attributes
274 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON)
| `- error: cannot find 'tcflag_t' in scope
275 | withUnsafeMutablePointer(to: &raw.c_cc) {
276 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { controlCharacters in
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:274:30: error: cannot find 'ECHO' in scope
272 |
273 | var raw = saved.attributes
274 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON)
| `- error: cannot find 'ECHO' in scope
275 | withUnsafeMutablePointer(to: &raw.c_cc) {
276 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { controlCharacters in
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:274:37: error: cannot find 'ICANON' in scope
272 |
273 | var raw = saved.attributes
274 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON)
| `- error: cannot find 'ICANON' in scope
275 | withUnsafeMutablePointer(to: &raw.c_cc) {
276 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { controlCharacters in
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:276:32: error: cannot find 'cc_t' in scope
274 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON)
275 | withUnsafeMutablePointer(to: &raw.c_cc) {
276 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { controlCharacters in
| `- error: cannot find 'cc_t' in scope
277 | controlCharacters[Int(VMIN)] = 1
278 | controlCharacters[Int(VTIME)] = 0
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:276:57: error: cannot find 'NCCS' in scope
274 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON)
275 | withUnsafeMutablePointer(to: &raw.c_cc) {
276 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { controlCharacters in
| `- error: cannot find 'NCCS' in scope
277 | controlCharacters[Int(VMIN)] = 1
278 | controlCharacters[Int(VTIME)] = 0
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:277:31: error: cannot find 'VMIN' in scope
275 | withUnsafeMutablePointer(to: &raw.c_cc) {
276 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { controlCharacters in
277 | controlCharacters[Int(VMIN)] = 1
| `- error: cannot find 'VMIN' in scope
278 | controlCharacters[Int(VTIME)] = 0
279 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:278:31: error: cannot find 'VTIME' in scope
276 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { controlCharacters in
277 | controlCharacters[Int(VMIN)] = 1
278 | controlCharacters[Int(VTIME)] = 0
| `- error: cannot find 'VTIME' in scope
279 | }
280 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:282:11: error: cannot find 'tcsetattr' in scope
280 | }
281 |
282 | guard tcsetattr(terminal.input, TCSANOW, &raw) == 0 else { return nil }
| `- error: cannot find 'tcsetattr' in scope
283 | return saved
284 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:282:37: error: cannot find 'TCSANOW' in scope
280 | }
281 |
282 | guard tcsetattr(terminal.input, TCSANOW, &raw) == 0 else { return nil }
| `- error: cannot find 'TCSANOW' in scope
283 | return saved
284 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:288:5: error: cannot find 'tcsetattr' in scope
286 | static func restore(_ terminal: Terminal, to saved: TerminalSettings) {
287 | var attributes = saved.attributes
288 | tcsetattr(terminal.input, TCSAFLUSH, &attributes)
| `- error: cannot find 'tcsetattr' in scope
289 | }
290 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:288:31: error: cannot find 'TCSAFLUSH' in scope
286 | static func restore(_ terminal: Terminal, to saved: TerminalSettings) {
287 | var attributes = saved.attributes
288 | tcsetattr(terminal.input, TCSAFLUSH, &attributes)
| `- error: cannot find 'TCSAFLUSH' in scope
289 | }
290 | }
[7/17] Compiling AsyncLineReader Style.swift
[8/17] Compiling AsyncLineReader LineReader.swift
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:38:48: error: cannot find 'STDIN_FILENO' in scope
36 | public static let standard = Terminal(input: 0, output: 1)
37 | #else
38 | public static let standard = Terminal(input: STDIN_FILENO, output: STDOUT_FILENO)
| `- error: cannot find 'STDIN_FILENO' in scope
39 | #endif
40 |
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:38:70: error: cannot find 'STDOUT_FILENO' in scope
36 | public static let standard = Terminal(input: 0, output: 1)
37 | #else
38 | public static let standard = Terminal(input: STDIN_FILENO, output: STDOUT_FILENO)
| `- error: cannot find 'STDOUT_FILENO' in scope
39 | #endif
40 |
[9/17] Compiling AsyncLineReader Key.swift
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:125:23: error: cannot find 'DispatchQueue' in scope
123 | /// whether the descriptor must be left blocking, and so read a byte at a time
124 | private let readsOneAtATime: Bool
125 | private let queue = DispatchQueue(label: "com.padl.AsyncLineReader.input", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
126 | #endif
127 | private let input = Input()
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:125:84: error: cannot infer contextual base in reference to member 'userInteractive'
123 | /// whether the descriptor must be left blocking, and so read a byte at a time
124 | private let readsOneAtATime: Bool
125 | private let queue = DispatchQueue(label: "com.padl.AsyncLineReader.input", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
126 | #endif
127 | private let input = Input()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/17] Compiling AsyncLineReader HistoryFile.swift
[11/17] Emitting module AsyncLineReader
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:125:23: error: cannot find 'DispatchQueue' in scope
123 | /// whether the descriptor must be left blocking, and so read a byte at a time
124 | private let readsOneAtATime: Bool
125 | private let queue = DispatchQueue(label: "com.padl.AsyncLineReader.input", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
126 | #endif
127 | private let input = Input()
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:125:84: error: cannot infer contextual base in reference to member 'userInteractive'
123 | /// whether the descriptor must be left blocking, and so read a byte at a time
124 | private let readsOneAtATime: Bool
125 | private let queue = DispatchQueue(label: "com.padl.AsyncLineReader.input", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
126 | #endif
127 | private let input = Input()
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:154:8: error: cannot find 'isatty' in scope
152 | /// settings, which are per device, are unaffected.
153 | init(fileDescriptor: CInt) {
154 | if isatty(fileDescriptor) != 0, let own = Self.openControllingTerminal(like: fileDescriptor) {
| `- error: cannot find 'isatty' in scope
155 | self.fileDescriptor = own
156 | ownsDescriptor = true
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:167:42: error: cannot find 'isatty' in scope
165 | // where somebody else's write could fail, read it one keystroke at a time: a source only
166 | // fires when there is something there, so a single read cannot block.
167 | readsOneAtATime = !ownsDescriptor && isatty(fileDescriptor) != 0
| `- error: cannot find 'isatty' in scope
168 | }
169 | #endif
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:38:48: error: cannot find 'STDIN_FILENO' in scope
36 | public static let standard = Terminal(input: 0, output: 1)
37 | #else
38 | public static let standard = Terminal(input: STDIN_FILENO, output: STDOUT_FILENO)
| `- error: cannot find 'STDIN_FILENO' in scope
39 | #endif
40 |
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:38:70: error: cannot find 'STDOUT_FILENO' in scope
36 | public static let standard = Terminal(input: 0, output: 1)
37 | #else
38 | public static let standard = Terminal(input: STDIN_FILENO, output: STDOUT_FILENO)
| `- error: cannot find 'STDOUT_FILENO' in scope
39 | #endif
40 |
/host/spi-builder-workspace/Sources/AsyncLineReader/Terminal.swift:136:19: error: cannot find type 'termios' in scope
134 | let outputCodePage: UINT
135 | #else
136 | let attributes: termios
| `- error: cannot find type 'termios' in scope
137 | #endif
138 | }
[12/17] Compiling AsyncLineReader ByteStream.swift
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:125:23: error: cannot find 'DispatchQueue' in scope
123 | /// whether the descriptor must be left blocking, and so read a byte at a time
124 | private let readsOneAtATime: Bool
125 | private let queue = DispatchQueue(label: "com.padl.AsyncLineReader.input", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
126 | #endif
127 | private let input = Input()
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:125:84: error: cannot infer contextual base in reference to member 'userInteractive'
123 | /// whether the descriptor must be left blocking, and so read a byte at a time
124 | private let readsOneAtATime: Bool
125 | private let queue = DispatchQueue(label: "com.padl.AsyncLineReader.input", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
126 | #endif
127 | private let input = Input()
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:154:8: error: cannot find 'isatty' in scope
152 | /// settings, which are per device, are unaffected.
153 | init(fileDescriptor: CInt) {
154 | if isatty(fileDescriptor) != 0, let own = Self.openControllingTerminal(like: fileDescriptor) {
| `- error: cannot find 'isatty' in scope
155 | self.fileDescriptor = own
156 | ownsDescriptor = true
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:167:42: error: cannot find 'isatty' in scope
165 | // where somebody else's write could fail, read it one keystroke at a time: a source only
166 | // fires when there is something there, so a single read cannot block.
167 | readsOneAtATime = !ownsDescriptor && isatty(fileDescriptor) != 0
| `- error: cannot find 'isatty' in scope
168 | }
169 | #endif
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:201:20: error: cannot find 'open' in scope
199 |
200 | private nonisolated static func openControllingTerminal(like fileDescriptor: CInt) -> CInt? {
201 | let terminal = open("/dev/tty", O_RDONLY | O_NONBLOCK | O_CLOEXEC)
| `- error: cannot find 'open' in scope
202 | guard terminal >= 0 else { return nil }
203 |
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:201:37: error: cannot find 'O_RDONLY' in scope
199 |
200 | private nonisolated static func openControllingTerminal(like fileDescriptor: CInt) -> CInt? {
201 | let terminal = open("/dev/tty", O_RDONLY | O_NONBLOCK | O_CLOEXEC)
| `- error: cannot find 'O_RDONLY' in scope
202 | guard terminal >= 0 else { return nil }
203 |
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:201:48: error: cannot find 'O_NONBLOCK' in scope
199 |
200 | private nonisolated static func openControllingTerminal(like fileDescriptor: CInt) -> CInt? {
201 | let terminal = open("/dev/tty", O_RDONLY | O_NONBLOCK | O_CLOEXEC)
| `- error: cannot find 'O_NONBLOCK' in scope
202 | guard terminal >= 0 else { return nil }
203 |
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:201:61: error: cannot find 'O_CLOEXEC' in scope
199 |
200 | private nonisolated static func openControllingTerminal(like fileDescriptor: CInt) -> CInt? {
201 | let terminal = open("/dev/tty", O_RDONLY | O_NONBLOCK | O_CLOEXEC)
| `- error: cannot find 'O_CLOEXEC' in scope
202 | guard terminal >= 0 else { return nil }
203 |
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:205:15: error: cannot find 'stat' in scope
203 |
204 | // only if it is the same terminal: standard input may have been redirected to another one
205 | var own = stat()
| `- error: cannot find 'stat' in scope
206 | var given = stat()
207 | guard fstat(terminal, &own) == 0, fstat(fileDescriptor, &given) == 0,
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:206:17: error: cannot find 'stat' in scope
204 | // only if it is the same terminal: standard input may have been redirected to another one
205 | var own = stat()
206 | var given = stat()
| `- error: cannot find 'stat' in scope
207 | guard fstat(terminal, &own) == 0, fstat(fileDescriptor, &given) == 0,
208 | own.st_rdev == given.st_rdev
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:207:11: error: cannot find 'fstat' in scope
205 | var own = stat()
206 | var given = stat()
207 | guard fstat(terminal, &own) == 0, fstat(fileDescriptor, &given) == 0,
| `- error: cannot find 'fstat' in scope
208 | own.st_rdev == given.st_rdev
209 | else {
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:207:39: error: cannot find 'fstat' in scope
205 | var own = stat()
206 | var given = stat()
207 | guard fstat(terminal, &own) == 0, fstat(fileDescriptor, &given) == 0,
| `- error: cannot find 'fstat' in scope
208 | own.st_rdev == given.st_rdev
209 | else {
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:210:7: error: cannot find 'close' in scope
208 | own.st_rdev == given.st_rdev
209 | else {
210 | close(terminal)
| `- error: cannot find 'close' in scope
211 | return nil
212 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:222:19: error: cannot find 'fcntl' in scope
220 | var savedFlags: CInt?
221 | if !ownsDescriptor, !readsOneAtATime {
222 | let flags = fcntl(fileDescriptor, F_GETFL)
| `- error: cannot find 'fcntl' in scope
223 | if flags >= 0, flags & O_NONBLOCK == 0 {
224 | savedFlags = flags
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:222:41: error: cannot find 'F_GETFL' in scope
220 | var savedFlags: CInt?
221 | if !ownsDescriptor, !readsOneAtATime {
222 | let flags = fcntl(fileDescriptor, F_GETFL)
| `- error: cannot find 'F_GETFL' in scope
223 | if flags >= 0, flags & O_NONBLOCK == 0 {
224 | savedFlags = flags
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:223:30: error: cannot find 'O_NONBLOCK' in scope
221 | if !ownsDescriptor, !readsOneAtATime {
222 | let flags = fcntl(fileDescriptor, F_GETFL)
223 | if flags >= 0, flags & O_NONBLOCK == 0 {
| `- error: cannot find 'O_NONBLOCK' in scope
224 | savedFlags = flags
225 | _ = fcntl(fileDescriptor, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:225:13: error: cannot find 'fcntl' in scope
223 | if flags >= 0, flags & O_NONBLOCK == 0 {
224 | savedFlags = flags
225 | _ = fcntl(fileDescriptor, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'fcntl' in scope
226 | }
227 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:225:35: error: cannot find 'F_SETFL' in scope
223 | if flags >= 0, flags & O_NONBLOCK == 0 {
224 | savedFlags = flags
225 | _ = fcntl(fileDescriptor, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'F_SETFL' in scope
226 | }
227 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:225:52: error: cannot find 'O_NONBLOCK' in scope
223 | if flags >= 0, flags & O_NONBLOCK == 0 {
224 | savedFlags = flags
225 | _ = fcntl(fileDescriptor, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
226 | }
227 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:229:18: error: cannot find 'DispatchSource' in scope
227 | }
228 |
229 | let source = DispatchSource.makeReadSource(fileDescriptor: fileDescriptor, queue: queue)
| `- error: cannot find 'DispatchSource' in scope
230 | source.setEventHandler { [weak self, input, fileDescriptor] in
231 | guard let self else {
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:251:9: error: cannot find 'close' in scope
249 | source.setCancelHandler { [input] in
250 | if ownsDescriptor {
251 | close(fileDescriptor)
| `- error: cannot find 'close' in scope
252 | } else if let savedFlags {
253 | _ = fcntl(fileDescriptor, F_SETFL, savedFlags)
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:253:13: error: cannot find 'fcntl' in scope
251 | close(fileDescriptor)
252 | } else if let savedFlags {
253 | _ = fcntl(fileDescriptor, F_SETFL, savedFlags)
| `- error: cannot find 'fcntl' in scope
254 | }
255 | input.sourceDidStop()
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:253:35: error: cannot find 'F_SETFL' in scope
251 | close(fileDescriptor)
252 | } else if let savedFlags {
253 | _ = fcntl(fileDescriptor, F_SETFL, savedFlags)
| `- error: cannot find 'F_SETFL' in scope
254 | }
255 | input.sourceDidStop()
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:274:9: error: cannot find 'read' in scope
272 | while true {
273 | let count = chunk.withUnsafeMutableBytes {
274 | read(fileDescriptor, $0.baseAddress, $0.count)
| `- error: cannot find 'read' in scope
275 | }
276 |
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:282:17: error: cannot find 'errno' in scope
280 | } else if count == 0 {
281 | return (bytes, true)
282 | } else if errno == EINTR {
| `- error: cannot find 'errno' in scope
283 | continue
284 | } else {
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:282:26: error: cannot find 'EINTR' in scope
280 | } else if count == 0 {
281 | return (bytes, true)
282 | } else if errno == EINTR {
| `- error: cannot find 'EINTR' in scope
283 | continue
284 | } else {
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:286:24: error: cannot find 'errno' in scope
284 | } else {
285 | // nothing more to read for now; anything other than that is the end
286 | return (bytes, errno != EAGAIN && errno != EWOULDBLOCK)
| `- error: cannot find 'errno' in scope
287 | }
288 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:286:33: error: cannot find 'EAGAIN' in scope
284 | } else {
285 | // nothing more to read for now; anything other than that is the end
286 | return (bytes, errno != EAGAIN && errno != EWOULDBLOCK)
| `- error: cannot find 'EAGAIN' in scope
287 | }
288 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:286:43: error: cannot find 'errno' in scope
284 | } else {
285 | // nothing more to read for now; anything other than that is the end
286 | return (bytes, errno != EAGAIN && errno != EWOULDBLOCK)
| `- error: cannot find 'errno' in scope
287 | }
288 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:286:52: error: cannot find 'EWOULDBLOCK' in scope
284 | } else {
285 | // nothing more to read for now; anything other than that is the end
286 | return (bytes, errno != EAGAIN && errno != EWOULDBLOCK)
| `- error: cannot find 'EWOULDBLOCK' in scope
287 | }
288 | }
[13/17] Compiling AsyncLineReader History.swift
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:125:23: error: cannot find 'DispatchQueue' in scope
123 | /// whether the descriptor must be left blocking, and so read a byte at a time
124 | private let readsOneAtATime: Bool
125 | private let queue = DispatchQueue(label: "com.padl.AsyncLineReader.input", qos: .userInteractive)
| `- error: cannot find 'DispatchQueue' in scope
126 | #endif
127 | private let input = Input()
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:125:84: error: cannot infer contextual base in reference to member 'userInteractive'
123 | /// whether the descriptor must be left blocking, and so read a byte at a time
124 | private let readsOneAtATime: Bool
125 | private let queue = DispatchQueue(label: "com.padl.AsyncLineReader.input", qos: .userInteractive)
| `- error: cannot infer contextual base in reference to member 'userInteractive'
126 | #endif
127 | private let input = Input()
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:154:8: error: cannot find 'isatty' in scope
152 | /// settings, which are per device, are unaffected.
153 | init(fileDescriptor: CInt) {
154 | if isatty(fileDescriptor) != 0, let own = Self.openControllingTerminal(like: fileDescriptor) {
| `- error: cannot find 'isatty' in scope
155 | self.fileDescriptor = own
156 | ownsDescriptor = true
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:167:42: error: cannot find 'isatty' in scope
165 | // where somebody else's write could fail, read it one keystroke at a time: a source only
166 | // fires when there is something there, so a single read cannot block.
167 | readsOneAtATime = !ownsDescriptor && isatty(fileDescriptor) != 0
| `- error: cannot find 'isatty' in scope
168 | }
169 | #endif
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:201:20: error: cannot find 'open' in scope
199 |
200 | private nonisolated static func openControllingTerminal(like fileDescriptor: CInt) -> CInt? {
201 | let terminal = open("/dev/tty", O_RDONLY | O_NONBLOCK | O_CLOEXEC)
| `- error: cannot find 'open' in scope
202 | guard terminal >= 0 else { return nil }
203 |
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:201:37: error: cannot find 'O_RDONLY' in scope
199 |
200 | private nonisolated static func openControllingTerminal(like fileDescriptor: CInt) -> CInt? {
201 | let terminal = open("/dev/tty", O_RDONLY | O_NONBLOCK | O_CLOEXEC)
| `- error: cannot find 'O_RDONLY' in scope
202 | guard terminal >= 0 else { return nil }
203 |
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:201:48: error: cannot find 'O_NONBLOCK' in scope
199 |
200 | private nonisolated static func openControllingTerminal(like fileDescriptor: CInt) -> CInt? {
201 | let terminal = open("/dev/tty", O_RDONLY | O_NONBLOCK | O_CLOEXEC)
| `- error: cannot find 'O_NONBLOCK' in scope
202 | guard terminal >= 0 else { return nil }
203 |
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:201:61: error: cannot find 'O_CLOEXEC' in scope
199 |
200 | private nonisolated static func openControllingTerminal(like fileDescriptor: CInt) -> CInt? {
201 | let terminal = open("/dev/tty", O_RDONLY | O_NONBLOCK | O_CLOEXEC)
| `- error: cannot find 'O_CLOEXEC' in scope
202 | guard terminal >= 0 else { return nil }
203 |
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:205:15: error: cannot find 'stat' in scope
203 |
204 | // only if it is the same terminal: standard input may have been redirected to another one
205 | var own = stat()
| `- error: cannot find 'stat' in scope
206 | var given = stat()
207 | guard fstat(terminal, &own) == 0, fstat(fileDescriptor, &given) == 0,
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:206:17: error: cannot find 'stat' in scope
204 | // only if it is the same terminal: standard input may have been redirected to another one
205 | var own = stat()
206 | var given = stat()
| `- error: cannot find 'stat' in scope
207 | guard fstat(terminal, &own) == 0, fstat(fileDescriptor, &given) == 0,
208 | own.st_rdev == given.st_rdev
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:207:11: error: cannot find 'fstat' in scope
205 | var own = stat()
206 | var given = stat()
207 | guard fstat(terminal, &own) == 0, fstat(fileDescriptor, &given) == 0,
| `- error: cannot find 'fstat' in scope
208 | own.st_rdev == given.st_rdev
209 | else {
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:207:39: error: cannot find 'fstat' in scope
205 | var own = stat()
206 | var given = stat()
207 | guard fstat(terminal, &own) == 0, fstat(fileDescriptor, &given) == 0,
| `- error: cannot find 'fstat' in scope
208 | own.st_rdev == given.st_rdev
209 | else {
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:210:7: error: cannot find 'close' in scope
208 | own.st_rdev == given.st_rdev
209 | else {
210 | close(terminal)
| `- error: cannot find 'close' in scope
211 | return nil
212 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:222:19: error: cannot find 'fcntl' in scope
220 | var savedFlags: CInt?
221 | if !ownsDescriptor, !readsOneAtATime {
222 | let flags = fcntl(fileDescriptor, F_GETFL)
| `- error: cannot find 'fcntl' in scope
223 | if flags >= 0, flags & O_NONBLOCK == 0 {
224 | savedFlags = flags
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:222:41: error: cannot find 'F_GETFL' in scope
220 | var savedFlags: CInt?
221 | if !ownsDescriptor, !readsOneAtATime {
222 | let flags = fcntl(fileDescriptor, F_GETFL)
| `- error: cannot find 'F_GETFL' in scope
223 | if flags >= 0, flags & O_NONBLOCK == 0 {
224 | savedFlags = flags
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:223:30: error: cannot find 'O_NONBLOCK' in scope
221 | if !ownsDescriptor, !readsOneAtATime {
222 | let flags = fcntl(fileDescriptor, F_GETFL)
223 | if flags >= 0, flags & O_NONBLOCK == 0 {
| `- error: cannot find 'O_NONBLOCK' in scope
224 | savedFlags = flags
225 | _ = fcntl(fileDescriptor, F_SETFL, flags | O_NONBLOCK)
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:225:13: error: cannot find 'fcntl' in scope
223 | if flags >= 0, flags & O_NONBLOCK == 0 {
224 | savedFlags = flags
225 | _ = fcntl(fileDescriptor, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'fcntl' in scope
226 | }
227 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:225:35: error: cannot find 'F_SETFL' in scope
223 | if flags >= 0, flags & O_NONBLOCK == 0 {
224 | savedFlags = flags
225 | _ = fcntl(fileDescriptor, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'F_SETFL' in scope
226 | }
227 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:225:52: error: cannot find 'O_NONBLOCK' in scope
223 | if flags >= 0, flags & O_NONBLOCK == 0 {
224 | savedFlags = flags
225 | _ = fcntl(fileDescriptor, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
226 | }
227 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:229:18: error: cannot find 'DispatchSource' in scope
227 | }
228 |
229 | let source = DispatchSource.makeReadSource(fileDescriptor: fileDescriptor, queue: queue)
| `- error: cannot find 'DispatchSource' in scope
230 | source.setEventHandler { [weak self, input, fileDescriptor] in
231 | guard let self else {
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:251:9: error: cannot find 'close' in scope
249 | source.setCancelHandler { [input] in
250 | if ownsDescriptor {
251 | close(fileDescriptor)
| `- error: cannot find 'close' in scope
252 | } else if let savedFlags {
253 | _ = fcntl(fileDescriptor, F_SETFL, savedFlags)
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:253:13: error: cannot find 'fcntl' in scope
251 | close(fileDescriptor)
252 | } else if let savedFlags {
253 | _ = fcntl(fileDescriptor, F_SETFL, savedFlags)
| `- error: cannot find 'fcntl' in scope
254 | }
255 | input.sourceDidStop()
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:253:35: error: cannot find 'F_SETFL' in scope
251 | close(fileDescriptor)
252 | } else if let savedFlags {
253 | _ = fcntl(fileDescriptor, F_SETFL, savedFlags)
| `- error: cannot find 'F_SETFL' in scope
254 | }
255 | input.sourceDidStop()
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:274:9: error: cannot find 'read' in scope
272 | while true {
273 | let count = chunk.withUnsafeMutableBytes {
274 | read(fileDescriptor, $0.baseAddress, $0.count)
| `- error: cannot find 'read' in scope
275 | }
276 |
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:282:17: error: cannot find 'errno' in scope
280 | } else if count == 0 {
281 | return (bytes, true)
282 | } else if errno == EINTR {
| `- error: cannot find 'errno' in scope
283 | continue
284 | } else {
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:282:26: error: cannot find 'EINTR' in scope
280 | } else if count == 0 {
281 | return (bytes, true)
282 | } else if errno == EINTR {
| `- error: cannot find 'EINTR' in scope
283 | continue
284 | } else {
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:286:24: error: cannot find 'errno' in scope
284 | } else {
285 | // nothing more to read for now; anything other than that is the end
286 | return (bytes, errno != EAGAIN && errno != EWOULDBLOCK)
| `- error: cannot find 'errno' in scope
287 | }
288 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:286:33: error: cannot find 'EAGAIN' in scope
284 | } else {
285 | // nothing more to read for now; anything other than that is the end
286 | return (bytes, errno != EAGAIN && errno != EWOULDBLOCK)
| `- error: cannot find 'EAGAIN' in scope
287 | }
288 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:286:43: error: cannot find 'errno' in scope
284 | } else {
285 | // nothing more to read for now; anything other than that is the end
286 | return (bytes, errno != EAGAIN && errno != EWOULDBLOCK)
| `- error: cannot find 'errno' in scope
287 | }
288 | }
/host/spi-builder-workspace/Sources/AsyncLineReader/ByteStream.swift:286:52: error: cannot find 'EWOULDBLOCK' in scope
284 | } else {
285 | // nothing more to read for now; anything other than that is the end
286 | return (bytes, errno != EAGAIN && errno != EWOULDBLOCK)
| `- error: cannot find 'EWOULDBLOCK' in scope
287 | }
288 | }
BUILD FAILURE 6.2 wasm