The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftSerial, reference main (d20cf9), with Swift 6.2 for Android on 10 Nov 2026 09:53:36 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sgade/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/sgade/SwiftSerial
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d20cf9f Allow a new open attempt after a failure
Cloned https://github.com/sgade/SwiftSerial.git
Revision (git rev-parse @):
d20cf9f92f870060fabb9e2775f15b6c5e29cb79
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/sgade/SwiftSerial.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/sgade/SwiftSerial.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:4d5a78170bd55d4f3692b7d4b22644bd314dfc2fffe9d773fe7a8a0436f96b5c
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--11D90AFD9DD3AB2.txt
[3/9] Compiling SwiftSerial PortMode.swift
[4/9] 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:70:21: error: cannot find 'read' in scope
 68 | 					.allocate(byteCount: bufferSize, alignment: 8)
 69 | 				defer { buffer.deallocate() }
 70 | 				let bytesRead = read(fileDescriptor, buffer, bufferSize)
    |                     `- error: cannot find 'read' in scope
 71 | 				guard bytesRead > 0 else {
 72 | 					// A lost device stays readable. Cancel the source, which ends the stream, so that this handler stops.
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:73:28: error: cannot find 'errno' in scope
 71 | 				guard bytesRead > 0 else {
 72 | 					// A lost device stays readable. Cancel the source, which ends the stream, so that this handler stops.
 73 | 					if bytesRead == 0 || (errno != EAGAIN && errno != EINTR) {
    |                            `- error: cannot find 'errno' in scope
 74 | 						pollSource.cancel()
 75 | 					}
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:73:47: error: cannot find 'errno' in scope
 71 | 				guard bytesRead > 0 else {
 72 | 					// A lost device stays readable. Cancel the source, which ends the stream, so that this handler stops.
 73 | 					if bytesRead == 0 || (errno != EAGAIN && errno != EINTR) {
    |                                               `- error: cannot find 'errno' in scope
 74 | 						pollSource.cancel()
 75 | 					}
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:148:18: error: cannot find 'termios' in scope
146 |
147 | 		// Set up the control structure
148 | 		var settings = termios()
    |                  `- error: cannot find 'termios' in scope
149 |
150 | 		// Get options structure for the port
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:151:3: error: cannot find 'tcgetattr' in scope
149 |
150 | 		// Get options structure for the port
151 | 		tcgetattr(fileDescriptor, &settings)
    |   `- error: cannot find 'tcgetattr' in scope
152 |
153 | 		// Set baud rates
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:154:3: error: cannot find 'cfsetispeed' in scope
152 |
153 | 		// Set baud rates
154 | 		cfsetispeed(&settings, baudRateSetting.receiveRate.speedValue)
    |   `- error: cannot find 'cfsetispeed' in scope
155 | 		cfsetospeed(&settings, baudRateSetting.transmitRate.speedValue)
156 |
/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:155:3: error: cannot find 'cfsetospeed' in scope
153 | 		// Set baud rates
154 | 		cfsetispeed(&settings, baudRateSetting.receiveRate.speedValue)
155 | 		cfsetospeed(&settings, baudRateSetting.transmitRate.speedValue)
    |   `- error: cannot find 'cfsetospeed' in scope
156 |
157 | 		// 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:162:24: error: cannot find 'tcflag_t' in scope
160 | 		// Set stop bit flag
161 | 		if sendTwoStopBits {
162 | 			settings.c_cflag |= tcflag_t(CSTOPB)
    |                        `- error: cannot find 'tcflag_t' in scope
163 | 		} else {
164 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:162:33: error: cannot find 'CSTOPB' in scope
160 | 		// Set stop bit flag
161 | 		if sendTwoStopBits {
162 | 			settings.c_cflag |= tcflag_t(CSTOPB)
    |                                 `- error: cannot find 'CSTOPB' in scope
163 | 		} else {
164 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:25: error: cannot find 'tcflag_t' in scope
162 | 			settings.c_cflag |= tcflag_t(CSTOPB)
163 | 		} else {
164 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
    |                         `- error: cannot find 'tcflag_t' in scope
165 | 		}
166 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:34: error: cannot find 'CSTOPB' in scope
162 | 			settings.c_cflag |= tcflag_t(CSTOPB)
163 | 		} else {
164 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
    |                                  `- error: cannot find 'CSTOPB' in scope
165 | 		}
166 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:168:24: error: cannot find 'tcflag_t' in scope
166 |
167 | 		// Set data bits size flag
168 | 		settings.c_cflag &= ~tcflag_t(CSIZE)
    |                        `- error: cannot find 'tcflag_t' in scope
169 | 		settings.c_cflag |= dataBitsSize.flagValue
170 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:168:33: error: cannot find 'CSIZE' in scope
166 |
167 | 		// Set data bits size flag
168 | 		settings.c_cflag &= ~tcflag_t(CSIZE)
    |                                 `- error: cannot find 'CSIZE' in scope
169 | 		settings.c_cflag |= dataBitsSize.flagValue
170 |
/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:172:24: error: cannot find 'tcflag_t' in scope
170 |
171 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
172 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                        `- error: cannot find 'tcflag_t' in scope
173 |
174 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:172:33: error: cannot find 'ICRNL' in scope
170 |
171 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
172 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                 `- error: cannot find 'ICRNL' in scope
173 |
174 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:172:41: error: cannot find 'INLCR' in scope
170 |
171 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
172 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                         `- error: cannot find 'INLCR' in scope
173 |
174 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:172:49: error: cannot find 'IGNCR' in scope
170 |
171 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
172 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                                 `- error: cannot find 'IGNCR' in scope
173 |
174 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:34: error: cannot find 'tcflag_t' in scope
190 |
191 | 		// Set software flow control flags
192 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                  `- error: cannot find 'tcflag_t' in scope
193 | 		if useSoftwareFlowControl {
194 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:43: error: cannot find 'IXON' in scope
190 |
191 | 		// Set software flow control flags
192 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                           `- error: cannot find 'IXON' in scope
193 | 		if useSoftwareFlowControl {
194 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:50: error: cannot find 'IXOFF' in scope
190 |
191 | 		// Set software flow control flags
192 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                                  `- error: cannot find 'IXOFF' in scope
193 | 		if useSoftwareFlowControl {
194 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:58: error: cannot find 'IXANY' in scope
190 |
191 | 		// Set software flow control flags
192 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                                          `- error: cannot find 'IXANY' in scope
193 | 		if useSoftwareFlowControl {
194 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:200:23: error: cannot find 'tcflag_t' in scope
198 |
199 | 		// Turn on the receiver of the serial port, and ignore modem control lines
200 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                       `- error: cannot find 'tcflag_t' in scope
201 |
202 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:200:32: error: cannot find 'CREAD' in scope
198 |
199 | 		// Turn on the receiver of the serial port, and ignore modem control lines
200 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                                `- error: cannot find 'CREAD' in scope
201 |
202 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:200:40: error: cannot find 'CLOCAL' in scope
198 |
199 | 		// Turn on the receiver of the serial port, and ignore modem control lines
200 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                                        `- error: cannot find 'CLOCAL' in scope
201 |
202 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:203:24: error: cannot find 'tcflag_t' in scope
201 |
202 | 		// Turn off canonical mode
203 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                        `- error: cannot find 'tcflag_t' in scope
204 |
205 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:203:33: error: cannot find 'ICANON' in scope
201 |
202 | 		// Turn off canonical mode
203 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                 `- error: cannot find 'ICANON' in scope
204 |
205 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:203:42: error: cannot find 'ECHO' in scope
201 |
202 | 		// Turn off canonical mode
203 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                          `- error: cannot find 'ECHO' in scope
204 |
205 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:203:49: error: cannot find 'ECHOE' in scope
201 |
202 | 		// Turn off canonical mode
203 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                                 `- error: cannot find 'ECHOE' in scope
204 |
205 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:203:57: error: cannot find 'ISIG' in scope
201 |
202 | 		// Turn off canonical mode
203 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                                         `- error: cannot find 'ISIG' in scope
204 |
205 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:207:24: error: cannot find 'tcflag_t' in scope
205 | 		// Set output processing flag
206 | 		if processOutput {
207 | 			settings.c_oflag |= tcflag_t(OPOST)
    |                        `- error: cannot find 'tcflag_t' in scope
208 | 		} else {
209 | 			settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:207:33: error: cannot find 'OPOST' in scope
205 | 		// Set output processing flag
206 | 		if processOutput {
207 | 			settings.c_oflag |= tcflag_t(OPOST)
    |                                 `- error: cannot find 'OPOST' in scope
208 | 		} else {
209 | 			settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:209:25: error: cannot find 'tcflag_t' in scope
207 | 			settings.c_oflag |= tcflag_t(OPOST)
208 | 		} else {
209 | 			settings.c_oflag &= ~tcflag_t(OPOST)
    |                         `- error: cannot find 'tcflag_t' in scope
210 | 		}
211 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:209:34: error: cannot find 'OPOST' in scope
207 | 			settings.c_oflag |= tcflag_t(OPOST)
208 | 		} else {
209 | 			settings.c_oflag &= ~tcflag_t(OPOST)
    |                                  `- error: cannot find 'OPOST' in scope
210 | 		}
211 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:223:3: error: cannot find 'specialCharacters' in scope
221 | 		#endif
222 |
223 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
    |   `- error: cannot find 'specialCharacters' in scope
224 | 		specialCharacters.VTIME = cc_t(timeout)
225 | 		settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:223:28: error: cannot find 'cc_t' in scope
221 | 		#endif
222 |
223 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
    |                            `- error: cannot find 'cc_t' in scope
224 | 		specialCharacters.VTIME = cc_t(timeout)
225 | 		settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:224:3: error: cannot find 'specialCharacters' in scope
222 |
223 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
224 | 		specialCharacters.VTIME = cc_t(timeout)
    |   `- error: cannot find 'specialCharacters' in scope
225 | 		settings.c_cc = specialCharacters
226 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:224:29: error: cannot find 'cc_t' in scope
222 |
223 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
224 | 		specialCharacters.VTIME = cc_t(timeout)
    |                             `- error: cannot find 'cc_t' in scope
225 | 		settings.c_cc = specialCharacters
226 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:225:19: error: cannot find 'specialCharacters' in scope
223 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
224 | 		specialCharacters.VTIME = cc_t(timeout)
225 | 		settings.c_cc = specialCharacters
    |                   `- error: cannot find 'specialCharacters' in scope
226 |
227 | 		// Commit settings
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:228:3: error: cannot find 'tcsetattr' in scope
226 |
227 | 		// Commit settings
228 | 		tcsetattr(fileDescriptor, TCSANOW, &settings)
    |   `- error: cannot find 'tcsetattr' in scope
229 | 	}
230 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:228:29: error: cannot find 'TCSANOW' in scope
226 |
227 | 		// Commit settings
228 | 		tcsetattr(fileDescriptor, TCSANOW, &settings)
    |                             `- error: cannot find 'TCSANOW' in scope
229 | 	}
230 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:243:4: error: cannot find 'close' in scope
241 |
242 | 		if let fileDescriptor = fileDescriptor {
243 | 			close(fileDescriptor)
    |    `- error: cannot find 'close' in scope
244 | 		}
245 | 		fileDescriptor = nil
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:340:22: error: cannot find 'write' in scope
338 | 		}
339 |
340 | 		let bytesWritten = write(fileDescriptor, buffer, size)
    |                      `- error: cannot find 'write' in scope
341 | 		return bytesWritten
342 | 	}
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/9] 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:148:18: error: cannot find 'termios' in scope
146 |
147 | 		// Set up the control structure
148 | 		var settings = termios()
    |                  `- error: cannot find 'termios' in scope
149 |
150 | 		// Get options structure for the port
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:151:3: error: cannot find 'tcgetattr' in scope
149 |
150 | 		// Get options structure for the port
151 | 		tcgetattr(fileDescriptor, &settings)
    |   `- error: cannot find 'tcgetattr' in scope
152 |
153 | 		// Set baud rates
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:154:3: error: cannot find 'cfsetispeed' in scope
152 |
153 | 		// Set baud rates
154 | 		cfsetispeed(&settings, baudRateSetting.receiveRate.speedValue)
    |   `- error: cannot find 'cfsetispeed' in scope
155 | 		cfsetospeed(&settings, baudRateSetting.transmitRate.speedValue)
156 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:155:3: error: cannot find 'cfsetospeed' in scope
153 | 		// Set baud rates
154 | 		cfsetispeed(&settings, baudRateSetting.receiveRate.speedValue)
155 | 		cfsetospeed(&settings, baudRateSetting.transmitRate.speedValue)
    |   `- error: cannot find 'cfsetospeed' in scope
156 |
157 | 		// Enable parity (even/odd) if needed
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:162:24: error: cannot find 'tcflag_t' in scope
160 | 		// Set stop bit flag
161 | 		if sendTwoStopBits {
162 | 			settings.c_cflag |= tcflag_t(CSTOPB)
    |                        `- error: cannot find 'tcflag_t' in scope
163 | 		} else {
164 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:162:33: error: cannot find 'CSTOPB' in scope
160 | 		// Set stop bit flag
161 | 		if sendTwoStopBits {
162 | 			settings.c_cflag |= tcflag_t(CSTOPB)
    |                                 `- error: cannot find 'CSTOPB' in scope
163 | 		} else {
164 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:25: error: cannot find 'tcflag_t' in scope
162 | 			settings.c_cflag |= tcflag_t(CSTOPB)
163 | 		} else {
164 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
    |                         `- error: cannot find 'tcflag_t' in scope
165 | 		}
166 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:34: error: cannot find 'CSTOPB' in scope
162 | 			settings.c_cflag |= tcflag_t(CSTOPB)
163 | 		} else {
164 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
    |                                  `- error: cannot find 'CSTOPB' in scope
165 | 		}
166 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:168:24: error: cannot find 'tcflag_t' in scope
166 |
167 | 		// Set data bits size flag
168 | 		settings.c_cflag &= ~tcflag_t(CSIZE)
    |                        `- error: cannot find 'tcflag_t' in scope
169 | 		settings.c_cflag |= dataBitsSize.flagValue
170 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:168:33: error: cannot find 'CSIZE' in scope
166 |
167 | 		// Set data bits size flag
168 | 		settings.c_cflag &= ~tcflag_t(CSIZE)
    |                                 `- error: cannot find 'CSIZE' in scope
169 | 		settings.c_cflag |= dataBitsSize.flagValue
170 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:172:24: error: cannot find 'tcflag_t' in scope
170 |
171 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
172 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                        `- error: cannot find 'tcflag_t' in scope
173 |
174 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:172:33: error: cannot find 'ICRNL' in scope
170 |
171 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
172 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                 `- error: cannot find 'ICRNL' in scope
173 |
174 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:172:41: error: cannot find 'INLCR' in scope
170 |
171 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
172 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                         `- error: cannot find 'INLCR' in scope
173 |
174 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:172:49: error: cannot find 'IGNCR' in scope
170 |
171 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
172 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                                 `- error: cannot find 'IGNCR' in scope
173 |
174 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:34: error: cannot find 'tcflag_t' in scope
190 |
191 | 		// Set software flow control flags
192 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                  `- error: cannot find 'tcflag_t' in scope
193 | 		if useSoftwareFlowControl {
194 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:43: error: cannot find 'IXON' in scope
190 |
191 | 		// Set software flow control flags
192 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                           `- error: cannot find 'IXON' in scope
193 | 		if useSoftwareFlowControl {
194 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:50: error: cannot find 'IXOFF' in scope
190 |
191 | 		// Set software flow control flags
192 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                                  `- error: cannot find 'IXOFF' in scope
193 | 		if useSoftwareFlowControl {
194 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:58: error: cannot find 'IXANY' in scope
190 |
191 | 		// Set software flow control flags
192 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                                          `- error: cannot find 'IXANY' in scope
193 | 		if useSoftwareFlowControl {
194 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:200:23: error: cannot find 'tcflag_t' in scope
198 |
199 | 		// Turn on the receiver of the serial port, and ignore modem control lines
200 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                       `- error: cannot find 'tcflag_t' in scope
201 |
202 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:200:32: error: cannot find 'CREAD' in scope
198 |
199 | 		// Turn on the receiver of the serial port, and ignore modem control lines
200 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                                `- error: cannot find 'CREAD' in scope
201 |
202 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:200:40: error: cannot find 'CLOCAL' in scope
198 |
199 | 		// Turn on the receiver of the serial port, and ignore modem control lines
200 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                                        `- error: cannot find 'CLOCAL' in scope
201 |
202 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:203:24: error: cannot find 'tcflag_t' in scope
201 |
202 | 		// Turn off canonical mode
203 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                        `- error: cannot find 'tcflag_t' in scope
204 |
205 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:203:33: error: cannot find 'ICANON' in scope
201 |
202 | 		// Turn off canonical mode
203 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                 `- error: cannot find 'ICANON' in scope
204 |
205 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:203:42: error: cannot find 'ECHO' in scope
201 |
202 | 		// Turn off canonical mode
203 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                          `- error: cannot find 'ECHO' in scope
204 |
205 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:203:49: error: cannot find 'ECHOE' in scope
201 |
202 | 		// Turn off canonical mode
203 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                                 `- error: cannot find 'ECHOE' in scope
204 |
205 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:203:57: error: cannot find 'ISIG' in scope
201 |
202 | 		// Turn off canonical mode
203 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                                         `- error: cannot find 'ISIG' in scope
204 |
205 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:207:24: error: cannot find 'tcflag_t' in scope
205 | 		// Set output processing flag
206 | 		if processOutput {
207 | 			settings.c_oflag |= tcflag_t(OPOST)
    |                        `- error: cannot find 'tcflag_t' in scope
208 | 		} else {
209 | 			settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:207:33: error: cannot find 'OPOST' in scope
205 | 		// Set output processing flag
206 | 		if processOutput {
207 | 			settings.c_oflag |= tcflag_t(OPOST)
    |                                 `- error: cannot find 'OPOST' in scope
208 | 		} else {
209 | 			settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:209:25: error: cannot find 'tcflag_t' in scope
207 | 			settings.c_oflag |= tcflag_t(OPOST)
208 | 		} else {
209 | 			settings.c_oflag &= ~tcflag_t(OPOST)
    |                         `- error: cannot find 'tcflag_t' in scope
210 | 		}
211 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:209:34: error: cannot find 'OPOST' in scope
207 | 			settings.c_oflag |= tcflag_t(OPOST)
208 | 		} else {
209 | 			settings.c_oflag &= ~tcflag_t(OPOST)
    |                                  `- error: cannot find 'OPOST' in scope
210 | 		}
211 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:223:3: error: cannot find 'specialCharacters' in scope
221 | 		#endif
222 |
223 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
    |   `- error: cannot find 'specialCharacters' in scope
224 | 		specialCharacters.VTIME = cc_t(timeout)
225 | 		settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:223:28: error: cannot find 'cc_t' in scope
221 | 		#endif
222 |
223 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
    |                            `- error: cannot find 'cc_t' in scope
224 | 		specialCharacters.VTIME = cc_t(timeout)
225 | 		settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:224:3: error: cannot find 'specialCharacters' in scope
222 |
223 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
224 | 		specialCharacters.VTIME = cc_t(timeout)
    |   `- error: cannot find 'specialCharacters' in scope
225 | 		settings.c_cc = specialCharacters
226 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:224:29: error: cannot find 'cc_t' in scope
222 |
223 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
224 | 		specialCharacters.VTIME = cc_t(timeout)
    |                             `- error: cannot find 'cc_t' in scope
225 | 		settings.c_cc = specialCharacters
226 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:225:19: error: cannot find 'specialCharacters' in scope
223 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
224 | 		specialCharacters.VTIME = cc_t(timeout)
225 | 		settings.c_cc = specialCharacters
    |                   `- error: cannot find 'specialCharacters' in scope
226 |
227 | 		// Commit settings
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:228:3: error: cannot find 'tcsetattr' in scope
226 |
227 | 		// Commit settings
228 | 		tcsetattr(fileDescriptor, TCSANOW, &settings)
    |   `- error: cannot find 'tcsetattr' in scope
229 | 	}
230 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:228:29: error: cannot find 'TCSANOW' in scope
226 |
227 | 		// Commit settings
228 | 		tcsetattr(fileDescriptor, TCSANOW, &settings)
    |                             `- error: cannot find 'TCSANOW' in scope
229 | 	}
230 |
[6/9] 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:
[7/9] 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:
[8/9] 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:
[9/9] Compiling SwiftSerial PortError.swift
BUILD FAILURE 6.2 android