Build Information
Failed to build SwiftSerial, reference 0.1.2 (0e824c), with Swift 6.3 for Wasm on 11 Apr 2026 08:06:46 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yeokm1/swiftserial.git
Reference: 0.1.2
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/yeokm1/swiftserial
* tag 0.1.2 -> FETCH_HEAD
HEAD is now at 0e824cc Updated readme to reflect new binary transfer test. 0.1.2 version.
Cloned https://github.com/yeokm1/swiftserial.git
Revision (git rev-parse @):
0e824cc38c6802e69543d0c1406d34babfd68e2e
SUCCESS checkout https://github.com/yeokm1/swiftserial.git at 0.1.2
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/yeokm1/swiftserial.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module SwiftSerial
/host/spi-builder-workspace/Sources/SwiftSerial.swift:174:20: error: cannot find type 'tcflag_t' in scope
172 | case bits8
173 |
174 | var flagValue: tcflag_t {
| `- error: cannot find type 'tcflag_t' in scope
175 | switch self {
176 | case .bits5:
/host/spi-builder-workspace/Sources/SwiftSerial.swift:194:22: error: cannot find type 'tcflag_t' in scope
192 | case odd
193 |
194 | var parityValue: tcflag_t {
| `- error: cannot find type 'tcflag_t' in scope
195 | switch self {
196 | case .none:
/host/spi-builder-workspace/Sources/SwiftSerial.swift:262:42: error: cannot find type 'BaudRate' in scope
260 | }
261 |
262 | public func setSettings(receiveRate: BaudRate,
| `- error: cannot find type 'BaudRate' in scope
263 | transmitRate: BaudRate,
264 | minimumBytesToRead: Int,
/host/spi-builder-workspace/Sources/SwiftSerial.swift:263:43: error: cannot find type 'BaudRate' in scope
261 |
262 | public func setSettings(receiveRate: BaudRate,
263 | transmitRate: BaudRate,
| `- error: cannot find type 'BaudRate' in scope
264 | minimumBytesToRead: Int,
265 | timeout: Int = 0, /* 0 means wait indefinitely */
/host/spi-builder-workspace/Sources/SwiftSerial.swift:279:24: error: cannot find 'termios' in scope
277 |
278 | // Set up the control structure
279 | var settings = termios()
| `- error: cannot find 'termios' in scope
280 |
281 | // Get options structure for the port
/host/spi-builder-workspace/Sources/SwiftSerial.swift:282:9: error: cannot find 'tcgetattr' in scope
280 |
281 | // Get options structure for the port
282 | tcgetattr(fileDescriptor, &settings)
| `- error: cannot find 'tcgetattr' in scope
283 |
284 | // Set baud rates
/host/spi-builder-workspace/Sources/SwiftSerial.swift:285:9: error: cannot find 'cfsetispeed' in scope
283 |
284 | // Set baud rates
285 | cfsetispeed(&settings, receiveRate.speedValue)
| `- error: cannot find 'cfsetispeed' in scope
286 | cfsetospeed(&settings, transmitRate.speedValue)
287 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:286:9: error: cannot find 'cfsetospeed' in scope
284 | // Set baud rates
285 | cfsetispeed(&settings, receiveRate.speedValue)
286 | cfsetospeed(&settings, transmitRate.speedValue)
| `- error: cannot find 'cfsetospeed' in scope
287 |
288 | // Enable parity (even/odd) if needed
/host/spi-builder-workspace/Sources/SwiftSerial.swift:293:33: error: cannot find 'tcflag_t' in scope
291 | // Set stop bit flag
292 | if sendTwoStopBits {
293 | settings.c_cflag |= tcflag_t(CSTOPB)
| `- error: cannot find 'tcflag_t' in scope
294 | } else {
295 | settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial.swift:293:42: error: cannot find 'CSTOPB' in scope
291 | // Set stop bit flag
292 | if sendTwoStopBits {
293 | settings.c_cflag |= tcflag_t(CSTOPB)
| `- error: cannot find 'CSTOPB' in scope
294 | } else {
295 | settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial.swift:295:34: error: cannot find 'tcflag_t' in scope
293 | settings.c_cflag |= tcflag_t(CSTOPB)
294 | } else {
295 | settings.c_cflag &= ~tcflag_t(CSTOPB)
| `- error: cannot find 'tcflag_t' in scope
296 | }
297 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:295:43: error: cannot find 'CSTOPB' in scope
293 | settings.c_cflag |= tcflag_t(CSTOPB)
294 | } else {
295 | settings.c_cflag &= ~tcflag_t(CSTOPB)
| `- error: cannot find 'CSTOPB' in scope
296 | }
297 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:299:30: error: cannot find 'tcflag_t' in scope
297 |
298 | // Set data bits size flag
299 | settings.c_cflag &= ~tcflag_t(CSIZE)
| `- error: cannot find 'tcflag_t' in scope
300 | settings.c_cflag |= dataBitsSize.flagValue
301 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:299:39: error: cannot find 'CSIZE' in scope
297 |
298 | // Set data bits size flag
299 | settings.c_cflag &= ~tcflag_t(CSIZE)
| `- error: cannot find 'CSIZE' in scope
300 | settings.c_cflag |= dataBitsSize.flagValue
301 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:303:30: error: cannot find 'tcflag_t' in scope
301 |
302 | //Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
303 | settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
| `- error: cannot find 'tcflag_t' in scope
304 |
305 | // Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:303:39: error: cannot find 'ICRNL' in scope
301 |
302 | //Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
303 | settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
| `- error: cannot find 'ICRNL' in scope
304 |
305 | // Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:303:47: error: cannot find 'INLCR' in scope
301 |
302 | //Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
303 | settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
| `- error: cannot find 'INLCR' in scope
304 |
305 | // Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:303:55: error: cannot find 'IGNCR' in scope
301 |
302 | //Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
303 | settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
| `- error: cannot find 'IGNCR' in scope
304 |
305 | // Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:323:40: error: cannot find 'tcflag_t' in scope
321 |
322 | // Set software flow control flags
323 | let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
| `- error: cannot find 'tcflag_t' in scope
324 | if useSoftwareFlowControl {
325 | settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial.swift:323:49: error: cannot find 'IXON' in scope
321 |
322 | // Set software flow control flags
323 | let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
| `- error: cannot find 'IXON' in scope
324 | if useSoftwareFlowControl {
325 | settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial.swift:323:56: error: cannot find 'IXOFF' in scope
321 |
322 | // Set software flow control flags
323 | let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
| `- error: cannot find 'IXOFF' in scope
324 | if useSoftwareFlowControl {
325 | settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial.swift:323:64: error: cannot find 'IXANY' in scope
321 |
322 | // Set software flow control flags
323 | let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
| `- error: cannot find 'IXANY' in scope
324 | if useSoftwareFlowControl {
325 | settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial.swift:331:29: error: cannot find 'tcflag_t' in scope
329 |
330 | // Turn on the receiver of the serial port, and ignore modem control lines
331 | settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
| `- error: cannot find 'tcflag_t' in scope
332 |
333 | // Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial.swift:331:38: error: cannot find 'CREAD' in scope
329 |
330 | // Turn on the receiver of the serial port, and ignore modem control lines
331 | settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
| `- error: cannot find 'CREAD' in scope
332 |
333 | // Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial.swift:331:46: error: cannot find 'CLOCAL' in scope
329 |
330 | // Turn on the receiver of the serial port, and ignore modem control lines
331 | settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
| `- error: cannot find 'CLOCAL' in scope
332 |
333 | // Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial.swift:334:30: error: cannot find 'tcflag_t' in scope
332 |
333 | // Turn off canonical mode
334 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'tcflag_t' in scope
335 |
336 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:334:39: error: cannot find 'ICANON' in scope
332 |
333 | // Turn off canonical mode
334 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'ICANON' in scope
335 |
336 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:334:48: error: cannot find 'ECHO' in scope
332 |
333 | // Turn off canonical mode
334 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'ECHO' in scope
335 |
336 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:334:55: error: cannot find 'ECHOE' in scope
332 |
333 | // Turn off canonical mode
334 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'ECHOE' in scope
335 |
336 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:334:63: error: cannot find 'ISIG' in scope
332 |
333 | // Turn off canonical mode
334 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'ISIG' in scope
335 |
336 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:338:33: error: cannot find 'tcflag_t' in scope
336 | // Set output processing flag
337 | if processOutput {
338 | settings.c_oflag |= tcflag_t(OPOST)
| `- error: cannot find 'tcflag_t' in scope
339 | } else {
340 | settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial.swift:338:42: error: cannot find 'OPOST' in scope
336 | // Set output processing flag
337 | if processOutput {
338 | settings.c_oflag |= tcflag_t(OPOST)
| `- error: cannot find 'OPOST' in scope
339 | } else {
340 | settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial.swift:340:34: error: cannot find 'tcflag_t' in scope
338 | settings.c_oflag |= tcflag_t(OPOST)
339 | } else {
340 | settings.c_oflag &= ~tcflag_t(OPOST)
| `- error: cannot find 'tcflag_t' in scope
341 | }
342 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:340:43: error: cannot find 'OPOST' in scope
338 | settings.c_oflag |= tcflag_t(OPOST)
339 | } else {
340 | settings.c_oflag &= ~tcflag_t(OPOST)
| `- error: cannot find 'OPOST' in scope
341 | }
342 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:354:9: error: cannot find 'specialCharacters' in scope
352 | #endif
353 |
354 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
| `- error: cannot find 'specialCharacters' in scope
355 | specialCharacters.VTIME = cc_t(timeout)
356 | settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial.swift:354:34: error: cannot find 'cc_t' in scope
352 | #endif
353 |
354 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
| `- error: cannot find 'cc_t' in scope
355 | specialCharacters.VTIME = cc_t(timeout)
356 | settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial.swift:355:9: error: cannot find 'specialCharacters' in scope
353 |
354 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
355 | specialCharacters.VTIME = cc_t(timeout)
| `- error: cannot find 'specialCharacters' in scope
356 | settings.c_cc = specialCharacters
357 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:355:35: error: cannot find 'cc_t' in scope
353 |
354 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
355 | specialCharacters.VTIME = cc_t(timeout)
| `- error: cannot find 'cc_t' in scope
356 | settings.c_cc = specialCharacters
357 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:356:25: error: cannot find 'specialCharacters' in scope
354 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
355 | specialCharacters.VTIME = cc_t(timeout)
356 | settings.c_cc = specialCharacters
| `- error: cannot find 'specialCharacters' in scope
357 |
358 | // Commit settings
/host/spi-builder-workspace/Sources/SwiftSerial.swift:359:9: error: cannot find 'tcsetattr' in scope
357 |
358 | // Commit settings
359 | tcsetattr(fileDescriptor, TCSANOW, &settings)
| `- error: cannot find 'tcsetattr' in scope
360 | }
361 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:359:35: error: cannot find 'TCSANOW' in scope
357 |
358 | // Commit settings
359 | tcsetattr(fileDescriptor, TCSANOW, &settings)
| `- error: cannot find 'TCSANOW' in scope
360 | }
361 |
[4/4] Compiling SwiftSerial SwiftSerial.swift
/host/spi-builder-workspace/Sources/SwiftSerial.swift:174:20: error: cannot find type 'tcflag_t' in scope
172 | case bits8
173 |
174 | var flagValue: tcflag_t {
| `- error: cannot find type 'tcflag_t' in scope
175 | switch self {
176 | case .bits5:
/host/spi-builder-workspace/Sources/SwiftSerial.swift:194:22: error: cannot find type 'tcflag_t' in scope
192 | case odd
193 |
194 | var parityValue: tcflag_t {
| `- error: cannot find type 'tcflag_t' in scope
195 | switch self {
196 | case .none:
/host/spi-builder-workspace/Sources/SwiftSerial.swift:262:42: error: cannot find type 'BaudRate' in scope
260 | }
261 |
262 | public func setSettings(receiveRate: BaudRate,
| `- error: cannot find type 'BaudRate' in scope
263 | transmitRate: BaudRate,
264 | minimumBytesToRead: Int,
/host/spi-builder-workspace/Sources/SwiftSerial.swift:263:43: error: cannot find type 'BaudRate' in scope
261 |
262 | public func setSettings(receiveRate: BaudRate,
263 | transmitRate: BaudRate,
| `- error: cannot find type 'BaudRate' in scope
264 | minimumBytesToRead: Int,
265 | timeout: Int = 0, /* 0 means wait indefinitely */
/host/spi-builder-workspace/Sources/SwiftSerial.swift:177:20: error: cannot find 'tcflag_t' in scope
175 | switch self {
176 | case .bits5:
177 | return tcflag_t(CS5)
| `- error: cannot find 'tcflag_t' in scope
178 | case .bits6:
179 | return tcflag_t(CS6)
/host/spi-builder-workspace/Sources/SwiftSerial.swift:177:29: error: cannot find 'CS5' in scope
175 | switch self {
176 | case .bits5:
177 | return tcflag_t(CS5)
| `- error: cannot find 'CS5' in scope
178 | case .bits6:
179 | return tcflag_t(CS6)
/host/spi-builder-workspace/Sources/SwiftSerial.swift:179:20: error: cannot find 'tcflag_t' in scope
177 | return tcflag_t(CS5)
178 | case .bits6:
179 | return tcflag_t(CS6)
| `- error: cannot find 'tcflag_t' in scope
180 | case .bits7:
181 | return tcflag_t(CS7)
/host/spi-builder-workspace/Sources/SwiftSerial.swift:179:29: error: cannot find 'CS6' in scope
177 | return tcflag_t(CS5)
178 | case .bits6:
179 | return tcflag_t(CS6)
| `- error: cannot find 'CS6' in scope
180 | case .bits7:
181 | return tcflag_t(CS7)
/host/spi-builder-workspace/Sources/SwiftSerial.swift:181:20: error: cannot find 'tcflag_t' in scope
179 | return tcflag_t(CS6)
180 | case .bits7:
181 | return tcflag_t(CS7)
| `- error: cannot find 'tcflag_t' in scope
182 | case .bits8:
183 | return tcflag_t(CS8)
/host/spi-builder-workspace/Sources/SwiftSerial.swift:181:29: error: cannot find 'CS7' in scope
179 | return tcflag_t(CS6)
180 | case .bits7:
181 | return tcflag_t(CS7)
| `- error: cannot find 'CS7' in scope
182 | case .bits8:
183 | return tcflag_t(CS8)
/host/spi-builder-workspace/Sources/SwiftSerial.swift:183:20: error: cannot find 'tcflag_t' in scope
181 | return tcflag_t(CS7)
182 | case .bits8:
183 | return tcflag_t(CS8)
| `- error: cannot find 'tcflag_t' in scope
184 | }
185 | }
/host/spi-builder-workspace/Sources/SwiftSerial.swift:183:29: error: cannot find 'CS8' in scope
181 | return tcflag_t(CS7)
182 | case .bits8:
183 | return tcflag_t(CS8)
| `- error: cannot find 'CS8' in scope
184 | }
185 | }
/host/spi-builder-workspace/Sources/SwiftSerial.swift:199:20: error: cannot find 'tcflag_t' in scope
197 | return 0
198 | case .even:
199 | return tcflag_t(PARENB)
| `- error: cannot find 'tcflag_t' in scope
200 | case .odd:
201 | return tcflag_t(PARENB | PARODD)
/host/spi-builder-workspace/Sources/SwiftSerial.swift:199:29: error: cannot find 'PARENB' in scope
197 | return 0
198 | case .even:
199 | return tcflag_t(PARENB)
| `- error: cannot find 'PARENB' in scope
200 | case .odd:
201 | return tcflag_t(PARENB | PARODD)
/host/spi-builder-workspace/Sources/SwiftSerial.swift:201:20: error: cannot find 'tcflag_t' in scope
199 | return tcflag_t(PARENB)
200 | case .odd:
201 | return tcflag_t(PARENB | PARODD)
| `- error: cannot find 'tcflag_t' in scope
202 | }
203 | }
/host/spi-builder-workspace/Sources/SwiftSerial.swift:201:29: error: cannot find 'PARENB' in scope
199 | return tcflag_t(PARENB)
200 | case .odd:
201 | return tcflag_t(PARENB | PARODD)
| `- error: cannot find 'PARENB' in scope
202 | }
203 | }
/host/spi-builder-workspace/Sources/SwiftSerial.swift:201:38: error: cannot find 'PARODD' in scope
199 | return tcflag_t(PARENB)
200 | case .odd:
201 | return tcflag_t(PARENB | PARODD)
| `- error: cannot find 'PARODD' in scope
202 | }
203 | }
/host/spi-builder-workspace/Sources/SwiftSerial.swift:279:24: error: cannot find 'termios' in scope
277 |
278 | // Set up the control structure
279 | var settings = termios()
| `- error: cannot find 'termios' in scope
280 |
281 | // Get options structure for the port
/host/spi-builder-workspace/Sources/SwiftSerial.swift:282:9: error: cannot find 'tcgetattr' in scope
280 |
281 | // Get options structure for the port
282 | tcgetattr(fileDescriptor, &settings)
| `- error: cannot find 'tcgetattr' in scope
283 |
284 | // Set baud rates
/host/spi-builder-workspace/Sources/SwiftSerial.swift:285:9: error: cannot find 'cfsetispeed' in scope
283 |
284 | // Set baud rates
285 | cfsetispeed(&settings, receiveRate.speedValue)
| `- error: cannot find 'cfsetispeed' in scope
286 | cfsetospeed(&settings, transmitRate.speedValue)
287 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:286:9: error: cannot find 'cfsetospeed' in scope
284 | // Set baud rates
285 | cfsetispeed(&settings, receiveRate.speedValue)
286 | cfsetospeed(&settings, transmitRate.speedValue)
| `- error: cannot find 'cfsetospeed' in scope
287 |
288 | // Enable parity (even/odd) if needed
/host/spi-builder-workspace/Sources/SwiftSerial.swift:293:33: error: cannot find 'tcflag_t' in scope
291 | // Set stop bit flag
292 | if sendTwoStopBits {
293 | settings.c_cflag |= tcflag_t(CSTOPB)
| `- error: cannot find 'tcflag_t' in scope
294 | } else {
295 | settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial.swift:293:42: error: cannot find 'CSTOPB' in scope
291 | // Set stop bit flag
292 | if sendTwoStopBits {
293 | settings.c_cflag |= tcflag_t(CSTOPB)
| `- error: cannot find 'CSTOPB' in scope
294 | } else {
295 | settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial.swift:295:34: error: cannot find 'tcflag_t' in scope
293 | settings.c_cflag |= tcflag_t(CSTOPB)
294 | } else {
295 | settings.c_cflag &= ~tcflag_t(CSTOPB)
| `- error: cannot find 'tcflag_t' in scope
296 | }
297 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:295:43: error: cannot find 'CSTOPB' in scope
293 | settings.c_cflag |= tcflag_t(CSTOPB)
294 | } else {
295 | settings.c_cflag &= ~tcflag_t(CSTOPB)
| `- error: cannot find 'CSTOPB' in scope
296 | }
297 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:299:30: error: cannot find 'tcflag_t' in scope
297 |
298 | // Set data bits size flag
299 | settings.c_cflag &= ~tcflag_t(CSIZE)
| `- error: cannot find 'tcflag_t' in scope
300 | settings.c_cflag |= dataBitsSize.flagValue
301 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:299:39: error: cannot find 'CSIZE' in scope
297 |
298 | // Set data bits size flag
299 | settings.c_cflag &= ~tcflag_t(CSIZE)
| `- error: cannot find 'CSIZE' in scope
300 | settings.c_cflag |= dataBitsSize.flagValue
301 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:303:30: error: cannot find 'tcflag_t' in scope
301 |
302 | //Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
303 | settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
| `- error: cannot find 'tcflag_t' in scope
304 |
305 | // Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:303:39: error: cannot find 'ICRNL' in scope
301 |
302 | //Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
303 | settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
| `- error: cannot find 'ICRNL' in scope
304 |
305 | // Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:303:47: error: cannot find 'INLCR' in scope
301 |
302 | //Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
303 | settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
| `- error: cannot find 'INLCR' in scope
304 |
305 | // Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:303:55: error: cannot find 'IGNCR' in scope
301 |
302 | //Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
303 | settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
| `- error: cannot find 'IGNCR' in scope
304 |
305 | // Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:323:40: error: cannot find 'tcflag_t' in scope
321 |
322 | // Set software flow control flags
323 | let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
| `- error: cannot find 'tcflag_t' in scope
324 | if useSoftwareFlowControl {
325 | settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial.swift:323:49: error: cannot find 'IXON' in scope
321 |
322 | // Set software flow control flags
323 | let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
| `- error: cannot find 'IXON' in scope
324 | if useSoftwareFlowControl {
325 | settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial.swift:323:56: error: cannot find 'IXOFF' in scope
321 |
322 | // Set software flow control flags
323 | let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
| `- error: cannot find 'IXOFF' in scope
324 | if useSoftwareFlowControl {
325 | settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial.swift:323:64: error: cannot find 'IXANY' in scope
321 |
322 | // Set software flow control flags
323 | let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
| `- error: cannot find 'IXANY' in scope
324 | if useSoftwareFlowControl {
325 | settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial.swift:331:29: error: cannot find 'tcflag_t' in scope
329 |
330 | // Turn on the receiver of the serial port, and ignore modem control lines
331 | settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
| `- error: cannot find 'tcflag_t' in scope
332 |
333 | // Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial.swift:331:38: error: cannot find 'CREAD' in scope
329 |
330 | // Turn on the receiver of the serial port, and ignore modem control lines
331 | settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
| `- error: cannot find 'CREAD' in scope
332 |
333 | // Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial.swift:331:46: error: cannot find 'CLOCAL' in scope
329 |
330 | // Turn on the receiver of the serial port, and ignore modem control lines
331 | settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
| `- error: cannot find 'CLOCAL' in scope
332 |
333 | // Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial.swift:334:30: error: cannot find 'tcflag_t' in scope
332 |
333 | // Turn off canonical mode
334 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'tcflag_t' in scope
335 |
336 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:334:39: error: cannot find 'ICANON' in scope
332 |
333 | // Turn off canonical mode
334 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'ICANON' in scope
335 |
336 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:334:48: error: cannot find 'ECHO' in scope
332 |
333 | // Turn off canonical mode
334 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'ECHO' in scope
335 |
336 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:334:55: error: cannot find 'ECHOE' in scope
332 |
333 | // Turn off canonical mode
334 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'ECHOE' in scope
335 |
336 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:334:63: error: cannot find 'ISIG' in scope
332 |
333 | // Turn off canonical mode
334 | settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
| `- error: cannot find 'ISIG' in scope
335 |
336 | // Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial.swift:338:33: error: cannot find 'tcflag_t' in scope
336 | // Set output processing flag
337 | if processOutput {
338 | settings.c_oflag |= tcflag_t(OPOST)
| `- error: cannot find 'tcflag_t' in scope
339 | } else {
340 | settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial.swift:338:42: error: cannot find 'OPOST' in scope
336 | // Set output processing flag
337 | if processOutput {
338 | settings.c_oflag |= tcflag_t(OPOST)
| `- error: cannot find 'OPOST' in scope
339 | } else {
340 | settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial.swift:340:34: error: cannot find 'tcflag_t' in scope
338 | settings.c_oflag |= tcflag_t(OPOST)
339 | } else {
340 | settings.c_oflag &= ~tcflag_t(OPOST)
| `- error: cannot find 'tcflag_t' in scope
341 | }
342 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:340:43: error: cannot find 'OPOST' in scope
338 | settings.c_oflag |= tcflag_t(OPOST)
339 | } else {
340 | settings.c_oflag &= ~tcflag_t(OPOST)
| `- error: cannot find 'OPOST' in scope
341 | }
342 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:354:9: error: cannot find 'specialCharacters' in scope
352 | #endif
353 |
354 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
| `- error: cannot find 'specialCharacters' in scope
355 | specialCharacters.VTIME = cc_t(timeout)
356 | settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial.swift:354:34: error: cannot find 'cc_t' in scope
352 | #endif
353 |
354 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
| `- error: cannot find 'cc_t' in scope
355 | specialCharacters.VTIME = cc_t(timeout)
356 | settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial.swift:355:9: error: cannot find 'specialCharacters' in scope
353 |
354 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
355 | specialCharacters.VTIME = cc_t(timeout)
| `- error: cannot find 'specialCharacters' in scope
356 | settings.c_cc = specialCharacters
357 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:355:35: error: cannot find 'cc_t' in scope
353 |
354 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
355 | specialCharacters.VTIME = cc_t(timeout)
| `- error: cannot find 'cc_t' in scope
356 | settings.c_cc = specialCharacters
357 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:356:25: error: cannot find 'specialCharacters' in scope
354 | specialCharacters.VMIN = cc_t(minimumBytesToRead)
355 | specialCharacters.VTIME = cc_t(timeout)
356 | settings.c_cc = specialCharacters
| `- error: cannot find 'specialCharacters' in scope
357 |
358 | // Commit settings
/host/spi-builder-workspace/Sources/SwiftSerial.swift:359:9: error: cannot find 'tcsetattr' in scope
357 |
358 | // Commit settings
359 | tcsetattr(fileDescriptor, TCSANOW, &settings)
| `- error: cannot find 'tcsetattr' in scope
360 | }
361 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:359:35: error: cannot find 'TCSANOW' in scope
357 |
358 | // Commit settings
359 | tcsetattr(fileDescriptor, TCSANOW, &settings)
| `- error: cannot find 'TCSANOW' in scope
360 | }
361 |
BUILD FAILURE 6.3 wasm