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 SwiftTerm, reference v1.5.1 (0b8d99), with Swift 6.2 (beta) for Android on 9 Aug 2025 07:33:27 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.65.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/migueldeicaza/SwiftTerm.git
Reference: v1.5.1
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/migueldeicaza/SwiftTerm
 * tag               v1.5.1     -> FETCH_HEAD
HEAD is now at 0b8d99b Do not compile HeadlessTerminal on Windows as it uses LocalProcess, we should upgrade at some point to the new subprocess API in Swift
Cloned https://github.com/migueldeicaza/SwiftTerm.git
Revision (git rev-parse @):
0b8d99bd19b694df44e1ccaa3891309719d34330
SUCCESS checkout https://github.com/migueldeicaza/SwiftTerm.git at v1.5.1
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/migueldeicaza/SwiftTerm.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-argument-parser
[1/15630] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.00s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.1 (1.51s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.6.1
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/17] Write sources
[7/17] Write swift-version-8C5A4AE7A8CE2BA.txt
[9/40] Compiling ArgumentParserToolInfo ToolInfo.swift
[10/40] Emitting module ArgumentParserToolInfo
[11/41] Wrapping AST for ArgumentParserToolInfo for debugging
[13/85] Emitting module ArgumentParser
[14/85] Compiling ArgumentParser ArgumentVisibility.swift
[15/85] Compiling ArgumentParser CompletionKind.swift
[16/85] Compiling ArgumentParser Errors.swift
[17/85] Compiling ArgumentParser Flag.swift
[18/85] Compiling ArgumentParser NameSpecification.swift
[19/85] Compiling ArgumentParser Option.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/93] Emitting module SwiftTerm
/host/spi-builder-workspace/Sources/SwiftTerm/HeadlessTerminal.swift:51:36: error: cannot find type 'winsize' in scope
49 |
50 |
51 |     public func getWindowSize() -> winsize {
   |                                    `- error: cannot find type 'winsize' in scope
52 |         return winsize(ws_row: UInt16(terminal.rows), ws_col: UInt16(terminal.cols), ws_xpixel: UInt16 (16), ws_ypixel: UInt16 (16))
53 |     }
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:25:30: error: cannot find type 'winsize' in scope
 23 |
 24 |     /// This method should return the window size to report to the local process.
 25 |     func getWindowSize () -> winsize
    |                              `- error: cannot find type 'winsize' in scope
 26 | }
 27 |
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:68:136: error: cannot find type 'winsize' in scope
 66 |      * - Returns: nil on error, or a tuple containing the process ID, and the file descriptor to the primary side of the newly created pseudo-terminal.
 67 |      */
 68 |     public static func fork (andExec: String, args: [String], env: [String], currentDirectory: String? = nil, desiredWindowSize: inout winsize) -> (pid: pid_t, masterFd: Int32)?
    |                                                                                                                                        `- error: cannot find type 'winsize' in scope
 69 |     {
 70 |         var master: Int32 = 0
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:97:82: error: cannot find type 'winsize' in scope
 95 |      * - Returns: the value from calling the ioctl
 96 |      */
 97 |     public static func setWinSize (masterPtyDescriptor: Int32, windowSize: inout winsize) -> Int32
    |                                                                                  `- error: cannot find type 'winsize' in scope
 98 |     {
 99 | #if os(macOS)
[27/93] Compiling ArgumentParser BashCompletionsGenerator.swift
[28/93] Compiling ArgumentParser CompletionsGenerator.swift
[29/93] Compiling ArgumentParser FishCompletionsGenerator.swift
[30/93] Compiling ArgumentParser ZshCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/SwiftTerm/HeadlessTerminal.swift:51:36: error: cannot find type 'winsize' in scope
49 |
50 |
51 |     public func getWindowSize() -> winsize {
   |                                    `- error: cannot find type 'winsize' in scope
52 |         return winsize(ws_row: UInt16(terminal.rows), ws_col: UInt16(terminal.cols), ws_xpixel: UInt16 (16), ws_ypixel: UInt16 (16))
53 |     }
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:25:30: error: cannot find type 'winsize' in scope
 23 |
 24 |     /// This method should return the window size to report to the local process.
 25 |     func getWindowSize () -> winsize
    |                              `- error: cannot find type 'winsize' in scope
 26 | }
 27 |
[31/93] Compiling ArgumentParser Argument.swift
/host/spi-builder-workspace/Sources/SwiftTerm/HeadlessTerminal.swift:51:36: error: cannot find type 'winsize' in scope
49 |
50 |
51 |     public func getWindowSize() -> winsize {
   |                                    `- error: cannot find type 'winsize' in scope
52 |         return winsize(ws_row: UInt16(terminal.rows), ws_col: UInt16(terminal.cols), ws_xpixel: UInt16 (16), ws_ypixel: UInt16 (16))
53 |     }
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:25:30: error: cannot find type 'winsize' in scope
 23 |
 24 |     /// This method should return the window size to report to the local process.
 25 |     func getWindowSize () -> winsize
    |                              `- error: cannot find type 'winsize' in scope
 26 | }
 27 |
[32/93] Compiling ArgumentParser ArgumentDiscussion.swift
/host/spi-builder-workspace/Sources/SwiftTerm/HeadlessTerminal.swift:51:36: error: cannot find type 'winsize' in scope
49 |
50 |
51 |     public func getWindowSize() -> winsize {
   |                                    `- error: cannot find type 'winsize' in scope
52 |         return winsize(ws_row: UInt16(terminal.rows), ws_col: UInt16(terminal.cols), ws_xpixel: UInt16 (16), ws_ypixel: UInt16 (16))
53 |     }
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:25:30: error: cannot find type 'winsize' in scope
 23 |
 24 |     /// This method should return the window size to report to the local process.
 25 |     func getWindowSize () -> winsize
    |                              `- error: cannot find type 'winsize' in scope
 26 | }
 27 |
[33/93] Compiling ArgumentParser ArgumentHelp.swift
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:25:30: error: cannot find type 'winsize' in scope
 23 |
 24 |     /// This method should return the window size to report to the local process.
 25 |     func getWindowSize () -> winsize
    |                              `- error: cannot find type 'winsize' in scope
 26 | }
 27 |
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:179:9: error: cannot find 'waitpid' in scope
177 |     {
178 |         var n: Int32 = 0
179 |         waitpid (shellPid, &n, WNOHANG)
    |         `- error: cannot find 'waitpid' in scope
180 |         delegate?.processTerminated(self, exitCode: n)
181 |         running = false
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:199:50: error: cannot find 'winsize' in scope
197 |             return
198 |         }
199 |         var size = delegate?.getWindowSize () ?? winsize()
    |                                                  `- error: cannot find 'winsize' in scope
200 |
201 |         var shellArgs = args
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:68:136: error: cannot find type 'winsize' in scope
 66 |      * - Returns: nil on error, or a tuple containing the process ID, and the file descriptor to the primary side of the newly created pseudo-terminal.
 67 |      */
 68 |     public static func fork (andExec: String, args: [String], env: [String], currentDirectory: String? = nil, desiredWindowSize: inout winsize) -> (pid: pid_t, masterFd: Int32)?
    |                                                                                                                                        `- error: cannot find type 'winsize' in scope
 69 |     {
 70 |         var master: Int32 = 0
[34/93] Compiling ArgumentParser OptionGroup.swift
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:25:30: error: cannot find type 'winsize' in scope
 23 |
 24 |     /// This method should return the window size to report to the local process.
 25 |     func getWindowSize () -> winsize
    |                              `- error: cannot find type 'winsize' in scope
 26 | }
 27 |
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:179:9: error: cannot find 'waitpid' in scope
177 |     {
178 |         var n: Int32 = 0
179 |         waitpid (shellPid, &n, WNOHANG)
    |         `- error: cannot find 'waitpid' in scope
180 |         delegate?.processTerminated(self, exitCode: n)
181 |         running = false
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:199:50: error: cannot find 'winsize' in scope
197 |             return
198 |         }
199 |         var size = delegate?.getWindowSize () ?? winsize()
    |                                                  `- error: cannot find 'winsize' in scope
200 |
201 |         var shellArgs = args
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:68:136: error: cannot find type 'winsize' in scope
 66 |      * - Returns: nil on error, or a tuple containing the process ID, and the file descriptor to the primary side of the newly created pseudo-terminal.
 67 |      */
 68 |     public static func fork (andExec: String, args: [String], env: [String], currentDirectory: String? = nil, desiredWindowSize: inout winsize) -> (pid: pid_t, masterFd: Int32)?
    |                                                                                                                                        `- error: cannot find type 'winsize' in scope
 69 |     {
 70 |         var master: Int32 = 0
[35/93] Compiling ArgumentParser AsyncParsableCommand.swift
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:25:30: error: cannot find type 'winsize' in scope
 23 |
 24 |     /// This method should return the window size to report to the local process.
 25 |     func getWindowSize () -> winsize
    |                              `- error: cannot find type 'winsize' in scope
 26 | }
 27 |
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:179:9: error: cannot find 'waitpid' in scope
177 |     {
178 |         var n: Int32 = 0
179 |         waitpid (shellPid, &n, WNOHANG)
    |         `- error: cannot find 'waitpid' in scope
180 |         delegate?.processTerminated(self, exitCode: n)
181 |         running = false
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:199:50: error: cannot find 'winsize' in scope
197 |             return
198 |         }
199 |         var size = delegate?.getWindowSize () ?? winsize()
    |                                                  `- error: cannot find 'winsize' in scope
200 |
201 |         var shellArgs = args
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:68:136: error: cannot find type 'winsize' in scope
 66 |      * - Returns: nil on error, or a tuple containing the process ID, and the file descriptor to the primary side of the newly created pseudo-terminal.
 67 |      */
 68 |     public static func fork (andExec: String, args: [String], env: [String], currentDirectory: String? = nil, desiredWindowSize: inout winsize) -> (pid: pid_t, masterFd: Int32)?
    |                                                                                                                                        `- error: cannot find type 'winsize' in scope
 69 |     {
 70 |         var master: Int32 = 0
[36/93] Compiling ArgumentParser CollectionExtensions.swift
[37/93] Compiling ArgumentParser Mutex.swift
[38/93] Compiling ArgumentParser Platform.swift
[39/93] Compiling ArgumentParser SequenceExtensions.swift
[40/93] Compiling ArgumentParser StringExtensions.swift
[41/93] Compiling ArgumentParser SwiftExtensions.swift
[42/93] Compiling SwiftTerm TerminalOptions.swift
[43/93] Compiling SwiftTerm Utilities.swift
[44/93] Compiling ArgumentParser InputKey.swift
[45/93] Compiling ArgumentParser InputOrigin.swift
[46/93] Compiling ArgumentParser Name.swift
[47/93] Compiling ArgumentParser Parsed.swift
[48/93] Compiling ArgumentParser ParsedValues.swift
[49/93] Compiling ArgumentParser ParserError.swift
[50/93] Compiling ArgumentParser SplitArguments.swift
[51/93] Compiling ArgumentParser DumpHelpGenerator.swift
[52/93] Compiling ArgumentParser HelpCommand.swift
[53/93] Compiling ArgumentParser HelpGenerator.swift
[54/93] Compiling ArgumentParser MessageInfo.swift
[55/93] Compiling ArgumentParser UsageGenerator.swift
[56/93] Compiling ArgumentParser Tree.swift
[57/93] Compiling ArgumentParser CodingKeyValidator.swift
[58/93] Compiling ArgumentParser NonsenseFlagsValidator.swift
[59/93] Compiling ArgumentParser ParsableArgumentsValidation.swift
[60/93] Compiling ArgumentParser PositionalArgumentsValidator.swift
[61/93] Compiling ArgumentParser UniqueNamesValidator.swift
[62/93] Compiling ArgumentParser ParsableArguments.swift
[65/93] Compiling ArgumentParser ArgumentDefinition.swift
[66/93] Compiling ArgumentParser ArgumentSet.swift
[67/93] Compiling ArgumentParser CommandParser.swift
[70/93] Compiling ArgumentParser CommandConfiguration.swift
[71/93] Compiling ArgumentParser CommandGroup.swift
[72/93] Compiling ArgumentParser EnumerableFlag.swift
[73/93] Compiling ArgumentParser ExpressibleByArgument.swift
[81/94] Wrapping AST for ArgumentParser for debugging
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:68:136: error: cannot find type 'winsize' in scope
 66 |      * - Returns: nil on error, or a tuple containing the process ID, and the file descriptor to the primary side of the newly created pseudo-terminal.
 67 |      */
 68 |     public static func fork (andExec: String, args: [String], env: [String], currentDirectory: String? = nil, desiredWindowSize: inout winsize) -> (pid: pid_t, masterFd: Int32)?
    |                                                                                                                                        `- error: cannot find type 'winsize' in scope
 69 |     {
 70 |         var master: Int32 = 0
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:97:82: error: cannot find type 'winsize' in scope
 95 |      * - Returns: the value from calling the ioctl
 96 |      */
 97 |     public static func setWinSize (masterPtyDescriptor: Int32, windowSize: inout winsize) -> Int32
    |                                                                                  `- error: cannot find type 'winsize' in scope
 98 |     {
 99 | #if os(macOS)
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:72:19: error: cannot find 'forkpty' in scope
 70 |         var master: Int32 = 0
 71 |
 72 |         let pid = forkpty(&master, nil, nil, &desiredWindowSize)
    |                   `- error: cannot find 'forkpty' in scope
 73 |         if pid < 0 {
 74 |             return nil
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:72:36: error: 'nil' requires a contextual type
 70 |         var master: Int32 = 0
 71 |
 72 |         let pid = forkpty(&master, nil, nil, &desiredWindowSize)
    |                                    `- error: 'nil' requires a contextual type
 73 |         if pid < 0 {
 74 |             return nil
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:72:41: error: 'nil' requires a contextual type
 70 |         var master: Int32 = 0
 71 |
 72 |         let pid = forkpty(&master, nil, nil, &desiredWindowSize)
    |                                         `- error: 'nil' requires a contextual type
 73 |         if pid < 0 {
 74 |             return nil
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:79:21: error: cannot find 'chdir' in scope
 77 |             if let currentDirectory {
 78 |                 _ = currentDirectory.withCString { p in
 79 |                     chdir(p)
    |                     `- error: cannot find 'chdir' in scope
 80 |                 }
 81 |             }
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:85:29: error: cannot find 'execve' in scope
 83 |             withArrayOfCStrings(args, { pargs in
 84 |                 withArrayOfCStrings(env, { penv in
 85 |                     let _ = execve(andExec, pargs, penv)
    |                             `- error: cannot find 'execve' in scope
 86 |                 })
 87 |             })
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:102:9: error: cannot find 'ioctl' in scope
100 |         return ioctl(masterPtyDescriptor, TIOCSWINSZ, &windowSize)
101 | #else
102 | 	return ioctl(masterPtyDescriptor, UInt(TIOCSWINSZ), &windowSize)
    |         `- error: cannot find 'ioctl' in scope
103 | #endif
104 |     }
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:102:41: error: cannot find 'TIOCSWINSZ' in scope
100 |         return ioctl(masterPtyDescriptor, TIOCSWINSZ, &windowSize)
101 | #else
102 | 	return ioctl(masterPtyDescriptor, UInt(TIOCSWINSZ), &windowSize)
    |                                         `- error: cannot find 'TIOCSWINSZ' in scope
103 | #endif
104 |     }
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:112:22: error: cannot find 'ioctl' in scope
110 |     {
111 |         var size: Int32 = 0
112 |         let status = ioctl (fd, 0x4004667f /* FIONREAD */, &size)
    |                      `- error: cannot find 'ioctl' in scope
113 |         return (status, size)
114 |     }
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:68:136: error: cannot find type 'winsize' in scope
 66 |      * - Returns: nil on error, or a tuple containing the process ID, and the file descriptor to the primary side of the newly created pseudo-terminal.
 67 |      */
 68 |     public static func fork (andExec: String, args: [String], env: [String], currentDirectory: String? = nil, desiredWindowSize: inout winsize) -> (pid: pid_t, masterFd: Int32)?
    |                                                                                                                                        `- error: cannot find type 'winsize' in scope
 69 |     {
 70 |         var master: Int32 = 0
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:97:82: error: cannot find type 'winsize' in scope
 95 |      * - Returns: the value from calling the ioctl
 96 |      */
 97 |     public static func setWinSize (masterPtyDescriptor: Int32, windowSize: inout winsize) -> Int32
    |                                                                                  `- error: cannot find type 'winsize' in scope
 98 |     {
 99 | #if os(macOS)
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:72:19: error: cannot find 'forkpty' in scope
 70 |         var master: Int32 = 0
 71 |
 72 |         let pid = forkpty(&master, nil, nil, &desiredWindowSize)
    |                   `- error: cannot find 'forkpty' in scope
 73 |         if pid < 0 {
 74 |             return nil
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:72:36: error: 'nil' requires a contextual type
 70 |         var master: Int32 = 0
 71 |
 72 |         let pid = forkpty(&master, nil, nil, &desiredWindowSize)
    |                                    `- error: 'nil' requires a contextual type
 73 |         if pid < 0 {
 74 |             return nil
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:72:41: error: 'nil' requires a contextual type
 70 |         var master: Int32 = 0
 71 |
 72 |         let pid = forkpty(&master, nil, nil, &desiredWindowSize)
    |                                         `- error: 'nil' requires a contextual type
 73 |         if pid < 0 {
 74 |             return nil
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:79:21: error: cannot find 'chdir' in scope
 77 |             if let currentDirectory {
 78 |                 _ = currentDirectory.withCString { p in
 79 |                     chdir(p)
    |                     `- error: cannot find 'chdir' in scope
 80 |                 }
 81 |             }
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:85:29: error: cannot find 'execve' in scope
 83 |             withArrayOfCStrings(args, { pargs in
 84 |                 withArrayOfCStrings(env, { penv in
 85 |                     let _ = execve(andExec, pargs, penv)
    |                             `- error: cannot find 'execve' in scope
 86 |                 })
 87 |             })
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:102:9: error: cannot find 'ioctl' in scope
100 |         return ioctl(masterPtyDescriptor, TIOCSWINSZ, &windowSize)
101 | #else
102 | 	return ioctl(masterPtyDescriptor, UInt(TIOCSWINSZ), &windowSize)
    |         `- error: cannot find 'ioctl' in scope
103 | #endif
104 |     }
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:102:41: error: cannot find 'TIOCSWINSZ' in scope
100 |         return ioctl(masterPtyDescriptor, TIOCSWINSZ, &windowSize)
101 | #else
102 | 	return ioctl(masterPtyDescriptor, UInt(TIOCSWINSZ), &windowSize)
    |                                         `- error: cannot find 'TIOCSWINSZ' in scope
103 | #endif
104 |     }
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:112:22: error: cannot find 'ioctl' in scope
110 |     {
111 |         var size: Int32 = 0
112 |         let status = ioctl (fd, 0x4004667f /* FIONREAD */, &size)
    |                      `- error: cannot find 'ioctl' in scope
113 |         return (status, size)
114 |     }
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:68:136: error: cannot find type 'winsize' in scope
 66 |      * - Returns: nil on error, or a tuple containing the process ID, and the file descriptor to the primary side of the newly created pseudo-terminal.
 67 |      */
 68 |     public static func fork (andExec: String, args: [String], env: [String], currentDirectory: String? = nil, desiredWindowSize: inout winsize) -> (pid: pid_t, masterFd: Int32)?
    |                                                                                                                                        `- error: cannot find type 'winsize' in scope
 69 |     {
 70 |         var master: Int32 = 0
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:97:82: error: cannot find type 'winsize' in scope
 95 |      * - Returns: the value from calling the ioctl
 96 |      */
 97 |     public static func setWinSize (masterPtyDescriptor: Int32, windowSize: inout winsize) -> Int32
    |                                                                                  `- error: cannot find type 'winsize' in scope
 98 |     {
 99 | #if os(macOS)
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:72:19: error: cannot find 'forkpty' in scope
 70 |         var master: Int32 = 0
 71 |
 72 |         let pid = forkpty(&master, nil, nil, &desiredWindowSize)
    |                   `- error: cannot find 'forkpty' in scope
 73 |         if pid < 0 {
 74 |             return nil
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:72:36: error: 'nil' requires a contextual type
 70 |         var master: Int32 = 0
 71 |
 72 |         let pid = forkpty(&master, nil, nil, &desiredWindowSize)
    |                                    `- error: 'nil' requires a contextual type
 73 |         if pid < 0 {
 74 |             return nil
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:72:41: error: 'nil' requires a contextual type
 70 |         var master: Int32 = 0
 71 |
 72 |         let pid = forkpty(&master, nil, nil, &desiredWindowSize)
    |                                         `- error: 'nil' requires a contextual type
 73 |         if pid < 0 {
 74 |             return nil
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:79:21: error: cannot find 'chdir' in scope
 77 |             if let currentDirectory {
 78 |                 _ = currentDirectory.withCString { p in
 79 |                     chdir(p)
    |                     `- error: cannot find 'chdir' in scope
 80 |                 }
 81 |             }
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:85:29: error: cannot find 'execve' in scope
 83 |             withArrayOfCStrings(args, { pargs in
 84 |                 withArrayOfCStrings(env, { penv in
 85 |                     let _ = execve(andExec, pargs, penv)
    |                             `- error: cannot find 'execve' in scope
 86 |                 })
 87 |             })
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:102:9: error: cannot find 'ioctl' in scope
100 |         return ioctl(masterPtyDescriptor, TIOCSWINSZ, &windowSize)
101 | #else
102 | 	return ioctl(masterPtyDescriptor, UInt(TIOCSWINSZ), &windowSize)
    |         `- error: cannot find 'ioctl' in scope
103 | #endif
104 |     }
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:102:41: error: cannot find 'TIOCSWINSZ' in scope
100 |         return ioctl(masterPtyDescriptor, TIOCSWINSZ, &windowSize)
101 | #else
102 | 	return ioctl(masterPtyDescriptor, UInt(TIOCSWINSZ), &windowSize)
    |                                         `- error: cannot find 'TIOCSWINSZ' in scope
103 | #endif
104 |     }
/host/spi-builder-workspace/Sources/SwiftTerm/Pty.swift:112:22: error: cannot find 'ioctl' in scope
110 |     {
111 |         var size: Int32 = 0
112 |         let status = ioctl (fd, 0x4004667f /* FIONREAD */, &size)
    |                      `- error: cannot find 'ioctl' in scope
113 |         return (status, size)
114 |     }
BUILD FAILURE 6.2 android