The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-desktopia, reference main (ac3a46), with Swift 6.3 for Wasm on 18 Apr 2026 12:04:46 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sgade/swift-desktopia.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/swift-desktopia
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at ac3a46c Update product link
Cloned https://github.com/sgade/swift-desktopia.git
Revision (git rev-parse @):
ac3a46c66f681bc00b483e658568f0b3959a1c95
SUCCESS checkout https://github.com/sgade/swift-desktopia.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/sgade/swift-desktopia.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/sgade/SwiftSerial
[1/391] Fetching swiftserial
Fetched https://github.com/sgade/SwiftSerial from cache (0.32s)
Computing version for https://github.com/sgade/SwiftSerial
Computed https://github.com/sgade/SwiftSerial at 0.2.0 (0.76s)
Creating working copy for https://github.com/sgade/SwiftSerial
Working copy of https://github.com/sgade/SwiftSerial resolved at 0.2.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/10] Compiling SwiftSerial PortMode.swift
[5/10] Compiling SwiftSerial SerialPort.swift
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/SerialPort.swift:13:26: error: cannot find type 'DispatchSourceRead' in scope
 11 | 	private var isOpen: Bool { fileDescriptor != nil }
 12 |
 13 | 	private var pollSource: DispatchSourceRead?
    |                          `- error: cannot find type 'DispatchSourceRead' in scope
 14 | 	private var readDataStream: AsyncStream<Data>?
 15 | 	private var readBytesStream: AsyncStream<UInt8>?
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/SerialPort.swift:59:20: error: cannot find 'DispatchSource' in scope
 57 | 			let fileDescriptor
 58 | 		else { return }
 59 | 		let pollSource = DispatchSource.makeReadSource(fileDescriptor: fileDescriptor, queue: .global(qos: .default))
    |                    `- error: cannot find 'DispatchSource' in scope
 60 | 		let stream = AsyncStream<Data> { continuation in
 61 | 			pollSource.setEventHandler { [lock] in
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/SerialPort.swift:59:90: error: cannot infer contextual base in reference to member 'global'
 57 | 			let fileDescriptor
 58 | 		else { return }
 59 | 		let pollSource = DispatchSource.makeReadSource(fileDescriptor: fileDescriptor, queue: .global(qos: .default))
    |                                                                                          `- error: cannot infer contextual base in reference to member 'global'
 60 | 		let stream = AsyncStream<Data> { continuation in
 61 | 			pollSource.setEventHandler { [lock] in
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/SerialPort.swift:59:103: error: cannot infer contextual base in reference to member 'default'
 57 | 			let fileDescriptor
 58 | 		else { return }
 59 | 		let pollSource = DispatchSource.makeReadSource(fileDescriptor: fileDescriptor, queue: .global(qos: .default))
    |                                                                                                       `- error: cannot infer contextual base in reference to member 'default'
 60 | 		let stream = AsyncStream<Data> { continuation in
 61 | 			pollSource.setEventHandler { [lock] in
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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 |
[6/10] Compiling SwiftSerial PortError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/10] Emitting module SwiftSerial
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/Sources/SwiftSerial/SerialPort.swift:13:26: error: cannot find type 'DispatchSourceRead' in scope
 11 | 	private var isOpen: Bool { fileDescriptor != nil }
 12 |
 13 | 	private var pollSource: DispatchSourceRead?
    |                          `- error: cannot find type 'DispatchSourceRead' in scope
 14 | 	private var readDataStream: AsyncStream<Data>?
 15 | 	private var readBytesStream: AsyncStream<UInt8>?
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/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 |
[8/10] Compiling SwiftSerial BaudRate.swift
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:109:11: error: cannot find 'speed_t' in scope
107 | 		switch self {
108 | 		case .baud0:
109 | 			return speed_t(B0)
    |           `- error: cannot find 'speed_t' in scope
110 | 		case .baud50:
111 | 			return speed_t(B50)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:109:19: error: cannot find 'B0' in scope
107 | 		switch self {
108 | 		case .baud0:
109 | 			return speed_t(B0)
    |                   `- error: cannot find 'B0' in scope
110 | 		case .baud50:
111 | 			return speed_t(B50)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:111:11: error: cannot find 'speed_t' in scope
109 | 			return speed_t(B0)
110 | 		case .baud50:
111 | 			return speed_t(B50)
    |           `- error: cannot find 'speed_t' in scope
112 | 		case .baud75:
113 | 			return speed_t(B75)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:111:19: error: cannot find 'B50' in scope
109 | 			return speed_t(B0)
110 | 		case .baud50:
111 | 			return speed_t(B50)
    |                   `- error: cannot find 'B50' in scope
112 | 		case .baud75:
113 | 			return speed_t(B75)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:113:11: error: cannot find 'speed_t' in scope
111 | 			return speed_t(B50)
112 | 		case .baud75:
113 | 			return speed_t(B75)
    |           `- error: cannot find 'speed_t' in scope
114 | 		case .baud110:
115 | 			return speed_t(B110)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:113:19: error: cannot find 'B75' in scope
111 | 			return speed_t(B50)
112 | 		case .baud75:
113 | 			return speed_t(B75)
    |                   `- error: cannot find 'B75' in scope
114 | 		case .baud110:
115 | 			return speed_t(B110)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:115:11: error: cannot find 'speed_t' in scope
113 | 			return speed_t(B75)
114 | 		case .baud110:
115 | 			return speed_t(B110)
    |           `- error: cannot find 'speed_t' in scope
116 | 		case .baud134:
117 | 			return speed_t(B134)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:115:19: error: cannot find 'B110' in scope
113 | 			return speed_t(B75)
114 | 		case .baud110:
115 | 			return speed_t(B110)
    |                   `- error: cannot find 'B110' in scope
116 | 		case .baud134:
117 | 			return speed_t(B134)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:117:11: error: cannot find 'speed_t' in scope
115 | 			return speed_t(B110)
116 | 		case .baud134:
117 | 			return speed_t(B134)
    |           `- error: cannot find 'speed_t' in scope
118 | 		case .baud150:
119 | 			return speed_t(B150)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:117:19: error: cannot find 'B134' in scope
115 | 			return speed_t(B110)
116 | 		case .baud134:
117 | 			return speed_t(B134)
    |                   `- error: cannot find 'B134' in scope
118 | 		case .baud150:
119 | 			return speed_t(B150)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:119:11: error: cannot find 'speed_t' in scope
117 | 			return speed_t(B134)
118 | 		case .baud150:
119 | 			return speed_t(B150)
    |           `- error: cannot find 'speed_t' in scope
120 | 		case .baud200:
121 | 			return speed_t(B200)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:119:19: error: cannot find 'B150' in scope
117 | 			return speed_t(B134)
118 | 		case .baud150:
119 | 			return speed_t(B150)
    |                   `- error: cannot find 'B150' in scope
120 | 		case .baud200:
121 | 			return speed_t(B200)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:121:11: error: cannot find 'speed_t' in scope
119 | 			return speed_t(B150)
120 | 		case .baud200:
121 | 			return speed_t(B200)
    |           `- error: cannot find 'speed_t' in scope
122 | 		case .baud300:
123 | 			return speed_t(B300)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:121:19: error: cannot find 'B200' in scope
119 | 			return speed_t(B150)
120 | 		case .baud200:
121 | 			return speed_t(B200)
    |                   `- error: cannot find 'B200' in scope
122 | 		case .baud300:
123 | 			return speed_t(B300)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:123:11: error: cannot find 'speed_t' in scope
121 | 			return speed_t(B200)
122 | 		case .baud300:
123 | 			return speed_t(B300)
    |           `- error: cannot find 'speed_t' in scope
124 | 		case .baud600:
125 | 			return speed_t(B600)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:123:19: error: cannot find 'B300' in scope
121 | 			return speed_t(B200)
122 | 		case .baud300:
123 | 			return speed_t(B300)
    |                   `- error: cannot find 'B300' in scope
124 | 		case .baud600:
125 | 			return speed_t(B600)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:125:11: error: cannot find 'speed_t' in scope
123 | 			return speed_t(B300)
124 | 		case .baud600:
125 | 			return speed_t(B600)
    |           `- error: cannot find 'speed_t' in scope
126 | 		case .baud1200:
127 | 			return speed_t(B1200)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:125:19: error: cannot find 'B600' in scope
123 | 			return speed_t(B300)
124 | 		case .baud600:
125 | 			return speed_t(B600)
    |                   `- error: cannot find 'B600' in scope
126 | 		case .baud1200:
127 | 			return speed_t(B1200)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:127:11: error: cannot find 'speed_t' in scope
125 | 			return speed_t(B600)
126 | 		case .baud1200:
127 | 			return speed_t(B1200)
    |           `- error: cannot find 'speed_t' in scope
128 | 		case .baud1800:
129 | 			return speed_t(B1800)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:127:19: error: cannot find 'B1200' in scope
125 | 			return speed_t(B600)
126 | 		case .baud1200:
127 | 			return speed_t(B1200)
    |                   `- error: cannot find 'B1200' in scope
128 | 		case .baud1800:
129 | 			return speed_t(B1800)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:129:11: error: cannot find 'speed_t' in scope
127 | 			return speed_t(B1200)
128 | 		case .baud1800:
129 | 			return speed_t(B1800)
    |           `- error: cannot find 'speed_t' in scope
130 | 		case .baud2400:
131 | 			return speed_t(B2400)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:129:19: error: cannot find 'B1800' in scope
127 | 			return speed_t(B1200)
128 | 		case .baud1800:
129 | 			return speed_t(B1800)
    |                   `- error: cannot find 'B1800' in scope
130 | 		case .baud2400:
131 | 			return speed_t(B2400)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:131:11: error: cannot find 'speed_t' in scope
129 | 			return speed_t(B1800)
130 | 		case .baud2400:
131 | 			return speed_t(B2400)
    |           `- error: cannot find 'speed_t' in scope
132 | 		case .baud4800:
133 | 			return speed_t(B4800)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:131:19: error: cannot find 'B2400' in scope
129 | 			return speed_t(B1800)
130 | 		case .baud2400:
131 | 			return speed_t(B2400)
    |                   `- error: cannot find 'B2400' in scope
132 | 		case .baud4800:
133 | 			return speed_t(B4800)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:133:11: error: cannot find 'speed_t' in scope
131 | 			return speed_t(B2400)
132 | 		case .baud4800:
133 | 			return speed_t(B4800)
    |           `- error: cannot find 'speed_t' in scope
134 | 		case .baud9600:
135 | 			return speed_t(B9600)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:133:19: error: cannot find 'B4800' in scope
131 | 			return speed_t(B2400)
132 | 		case .baud4800:
133 | 			return speed_t(B4800)
    |                   `- error: cannot find 'B4800' in scope
134 | 		case .baud9600:
135 | 			return speed_t(B9600)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:135:11: error: cannot find 'speed_t' in scope
133 | 			return speed_t(B4800)
134 | 		case .baud9600:
135 | 			return speed_t(B9600)
    |           `- error: cannot find 'speed_t' in scope
136 | 		case .baud19200:
137 | 			return speed_t(B19200)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:135:19: error: cannot find 'B9600' in scope
133 | 			return speed_t(B4800)
134 | 		case .baud9600:
135 | 			return speed_t(B9600)
    |                   `- error: cannot find 'B9600' in scope
136 | 		case .baud19200:
137 | 			return speed_t(B19200)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:137:11: error: cannot find 'speed_t' in scope
135 | 			return speed_t(B9600)
136 | 		case .baud19200:
137 | 			return speed_t(B19200)
    |           `- error: cannot find 'speed_t' in scope
138 | 		case .baud38400:
139 | 			return speed_t(B38400)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:137:19: error: cannot find 'B19200' in scope
135 | 			return speed_t(B9600)
136 | 		case .baud19200:
137 | 			return speed_t(B19200)
    |                   `- error: cannot find 'B19200' in scope
138 | 		case .baud38400:
139 | 			return speed_t(B38400)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:139:11: error: cannot find 'speed_t' in scope
137 | 			return speed_t(B19200)
138 | 		case .baud38400:
139 | 			return speed_t(B38400)
    |           `- error: cannot find 'speed_t' in scope
140 | 		case .baud57600:
141 | 			return speed_t(B57600)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:139:19: error: cannot find 'B38400' in scope
137 | 			return speed_t(B19200)
138 | 		case .baud38400:
139 | 			return speed_t(B38400)
    |                   `- error: cannot find 'B38400' in scope
140 | 		case .baud57600:
141 | 			return speed_t(B57600)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:141:11: error: cannot find 'speed_t' in scope
139 | 			return speed_t(B38400)
140 | 		case .baud57600:
141 | 			return speed_t(B57600)
    |           `- error: cannot find 'speed_t' in scope
142 | 		case .baud115200:
143 | 			return speed_t(B115200)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:141:19: error: cannot find 'B57600' in scope
139 | 			return speed_t(B38400)
140 | 		case .baud57600:
141 | 			return speed_t(B57600)
    |                   `- error: cannot find 'B57600' in scope
142 | 		case .baud115200:
143 | 			return speed_t(B115200)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:143:11: error: cannot find 'speed_t' in scope
141 | 			return speed_t(B57600)
142 | 		case .baud115200:
143 | 			return speed_t(B115200)
    |           `- error: cannot find 'speed_t' in scope
144 | 		case .baud230400:
145 | 			return speed_t(B230400)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:143:19: error: cannot find 'B115200' in scope
141 | 			return speed_t(B57600)
142 | 		case .baud115200:
143 | 			return speed_t(B115200)
    |                   `- error: cannot find 'B115200' in scope
144 | 		case .baud230400:
145 | 			return speed_t(B230400)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:145:11: error: cannot find 'speed_t' in scope
143 | 			return speed_t(B115200)
144 | 		case .baud230400:
145 | 			return speed_t(B230400)
    |           `- error: cannot find 'speed_t' in scope
146 | 		#if os(Linux)
147 | 		case .baud460800:
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/BaudRate.swift:145:19: error: cannot find 'B230400' in scope
143 | 			return speed_t(B115200)
144 | 		case .baud230400:
145 | 			return speed_t(B230400)
    |                   `- error: cannot find 'B230400' in scope
146 | 		#if os(Linux)
147 | 		case .baud460800:
[9/10] Compiling SwiftSerial ParityType.swift
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/Sources/SwiftSerial/ParityType.swift:13:11: error: cannot find 'tcflag_t' in scope
11 | 			return 0
12 | 		case .even:
13 | 			return tcflag_t(PARENB)
   |           `- error: cannot find 'tcflag_t' in scope
14 | 		case .odd:
15 | 			return tcflag_t(PARENB | PARODD)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/ParityType.swift:13:20: error: cannot find 'PARENB' in scope
11 | 			return 0
12 | 		case .even:
13 | 			return tcflag_t(PARENB)
   |                    `- error: cannot find 'PARENB' in scope
14 | 		case .odd:
15 | 			return tcflag_t(PARENB | PARODD)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/ParityType.swift:15:11: error: cannot find 'tcflag_t' in scope
13 | 			return tcflag_t(PARENB)
14 | 		case .odd:
15 | 			return tcflag_t(PARENB | PARODD)
   |           `- error: cannot find 'tcflag_t' in scope
16 | 		}
17 | 	}
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/ParityType.swift:15:20: error: cannot find 'PARENB' in scope
13 | 			return tcflag_t(PARENB)
14 | 		case .odd:
15 | 			return tcflag_t(PARENB | PARODD)
   |                    `- error: cannot find 'PARENB' in scope
16 | 		}
17 | 	}
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/ParityType.swift:15:29: error: cannot find 'PARODD' in scope
13 | 			return tcflag_t(PARENB)
14 | 		case .odd:
15 | 			return tcflag_t(PARENB | PARODD)
   |                             `- error: cannot find 'PARODD' in scope
16 | 		}
17 | 	}
[10/10] Compiling SwiftSerial DataBitsSize.swift
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/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/.build/checkouts/SwiftSerial/Sources/SwiftSerial/DataBitsSize.swift:12:11: error: cannot find 'tcflag_t' in scope
10 | 		switch self {
11 | 		case .bits5:
12 | 			return tcflag_t(CS5)
   |           `- error: cannot find 'tcflag_t' in scope
13 | 		case .bits6:
14 | 			return tcflag_t(CS6)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/DataBitsSize.swift:12:20: error: cannot find 'CS5' in scope
10 | 		switch self {
11 | 		case .bits5:
12 | 			return tcflag_t(CS5)
   |                    `- error: cannot find 'CS5' in scope
13 | 		case .bits6:
14 | 			return tcflag_t(CS6)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/DataBitsSize.swift:14:11: error: cannot find 'tcflag_t' in scope
12 | 			return tcflag_t(CS5)
13 | 		case .bits6:
14 | 			return tcflag_t(CS6)
   |           `- error: cannot find 'tcflag_t' in scope
15 | 		case .bits7:
16 | 			return tcflag_t(CS7)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/DataBitsSize.swift:14:20: error: cannot find 'CS6' in scope
12 | 			return tcflag_t(CS5)
13 | 		case .bits6:
14 | 			return tcflag_t(CS6)
   |                    `- error: cannot find 'CS6' in scope
15 | 		case .bits7:
16 | 			return tcflag_t(CS7)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/DataBitsSize.swift:16:11: error: cannot find 'tcflag_t' in scope
14 | 			return tcflag_t(CS6)
15 | 		case .bits7:
16 | 			return tcflag_t(CS7)
   |           `- error: cannot find 'tcflag_t' in scope
17 | 		case .bits8:
18 | 			return tcflag_t(CS8)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/DataBitsSize.swift:16:20: error: cannot find 'CS7' in scope
14 | 			return tcflag_t(CS6)
15 | 		case .bits7:
16 | 			return tcflag_t(CS7)
   |                    `- error: cannot find 'CS7' in scope
17 | 		case .bits8:
18 | 			return tcflag_t(CS8)
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/DataBitsSize.swift:18:11: error: cannot find 'tcflag_t' in scope
16 | 			return tcflag_t(CS7)
17 | 		case .bits8:
18 | 			return tcflag_t(CS8)
   |           `- error: cannot find 'tcflag_t' in scope
19 | 		}
20 | 	}
/host/spi-builder-workspace/.build/checkouts/SwiftSerial/Sources/SwiftSerial/DataBitsSize.swift:18:20: error: cannot find 'CS8' in scope
16 | 			return tcflag_t(CS7)
17 | 		case .bits8:
18 | 			return tcflag_t(CS8)
   |                    `- error: cannot find 'CS8' in scope
19 | 		}
20 | 	}
BUILD FAILURE 6.3 wasm