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 main (4a3459), with Swift 6.2 (beta) for Android on 3 Sep 2025 16:39:03 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/migueldeicaza/SwiftTerm.git
Reference: main
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
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4a34596 Add API to change the history size
Cloned https://github.com/migueldeicaza/SwiftTerm.git
Revision (git rev-parse @):
4a345964d546cd42d036bdec699cf88c1c930207
SUCCESS checkout https://github.com/migueldeicaza/SwiftTerm.git at main
========================================
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" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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/swiftlang/swift-subprocess
[1/1890] Fetching swift-subprocess
Fetched https://github.com/swiftlang/swift-subprocess from cache (0.46s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-system
[1/4941] Fetching swift-system
[4942/20633] Fetching swift-system, swift-argument-parser
Fetched https://github.com/apple/swift-system from cache (0.91s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.92s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.5.0 (1.38s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.1 (0.47s)
Creating working copy for https://github.com/swiftlang/swift-subprocess
Working copy of https://github.com/swiftlang/swift-subprocess resolved at main (bf17fa2)
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
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.5.0
[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] Emitting module ArgumentParserToolInfo
[10/40] Compiling ArgumentParserToolInfo ToolInfo.swift
[11/41] Wrapping AST for ArgumentParserToolInfo for debugging
[13/85] Emitting module ArgumentParser
[14/91] Compiling ArgumentParser BashCompletionsGenerator.swift
[15/91] Compiling ArgumentParser CompletionsGenerator.swift
[16/91] Compiling ArgumentParser FishCompletionsGenerator.swift
[17/91] Compiling ArgumentParser ZshCompletionsGenerator.swift
[18/91] Compiling ArgumentParser Argument.swift
[19/91] Compiling ArgumentParser ArgumentDiscussion.swift
[20/91] Compiling ArgumentParser ArgumentHelp.swift
[21/91] Compiling ArgumentParser CollectionExtensions.swift
[22/91] Compiling ArgumentParser Mutex.swift
[23/91] Compiling ArgumentParser Platform.swift
[24/91] Compiling ArgumentParser SequenceExtensions.swift
[25/91] Compiling ArgumentParser StringExtensions.swift
[26/91] Compiling ArgumentParser SwiftExtensions.swift
[27/91] Compiling ArgumentParser EnumerableFlag.swift
/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 |     }
[28/91] Compiling ArgumentParser ExpressibleByArgument.swift
/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 |     }
[29/91] Compiling ArgumentParser InputKey.swift
/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 |     }
[33/93] Compiling ArgumentParser Tree.swift
[34/93] Compiling ArgumentParser CodingKeyValidator.swift
[35/93] Compiling ArgumentParser NonsenseFlagsValidator.swift
[36/93] Compiling ArgumentParser ParsableArgumentsValidation.swift
[37/93] Compiling ArgumentParser PositionalArgumentsValidator.swift
[38/93] Compiling ArgumentParser UniqueNamesValidator.swift
/host/spi-builder-workspace/Sources/SwiftTerm/EscapeSequenceParser.swift:332:40: warning: capture 'self' was never used [#no-usage]
330 |         _collect = []
331 |         // "\"
332 |         setEscHandler("\\", { [unowned self] collect, flag in })
    |                                        `- warning: capture 'self' was never used [#no-usage]
333 |     }
334 |
/host/spi-builder-workspace/Sources/SwiftTerm/EscapeSequenceParser.swift:332:40: warning: capture 'self' was never used [#no-usage]
330 |         _collect = []
331 |         // "\"
332 |         setEscHandler("\\", { [unowned self] collect, flag in })
    |                                        `- warning: capture 'self' was never used [#no-usage]
333 |     }
334 |
/host/spi-builder-workspace/Sources/SwiftTerm/EscapeSequenceParser.swift:332:40: warning: capture 'self' was never used [#no-usage]
330 |         _collect = []
331 |         // "\"
332 |         setEscHandler("\\", { [unowned self] collect, flag in })
    |                                        `- warning: capture 'self' was never used [#no-usage]
333 |     }
334 |
[42/93] Compiling SwiftTerm TerminalOptions.swift
[43/93] Compiling SwiftTerm Utilities.swift
[44/93] Compiling ArgumentParser SplitArguments.swift
[45/93] Compiling ArgumentParser DumpHelpGenerator.swift
[46/93] Compiling ArgumentParser HelpCommand.swift
[47/93] Compiling ArgumentParser HelpGenerator.swift
[48/93] Compiling ArgumentParser MessageInfo.swift
[49/93] Compiling ArgumentParser UsageGenerator.swift
[53/93] Compiling ArgumentParser Parsed.swift
[54/93] Compiling ArgumentParser ParsedValues.swift
[55/93] Compiling ArgumentParser ParserError.swift
[56/93] Compiling ArgumentParser ArgumentVisibility.swift
[57/93] Compiling ArgumentParser CompletionKind.swift
[58/93] Compiling ArgumentParser Errors.swift
[59/93] Compiling ArgumentParser Flag.swift
[60/93] Compiling ArgumentParser NameSpecification.swift
[61/93] Compiling ArgumentParser Option.swift
[62/93] Compiling ArgumentParser OptionGroup.swift
[63/93] Compiling ArgumentParser AsyncParsableCommand.swift
[64/93] Compiling ArgumentParser CommandConfiguration.swift
[65/93] Compiling ArgumentParser CommandGroup.swift
[68/93] Compiling ArgumentParser ParsableArguments.swift
[69/93] Compiling ArgumentParser ParsableCommand.swift
[70/93] Compiling ArgumentParser ArgumentDecoder.swift
[71/93] Compiling ArgumentParser ArgumentDefinition.swift
[72/93] Compiling ArgumentParser ArgumentSet.swift
[73/93] Compiling ArgumentParser CommandParser.swift
[74/94] Wrapping AST for ArgumentParser for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[81/94] 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:29:30: error: cannot find type 'winsize' in scope
 27 |
 28 |     /// This method should return the window size to report to the local process.
 29 |     func getWindowSize () -> winsize
    |                              `- error: cannot find type 'winsize' in scope
 30 | }
 31 |
/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/LocalProcess.swift:29:30: error: cannot find type 'winsize' in scope
 27 |
 28 |     /// This method should return the window size to report to the local process.
 29 |     func getWindowSize () -> winsize
    |                              `- error: cannot find type 'winsize' in scope
 30 | }
 31 |
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:215:9: error: cannot find 'waitpid' in scope
213 |     {
214 |         var n: Int32 = 0
215 |         waitpid (shellPid, &n, WNOHANG)
    |         `- error: cannot find 'waitpid' in scope
216 |         delegate?.processTerminated(self, exitCode: n)
217 |         running = false
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:334:50: error: cannot find 'winsize' in scope
332 |
333 |     private func startProcessWithForkpty(executable: String, args: [String], environment: [String]?, execName: String?, currentDirectory: String?) {
334 |         var size = delegate?.getWindowSize () ?? winsize()
    |                                                  `- error: cannot find 'winsize' in scope
335 |
336 |         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
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:29:30: error: cannot find type 'winsize' in scope
 27 |
 28 |     /// This method should return the window size to report to the local process.
 29 |     func getWindowSize () -> winsize
    |                              `- error: cannot find type 'winsize' in scope
 30 | }
 31 |
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:215:9: error: cannot find 'waitpid' in scope
213 |     {
214 |         var n: Int32 = 0
215 |         waitpid (shellPid, &n, WNOHANG)
    |         `- error: cannot find 'waitpid' in scope
216 |         delegate?.processTerminated(self, exitCode: n)
217 |         running = false
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:334:50: error: cannot find 'winsize' in scope
332 |
333 |     private func startProcessWithForkpty(executable: String, args: [String], environment: [String]?, execName: String?, currentDirectory: String?) {
334 |         var size = delegate?.getWindowSize () ?? winsize()
    |                                                  `- error: cannot find 'winsize' in scope
335 |
336 |         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
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:29:30: error: cannot find type 'winsize' in scope
 27 |
 28 |     /// This method should return the window size to report to the local process.
 29 |     func getWindowSize () -> winsize
    |                              `- error: cannot find type 'winsize' in scope
 30 | }
 31 |
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:215:9: error: cannot find 'waitpid' in scope
213 |     {
214 |         var n: Int32 = 0
215 |         waitpid (shellPid, &n, WNOHANG)
    |         `- error: cannot find 'waitpid' in scope
216 |         delegate?.processTerminated(self, exitCode: n)
217 |         running = false
/host/spi-builder-workspace/Sources/SwiftTerm/LocalProcess.swift:334:50: error: cannot find 'winsize' in scope
332 |
333 |     private func startProcessWithForkpty(executable: String, args: [String], environment: [String]?, execName: String?, currentDirectory: String?) {
334 |         var size = delegate?.getWindowSize () ?? winsize()
    |                                                  `- error: cannot find 'winsize' in scope
335 |
336 |         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
/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:29:30: error: cannot find type 'winsize' in scope
 27 |
 28 |     /// This method should return the window size to report to the local process.
 29 |     func getWindowSize () -> winsize
    |                              `- error: cannot find type 'winsize' in scope
 30 | }
 31 |
/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:29:30: error: cannot find type 'winsize' in scope
 27 |
 28 |     /// This method should return the window size to report to the local process.
 29 |     func getWindowSize () -> winsize
    |                              `- error: cannot find type 'winsize' in scope
 30 | }
 31 |
/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:29:30: error: cannot find type 'winsize' in scope
 27 |
 28 |     /// This method should return the window size to report to the local process.
 29 |     func getWindowSize () -> winsize
    |                              `- error: cannot find type 'winsize' in scope
 30 | }
 31 |
BUILD FAILURE 6.2 android