Build Information
Failed to build SwiftSerial, reference main (764bf5), with Swift 6.2 for Android on 23 Jun 2025 08:37:13 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mredig/SwiftSerial.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/mredig/SwiftSerial
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 764bf55 (nit) readme tweak
Cloned https://github.com/mredig/SwiftSerial.git
Revision (git rev-parse @):
764bf55dc7667f665934ce69d63211471bf55b0f
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mredig/SwiftSerial.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/mredig/SwiftSerial.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-argument-parser.git
[1/15380] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (4.41s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.3.1 (8.87s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.3.1
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/12] Write sources
[5/12] Write swift-version-8C5A4AE7A8CE2BA.txt
[7/22] Emitting module ArgumentParserToolInfo
[8/22] Compiling ArgumentParserToolInfo ToolInfo.swift
[9/23] Wrapping AST for ArgumentParserToolInfo for debugging
[11/60] Compiling ArgumentParser ArgumentVisibility.swift
[12/60] Compiling ArgumentParser CompletionKind.swift
[13/60] Compiling ArgumentParser Errors.swift
[14/60] Compiling ArgumentParser Flag.swift
[15/60] Compiling ArgumentParser NameSpecification.swift
[16/65] Compiling ArgumentParser CollectionExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:46:26: error: cannot find 'getenv' in scope
44 | #else
45 | // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
46 | guard let shellVar = getenv("SHELL") else { return nil }
| `- error: cannot find 'getenv' in scope
47 | let shellParts = String(cString: shellVar).split(separator: "/")
48 | return shellParts.last.map(String.init)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:66:5: error: cannot find 'EXIT_SUCCESS' in scope
64 | /// The code for successful exit.
65 | static var exitCodeSuccess: Int32 {
66 | EXIT_SUCCESS
| `- error: cannot find 'EXIT_SUCCESS' in scope
67 | }
68 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:71:5: error: cannot find 'EXIT_FAILURE' in scope
69 | /// The code for exit with a general failure.
70 | static var exitCodeFailure: Int32 {
71 | EXIT_FAILURE
| `- error: cannot find 'EXIT_FAILURE' in scope
72 | }
73 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:81:12: error: cannot find 'EX_USAGE' in scope
79 | return EXIT_FAILURE
80 | #else
81 | return EX_USAGE
| `- error: cannot find 'EX_USAGE' in scope
82 | #endif
83 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:111:33: error: cannot find 'putc' in scope
109 | struct StandardError: TextOutputStream {
110 | mutating func write(_ string: String) {
111 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'putc' in scope
112 | }
113 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:111:57: error: cannot find 'stderr' in scope
109 | struct StandardError: TextOutputStream {
110 | mutating func write(_ string: String) {
111 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'stderr' in scope
112 | }
113 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:111:38: error: generic parameter 'U' could not be inferred
109 | struct StandardError: TextOutputStream {
110 | mutating func write(_ string: String) {
111 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: generic parameter 'U' could not be inferred
112 | }
113 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
| `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:167:23: error: cannot find 'getenv' in scope
165 |
166 | #if !os(Windows) && !os(WASI)
167 | if let colsCStr = getenv("COLUMNS"), let colsVal = Int(String(cString: colsCStr)) {
| `- error: cannot find 'getenv' in scope
168 | width = colsVal
169 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:170:24: error: cannot find 'getenv' in scope
168 | width = colsVal
169 | }
170 | if let linesCStr = getenv("LINES"), let linesVal = Int(String(cString: linesCStr)) {
| `- error: cannot find 'getenv' in scope
171 | height = linesVal
172 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:194:13: error: cannot find 'winsize' in scope
192 | height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
193 | #else
194 | var w = winsize()
| `- error: cannot find 'winsize' in scope
195 |
196 | #if os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:203:15: error: cannot find 'ioctl' in scope
201 | let err = ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &w)
202 | #else
203 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'ioctl' in scope
204 | #endif
205 | guard err == 0 else { return (width: nil, height: nil) }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:203:21: error: cannot find 'STDOUT_FILENO' in scope
201 | let err = ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &w)
202 | #else
203 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'STDOUT_FILENO' in scope
204 | #endif
205 | guard err == 0 else { return (width: nil, height: nil) }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:203:36: error: cannot find 'TIOCGWINSZ' in scope
201 | let err = ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &w)
202 | #else
203 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'TIOCGWINSZ' in scope
204 | #endif
205 | guard err == 0 else { return (width: nil, height: nil) }
[17/65] Compiling ArgumentParser Platform.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:46:26: error: cannot find 'getenv' in scope
44 | #else
45 | // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
46 | guard let shellVar = getenv("SHELL") else { return nil }
| `- error: cannot find 'getenv' in scope
47 | let shellParts = String(cString: shellVar).split(separator: "/")
48 | return shellParts.last.map(String.init)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:66:5: error: cannot find 'EXIT_SUCCESS' in scope
64 | /// The code for successful exit.
65 | static var exitCodeSuccess: Int32 {
66 | EXIT_SUCCESS
| `- error: cannot find 'EXIT_SUCCESS' in scope
67 | }
68 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:71:5: error: cannot find 'EXIT_FAILURE' in scope
69 | /// The code for exit with a general failure.
70 | static var exitCodeFailure: Int32 {
71 | EXIT_FAILURE
| `- error: cannot find 'EXIT_FAILURE' in scope
72 | }
73 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:81:12: error: cannot find 'EX_USAGE' in scope
79 | return EXIT_FAILURE
80 | #else
81 | return EX_USAGE
| `- error: cannot find 'EX_USAGE' in scope
82 | #endif
83 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:111:33: error: cannot find 'putc' in scope
109 | struct StandardError: TextOutputStream {
110 | mutating func write(_ string: String) {
111 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'putc' in scope
112 | }
113 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:111:57: error: cannot find 'stderr' in scope
109 | struct StandardError: TextOutputStream {
110 | mutating func write(_ string: String) {
111 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'stderr' in scope
112 | }
113 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:111:38: error: generic parameter 'U' could not be inferred
109 | struct StandardError: TextOutputStream {
110 | mutating func write(_ string: String) {
111 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: generic parameter 'U' could not be inferred
112 | }
113 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
| `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:167:23: error: cannot find 'getenv' in scope
165 |
166 | #if !os(Windows) && !os(WASI)
167 | if let colsCStr = getenv("COLUMNS"), let colsVal = Int(String(cString: colsCStr)) {
| `- error: cannot find 'getenv' in scope
168 | width = colsVal
169 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:170:24: error: cannot find 'getenv' in scope
168 | width = colsVal
169 | }
170 | if let linesCStr = getenv("LINES"), let linesVal = Int(String(cString: linesCStr)) {
| `- error: cannot find 'getenv' in scope
171 | height = linesVal
172 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:194:13: error: cannot find 'winsize' in scope
192 | height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
193 | #else
194 | var w = winsize()
| `- error: cannot find 'winsize' in scope
195 |
196 | #if os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:203:15: error: cannot find 'ioctl' in scope
201 | let err = ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &w)
202 | #else
203 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'ioctl' in scope
204 | #endif
205 | guard err == 0 else { return (width: nil, height: nil) }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:203:21: error: cannot find 'STDOUT_FILENO' in scope
201 | let err = ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &w)
202 | #else
203 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'STDOUT_FILENO' in scope
204 | #endif
205 | guard err == 0 else { return (width: nil, height: nil) }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:203:36: error: cannot find 'TIOCGWINSZ' in scope
201 | let err = ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &w)
202 | #else
203 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'TIOCGWINSZ' in scope
204 | #endif
205 | guard err == 0 else { return (width: nil, height: nil) }
[18/65] Compiling ArgumentParser SequenceExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:46:26: error: cannot find 'getenv' in scope
44 | #else
45 | // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
46 | guard let shellVar = getenv("SHELL") else { return nil }
| `- error: cannot find 'getenv' in scope
47 | let shellParts = String(cString: shellVar).split(separator: "/")
48 | return shellParts.last.map(String.init)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:66:5: error: cannot find 'EXIT_SUCCESS' in scope
64 | /// The code for successful exit.
65 | static var exitCodeSuccess: Int32 {
66 | EXIT_SUCCESS
| `- error: cannot find 'EXIT_SUCCESS' in scope
67 | }
68 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:71:5: error: cannot find 'EXIT_FAILURE' in scope
69 | /// The code for exit with a general failure.
70 | static var exitCodeFailure: Int32 {
71 | EXIT_FAILURE
| `- error: cannot find 'EXIT_FAILURE' in scope
72 | }
73 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:81:12: error: cannot find 'EX_USAGE' in scope
79 | return EXIT_FAILURE
80 | #else
81 | return EX_USAGE
| `- error: cannot find 'EX_USAGE' in scope
82 | #endif
83 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:111:33: error: cannot find 'putc' in scope
109 | struct StandardError: TextOutputStream {
110 | mutating func write(_ string: String) {
111 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'putc' in scope
112 | }
113 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:111:57: error: cannot find 'stderr' in scope
109 | struct StandardError: TextOutputStream {
110 | mutating func write(_ string: String) {
111 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'stderr' in scope
112 | }
113 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:111:38: error: generic parameter 'U' could not be inferred
109 | struct StandardError: TextOutputStream {
110 | mutating func write(_ string: String) {
111 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: generic parameter 'U' could not be inferred
112 | }
113 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
| `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:167:23: error: cannot find 'getenv' in scope
165 |
166 | #if !os(Windows) && !os(WASI)
167 | if let colsCStr = getenv("COLUMNS"), let colsVal = Int(String(cString: colsCStr)) {
| `- error: cannot find 'getenv' in scope
168 | width = colsVal
169 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:170:24: error: cannot find 'getenv' in scope
168 | width = colsVal
169 | }
170 | if let linesCStr = getenv("LINES"), let linesVal = Int(String(cString: linesCStr)) {
| `- error: cannot find 'getenv' in scope
171 | height = linesVal
172 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:194:13: error: cannot find 'winsize' in scope
192 | height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
193 | #else
194 | var w = winsize()
| `- error: cannot find 'winsize' in scope
195 |
196 | #if os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:203:15: error: cannot find 'ioctl' in scope
201 | let err = ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &w)
202 | #else
203 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'ioctl' in scope
204 | #endif
205 | guard err == 0 else { return (width: nil, height: nil) }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:203:21: error: cannot find 'STDOUT_FILENO' in scope
201 | let err = ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &w)
202 | #else
203 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'STDOUT_FILENO' in scope
204 | #endif
205 | guard err == 0 else { return (width: nil, height: nil) }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:203:36: error: cannot find 'TIOCGWINSZ' in scope
201 | let err = ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &w)
202 | #else
203 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'TIOCGWINSZ' in scope
204 | #endif
205 | guard err == 0 else { return (width: nil, height: nil) }
[19/65] Compiling ArgumentParser StringExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:46:26: error: cannot find 'getenv' in scope
44 | #else
45 | // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
46 | guard let shellVar = getenv("SHELL") else { return nil }
| `- error: cannot find 'getenv' in scope
47 | let shellParts = String(cString: shellVar).split(separator: "/")
48 | return shellParts.last.map(String.init)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:66:5: error: cannot find 'EXIT_SUCCESS' in scope
64 | /// The code for successful exit.
65 | static var exitCodeSuccess: Int32 {
66 | EXIT_SUCCESS
| `- error: cannot find 'EXIT_SUCCESS' in scope
67 | }
68 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:71:5: error: cannot find 'EXIT_FAILURE' in scope
69 | /// The code for exit with a general failure.
70 | static var exitCodeFailure: Int32 {
71 | EXIT_FAILURE
| `- error: cannot find 'EXIT_FAILURE' in scope
72 | }
73 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:81:12: error: cannot find 'EX_USAGE' in scope
79 | return EXIT_FAILURE
80 | #else
81 | return EX_USAGE
| `- error: cannot find 'EX_USAGE' in scope
82 | #endif
83 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:111:33: error: cannot find 'putc' in scope
109 | struct StandardError: TextOutputStream {
110 | mutating func write(_ string: String) {
111 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'putc' in scope
112 | }
113 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:111:57: error: cannot find 'stderr' in scope
109 | struct StandardError: TextOutputStream {
110 | mutating func write(_ string: String) {
111 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'stderr' in scope
112 | }
113 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:111:38: error: generic parameter 'U' could not be inferred
109 | struct StandardError: TextOutputStream {
110 | mutating func write(_ string: String) {
111 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: generic parameter 'U' could not be inferred
112 | }
113 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
| `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:167:23: error: cannot find 'getenv' in scope
165 |
166 | #if !os(Windows) && !os(WASI)
167 | if let colsCStr = getenv("COLUMNS"), let colsVal = Int(String(cString: colsCStr)) {
| `- error: cannot find 'getenv' in scope
168 | width = colsVal
169 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:170:24: error: cannot find 'getenv' in scope
168 | width = colsVal
169 | }
170 | if let linesCStr = getenv("LINES"), let linesVal = Int(String(cString: linesCStr)) {
| `- error: cannot find 'getenv' in scope
171 | height = linesVal
172 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:194:13: error: cannot find 'winsize' in scope
192 | height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
193 | #else
194 | var w = winsize()
| `- error: cannot find 'winsize' in scope
195 |
196 | #if os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:203:15: error: cannot find 'ioctl' in scope
201 | let err = ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &w)
202 | #else
203 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'ioctl' in scope
204 | #endif
205 | guard err == 0 else { return (width: nil, height: nil) }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:203:21: error: cannot find 'STDOUT_FILENO' in scope
201 | let err = ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &w)
202 | #else
203 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'STDOUT_FILENO' in scope
204 | #endif
205 | guard err == 0 else { return (width: nil, height: nil) }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:203:36: error: cannot find 'TIOCGWINSZ' in scope
201 | let err = ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &w)
202 | #else
203 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'TIOCGWINSZ' in scope
204 | #endif
205 | guard err == 0 else { return (width: nil, height: nil) }
[20/65] Compiling ArgumentParser Tree.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:46:26: error: cannot find 'getenv' in scope
44 | #else
45 | // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
46 | guard let shellVar = getenv("SHELL") else { return nil }
| `- error: cannot find 'getenv' in scope
47 | let shellParts = String(cString: shellVar).split(separator: "/")
48 | return shellParts.last.map(String.init)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:66:5: error: cannot find 'EXIT_SUCCESS' in scope
64 | /// The code for successful exit.
65 | static var exitCodeSuccess: Int32 {
66 | EXIT_SUCCESS
| `- error: cannot find 'EXIT_SUCCESS' in scope
67 | }
68 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:71:5: error: cannot find 'EXIT_FAILURE' in scope
69 | /// The code for exit with a general failure.
70 | static var exitCodeFailure: Int32 {
71 | EXIT_FAILURE
| `- error: cannot find 'EXIT_FAILURE' in scope
72 | }
73 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:81:12: error: cannot find 'EX_USAGE' in scope
79 | return EXIT_FAILURE
80 | #else
81 | return EX_USAGE
| `- error: cannot find 'EX_USAGE' in scope
82 | #endif
83 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:111:33: error: cannot find 'putc' in scope
109 | struct StandardError: TextOutputStream {
110 | mutating func write(_ string: String) {
111 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'putc' in scope
112 | }
113 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:111:57: error: cannot find 'stderr' in scope
109 | struct StandardError: TextOutputStream {
110 | mutating func write(_ string: String) {
111 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'stderr' in scope
112 | }
113 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:111:38: error: generic parameter 'U' could not be inferred
109 | struct StandardError: TextOutputStream {
110 | mutating func write(_ string: String) {
111 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: generic parameter 'U' could not be inferred
112 | }
113 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
| `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:167:23: error: cannot find 'getenv' in scope
165 |
166 | #if !os(Windows) && !os(WASI)
167 | if let colsCStr = getenv("COLUMNS"), let colsVal = Int(String(cString: colsCStr)) {
| `- error: cannot find 'getenv' in scope
168 | width = colsVal
169 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:170:24: error: cannot find 'getenv' in scope
168 | width = colsVal
169 | }
170 | if let linesCStr = getenv("LINES"), let linesVal = Int(String(cString: linesCStr)) {
| `- error: cannot find 'getenv' in scope
171 | height = linesVal
172 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:194:13: error: cannot find 'winsize' in scope
192 | height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
193 | #else
194 | var w = winsize()
| `- error: cannot find 'winsize' in scope
195 |
196 | #if os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:203:15: error: cannot find 'ioctl' in scope
201 | let err = ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &w)
202 | #else
203 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'ioctl' in scope
204 | #endif
205 | guard err == 0 else { return (width: nil, height: nil) }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:203:21: error: cannot find 'STDOUT_FILENO' in scope
201 | let err = ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &w)
202 | #else
203 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'STDOUT_FILENO' in scope
204 | #endif
205 | guard err == 0 else { return (width: nil, height: nil) }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Utilities/Platform.swift:203:36: error: cannot find 'TIOCGWINSZ' in scope
201 | let err = ioctl(STDOUT_FILENO, UInt(TIOCGWINSZ), &w)
202 | #else
203 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'TIOCGWINSZ' in scope
204 | #endif
205 | guard err == 0 else { return (width: nil, height: nil) }
[21/65] Emitting module ArgumentParser
[22/65] Compiling ArgumentParser BashCompletionsGenerator.swift
[23/65] Compiling ArgumentParser CompletionsGenerator.swift
[24/65] Compiling ArgumentParser FishCompletionsGenerator.swift
[25/65] Compiling ArgumentParser ZshCompletionsGenerator.swift
[26/65] Compiling ArgumentParser Argument.swift
[27/65] Compiling ArgumentParser ArgumentHelp.swift
[28/65] Compiling ArgumentParser Option.swift
[29/65] Compiling ArgumentParser OptionGroup.swift
[30/65] Compiling ArgumentParser AsyncParsableCommand.swift
[31/65] Compiling ArgumentParser CommandConfiguration.swift
[32/65] Compiling ArgumentParser EnumerableFlag.swift
[33/65] Compiling SwiftSerial PortError.swift
[34/65] Compiling SwiftSerial PortMode.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[35/65] Emitting module SwiftSerial
/host/spi-builder-workspace/Sources/SwiftSerial/BaudRate.swift:106:18: error: cannot find type 'speed_t' in scope
104 | }
105 |
106 | var speedValue: speed_t {
| `- error: cannot find type 'speed_t' in scope
107 | switch self {
108 | case .baud0:
/host/spi-builder-workspace/Sources/SwiftSerial/DataBitsSize.swift:9:17: error: cannot find type 'tcflag_t' in scope
7 | case bits8
8 |
9 | var flagValue: tcflag_t {
| `- error: cannot find type 'tcflag_t' in scope
10 | switch self {
11 | case .bits5:
/host/spi-builder-workspace/Sources/SwiftSerial/ParityType.swift:8:19: error: cannot find type 'tcflag_t' in scope
6 | case odd
7 |
8 | var parityValue: tcflag_t {
| `- error: cannot find type 'tcflag_t' in scope
9 | switch self {
10 | case .none:
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:140:18: error: cannot find 'termios' in scope
138 |
139 | // Set up the control structure
140 | var settings = termios()
| `- error: cannot find 'termios' in scope
141 |
142 | // Get options structure for the port
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:143:3: error: cannot find 'tcgetattr' in scope
141 |
142 | // Get options structure for the port
143 | tcgetattr(fileDescriptor, &settings)
| `- error: cannot find 'tcgetattr' in scope
144 |
145 | // Set baud rates
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:146:3: error: cannot find 'cfsetispeed' in scope
144 |
145 | // Set baud rates
146 | cfsetispeed(&settings, baudRateSetting.receiveRate.speedValue)
| `- error: cannot find 'cfsetispeed' in scope
147 | cfsetospeed(&settings, baudRateSetting.transmitRate.speedValue)
148 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:147:3: error: cannot find 'cfsetospeed' in scope
145 | // Set baud rates
146 | cfsetispeed(&settings, baudRateSetting.receiveRate.speedValue)
147 | cfsetospeed(&settings, baudRateSetting.transmitRate.speedValue)
| `- error: cannot find 'cfsetospeed' in scope
148 |
149 | // Enable parity (even/odd) if needed
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:154:24: error: cannot find 'tcflag_t' in scope
152 | // Set stop bit flag
153 | if sendTwoStopBits {
154 | settings.c_cflag |= tcflag_t(CSTOPB)
| `- error: cannot find 'tcflag_t' in scope
155 | } else {
156 | settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:154:33: error: cannot find 'CSTOPB' in scope
152 | // Set stop bit flag
153 | if sendTwoStopBits {
154 | settings.c_cflag |= tcflag_t(CSTOPB)
| `- error: cannot find 'CSTOPB' in scope
155 | } else {
156 | settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:156:25: error: cannot find 'tcflag_t' in scope
154 | settings.c_cflag |= tcflag_t(CSTOPB)
155 | } else {
156 | settings.c_cflag &= ~tcflag_t(CSTOPB)
| `- error: cannot find 'tcflag_t' in scope
157 | }
158 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:156:34: error: cannot find 'CSTOPB' in scope
154 | settings.c_cflag |= tcflag_t(CSTOPB)
155 | } else {
156 | settings.c_cflag &= ~tcflag_t(CSTOPB)
| `- error: cannot find 'CSTOPB' in scope
157 | }
158 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:160:24: error: cannot find 'tcflag_t' in scope
158 |
159 | // Set data bits size flag
160 | settings.c_cflag &= ~tcflag_t(CSIZE)
| `- error: cannot find 'tcflag_t' in scope
161 | settings.c_cflag |= dataBitsSize.flagValue
162 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:160:33: error: cannot find 'CSIZE' in scope
158 |
159 | // Set data bits size flag
160 | settings.c_cflag &= ~tcflag_t(CSIZE)
| `- error: cannot find 'CSIZE' in scope
161 | settings.c_cflag |= dataBitsSize.flagValue
162 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:24: error: cannot find 'tcflag_t' in scope
162 |
163 | //Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
| `- error: cannot find 'tcflag_t' in scope
165 |
166 | // Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:33: error: cannot find 'ICRNL' in scope
162 |
163 | //Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
| `- error: cannot find 'ICRNL' in scope
165 |
166 | // Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:41: error: cannot find 'INLCR' in scope
162 |
163 | //Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
| `- error: cannot find 'INLCR' in scope
165 |
166 | // Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:49: error: cannot find 'IGNCR' in scope
162 |
163 | //Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
| `- error: cannot find 'IGNCR' in scope
165 |
166 | // Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:34: error: cannot find 'tcflag_t' in scope
182 |
183 | // Set software flow control flags
184 | let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
| `- error: cannot find 'tcflag_t' in scope
185 | if useSoftwareFlowControl {
186 | settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:43: error: cannot find 'IXON' in scope
182 |
183 | // Set software flow control flags
184 | let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
| `- error: cannot find 'IXON' in scope
185 | if useSoftwareFlowControl {
186 | settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:50: error: cannot find 'IXOFF' in scope
182 |
183 | // Set software flow control flags
184 | let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
| `- error: cannot find 'IXOFF' in scope
185 | if useSoftwareFlowControl {
186 | settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:58: error: cannot find 'IXANY' in scope
182 |
183 | // Set software flow control flags
184 | let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
| `- error: cannot find 'IXANY' in scope
185 | if useSoftwareFlowControl {
186 | settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:23: error: cannot find 'tcflag_t' in scope
190 |
191 | // Turn on the receiver of the serial port, and ignore modem control lines
192 | settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
| `- error: cannot find 'tcflag_t' in scope
193 |
194 | // Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:32: error: cannot find 'CREAD' in scope
190 |
191 | // Turn on the receiver of the serial port, and ignore modem control lines
192 | settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
| `- error: cannot find 'CREAD' in scope
193 |
194 | // Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:40: error: cannot find 'CLOCAL' in scope
190 |
191 | // Turn on the receiver of the serial port, and ignore modem control lines
192 | settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
| `- error: cannot find 'CLOCAL' in scope
193 |
194 | // Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:24: error: cannot find 'tcflag_t' in scope
193 |
194 | // Turn off canonical mode
195 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'tcflag_t' in scope
196 |
197 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:33: error: cannot find 'ICANON' in scope
193 |
194 | // Turn off canonical mode
195 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'ICANON' in scope
196 |
197 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:42: error: cannot find 'ECHO' in scope
193 |
194 | // Turn off canonical mode
195 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'ECHO' in scope
196 |
197 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:49: error: cannot find 'ECHOE' in scope
193 |
194 | // Turn off canonical mode
195 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'ECHOE' in scope
196 |
197 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:57: error: cannot find 'ISIG' in scope
193 |
194 | // Turn off canonical mode
195 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'ISIG' in scope
196 |
197 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:199:24: error: cannot find 'tcflag_t' in scope
197 | // Set output processing flag
198 | if processOutput {
199 | settings.c_oflag |= tcflag_t(OPOST)
| `- error: cannot find 'tcflag_t' in scope
200 | } else {
201 | settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:199:33: error: cannot find 'OPOST' in scope
197 | // Set output processing flag
198 | if processOutput {
199 | settings.c_oflag |= tcflag_t(OPOST)
| `- error: cannot find 'OPOST' in scope
200 | } else {
201 | settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:201:25: error: cannot find 'tcflag_t' in scope
199 | settings.c_oflag |= tcflag_t(OPOST)
200 | } else {
201 | settings.c_oflag &= ~tcflag_t(OPOST)
| `- error: cannot find 'tcflag_t' in scope
202 | }
203 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:201:34: error: cannot find 'OPOST' in scope
199 | settings.c_oflag |= tcflag_t(OPOST)
200 | } else {
201 | settings.c_oflag &= ~tcflag_t(OPOST)
| `- error: cannot find 'OPOST' in scope
202 | }
203 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:215:3: error: cannot find 'specialCharacters' in scope
213 | #endif
214 |
215 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
| `- error: cannot find 'specialCharacters' in scope
216 | specialCharacters.VTIME = cc_t(timeout)
217 | settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:215:28: error: cannot find 'cc_t' in scope
213 | #endif
214 |
215 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
| `- error: cannot find 'cc_t' in scope
216 | specialCharacters.VTIME = cc_t(timeout)
217 | settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:216:3: error: cannot find 'specialCharacters' in scope
214 |
215 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | specialCharacters.VTIME = cc_t(timeout)
| `- error: cannot find 'specialCharacters' in scope
217 | settings.c_cc = specialCharacters
218 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:216:29: error: cannot find 'cc_t' in scope
214 |
215 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | specialCharacters.VTIME = cc_t(timeout)
| `- error: cannot find 'cc_t' in scope
217 | settings.c_cc = specialCharacters
218 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:217:19: error: cannot find 'specialCharacters' in scope
215 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | specialCharacters.VTIME = cc_t(timeout)
217 | settings.c_cc = specialCharacters
| `- error: cannot find 'specialCharacters' in scope
218 |
219 | // Commit settings
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:220:3: error: cannot find 'tcsetattr' in scope
218 |
219 | // Commit settings
220 | tcsetattr(fileDescriptor, TCSANOW, &settings)
| `- error: cannot find 'tcsetattr' in scope
221 | }
222 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:220:29: error: cannot find 'TCSANOW' in scope
218 |
219 | // Commit settings
220 | tcsetattr(fileDescriptor, TCSANOW, &settings)
| `- error: cannot find 'TCSANOW' in scope
221 | }
222 |
[36/65] Compiling SwiftSerial DataBitsSize.swift
/host/spi-builder-workspace/Sources/SwiftSerial/DataBitsSize.swift:9:17: error: cannot find type 'tcflag_t' in scope
7 | case bits8
8 |
9 | var flagValue: tcflag_t {
| `- error: cannot find type 'tcflag_t' in scope
10 | switch self {
11 | case .bits5:
[37/65] Compiling SwiftSerial BaudRate.swift
/host/spi-builder-workspace/Sources/SwiftSerial/BaudRate.swift:106:18: error: cannot find type 'speed_t' in scope
104 | }
105 |
106 | var speedValue: speed_t {
| `- error: cannot find type 'speed_t' in scope
107 | switch self {
108 | case .baud0:
[38/65] Compiling SwiftSerial SerialPort.swift
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:37:21: error: cannot find 'O_RDONLY' in scope
35 | switch portMode {
36 | case .receive:
37 | readWriteParam = O_RDONLY
| `- error: cannot find 'O_RDONLY' in scope
38 | case .transmit:
39 | readWriteParam = O_WRONLY
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:39:21: error: cannot find 'O_WRONLY' in scope
37 | readWriteParam = O_RDONLY
38 | case .transmit:
39 | readWriteParam = O_WRONLY
| `- error: cannot find 'O_WRONLY' in scope
40 | case .receiveAndTransmit:
41 | readWriteParam = O_RDWR
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:41:21: error: cannot find 'O_RDWR' in scope
39 | readWriteParam = O_WRONLY
40 | case .receiveAndTransmit:
41 | readWriteParam = O_RDWR
| `- error: cannot find 'O_RDWR' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:68:21: error: cannot find 'read' in scope
66 | let buffer = UnsafeMutableRawPointer
67 | .allocate(byteCount: bufferSize, alignment: 8)
68 | let bytesRead = read(fileDescriptor, buffer, bufferSize)
| `- error: cannot find 'read' in scope
69 | guard bytesRead > 0 else { return }
70 | let bytes = Data(bytes: buffer, count: bytesRead)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:140:18: error: cannot find 'termios' in scope
138 |
139 | // Set up the control structure
140 | var settings = termios()
| `- error: cannot find 'termios' in scope
141 |
142 | // Get options structure for the port
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:143:3: error: cannot find 'tcgetattr' in scope
141 |
142 | // Get options structure for the port
143 | tcgetattr(fileDescriptor, &settings)
| `- error: cannot find 'tcgetattr' in scope
144 |
145 | // Set baud rates
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:146:3: error: cannot find 'cfsetispeed' in scope
144 |
145 | // Set baud rates
146 | cfsetispeed(&settings, baudRateSetting.receiveRate.speedValue)
| `- error: cannot find 'cfsetispeed' in scope
147 | cfsetospeed(&settings, baudRateSetting.transmitRate.speedValue)
148 |
/host/spi-builder-workspace/Sources/SwiftSerial/BaudRate.swift:106:18: error: cannot find type 'speed_t' in scope
104 | }
105 |
106 | var speedValue: speed_t {
| `- error: cannot find type 'speed_t' in scope
107 | switch self {
108 | case .baud0:
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:147:3: error: cannot find 'cfsetospeed' in scope
145 | // Set baud rates
146 | cfsetispeed(&settings, baudRateSetting.receiveRate.speedValue)
147 | cfsetospeed(&settings, baudRateSetting.transmitRate.speedValue)
| `- error: cannot find 'cfsetospeed' in scope
148 |
149 | // Enable parity (even/odd) if needed
/host/spi-builder-workspace/Sources/SwiftSerial/ParityType.swift:8:19: error: cannot find type 'tcflag_t' in scope
6 | case odd
7 |
8 | var parityValue: tcflag_t {
| `- error: cannot find type 'tcflag_t' in scope
9 | switch self {
10 | case .none:
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:154:24: error: cannot find 'tcflag_t' in scope
152 | // Set stop bit flag
153 | if sendTwoStopBits {
154 | settings.c_cflag |= tcflag_t(CSTOPB)
| `- error: cannot find 'tcflag_t' in scope
155 | } else {
156 | settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:154:33: error: cannot find 'CSTOPB' in scope
152 | // Set stop bit flag
153 | if sendTwoStopBits {
154 | settings.c_cflag |= tcflag_t(CSTOPB)
| `- error: cannot find 'CSTOPB' in scope
155 | } else {
156 | settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:156:25: error: cannot find 'tcflag_t' in scope
154 | settings.c_cflag |= tcflag_t(CSTOPB)
155 | } else {
156 | settings.c_cflag &= ~tcflag_t(CSTOPB)
| `- error: cannot find 'tcflag_t' in scope
157 | }
158 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:156:34: error: cannot find 'CSTOPB' in scope
154 | settings.c_cflag |= tcflag_t(CSTOPB)
155 | } else {
156 | settings.c_cflag &= ~tcflag_t(CSTOPB)
| `- error: cannot find 'CSTOPB' in scope
157 | }
158 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:160:24: error: cannot find 'tcflag_t' in scope
158 |
159 | // Set data bits size flag
160 | settings.c_cflag &= ~tcflag_t(CSIZE)
| `- error: cannot find 'tcflag_t' in scope
161 | settings.c_cflag |= dataBitsSize.flagValue
162 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:160:33: error: cannot find 'CSIZE' in scope
158 |
159 | // Set data bits size flag
160 | settings.c_cflag &= ~tcflag_t(CSIZE)
| `- error: cannot find 'CSIZE' in scope
161 | settings.c_cflag |= dataBitsSize.flagValue
162 |
/host/spi-builder-workspace/Sources/SwiftSerial/DataBitsSize.swift:9:17: error: cannot find type 'tcflag_t' in scope
7 | case bits8
8 |
9 | var flagValue: tcflag_t {
| `- error: cannot find type 'tcflag_t' in scope
10 | switch self {
11 | case .bits5:
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:24: error: cannot find 'tcflag_t' in scope
162 |
163 | //Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
| `- error: cannot find 'tcflag_t' in scope
165 |
166 | // Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:33: error: cannot find 'ICRNL' in scope
162 |
163 | //Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
| `- error: cannot find 'ICRNL' in scope
165 |
166 | // Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:41: error: cannot find 'INLCR' in scope
162 |
163 | //Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
| `- error: cannot find 'INLCR' in scope
165 |
166 | // Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:49: error: cannot find 'IGNCR' in scope
162 |
163 | //Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
| `- error: cannot find 'IGNCR' in scope
165 |
166 | // Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:34: error: cannot find 'tcflag_t' in scope
182 |
183 | // Set software flow control flags
184 | let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
| `- error: cannot find 'tcflag_t' in scope
185 | if useSoftwareFlowControl {
186 | settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:43: error: cannot find 'IXON' in scope
182 |
183 | // Set software flow control flags
184 | let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
| `- error: cannot find 'IXON' in scope
185 | if useSoftwareFlowControl {
186 | settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:50: error: cannot find 'IXOFF' in scope
182 |
183 | // Set software flow control flags
184 | let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
| `- error: cannot find 'IXOFF' in scope
185 | if useSoftwareFlowControl {
186 | settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:58: error: cannot find 'IXANY' in scope
182 |
183 | // Set software flow control flags
184 | let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
| `- error: cannot find 'IXANY' in scope
185 | if useSoftwareFlowControl {
186 | settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:23: error: cannot find 'tcflag_t' in scope
190 |
191 | // Turn on the receiver of the serial port, and ignore modem control lines
192 | settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
| `- error: cannot find 'tcflag_t' in scope
193 |
194 | // Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:32: error: cannot find 'CREAD' in scope
190 |
191 | // Turn on the receiver of the serial port, and ignore modem control lines
192 | settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
| `- error: cannot find 'CREAD' in scope
193 |
194 | // Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:40: error: cannot find 'CLOCAL' in scope
190 |
191 | // Turn on the receiver of the serial port, and ignore modem control lines
192 | settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
| `- error: cannot find 'CLOCAL' in scope
193 |
194 | // Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:24: error: cannot find 'tcflag_t' in scope
193 |
194 | // Turn off canonical mode
195 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'tcflag_t' in scope
196 |
197 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:33: error: cannot find 'ICANON' in scope
193 |
194 | // Turn off canonical mode
195 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'ICANON' in scope
196 |
197 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:42: error: cannot find 'ECHO' in scope
193 |
194 | // Turn off canonical mode
195 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'ECHO' in scope
196 |
197 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:49: error: cannot find 'ECHOE' in scope
193 |
194 | // Turn off canonical mode
195 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'ECHOE' in scope
196 |
197 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:57: error: cannot find 'ISIG' in scope
193 |
194 | // Turn off canonical mode
195 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'ISIG' in scope
196 |
197 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:199:24: error: cannot find 'tcflag_t' in scope
197 | // Set output processing flag
198 | if processOutput {
199 | settings.c_oflag |= tcflag_t(OPOST)
| `- error: cannot find 'tcflag_t' in scope
200 | } else {
201 | settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:199:33: error: cannot find 'OPOST' in scope
197 | // Set output processing flag
198 | if processOutput {
199 | settings.c_oflag |= tcflag_t(OPOST)
| `- error: cannot find 'OPOST' in scope
200 | } else {
201 | settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:201:25: error: cannot find 'tcflag_t' in scope
199 | settings.c_oflag |= tcflag_t(OPOST)
200 | } else {
201 | settings.c_oflag &= ~tcflag_t(OPOST)
| `- error: cannot find 'tcflag_t' in scope
202 | }
203 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:201:34: error: cannot find 'OPOST' in scope
199 | settings.c_oflag |= tcflag_t(OPOST)
200 | } else {
201 | settings.c_oflag &= ~tcflag_t(OPOST)
| `- error: cannot find 'OPOST' in scope
202 | }
203 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:215:3: error: cannot find 'specialCharacters' in scope
213 | #endif
214 |
215 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
| `- error: cannot find 'specialCharacters' in scope
216 | specialCharacters.VTIME = cc_t(timeout)
217 | settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:215:28: error: cannot find 'cc_t' in scope
213 | #endif
214 |
215 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
| `- error: cannot find 'cc_t' in scope
216 | specialCharacters.VTIME = cc_t(timeout)
217 | settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:216:3: error: cannot find 'specialCharacters' in scope
214 |
215 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | specialCharacters.VTIME = cc_t(timeout)
| `- error: cannot find 'specialCharacters' in scope
217 | settings.c_cc = specialCharacters
218 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:216:29: error: cannot find 'cc_t' in scope
214 |
215 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | specialCharacters.VTIME = cc_t(timeout)
| `- error: cannot find 'cc_t' in scope
217 | settings.c_cc = specialCharacters
218 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:217:19: error: cannot find 'specialCharacters' in scope
215 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | specialCharacters.VTIME = cc_t(timeout)
217 | settings.c_cc = specialCharacters
| `- error: cannot find 'specialCharacters' in scope
218 |
219 | // Commit settings
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:220:3: error: cannot find 'tcsetattr' in scope
218 |
219 | // Commit settings
220 | tcsetattr(fileDescriptor, TCSANOW, &settings)
| `- error: cannot find 'tcsetattr' in scope
221 | }
222 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:220:29: error: cannot find 'TCSANOW' in scope
218 |
219 | // Commit settings
220 | tcsetattr(fileDescriptor, TCSANOW, &settings)
| `- error: cannot find 'TCSANOW' in scope
221 | }
222 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:235:4: error: cannot find 'close' in scope
233 |
234 | if let fileDescriptor = fileDescriptor {
235 | close(fileDescriptor)
| `- error: cannot find 'close' in scope
236 | }
237 | fileDescriptor = nil
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:332:22: error: cannot find 'write' in scope
330 | }
331 |
332 | let bytesWritten = write(fileDescriptor, buffer, size)
| `- error: cannot find 'write' in scope
333 | return bytesWritten
334 | }
[39/65] Compiling SwiftSerial ParityType.swift
/host/spi-builder-workspace/Sources/SwiftSerial/ParityType.swift:8:19: error: cannot find type 'tcflag_t' in scope
6 | case odd
7 |
8 | var parityValue: tcflag_t {
| `- error: cannot find type 'tcflag_t' in scope
9 | switch self {
10 | case .none:
[40/65] Compiling SwiftSerial SerialPortDeprecated.swift
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPortDeprecated.swift:49:10: error: cannot find type 'stat' in scope
47 | }
48 |
49 | var s: stat = stat()
| `- error: cannot find type 'stat' in scope
50 | fstat(fileDescriptor, &s)
51 | if s.st_nlink != 1 {
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPortDeprecated.swift:50:3: error: cannot find 'fstat' in scope
48 |
49 | var s: stat = stat()
50 | fstat(fileDescriptor, &s)
| `- error: cannot find 'fstat' in scope
51 | if s.st_nlink != 1 {
52 | throw PortError.deviceNotConnected
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPortDeprecated.swift:55:19: error: cannot find 'read' in scope
53 | }
54 |
55 | let bytesRead = read(fileDescriptor, buffer, size)
| `- error: cannot find 'read' in scope
56 | return bytesRead
57 | }
BUILD FAILURE 6.2 android