The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftSerial, reference master (5dea24), with Swift 6.1 for Android on 27 May 2025 15:39:01 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yeokm1/swiftserial.git
Reference: master
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
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 5dea242 Update README.md
Cloned https://github.com/yeokm1/swiftserial.git
Revision (git rev-parse @):
5dea242daa3da7bfb74a6bb02c039966882e7045
SUCCESS checkout https://github.com/yeokm1/swiftserial.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/yeokm1/swiftserial.git
https://github.com/yeokm1/swiftserial.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftSerial",
  "name" : "SwiftSerial",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftSerial",
      "targets" : [
        "SwiftSerial"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftSerial",
      "module_type" : "SwiftTarget",
      "name" : "SwiftSerial",
      "path" : "Sources",
      "product_memberships" : [
        "SwiftSerial"
      ],
      "sources" : [
        "SwiftSerial.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-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:241:30: error: cannot find 'O_RDWR' in scope
239 |
240 |         if receive && transmit {
241 |             readWriteParam = O_RDWR
    |                              `- error: cannot find 'O_RDWR' in scope
242 |         } else if receive {
243 |             readWriteParam = O_RDONLY
/host/spi-builder-workspace/Sources/SwiftSerial.swift:243:30: error: cannot find 'O_RDONLY' in scope
241 |             readWriteParam = O_RDWR
242 |         } else if receive {
243 |             readWriteParam = O_RDONLY
    |                              `- error: cannot find 'O_RDONLY' in scope
244 |         } else if transmit {
245 |             readWriteParam = O_WRONLY
/host/spi-builder-workspace/Sources/SwiftSerial.swift:245:30: error: cannot find 'O_WRONLY' in scope
243 |             readWriteParam = O_RDONLY
244 |         } else if transmit {
245 |             readWriteParam = O_WRONLY
    |                              `- error: cannot find 'O_WRONLY' in scope
246 |         } else {
247 |             fatalError()
/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 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:364:13: error: cannot find 'close' in scope
362 |     public func closePort() {
363 |         if let fileDescriptor = fileDescriptor {
364 |             close(fileDescriptor)
    |             `- error: cannot find 'close' in scope
365 |         }
366 |         fileDescriptor = nil
/host/spi-builder-workspace/Sources/SwiftSerial.swift:379:16: error: cannot find type 'stat' in scope
377 |         }
378 |
379 |         var s: stat = stat()
    |                `- error: cannot find type 'stat' in scope
380 |         fstat(fileDescriptor, &s)
381 |         if s.st_nlink != 1 {
/host/spi-builder-workspace/Sources/SwiftSerial.swift:380:9: error: cannot find 'fstat' in scope
378 |
379 |         var s: stat = stat()
380 |         fstat(fileDescriptor, &s)
    |         `- error: cannot find 'fstat' in scope
381 |         if s.st_nlink != 1 {
382 |             throw PortError.deviceNotConnected
/host/spi-builder-workspace/Sources/SwiftSerial.swift:385:25: error: cannot find 'read' in scope
383 |         }
384 |
385 |         let bytesRead = read(fileDescriptor, buffer, size)
    |                         `- error: cannot find 'read' in scope
386 |         return bytesRead
387 |     }
/host/spi-builder-workspace/Sources/SwiftSerial.swift:496:28: error: cannot find 'write' in scope
494 |         }
495 |
496 |         let bytesWritten = write(fileDescriptor, buffer, size)
    |                            `- error: cannot find 'write' in scope
497 |         return bytesWritten
498 |     }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] 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 |
[3/3] 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:241:30: error: cannot find 'O_RDWR' in scope
239 |
240 |         if receive && transmit {
241 |             readWriteParam = O_RDWR
    |                              `- error: cannot find 'O_RDWR' in scope
242 |         } else if receive {
243 |             readWriteParam = O_RDONLY
/host/spi-builder-workspace/Sources/SwiftSerial.swift:243:30: error: cannot find 'O_RDONLY' in scope
241 |             readWriteParam = O_RDWR
242 |         } else if receive {
243 |             readWriteParam = O_RDONLY
    |                              `- error: cannot find 'O_RDONLY' in scope
244 |         } else if transmit {
245 |             readWriteParam = O_WRONLY
/host/spi-builder-workspace/Sources/SwiftSerial.swift:245:30: error: cannot find 'O_WRONLY' in scope
243 |             readWriteParam = O_RDONLY
244 |         } else if transmit {
245 |             readWriteParam = O_WRONLY
    |                              `- error: cannot find 'O_WRONLY' in scope
246 |         } else {
247 |             fatalError()
/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 |
/host/spi-builder-workspace/Sources/SwiftSerial.swift:364:13: error: cannot find 'close' in scope
362 |     public func closePort() {
363 |         if let fileDescriptor = fileDescriptor {
364 |             close(fileDescriptor)
    |             `- error: cannot find 'close' in scope
365 |         }
366 |         fileDescriptor = nil
/host/spi-builder-workspace/Sources/SwiftSerial.swift:379:16: error: cannot find type 'stat' in scope
377 |         }
378 |
379 |         var s: stat = stat()
    |                `- error: cannot find type 'stat' in scope
380 |         fstat(fileDescriptor, &s)
381 |         if s.st_nlink != 1 {
/host/spi-builder-workspace/Sources/SwiftSerial.swift:380:9: error: cannot find 'fstat' in scope
378 |
379 |         var s: stat = stat()
380 |         fstat(fileDescriptor, &s)
    |         `- error: cannot find 'fstat' in scope
381 |         if s.st_nlink != 1 {
382 |             throw PortError.deviceNotConnected
/host/spi-builder-workspace/Sources/SwiftSerial.swift:385:25: error: cannot find 'read' in scope
383 |         }
384 |
385 |         let bytesRead = read(fileDescriptor, buffer, size)
    |                         `- error: cannot find 'read' in scope
386 |         return bytesRead
387 |     }
/host/spi-builder-workspace/Sources/SwiftSerial.swift:496:28: error: cannot find 'write' in scope
494 |         }
495 |
496 |         let bytesWritten = write(fileDescriptor, buffer, size)
    |                            `- error: cannot find 'write' in scope
497 |         return bytesWritten
498 |     }
BUILD FAILURE 6.1 android