The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftSerial, reference 0.1.5 (764bf5), with Swift 6.1 for Wasm on 30 May 2025 13:37:14 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mredig/SwiftSerial.git
Reference: 0.1.5
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/mredig/SwiftSerial
 * tag               0.1.5      -> FETCH_HEAD
HEAD is now at 764bf55 (nit) readme tweak
Cloned https://github.com/mredig/SwiftSerial.git
Revision (git rev-parse @):
764bf55dc7667f665934ce69d63211471bf55b0f
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mredig/SwiftSerial.git at 0.1.5
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/mredig/SwiftSerial.git
https://github.com/mredig/SwiftSerial.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "1.4.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser.git"
    }
  ],
  "manifest_display_name" : "SwiftSerial",
  "name" : "SwiftSerial",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "SwiftSerial",
      "targets" : [
        "SwiftSerial"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SerialTerminal",
      "targets" : [
        "SerialTerminal"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftSerial",
      "module_type" : "SwiftTarget",
      "name" : "SwiftSerial",
      "path" : "Sources/SwiftSerial",
      "product_memberships" : [
        "SwiftSerial",
        "SerialTerminal"
      ],
      "sources" : [
        "BaudRate.swift",
        "DataBitsSize.swift",
        "ParityType.swift",
        "PortError.swift",
        "PortMode.swift",
        "SerialPort.swift",
        "SerialPortDeprecated.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SerialTerminal",
      "module_type" : "SwiftTarget",
      "name" : "SerialTerminal",
      "path" : "Sources/SerialTerminal",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "SerialTerminal"
      ],
      "sources" : [
        "Terminal.swift"
      ],
      "target_dependencies" : [
        "SwiftSerial"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-argument-parser.git
[1/15386] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.86s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.3.1 (1.34s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.3.1
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/12] Write sources
[5/12] Write swift-version-24593BA9C3E375BF.txt
[7/22] Compiling ArgumentParserToolInfo ToolInfo.swift
[8/22] Emitting module ArgumentParserToolInfo
[9/23] Wrapping AST for ArgumentParserToolInfo for debugging
[11/60] Compiling ArgumentParser Option.swift
[12/60] Compiling ArgumentParser OptionGroup.swift
[13/60] Compiling ArgumentParser AsyncParsableCommand.swift
[14/60] Compiling ArgumentParser CommandConfiguration.swift
[15/60] Compiling ArgumentParser EnumerableFlag.swift
[16/65] Compiling SwiftSerial PortError.swift
[17/65] Compiling ArgumentParser ArgumentVisibility.swift
[18/65] Compiling ArgumentParser CompletionKind.swift
[19/65] Compiling ArgumentParser Errors.swift
[20/65] Compiling ArgumentParser Flag.swift
[21/65] Compiling ArgumentParser NameSpecification.swift
[22/65] Compiling SwiftSerial SerialPort.swift
/host/spi-builder-workspace/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/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/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/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/Sources/SwiftSerial/SerialPort.swift:140:18: error: cannot find 'termios' in scope
138 |
139 | 		// Set up the control structure
140 | 		var settings = termios()
    |                  `- error: cannot find 'termios' in scope
141 |
142 | 		// Get options structure for the port
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:143:3: error: cannot find 'tcgetattr' in scope
141 |
142 | 		// Get options structure for the port
143 | 		tcgetattr(fileDescriptor, &settings)
    |   `- error: cannot find 'tcgetattr' in scope
144 |
145 | 		// Set baud rates
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:146:3: error: cannot find 'cfsetispeed' in scope
144 |
145 | 		// Set baud rates
146 | 		cfsetispeed(&settings, baudRateSetting.receiveRate.speedValue)
    |   `- error: cannot find 'cfsetispeed' in scope
147 | 		cfsetospeed(&settings, baudRateSetting.transmitRate.speedValue)
148 |
/host/spi-builder-workspace/Sources/SwiftSerial/BaudRate.swift:106:18: error: cannot find type 'speed_t' in scope
104 | 	}
105 |
106 | 	var speedValue: speed_t {
    |                  `- error: cannot find type 'speed_t' in scope
107 | 		switch self {
108 | 		case .baud0:
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:147:3: error: cannot find 'cfsetospeed' in scope
145 | 		// Set baud rates
146 | 		cfsetispeed(&settings, baudRateSetting.receiveRate.speedValue)
147 | 		cfsetospeed(&settings, baudRateSetting.transmitRate.speedValue)
    |   `- error: cannot find 'cfsetospeed' in scope
148 |
149 | 		// Enable parity (even/odd) if needed
/host/spi-builder-workspace/Sources/SwiftSerial/ParityType.swift:8:19: error: cannot find type 'tcflag_t' in scope
 6 | 	case odd
 7 |
 8 | 	var parityValue: tcflag_t {
   |                   `- error: cannot find type 'tcflag_t' in scope
 9 | 		switch self {
10 | 		case .none:
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:154:24: error: cannot find 'tcflag_t' in scope
152 | 		// Set stop bit flag
153 | 		if sendTwoStopBits {
154 | 			settings.c_cflag |= tcflag_t(CSTOPB)
    |                        `- error: cannot find 'tcflag_t' in scope
155 | 		} else {
156 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:154:33: error: cannot find 'CSTOPB' in scope
152 | 		// Set stop bit flag
153 | 		if sendTwoStopBits {
154 | 			settings.c_cflag |= tcflag_t(CSTOPB)
    |                                 `- error: cannot find 'CSTOPB' in scope
155 | 		} else {
156 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:156:25: error: cannot find 'tcflag_t' in scope
154 | 			settings.c_cflag |= tcflag_t(CSTOPB)
155 | 		} else {
156 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
    |                         `- error: cannot find 'tcflag_t' in scope
157 | 		}
158 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:156:34: error: cannot find 'CSTOPB' in scope
154 | 			settings.c_cflag |= tcflag_t(CSTOPB)
155 | 		} else {
156 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
    |                                  `- error: cannot find 'CSTOPB' in scope
157 | 		}
158 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:160:24: error: cannot find 'tcflag_t' in scope
158 |
159 | 		// Set data bits size flag
160 | 		settings.c_cflag &= ~tcflag_t(CSIZE)
    |                        `- error: cannot find 'tcflag_t' in scope
161 | 		settings.c_cflag |= dataBitsSize.flagValue
162 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:160:33: error: cannot find 'CSIZE' in scope
158 |
159 | 		// Set data bits size flag
160 | 		settings.c_cflag &= ~tcflag_t(CSIZE)
    |                                 `- error: cannot find 'CSIZE' in scope
161 | 		settings.c_cflag |= dataBitsSize.flagValue
162 |
/host/spi-builder-workspace/Sources/SwiftSerial/DataBitsSize.swift:9:17: error: cannot find type 'tcflag_t' in scope
 7 | 	case bits8
 8 |
 9 | 	var flagValue: tcflag_t {
   |                 `- error: cannot find type 'tcflag_t' in scope
10 | 		switch self {
11 | 		case .bits5:
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:24: error: cannot find 'tcflag_t' in scope
162 |
163 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                        `- error: cannot find 'tcflag_t' in scope
165 |
166 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:33: error: cannot find 'ICRNL' in scope
162 |
163 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                 `- error: cannot find 'ICRNL' in scope
165 |
166 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:41: error: cannot find 'INLCR' in scope
162 |
163 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                         `- error: cannot find 'INLCR' in scope
165 |
166 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:49: error: cannot find 'IGNCR' in scope
162 |
163 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                                 `- error: cannot find 'IGNCR' in scope
165 |
166 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:34: error: cannot find 'tcflag_t' in scope
182 |
183 | 		// Set software flow control flags
184 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                  `- error: cannot find 'tcflag_t' in scope
185 | 		if useSoftwareFlowControl {
186 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:43: error: cannot find 'IXON' in scope
182 |
183 | 		// Set software flow control flags
184 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                           `- error: cannot find 'IXON' in scope
185 | 		if useSoftwareFlowControl {
186 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:50: error: cannot find 'IXOFF' in scope
182 |
183 | 		// Set software flow control flags
184 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                                  `- error: cannot find 'IXOFF' in scope
185 | 		if useSoftwareFlowControl {
186 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:58: error: cannot find 'IXANY' in scope
182 |
183 | 		// Set software flow control flags
184 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                                          `- error: cannot find 'IXANY' in scope
185 | 		if useSoftwareFlowControl {
186 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:23: error: cannot find 'tcflag_t' in scope
190 |
191 | 		// Turn on the receiver of the serial port, and ignore modem control lines
192 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                       `- error: cannot find 'tcflag_t' in scope
193 |
194 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:32: error: cannot find 'CREAD' in scope
190 |
191 | 		// Turn on the receiver of the serial port, and ignore modem control lines
192 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                                `- error: cannot find 'CREAD' in scope
193 |
194 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:40: error: cannot find 'CLOCAL' in scope
190 |
191 | 		// Turn on the receiver of the serial port, and ignore modem control lines
192 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                                        `- error: cannot find 'CLOCAL' in scope
193 |
194 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:24: error: cannot find 'tcflag_t' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                        `- error: cannot find 'tcflag_t' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:33: error: cannot find 'ICANON' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                 `- error: cannot find 'ICANON' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:42: error: cannot find 'ECHO' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                          `- error: cannot find 'ECHO' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:49: error: cannot find 'ECHOE' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                                 `- error: cannot find 'ECHOE' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:57: error: cannot find 'ISIG' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                                         `- error: cannot find 'ISIG' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:199:24: error: cannot find 'tcflag_t' in scope
197 | 		// Set output processing flag
198 | 		if processOutput {
199 | 			settings.c_oflag |= tcflag_t(OPOST)
    |                        `- error: cannot find 'tcflag_t' in scope
200 | 		} else {
201 | 			settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:199:33: error: cannot find 'OPOST' in scope
197 | 		// Set output processing flag
198 | 		if processOutput {
199 | 			settings.c_oflag |= tcflag_t(OPOST)
    |                                 `- error: cannot find 'OPOST' in scope
200 | 		} else {
201 | 			settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:201:25: error: cannot find 'tcflag_t' in scope
199 | 			settings.c_oflag |= tcflag_t(OPOST)
200 | 		} else {
201 | 			settings.c_oflag &= ~tcflag_t(OPOST)
    |                         `- error: cannot find 'tcflag_t' in scope
202 | 		}
203 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:201:34: error: cannot find 'OPOST' in scope
199 | 			settings.c_oflag |= tcflag_t(OPOST)
200 | 		} else {
201 | 			settings.c_oflag &= ~tcflag_t(OPOST)
    |                                  `- error: cannot find 'OPOST' in scope
202 | 		}
203 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:215:3: error: cannot find 'specialCharacters' in scope
213 | 		#endif
214 |
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
    |   `- error: cannot find 'specialCharacters' in scope
216 | 		specialCharacters.VTIME = cc_t(timeout)
217 | 		settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:215:28: error: cannot find 'cc_t' in scope
213 | 		#endif
214 |
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
    |                            `- error: cannot find 'cc_t' in scope
216 | 		specialCharacters.VTIME = cc_t(timeout)
217 | 		settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:216:3: error: cannot find 'specialCharacters' in scope
214 |
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | 		specialCharacters.VTIME = cc_t(timeout)
    |   `- error: cannot find 'specialCharacters' in scope
217 | 		settings.c_cc = specialCharacters
218 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:216:29: error: cannot find 'cc_t' in scope
214 |
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | 		specialCharacters.VTIME = cc_t(timeout)
    |                             `- error: cannot find 'cc_t' in scope
217 | 		settings.c_cc = specialCharacters
218 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:217:19: error: cannot find 'specialCharacters' in scope
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | 		specialCharacters.VTIME = cc_t(timeout)
217 | 		settings.c_cc = specialCharacters
    |                   `- error: cannot find 'specialCharacters' in scope
218 |
219 | 		// Commit settings
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:220:3: error: cannot find 'tcsetattr' in scope
218 |
219 | 		// Commit settings
220 | 		tcsetattr(fileDescriptor, TCSANOW, &settings)
    |   `- error: cannot find 'tcsetattr' in scope
221 | 	}
222 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:220:29: error: cannot find 'TCSANOW' in scope
218 |
219 | 		// Commit settings
220 | 		tcsetattr(fileDescriptor, TCSANOW, &settings)
    |                             `- error: cannot find 'TCSANOW' in scope
221 | 	}
222 |
[23/65] Compiling SwiftSerial SerialPortDeprecated.swift
/host/spi-builder-workspace/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>?
error: emit-module command failed with exit code 1 (use -v to see invocation)
[24/65] Compiling SwiftSerial BaudRate.swift
/host/spi-builder-workspace/Sources/SwiftSerial/BaudRate.swift:106:18: error: cannot find type 'speed_t' in scope
104 | 	}
105 |
106 | 	var speedValue: speed_t {
    |                  `- error: cannot find type 'speed_t' in scope
107 | 		switch self {
108 | 		case .baud0:
[25/65] Emitting module SwiftSerial
/host/spi-builder-workspace/Sources/SwiftSerial/BaudRate.swift:106:18: error: cannot find type 'speed_t' in scope
104 | 	}
105 |
106 | 	var speedValue: speed_t {
    |                  `- error: cannot find type 'speed_t' in scope
107 | 		switch self {
108 | 		case .baud0:
/host/spi-builder-workspace/Sources/SwiftSerial/DataBitsSize.swift:9:17: error: cannot find type 'tcflag_t' in scope
 7 | 	case bits8
 8 |
 9 | 	var flagValue: tcflag_t {
   |                 `- error: cannot find type 'tcflag_t' in scope
10 | 		switch self {
11 | 		case .bits5:
/host/spi-builder-workspace/Sources/SwiftSerial/ParityType.swift:8:19: error: cannot find type 'tcflag_t' in scope
 6 | 	case odd
 7 |
 8 | 	var parityValue: tcflag_t {
   |                   `- error: cannot find type 'tcflag_t' in scope
 9 | 		switch self {
10 | 		case .none:
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift: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/Sources/SwiftSerial/SerialPort.swift:140:18: error: cannot find 'termios' in scope
138 |
139 | 		// Set up the control structure
140 | 		var settings = termios()
    |                  `- error: cannot find 'termios' in scope
141 |
142 | 		// Get options structure for the port
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:143:3: error: cannot find 'tcgetattr' in scope
141 |
142 | 		// Get options structure for the port
143 | 		tcgetattr(fileDescriptor, &settings)
    |   `- error: cannot find 'tcgetattr' in scope
144 |
145 | 		// Set baud rates
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:146:3: error: cannot find 'cfsetispeed' in scope
144 |
145 | 		// Set baud rates
146 | 		cfsetispeed(&settings, baudRateSetting.receiveRate.speedValue)
    |   `- error: cannot find 'cfsetispeed' in scope
147 | 		cfsetospeed(&settings, baudRateSetting.transmitRate.speedValue)
148 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:147:3: error: cannot find 'cfsetospeed' in scope
145 | 		// Set baud rates
146 | 		cfsetispeed(&settings, baudRateSetting.receiveRate.speedValue)
147 | 		cfsetospeed(&settings, baudRateSetting.transmitRate.speedValue)
    |   `- error: cannot find 'cfsetospeed' in scope
148 |
149 | 		// Enable parity (even/odd) if needed
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:154:24: error: cannot find 'tcflag_t' in scope
152 | 		// Set stop bit flag
153 | 		if sendTwoStopBits {
154 | 			settings.c_cflag |= tcflag_t(CSTOPB)
    |                        `- error: cannot find 'tcflag_t' in scope
155 | 		} else {
156 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:154:33: error: cannot find 'CSTOPB' in scope
152 | 		// Set stop bit flag
153 | 		if sendTwoStopBits {
154 | 			settings.c_cflag |= tcflag_t(CSTOPB)
    |                                 `- error: cannot find 'CSTOPB' in scope
155 | 		} else {
156 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:156:25: error: cannot find 'tcflag_t' in scope
154 | 			settings.c_cflag |= tcflag_t(CSTOPB)
155 | 		} else {
156 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
    |                         `- error: cannot find 'tcflag_t' in scope
157 | 		}
158 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:156:34: error: cannot find 'CSTOPB' in scope
154 | 			settings.c_cflag |= tcflag_t(CSTOPB)
155 | 		} else {
156 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
    |                                  `- error: cannot find 'CSTOPB' in scope
157 | 		}
158 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:160:24: error: cannot find 'tcflag_t' in scope
158 |
159 | 		// Set data bits size flag
160 | 		settings.c_cflag &= ~tcflag_t(CSIZE)
    |                        `- error: cannot find 'tcflag_t' in scope
161 | 		settings.c_cflag |= dataBitsSize.flagValue
162 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:160:33: error: cannot find 'CSIZE' in scope
158 |
159 | 		// Set data bits size flag
160 | 		settings.c_cflag &= ~tcflag_t(CSIZE)
    |                                 `- error: cannot find 'CSIZE' in scope
161 | 		settings.c_cflag |= dataBitsSize.flagValue
162 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:24: error: cannot find 'tcflag_t' in scope
162 |
163 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                        `- error: cannot find 'tcflag_t' in scope
165 |
166 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:33: error: cannot find 'ICRNL' in scope
162 |
163 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                 `- error: cannot find 'ICRNL' in scope
165 |
166 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:41: error: cannot find 'INLCR' in scope
162 |
163 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                         `- error: cannot find 'INLCR' in scope
165 |
166 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:49: error: cannot find 'IGNCR' in scope
162 |
163 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                                 `- error: cannot find 'IGNCR' in scope
165 |
166 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:34: error: cannot find 'tcflag_t' in scope
182 |
183 | 		// Set software flow control flags
184 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                  `- error: cannot find 'tcflag_t' in scope
185 | 		if useSoftwareFlowControl {
186 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:43: error: cannot find 'IXON' in scope
182 |
183 | 		// Set software flow control flags
184 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                           `- error: cannot find 'IXON' in scope
185 | 		if useSoftwareFlowControl {
186 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:50: error: cannot find 'IXOFF' in scope
182 |
183 | 		// Set software flow control flags
184 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                                  `- error: cannot find 'IXOFF' in scope
185 | 		if useSoftwareFlowControl {
186 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:58: error: cannot find 'IXANY' in scope
182 |
183 | 		// Set software flow control flags
184 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                                          `- error: cannot find 'IXANY' in scope
185 | 		if useSoftwareFlowControl {
186 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:23: error: cannot find 'tcflag_t' in scope
190 |
191 | 		// Turn on the receiver of the serial port, and ignore modem control lines
192 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                       `- error: cannot find 'tcflag_t' in scope
193 |
194 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:32: error: cannot find 'CREAD' in scope
190 |
191 | 		// Turn on the receiver of the serial port, and ignore modem control lines
192 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                                `- error: cannot find 'CREAD' in scope
193 |
194 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:40: error: cannot find 'CLOCAL' in scope
190 |
191 | 		// Turn on the receiver of the serial port, and ignore modem control lines
192 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                                        `- error: cannot find 'CLOCAL' in scope
193 |
194 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:24: error: cannot find 'tcflag_t' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                        `- error: cannot find 'tcflag_t' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:33: error: cannot find 'ICANON' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                 `- error: cannot find 'ICANON' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:42: error: cannot find 'ECHO' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                          `- error: cannot find 'ECHO' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:49: error: cannot find 'ECHOE' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                                 `- error: cannot find 'ECHOE' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:57: error: cannot find 'ISIG' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                                         `- error: cannot find 'ISIG' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:199:24: error: cannot find 'tcflag_t' in scope
197 | 		// Set output processing flag
198 | 		if processOutput {
199 | 			settings.c_oflag |= tcflag_t(OPOST)
    |                        `- error: cannot find 'tcflag_t' in scope
200 | 		} else {
201 | 			settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:199:33: error: cannot find 'OPOST' in scope
197 | 		// Set output processing flag
198 | 		if processOutput {
199 | 			settings.c_oflag |= tcflag_t(OPOST)
    |                                 `- error: cannot find 'OPOST' in scope
200 | 		} else {
201 | 			settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:201:25: error: cannot find 'tcflag_t' in scope
199 | 			settings.c_oflag |= tcflag_t(OPOST)
200 | 		} else {
201 | 			settings.c_oflag &= ~tcflag_t(OPOST)
    |                         `- error: cannot find 'tcflag_t' in scope
202 | 		}
203 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:201:34: error: cannot find 'OPOST' in scope
199 | 			settings.c_oflag |= tcflag_t(OPOST)
200 | 		} else {
201 | 			settings.c_oflag &= ~tcflag_t(OPOST)
    |                                  `- error: cannot find 'OPOST' in scope
202 | 		}
203 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:215:3: error: cannot find 'specialCharacters' in scope
213 | 		#endif
214 |
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
    |   `- error: cannot find 'specialCharacters' in scope
216 | 		specialCharacters.VTIME = cc_t(timeout)
217 | 		settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:215:28: error: cannot find 'cc_t' in scope
213 | 		#endif
214 |
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
    |                            `- error: cannot find 'cc_t' in scope
216 | 		specialCharacters.VTIME = cc_t(timeout)
217 | 		settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:216:3: error: cannot find 'specialCharacters' in scope
214 |
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | 		specialCharacters.VTIME = cc_t(timeout)
    |   `- error: cannot find 'specialCharacters' in scope
217 | 		settings.c_cc = specialCharacters
218 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:216:29: error: cannot find 'cc_t' in scope
214 |
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | 		specialCharacters.VTIME = cc_t(timeout)
    |                             `- error: cannot find 'cc_t' in scope
217 | 		settings.c_cc = specialCharacters
218 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:217:19: error: cannot find 'specialCharacters' in scope
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | 		specialCharacters.VTIME = cc_t(timeout)
217 | 		settings.c_cc = specialCharacters
    |                   `- error: cannot find 'specialCharacters' in scope
218 |
219 | 		// Commit settings
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:220:3: error: cannot find 'tcsetattr' in scope
218 |
219 | 		// Commit settings
220 | 		tcsetattr(fileDescriptor, TCSANOW, &settings)
    |   `- error: cannot find 'tcsetattr' in scope
221 | 	}
222 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:220:29: error: cannot find 'TCSANOW' in scope
218 |
219 | 		// Commit settings
220 | 		tcsetattr(fileDescriptor, TCSANOW, &settings)
    |                             `- error: cannot find 'TCSANOW' in scope
221 | 	}
222 |
[26/65] Compiling SwiftSerial PortMode.swift
[27/65] Compiling SwiftSerial ParityType.swift
/host/spi-builder-workspace/Sources/SwiftSerial/ParityType.swift:8:19: error: cannot find type 'tcflag_t' in scope
 6 | 	case odd
 7 |
 8 | 	var parityValue: tcflag_t {
   |                   `- error: cannot find type 'tcflag_t' in scope
 9 | 		switch self {
10 | 		case .none:
[28/65] Compiling SwiftSerial DataBitsSize.swift
/host/spi-builder-workspace/Sources/SwiftSerial/DataBitsSize.swift:9:17: error: cannot find type 'tcflag_t' in scope
 7 | 	case bits8
 8 |
 9 | 	var flagValue: tcflag_t {
   |                 `- error: cannot find type 'tcflag_t' in scope
10 | 		switch self {
11 | 		case .bits5:
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/8] Write swift-version-24593BA9C3E375BF.txt
[3/18] 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:
[4/18] 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:
[5/18] 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:
[6/18] Compiling SwiftSerial SerialPortDeprecated.swift
/host/spi-builder-workspace/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>?
[7/18] Compiling ArgumentParserToolInfo ToolInfo.swift
[8/18] Emitting module ArgumentParserToolInfo
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/55] 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: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/Sources/SwiftSerial/SerialPort.swift:140:18: error: cannot find 'termios' in scope
138 |
139 | 		// Set up the control structure
140 | 		var settings = termios()
    |                  `- error: cannot find 'termios' in scope
141 |
142 | 		// Get options structure for the port
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:143:3: error: cannot find 'tcgetattr' in scope
141 |
142 | 		// Get options structure for the port
143 | 		tcgetattr(fileDescriptor, &settings)
    |   `- error: cannot find 'tcgetattr' in scope
144 |
145 | 		// Set baud rates
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:146:3: error: cannot find 'cfsetispeed' in scope
144 |
145 | 		// Set baud rates
146 | 		cfsetispeed(&settings, baudRateSetting.receiveRate.speedValue)
    |   `- error: cannot find 'cfsetispeed' in scope
147 | 		cfsetospeed(&settings, baudRateSetting.transmitRate.speedValue)
148 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:147:3: error: cannot find 'cfsetospeed' in scope
145 | 		// Set baud rates
146 | 		cfsetispeed(&settings, baudRateSetting.receiveRate.speedValue)
147 | 		cfsetospeed(&settings, baudRateSetting.transmitRate.speedValue)
    |   `- error: cannot find 'cfsetospeed' in scope
148 |
149 | 		// Enable parity (even/odd) if needed
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:154:24: error: cannot find 'tcflag_t' in scope
152 | 		// Set stop bit flag
153 | 		if sendTwoStopBits {
154 | 			settings.c_cflag |= tcflag_t(CSTOPB)
    |                        `- error: cannot find 'tcflag_t' in scope
155 | 		} else {
156 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:154:33: error: cannot find 'CSTOPB' in scope
152 | 		// Set stop bit flag
153 | 		if sendTwoStopBits {
154 | 			settings.c_cflag |= tcflag_t(CSTOPB)
    |                                 `- error: cannot find 'CSTOPB' in scope
155 | 		} else {
156 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:156:25: error: cannot find 'tcflag_t' in scope
154 | 			settings.c_cflag |= tcflag_t(CSTOPB)
155 | 		} else {
156 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
    |                         `- error: cannot find 'tcflag_t' in scope
157 | 		}
158 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:156:34: error: cannot find 'CSTOPB' in scope
154 | 			settings.c_cflag |= tcflag_t(CSTOPB)
155 | 		} else {
156 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
    |                                  `- error: cannot find 'CSTOPB' in scope
157 | 		}
158 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:160:24: error: cannot find 'tcflag_t' in scope
158 |
159 | 		// Set data bits size flag
160 | 		settings.c_cflag &= ~tcflag_t(CSIZE)
    |                        `- error: cannot find 'tcflag_t' in scope
161 | 		settings.c_cflag |= dataBitsSize.flagValue
162 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:160:33: error: cannot find 'CSIZE' in scope
158 |
159 | 		// Set data bits size flag
160 | 		settings.c_cflag &= ~tcflag_t(CSIZE)
    |                                 `- error: cannot find 'CSIZE' in scope
161 | 		settings.c_cflag |= dataBitsSize.flagValue
162 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:24: error: cannot find 'tcflag_t' in scope
162 |
163 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                        `- error: cannot find 'tcflag_t' in scope
165 |
166 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:33: error: cannot find 'ICRNL' in scope
162 |
163 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                 `- error: cannot find 'ICRNL' in scope
165 |
166 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:41: error: cannot find 'INLCR' in scope
162 |
163 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                         `- error: cannot find 'INLCR' in scope
165 |
166 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:49: error: cannot find 'IGNCR' in scope
162 |
163 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                                 `- error: cannot find 'IGNCR' in scope
165 |
166 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:34: error: cannot find 'tcflag_t' in scope
182 |
183 | 		// Set software flow control flags
184 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                  `- error: cannot find 'tcflag_t' in scope
185 | 		if useSoftwareFlowControl {
186 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:43: error: cannot find 'IXON' in scope
182 |
183 | 		// Set software flow control flags
184 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                           `- error: cannot find 'IXON' in scope
185 | 		if useSoftwareFlowControl {
186 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:50: error: cannot find 'IXOFF' in scope
182 |
183 | 		// Set software flow control flags
184 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                                  `- error: cannot find 'IXOFF' in scope
185 | 		if useSoftwareFlowControl {
186 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:58: error: cannot find 'IXANY' in scope
182 |
183 | 		// Set software flow control flags
184 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                                          `- error: cannot find 'IXANY' in scope
185 | 		if useSoftwareFlowControl {
186 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:23: error: cannot find 'tcflag_t' in scope
190 |
191 | 		// Turn on the receiver of the serial port, and ignore modem control lines
192 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                       `- error: cannot find 'tcflag_t' in scope
193 |
194 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:32: error: cannot find 'CREAD' in scope
190 |
191 | 		// Turn on the receiver of the serial port, and ignore modem control lines
192 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                                `- error: cannot find 'CREAD' in scope
193 |
194 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:40: error: cannot find 'CLOCAL' in scope
190 |
191 | 		// Turn on the receiver of the serial port, and ignore modem control lines
192 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                                        `- error: cannot find 'CLOCAL' in scope
193 |
194 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:24: error: cannot find 'tcflag_t' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                        `- error: cannot find 'tcflag_t' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:33: error: cannot find 'ICANON' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                 `- error: cannot find 'ICANON' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:42: error: cannot find 'ECHO' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                          `- error: cannot find 'ECHO' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:49: error: cannot find 'ECHOE' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                                 `- error: cannot find 'ECHOE' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:57: error: cannot find 'ISIG' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                                         `- error: cannot find 'ISIG' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:199:24: error: cannot find 'tcflag_t' in scope
197 | 		// Set output processing flag
198 | 		if processOutput {
199 | 			settings.c_oflag |= tcflag_t(OPOST)
    |                        `- error: cannot find 'tcflag_t' in scope
200 | 		} else {
201 | 			settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:199:33: error: cannot find 'OPOST' in scope
197 | 		// Set output processing flag
198 | 		if processOutput {
199 | 			settings.c_oflag |= tcflag_t(OPOST)
    |                                 `- error: cannot find 'OPOST' in scope
200 | 		} else {
201 | 			settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:201:25: error: cannot find 'tcflag_t' in scope
199 | 			settings.c_oflag |= tcflag_t(OPOST)
200 | 		} else {
201 | 			settings.c_oflag &= ~tcflag_t(OPOST)
    |                         `- error: cannot find 'tcflag_t' in scope
202 | 		}
203 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:201:34: error: cannot find 'OPOST' in scope
199 | 			settings.c_oflag |= tcflag_t(OPOST)
200 | 		} else {
201 | 			settings.c_oflag &= ~tcflag_t(OPOST)
    |                                  `- error: cannot find 'OPOST' in scope
202 | 		}
203 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:215:3: error: cannot find 'specialCharacters' in scope
213 | 		#endif
214 |
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
    |   `- error: cannot find 'specialCharacters' in scope
216 | 		specialCharacters.VTIME = cc_t(timeout)
217 | 		settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:215:28: error: cannot find 'cc_t' in scope
213 | 		#endif
214 |
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
    |                            `- error: cannot find 'cc_t' in scope
216 | 		specialCharacters.VTIME = cc_t(timeout)
217 | 		settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:216:3: error: cannot find 'specialCharacters' in scope
214 |
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | 		specialCharacters.VTIME = cc_t(timeout)
    |   `- error: cannot find 'specialCharacters' in scope
217 | 		settings.c_cc = specialCharacters
218 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:216:29: error: cannot find 'cc_t' in scope
214 |
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | 		specialCharacters.VTIME = cc_t(timeout)
    |                             `- error: cannot find 'cc_t' in scope
217 | 		settings.c_cc = specialCharacters
218 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:217:19: error: cannot find 'specialCharacters' in scope
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | 		specialCharacters.VTIME = cc_t(timeout)
217 | 		settings.c_cc = specialCharacters
    |                   `- error: cannot find 'specialCharacters' in scope
218 |
219 | 		// Commit settings
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:220:3: error: cannot find 'tcsetattr' in scope
218 |
219 | 		// Commit settings
220 | 		tcsetattr(fileDescriptor, TCSANOW, &settings)
    |   `- error: cannot find 'tcsetattr' in scope
221 | 	}
222 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:220:29: error: cannot find 'TCSANOW' in scope
218 |
219 | 		// Commit settings
220 | 		tcsetattr(fileDescriptor, TCSANOW, &settings)
    |                             `- error: cannot find 'TCSANOW' in scope
221 | 	}
222 |
[11/55] Compiling SwiftSerial PortError.swift
[12/55] Compiling SwiftSerial SerialPort.swift
/host/spi-builder-workspace/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/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/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/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/Sources/SwiftSerial/SerialPort.swift:140:18: error: cannot find 'termios' in scope
138 |
139 | 		// Set up the control structure
140 | 		var settings = termios()
    |                  `- error: cannot find 'termios' in scope
141 |
142 | 		// Get options structure for the port
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:143:3: error: cannot find 'tcgetattr' in scope
141 |
142 | 		// Get options structure for the port
143 | 		tcgetattr(fileDescriptor, &settings)
    |   `- error: cannot find 'tcgetattr' in scope
144 |
145 | 		// Set baud rates
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:146:3: error: cannot find 'cfsetispeed' in scope
144 |
145 | 		// Set baud rates
146 | 		cfsetispeed(&settings, baudRateSetting.receiveRate.speedValue)
    |   `- error: cannot find 'cfsetispeed' in scope
147 | 		cfsetospeed(&settings, baudRateSetting.transmitRate.speedValue)
148 |
/host/spi-builder-workspace/Sources/SwiftSerial/BaudRate.swift:106:18: error: cannot find type 'speed_t' in scope
104 | 	}
105 |
106 | 	var speedValue: speed_t {
    |                  `- error: cannot find type 'speed_t' in scope
107 | 		switch self {
108 | 		case .baud0:
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:147:3: error: cannot find 'cfsetospeed' in scope
145 | 		// Set baud rates
146 | 		cfsetispeed(&settings, baudRateSetting.receiveRate.speedValue)
147 | 		cfsetospeed(&settings, baudRateSetting.transmitRate.speedValue)
    |   `- error: cannot find 'cfsetospeed' in scope
148 |
149 | 		// Enable parity (even/odd) if needed
/host/spi-builder-workspace/Sources/SwiftSerial/ParityType.swift:8:19: error: cannot find type 'tcflag_t' in scope
 6 | 	case odd
 7 |
 8 | 	var parityValue: tcflag_t {
   |                   `- error: cannot find type 'tcflag_t' in scope
 9 | 		switch self {
10 | 		case .none:
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:154:24: error: cannot find 'tcflag_t' in scope
152 | 		// Set stop bit flag
153 | 		if sendTwoStopBits {
154 | 			settings.c_cflag |= tcflag_t(CSTOPB)
    |                        `- error: cannot find 'tcflag_t' in scope
155 | 		} else {
156 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:154:33: error: cannot find 'CSTOPB' in scope
152 | 		// Set stop bit flag
153 | 		if sendTwoStopBits {
154 | 			settings.c_cflag |= tcflag_t(CSTOPB)
    |                                 `- error: cannot find 'CSTOPB' in scope
155 | 		} else {
156 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:156:25: error: cannot find 'tcflag_t' in scope
154 | 			settings.c_cflag |= tcflag_t(CSTOPB)
155 | 		} else {
156 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
    |                         `- error: cannot find 'tcflag_t' in scope
157 | 		}
158 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:156:34: error: cannot find 'CSTOPB' in scope
154 | 			settings.c_cflag |= tcflag_t(CSTOPB)
155 | 		} else {
156 | 			settings.c_cflag &= ~tcflag_t(CSTOPB)
    |                                  `- error: cannot find 'CSTOPB' in scope
157 | 		}
158 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:160:24: error: cannot find 'tcflag_t' in scope
158 |
159 | 		// Set data bits size flag
160 | 		settings.c_cflag &= ~tcflag_t(CSIZE)
    |                        `- error: cannot find 'tcflag_t' in scope
161 | 		settings.c_cflag |= dataBitsSize.flagValue
162 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:160:33: error: cannot find 'CSIZE' in scope
158 |
159 | 		// Set data bits size flag
160 | 		settings.c_cflag &= ~tcflag_t(CSIZE)
    |                                 `- error: cannot find 'CSIZE' in scope
161 | 		settings.c_cflag |= dataBitsSize.flagValue
162 |
/host/spi-builder-workspace/Sources/SwiftSerial/DataBitsSize.swift:9:17: error: cannot find type 'tcflag_t' in scope
 7 | 	case bits8
 8 |
 9 | 	var flagValue: tcflag_t {
   |                 `- error: cannot find type 'tcflag_t' in scope
10 | 		switch self {
11 | 		case .bits5:
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:24: error: cannot find 'tcflag_t' in scope
162 |
163 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                        `- error: cannot find 'tcflag_t' in scope
165 |
166 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:33: error: cannot find 'ICRNL' in scope
162 |
163 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                 `- error: cannot find 'ICRNL' in scope
165 |
166 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:41: error: cannot find 'INLCR' in scope
162 |
163 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                         `- error: cannot find 'INLCR' in scope
165 |
166 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:164:49: error: cannot find 'IGNCR' in scope
162 |
163 | 		//Disable input mapping of CR to NL, mapping of NL into CR, and ignoring CR
164 | 		settings.c_iflag &= ~tcflag_t(ICRNL | INLCR | IGNCR)
    |                                                 `- error: cannot find 'IGNCR' in scope
165 |
166 | 		// Set hardware flow control flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:34: error: cannot find 'tcflag_t' in scope
182 |
183 | 		// Set software flow control flags
184 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                  `- error: cannot find 'tcflag_t' in scope
185 | 		if useSoftwareFlowControl {
186 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:43: error: cannot find 'IXON' in scope
182 |
183 | 		// Set software flow control flags
184 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                           `- error: cannot find 'IXON' in scope
185 | 		if useSoftwareFlowControl {
186 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:50: error: cannot find 'IXOFF' in scope
182 |
183 | 		// Set software flow control flags
184 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                                  `- error: cannot find 'IXOFF' in scope
185 | 		if useSoftwareFlowControl {
186 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:184:58: error: cannot find 'IXANY' in scope
182 |
183 | 		// Set software flow control flags
184 | 		let softwareFlowControlFlags = tcflag_t(IXON | IXOFF | IXANY)
    |                                                          `- error: cannot find 'IXANY' in scope
185 | 		if useSoftwareFlowControl {
186 | 			settings.c_iflag |= softwareFlowControlFlags
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:23: error: cannot find 'tcflag_t' in scope
190 |
191 | 		// Turn on the receiver of the serial port, and ignore modem control lines
192 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                       `- error: cannot find 'tcflag_t' in scope
193 |
194 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:32: error: cannot find 'CREAD' in scope
190 |
191 | 		// Turn on the receiver of the serial port, and ignore modem control lines
192 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                                `- error: cannot find 'CREAD' in scope
193 |
194 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:192:40: error: cannot find 'CLOCAL' in scope
190 |
191 | 		// Turn on the receiver of the serial port, and ignore modem control lines
192 | 		settings.c_cflag |= tcflag_t(CREAD | CLOCAL)
    |                                        `- error: cannot find 'CLOCAL' in scope
193 |
194 | 		// Turn off canonical mode
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:24: error: cannot find 'tcflag_t' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                        `- error: cannot find 'tcflag_t' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:33: error: cannot find 'ICANON' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                 `- error: cannot find 'ICANON' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:42: error: cannot find 'ECHO' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                          `- error: cannot find 'ECHO' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:49: error: cannot find 'ECHOE' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                                 `- error: cannot find 'ECHOE' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:195:57: error: cannot find 'ISIG' in scope
193 |
194 | 		// Turn off canonical mode
195 | 		settings.c_lflag &= ~tcflag_t(ICANON | ECHO | ECHOE | ISIG)
    |                                                         `- error: cannot find 'ISIG' in scope
196 |
197 | 		// Set output processing flag
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:199:24: error: cannot find 'tcflag_t' in scope
197 | 		// Set output processing flag
198 | 		if processOutput {
199 | 			settings.c_oflag |= tcflag_t(OPOST)
    |                        `- error: cannot find 'tcflag_t' in scope
200 | 		} else {
201 | 			settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:199:33: error: cannot find 'OPOST' in scope
197 | 		// Set output processing flag
198 | 		if processOutput {
199 | 			settings.c_oflag |= tcflag_t(OPOST)
    |                                 `- error: cannot find 'OPOST' in scope
200 | 		} else {
201 | 			settings.c_oflag &= ~tcflag_t(OPOST)
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:201:25: error: cannot find 'tcflag_t' in scope
199 | 			settings.c_oflag |= tcflag_t(OPOST)
200 | 		} else {
201 | 			settings.c_oflag &= ~tcflag_t(OPOST)
    |                         `- error: cannot find 'tcflag_t' in scope
202 | 		}
203 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:201:34: error: cannot find 'OPOST' in scope
199 | 			settings.c_oflag |= tcflag_t(OPOST)
200 | 		} else {
201 | 			settings.c_oflag &= ~tcflag_t(OPOST)
    |                                  `- error: cannot find 'OPOST' in scope
202 | 		}
203 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:215:3: error: cannot find 'specialCharacters' in scope
213 | 		#endif
214 |
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
    |   `- error: cannot find 'specialCharacters' in scope
216 | 		specialCharacters.VTIME = cc_t(timeout)
217 | 		settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:215:28: error: cannot find 'cc_t' in scope
213 | 		#endif
214 |
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
    |                            `- error: cannot find 'cc_t' in scope
216 | 		specialCharacters.VTIME = cc_t(timeout)
217 | 		settings.c_cc = specialCharacters
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:216:3: error: cannot find 'specialCharacters' in scope
214 |
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | 		specialCharacters.VTIME = cc_t(timeout)
    |   `- error: cannot find 'specialCharacters' in scope
217 | 		settings.c_cc = specialCharacters
218 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:216:29: error: cannot find 'cc_t' in scope
214 |
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | 		specialCharacters.VTIME = cc_t(timeout)
    |                             `- error: cannot find 'cc_t' in scope
217 | 		settings.c_cc = specialCharacters
218 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:217:19: error: cannot find 'specialCharacters' in scope
215 | 		specialCharacters.VMIN = cc_t(minimumBytesToRead)
216 | 		specialCharacters.VTIME = cc_t(timeout)
217 | 		settings.c_cc = specialCharacters
    |                   `- error: cannot find 'specialCharacters' in scope
218 |
219 | 		// Commit settings
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:220:3: error: cannot find 'tcsetattr' in scope
218 |
219 | 		// Commit settings
220 | 		tcsetattr(fileDescriptor, TCSANOW, &settings)
    |   `- error: cannot find 'tcsetattr' in scope
221 | 	}
222 |
/host/spi-builder-workspace/Sources/SwiftSerial/SerialPort.swift:220:29: error: cannot find 'TCSANOW' in scope
218 |
219 | 		// Commit settings
220 | 		tcsetattr(fileDescriptor, TCSANOW, &settings)
    |                             `- error: cannot find 'TCSANOW' in scope
221 | 	}
222 |
[13/55] Compiling SwiftSerial PortMode.swift
BUILD FAILURE 6.1 wasm