The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Termios, reference master (220485), with Swift 6.2 (beta) for macOS (SPM) on 18 Jun 2025 04:58:36 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ponyboy47/Termios.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ponyboy47/Termios
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 2204850 Correct the example code
Cloned https://github.com/ponyboy47/Termios.git
Revision (git rev-parse @):
220485037f5a5932dfaf1aaba621cb53ce26a44c
SUCCESS checkout https://github.com/ponyboy47/Termios.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ponyboy47/Termios.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-1EA4D86E10B52AF.txt
[4/7] Emitting module ErrNo
[5/7] Compiling ErrNo ErrNo+Glibc.swift
[6/7] Compiling ErrNo ErrNo+Darwin.swift
[7/7] Compiling ErrNo ErrNo.swift
[8/13] Compiling Termios Termios.swift
/Users/admin/builder/spi-builder-workspace/Sources/Termios/Termios.swift:38:37: error: cannot convert value of type 'tcflag_t' (aka 'UInt') to expected argument type 'UInt32'
 36 |     /// Input flags
 37 |     public var inputFlags: InputFlags {
 38 |         get { return InputFlags(raw.c_iflag) }
    |                                     `- error: cannot convert value of type 'tcflag_t' (aka 'UInt') to expected argument type 'UInt32'
 39 |         set { raw.c_iflag = newValue.rawValue }
 40 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Termios/Termios.swift:39:38: error: cannot assign value of type 'UInt32' to type 'tcflag_t' (aka 'UInt')
 37 |     public var inputFlags: InputFlags {
 38 |         get { return InputFlags(raw.c_iflag) }
 39 |         set { raw.c_iflag = newValue.rawValue }
    |                                      `- error: cannot assign value of type 'UInt32' to type 'tcflag_t' (aka 'UInt')
 40 |     }
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/Termios/Termios.swift:44:38: error: cannot convert value of type 'tcflag_t' (aka 'UInt') to expected argument type 'UInt32'
 42 |     /// Output flags
 43 |     public var outputFlags: OutputFlags {
 44 |         get { return OutputFlags(raw.c_oflag) }
    |                                      `- error: cannot convert value of type 'tcflag_t' (aka 'UInt') to expected argument type 'UInt32'
 45 |         set { raw.c_oflag = newValue.rawValue }
 46 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Termios/Termios.swift:45:38: error: cannot assign value of type 'UInt32' to type 'tcflag_t' (aka 'UInt')
 43 |     public var outputFlags: OutputFlags {
 44 |         get { return OutputFlags(raw.c_oflag) }
 45 |         set { raw.c_oflag = newValue.rawValue }
    |                                      `- error: cannot assign value of type 'UInt32' to type 'tcflag_t' (aka 'UInt')
 46 |     }
 47 |
/Users/admin/builder/spi-builder-workspace/Sources/Termios/Termios.swift:50:39: error: cannot convert value of type 'tcflag_t' (aka 'UInt') to expected argument type 'UInt32'
 48 |     /// Control flags
 49 |     public var controlFlags: ControlFlags {
 50 |         get { return ControlFlags(raw.c_cflag) }
    |                                       `- error: cannot convert value of type 'tcflag_t' (aka 'UInt') to expected argument type 'UInt32'
 51 |         set { raw.c_cflag = newValue.rawValue }
 52 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Termios/Termios.swift:51:38: error: cannot assign value of type 'UInt32' to type 'tcflag_t' (aka 'UInt')
 49 |     public var controlFlags: ControlFlags {
 50 |         get { return ControlFlags(raw.c_cflag) }
 51 |         set { raw.c_cflag = newValue.rawValue }
    |                                      `- error: cannot assign value of type 'UInt32' to type 'tcflag_t' (aka 'UInt')
 52 |     }
 53 |
/Users/admin/builder/spi-builder-workspace/Sources/Termios/Termios.swift:56:37: error: cannot convert value of type 'tcflag_t' (aka 'UInt') to expected argument type 'UInt32'
 54 |     /// Local flags
 55 |     public var localFlags: LocalFlags {
 56 |         get { return LocalFlags(raw.c_lflag) }
    |                                     `- error: cannot convert value of type 'tcflag_t' (aka 'UInt') to expected argument type 'UInt32'
 57 |         set { raw.c_lflag = newValue.rawValue }
 58 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Termios/Termios.swift:57:38: error: cannot assign value of type 'UInt32' to type 'tcflag_t' (aka 'UInt')
 55 |     public var localFlags: LocalFlags {
 56 |         get { return LocalFlags(raw.c_lflag) }
 57 |         set { raw.c_lflag = newValue.rawValue }
    |                                      `- error: cannot assign value of type 'UInt32' to type 'tcflag_t' (aka 'UInt')
 58 |     }
 59 |
/Users/admin/builder/spi-builder-workspace/Sources/Termios/Termios.swift:81:33: error: cannot convert value of type 'UInt32' to expected argument type 'speed_t' (aka 'UInt')
 79 |     /// Set the input speed.
 80 |     public mutating func setInputSpeed(baud: UInt32) throws {
 81 |         guard cfsetispeed(&raw, baud) == 0 else {
    |                                 `- error: cannot convert value of type 'UInt32' to expected argument type 'speed_t' (aka 'UInt')
 82 |             throw ErrNo.lastError
 83 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Termios/Termios.swift:88:33: error: cannot convert value of type 'UInt32' to expected argument type 'speed_t' (aka 'UInt')
 86 |     /// Set the output speed.
 87 |     public mutating func setOutputSpeed(baud: UInt32) throws {
 88 |         guard cfsetospeed(&raw, baud) == 0 else {
    |                                 `- error: cannot convert value of type 'UInt32' to expected argument type 'speed_t' (aka 'UInt')
 89 |             throw ErrNo.lastError
 90 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Termios/Termios.swift:95:32: error: cannot convert value of type 'UInt32' to expected argument type 'speed_t' (aka 'UInt')
 93 |     /// Set both input and output speed.
 94 |     public mutating func setSpeed(baud: UInt32) throws {
 95 |         guard cfsetspeed(&raw, baud) == 0 else {
    |                                `- error: cannot convert value of type 'UInt32' to expected argument type 'speed_t' (aka 'UInt')
 96 |             throw ErrNo.lastError
 97 |         }
[9/13] Compiling Termios LocalFlags.swift
/Users/admin/builder/spi-builder-workspace/Sources/Termios/LocalFlags.swift:46:42: error: cannot find 'XCASE' in scope
 44 |     characters are converted to uppercase. [requires _BSD_SOURCE, _SVID_SOURCE, or _XOPEN_SOURCE]
 45 |     */
 46 |     public static let xCase = LocalFlags(XCASE)
    |                                          `- error: cannot find 'XCASE' in scope
 47 |
 48 |     /// Echo input characters
/Users/admin/builder/spi-builder-workspace/Sources/Termios/LocalFlags.swift:84:45: error: cannot find 'DEFECHO' in scope
 82 |     #if os(macOS)
 83 |     /// (not in POSIX) Echo only when a process is reading. (Not implemented on Linux.)
 84 |     public static let deafEcho = LocalFlags(DEFECHO)
    |                                             `- error: cannot find 'DEFECHO' in scope
 85 |     #endif
 86 |
[10/13] Compiling Termios InputFlags.swift
/Users/admin/builder/spi-builder-workspace/Sources/Termios/InputFlags.swift:78:47: error: cannot find 'IUCLC' in scope
 76 |
 77 |     /// (not in POSIX) Map uppercase characters to lowercase on input.
 78 |     public static let lowercased = InputFlags(IUCLC)
    |                                               `- error: cannot find 'IUCLC' in scope
 79 |
 80 |     /// Enable XON/XOFF flow control on output.
[11/13] Compiling Termios OutputFlags.swift
/Users/admin/builder/spi-builder-workspace/Sources/Termios/OutputFlags.swift:39:48: error: cannot find 'OLCUC' in scope
 37 |
 38 |     /// (not in POSIX) Map lowercase characters to uppercase on output.
 39 |     public static let uppercased = OutputFlags(OLCUC)
    |                                                `- error: cannot find 'OLCUC' in scope
 40 |
 41 |     /// (XSI) Map NL to CR-NL on output.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/13] Emitting module Termios
/Users/admin/builder/spi-builder-workspace/Sources/Termios/ControlFlags.swift:36:43: error: cannot find 'CBAUD' in scope
34 |
35 |     /// (not in POSIX) Baud speed mask (4+1 bits). [requires _BSD_SOURCE or _SVID_SOURCE]
36 |     public static let baud = ControlFlags(CBAUD)
   |                                           `- error: cannot find 'CBAUD' in scope
37 |
38 |     /// (not in POSIX) Extra baud speed mask (1 bit), included in baud. [requires _BSD_SOURCE or _SVID_SOURCE]
/Users/admin/builder/spi-builder-workspace/Sources/Termios/ControlFlags.swift:39:48: error: cannot find 'CBAUDEX' in scope
37 |
38 |     /// (not in POSIX) Extra baud speed mask (1 bit), included in baud. [requires _BSD_SOURCE or _SVID_SOURCE]
39 |     public static let baudExtra = ControlFlags(CBAUDEX)
   |                                                `- error: cannot find 'CBAUDEX' in scope
40 |
41 |     /// Character size mask. Values are s5, s6, s7, or s8.
/Users/admin/builder/spi-builder-workspace/Sources/Termios/ControlFlags.swift:72:44: error: cannot find 'LOBLK' in scope
70 |     #if os(macOS)
71 |     /// (not in POSIX) Block output from a noncurrent shell layer. For use by shl (shell layers).
72 |     public static let block = ControlFlags(LOBLK)
   |                                            `- error: cannot find 'LOBLK' in scope
73 |     #endif
74 |
/Users/admin/builder/spi-builder-workspace/Sources/Termios/ControlFlags.swift:79:48: error: cannot find 'CIBAUD' in scope
77 |     bits, shifted left IBSHIFT bits. [requires _BSD_SOURCE or _SVID_SOURCE] (Not implemented on Linux.)
78 |     */
79 |     public static let inputBaud = ControlFlags(CIBAUD)
   |                                                `- error: cannot find 'CIBAUD' in scope
80 |
81 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/Termios/ControlFlags.swift:86:48: error: cannot find 'CMSPAR' in scope
84 |     _SVID_SOURCE]
85 |     */
86 |     public static let cmsParity = ControlFlags(CMSPAR)
   |                                                `- error: cannot find 'CMSPAR' in scope
87 |
88 |     /// (not in POSIX) Enable RTS/CTS (hardware) flow control. [requires _BSD_SOURCE or _SVID_SOURCE]
/Users/admin/builder/spi-builder-workspace/Sources/Termios/InputFlags.swift:78:47: error: cannot find 'IUCLC' in scope
 76 |
 77 |     /// (not in POSIX) Map uppercase characters to lowercase on input.
 78 |     public static let lowercased = InputFlags(IUCLC)
    |                                               `- error: cannot find 'IUCLC' in scope
 79 |
 80 |     /// Enable XON/XOFF flow control on output.
/Users/admin/builder/spi-builder-workspace/Sources/Termios/LocalFlags.swift:46:42: error: cannot find 'XCASE' in scope
 44 |     characters are converted to uppercase. [requires _BSD_SOURCE, _SVID_SOURCE, or _XOPEN_SOURCE]
 45 |     */
 46 |     public static let xCase = LocalFlags(XCASE)
    |                                          `- error: cannot find 'XCASE' in scope
 47 |
 48 |     /// Echo input characters
/Users/admin/builder/spi-builder-workspace/Sources/Termios/LocalFlags.swift:84:45: error: cannot find 'DEFECHO' in scope
 82 |     #if os(macOS)
 83 |     /// (not in POSIX) Echo only when a process is reading. (Not implemented on Linux.)
 84 |     public static let deafEcho = LocalFlags(DEFECHO)
    |                                             `- error: cannot find 'DEFECHO' in scope
 85 |     #endif
 86 |
/Users/admin/builder/spi-builder-workspace/Sources/Termios/OutputFlags.swift:39:48: error: cannot find 'OLCUC' in scope
 37 |
 38 |     /// (not in POSIX) Map lowercase characters to uppercase on output.
 39 |     public static let uppercased = OutputFlags(OLCUC)
    |                                                `- error: cannot find 'OLCUC' in scope
 40 |
 41 |     /// (XSI) Map NL to CR-NL on output.
[13/13] Compiling Termios ControlFlags.swift
/Users/admin/builder/spi-builder-workspace/Sources/Termios/ControlFlags.swift:36:43: error: cannot find 'CBAUD' in scope
34 |
35 |     /// (not in POSIX) Baud speed mask (4+1 bits). [requires _BSD_SOURCE or _SVID_SOURCE]
36 |     public static let baud = ControlFlags(CBAUD)
   |                                           `- error: cannot find 'CBAUD' in scope
37 |
38 |     /// (not in POSIX) Extra baud speed mask (1 bit), included in baud. [requires _BSD_SOURCE or _SVID_SOURCE]
/Users/admin/builder/spi-builder-workspace/Sources/Termios/ControlFlags.swift:39:48: error: cannot find 'CBAUDEX' in scope
37 |
38 |     /// (not in POSIX) Extra baud speed mask (1 bit), included in baud. [requires _BSD_SOURCE or _SVID_SOURCE]
39 |     public static let baudExtra = ControlFlags(CBAUDEX)
   |                                                `- error: cannot find 'CBAUDEX' in scope
40 |
41 |     /// Character size mask. Values are s5, s6, s7, or s8.
/Users/admin/builder/spi-builder-workspace/Sources/Termios/ControlFlags.swift:72:44: error: cannot find 'LOBLK' in scope
70 |     #if os(macOS)
71 |     /// (not in POSIX) Block output from a noncurrent shell layer. For use by shl (shell layers).
72 |     public static let block = ControlFlags(LOBLK)
   |                                            `- error: cannot find 'LOBLK' in scope
73 |     #endif
74 |
/Users/admin/builder/spi-builder-workspace/Sources/Termios/ControlFlags.swift:79:48: error: cannot find 'CIBAUD' in scope
77 |     bits, shifted left IBSHIFT bits. [requires _BSD_SOURCE or _SVID_SOURCE] (Not implemented on Linux.)
78 |     */
79 |     public static let inputBaud = ControlFlags(CIBAUD)
   |                                                `- error: cannot find 'CIBAUD' in scope
80 |
81 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/Termios/ControlFlags.swift:86:48: error: cannot find 'CMSPAR' in scope
84 |     _SVID_SOURCE]
85 |     */
86 |     public static let cmsParity = ControlFlags(CMSPAR)
   |                                                `- error: cannot find 'CMSPAR' in scope
87 |
88 |     /// (not in POSIX) Enable RTS/CTS (hardware) flow control. [requires _BSD_SOURCE or _SVID_SOURCE]
Fetching https://github.com/Ponyboy47/ErrNo.git
[6/294] Fetching errno
Fetched https://github.com/Ponyboy47/ErrNo.git from cache (0.59s)
Computing version for https://github.com/Ponyboy47/ErrNo.git
Computed https://github.com/Ponyboy47/ErrNo.git at 0.5.2 (1.13s)
Creating working copy for https://github.com/Ponyboy47/ErrNo.git
Working copy of https://github.com/Ponyboy47/ErrNo.git resolved at 0.5.2
BUILD FAILURE 6.2 macosSpm