Build Information
Failed to build TermKit, reference main (6fd4a9), with Swift 6.2 for Android on 28 Sep 2025 13:39:55 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/migueldeicaza/TermKit.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/TermKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 6fd4a96 Command Palette touchups
Cloned https://github.com/migueldeicaza/TermKit.git
Revision (git rev-parse @):
6fd4a96b1f310576d8cb1894f8897cbfd4f3ed55
SUCCESS checkout https://github.com/migueldeicaza/TermKit.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/migueldeicaza/TermKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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:d70d83f328e9f1ae04a4e17e63e2d335ae10639f90ee796a5fe3bfb139eab948
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/SimplyDanny/SwiftLintPlugins
Fetching https://github.com/migueldeicaza/SwiftTerm.git
Fetching https://github.com/apple/swift-markdown
Fetching https://github.com/migueldeicaza/TextBufferKit.git
[1/239] Fetching swiftlintplugins
[240/4149] Fetching swiftlintplugins, swift-log
[241/4389] Fetching swiftlintplugins, swift-log, textbufferkit
[1458/11583] Fetching swiftlintplugins, swift-log, textbufferkit, swiftterm
[3775/18504] Fetching swiftlintplugins, swift-log, textbufferkit, swiftterm, swift-markdown
Fetched https://github.com/SimplyDanny/SwiftLintPlugins from cache (0.43s)
[17906/18265] Fetching swift-log, textbufferkit, swiftterm, swift-markdown
Fetched https://github.com/apple/swift-log.git from cache (0.43s)
[14068/14355] Fetching textbufferkit, swiftterm, swift-markdown
Fetched https://github.com/apple/swift-markdown from cache (0.61s)
Fetched https://github.com/migueldeicaza/TextBufferKit.git from cache (0.66s)
Fetched https://github.com/migueldeicaza/SwiftTerm.git from cache (0.67s)
Computing version for https://github.com/migueldeicaza/SwiftTerm.git
Computed https://github.com/migueldeicaza/SwiftTerm.git at 1.5.1 (1.04s)
Fetching https://github.com/apple/swift-argument-parser
[1/16394] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.73s)
Computing version for https://github.com/migueldeicaza/TextBufferKit.git
Computed https://github.com/migueldeicaza/TextBufferKit.git at 0.3.0 (3.01s)
Computing version for https://github.com/apple/swift-markdown
Computed https://github.com/apple/swift-markdown at 0.7.1 (0.44s)
Fetching https://github.com/swiftlang/swift-cmark.git
[1/18208] Fetching swift-cmark
Fetched https://github.com/swiftlang/swift-cmark.git from cache (0.97s)
Computing version for https://github.com/swiftlang/swift-cmark.git
Computed https://github.com/swiftlang/swift-cmark.git at 0.7.0 (1.41s)
Computing version for https://github.com/SimplyDanny/SwiftLintPlugins
Computed https://github.com/SimplyDanny/SwiftLintPlugins at 0.61.0 (0.33s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (0.33s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.1 (0.39s)
Creating working copy for https://github.com/swiftlang/swift-cmark.git
Working copy of https://github.com/swiftlang/swift-cmark.git resolved at 0.7.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.4
Creating working copy for https://github.com/SimplyDanny/SwiftLintPlugins
Working copy of https://github.com/SimplyDanny/SwiftLintPlugins resolved at 0.61.0
Creating working copy for https://github.com/migueldeicaza/SwiftTerm.git
Working copy of https://github.com/migueldeicaza/SwiftTerm.git resolved at 1.5.1
Creating working copy for https://github.com/migueldeicaza/TextBufferKit.git
Working copy of https://github.com/migueldeicaza/TextBufferKit.git resolved at 0.3.0
Creating working copy for https://github.com/apple/swift-markdown
Working copy of https://github.com/apple/swift-markdown resolved at 0.7.1
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
Downloading binary artifact https://github.com/realm/SwiftLint/releases/download/0.61.0/SwiftLintBinary.artifactbundle.zip
[1369/70760294] Downloading https://github.com/realm/SwiftLint/releases/download/0.61.0/SwiftLintBinary.artifactbundle.zip
Downloaded https://github.com/realm/SwiftLint/releases/download/0.61.0/SwiftLintBinary.artifactbundle.zip (6.79s)
[1/1] Compiling plugin SwiftLintCommandPlugin
[2/2] Compiling plugin SwiftLintBuildToolPlugin
[3/3] Compiling plugin GenerateManual
[4/4] Compiling plugin GenerateDoccReference
Building for debugging...
[4/54] Compiling cmark-gfm houdini_href_e.c
[5/54] Compiling cmark-gfm cmark_ctype.c
[6/54] Compiling cmark-gfm cmark.c
[7/54] Compiling cmark-gfm buffer.c
[8/54] Compiling cmark-gfm footnotes.c
[9/54] Compiling cmark-gfm commonmark.c
[10/54] Compiling cmark-gfm houdini_html_e.c
[11/54] Write swift-version--11D90AFD9DD3AB2.txt
[12/54] Compiling cmark-gfm-extensions tagfilter.c
[13/54] Compiling cmark-gfm-extensions tasklist.c
[14/54] Compiling cmark-gfm-extensions strikethrough.c
[15/54] Compiling cmark-gfm-extensions core-extensions.c
[16/54] Compiling cmark-gfm-extensions autolink.c
[17/54] Compiling cmark-gfm-extensions ext_scanners.c
[17/54] Compiling cmark-gfm syntax_extension.c
[19/54] Compiling cmark-gfm xml.c
[20/54] Compiling cmark-gfm-extensions table.c
[21/54] Compiling cmark-gfm render.c
[22/54] Compiling cmark-gfm registry.c
[23/54] Compiling cmark-gfm references.c
[24/54] Compiling cmark-gfm plugin.c
[25/54] Compiling cmark-gfm plaintext.c
[26/54] Compiling cmark-gfm map.c
[27/54] Compiling cmark-gfm man.c
[28/54] Compiling cmark-gfm linked_list.c
[29/54] Compiling cmark-gfm utf8.c
[29/54] Compiling cmark-gfm iterator.c
[31/54] Compiling cmark-gfm node.c
[31/54] Write sources
[38/54] Compiling cmark-gfm latex.c
[39/54] Compiling cmark-gfm html.c
[40/54] Compiling CAtomic CAtomic.c
[41/56] Compiling cmark-gfm houdini_html_u.c
[42/69] Compiling cmark-gfm arena.c
[43/69] Compiling cmark-gfm inlines.c
[44/77] Compiling cmark-gfm blocks.c
[45/88] Compiling cmark-gfm scanners.c
[47/151] Emitting module Markdown
[48/159] Compiling Markdown BasicBlockContainer.swift
[49/159] Compiling Markdown BasicInlineContainer.swift
[50/159] Compiling Markdown BlockContainer.swift
[51/159] Compiling Markdown BlockMarkup.swift
[52/159] Compiling Markdown InlineContainer.swift
[53/159] Compiling Markdown InlineMarkup.swift
[54/159] Compiling Markdown ListItemContainer.swift
[55/159] Compiling Markdown AtomicCounter.swift
[56/159] Emitting module Logging
[57/159] Compiling Logging Locks.swift
[58/159] Compiling Logging MetadataProvider.swift
[59/159] Compiling Markdown OrderedList.swift
[60/159] Compiling Markdown UnorderedList.swift
[61/159] Compiling Markdown Paragraph.swift
[62/159] Compiling Markdown CodeBlock.swift
[63/159] Compiling Markdown HTMLBlock.swift
[64/159] Compiling Markdown Heading.swift
[65/159] Compiling Markdown ThematicBreak.swift
[66/159] Compiling Markdown Table.swift
[67/159] Compiling Markdown TableBody.swift
[68/159] Compiling Markdown Link.swift
[69/159] Compiling Markdown Strikethrough.swift
[70/159] Compiling Markdown Strong.swift
[71/159] Compiling Markdown CustomInline.swift
[72/159] Compiling Markdown InlineCode.swift
[73/159] Compiling Markdown InlineHTML.swift
[74/159] Compiling Markdown LineBreak.swift
[75/159] Compiling Markdown SoftBreak.swift
[76/159] Compiling Markdown SymbolLink.swift
[77/159] Compiling Markdown TableCell.swift
[78/159] Compiling Markdown TableCellContainer.swift
[79/159] Compiling Markdown TableHead.swift
[80/159] Compiling Markdown TableRow.swift
[81/159] Compiling Markdown Replacement.swift
[82/159] Compiling Markdown SourceLocation.swift
[83/159] Compiling Markdown Emphasis.swift
[84/159] Compiling Markdown Image.swift
[85/159] Compiling Markdown InlineAttributes.swift
[86/159] Emitting module TextBufferKit
[87/159] Compiling TextBufferKit FindMatch.swift
[88/160] Compiling Markdown CharacterExtensions.swift
[89/160] Compiling Markdown CollectionExtensions.swift
[90/160] Compiling Markdown StringExtensions.swift
[91/160] Compiling Markdown MarkupVisitor.swift
[92/160] Compiling Markdown MarkupWalker.swift
[93/160] Compiling Markdown HTMLFormatter.swift
[94/160] Compiling Markdown MarkupFormatter.swift
[95/160] Compiling Markdown MarkupTreeDumper.swift
[96/160] Compiling TextBufferKit SearchData.swift
[97/160] Compiling TextBufferKit Position.swift
[98/160] Compiling TextBufferKit Range.swift
[99/160] Compiling Markdown BlockDirective.swift
[100/160] Compiling Markdown BlockQuote.swift
[101/160] Compiling Markdown CustomBlock.swift
[102/160] Compiling Markdown DoxygenAbstract.swift
[103/160] Compiling Markdown DoxygenDiscussion.swift
[104/160] Compiling Markdown DoxygenNote.swift
[105/160] Compiling Markdown DoxygenParameter.swift
[106/160] Compiling Markdown DoxygenReturns.swift
[107/160] Compiling Markdown ListItem.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[114/160] Emitting module SwiftTerm
/host/spi-builder-workspace/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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)
[118/162] Compiling Markdown ChildIndexPath.swift
[119/162] Compiling Markdown DirectiveArgument.swift
[120/162] Compiling SwiftTerm TerminalOptions.swift
[121/162] Compiling SwiftTerm Utilities.swift
[122/162] Compiling Markdown Markup.swift
[123/162] Compiling Markdown MarkupChildren.swift
[124/162] Compiling Markdown MarkupData.swift
[125/162] Compiling Markdown PlainTextConvertibleMarkup.swift
[126/162] Compiling Markdown RawMarkup.swift
[127/162] Compiling Markdown Text.swift
[128/162] Compiling Logging LogHandler.swift
[129/162] Compiling Markdown Aside.swift
[130/162] Compiling Markdown BlockDirectiveParser.swift
[131/162] Compiling Markdown CommonMarkConverter.swift
[132/162] Compiling Markdown LazySplitLines.swift
[133/162] Compiling Logging Logging.swift
[134/162] Compiling Markdown ParseOptions.swift
[135/162] Compiling Markdown RangeAdjuster.swift
[136/162] Compiling Markdown RangerTracker.swift
[137/162] Compiling Markdown MarkupRewriter.swift
/host/spi-builder-workspace/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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/.build/checkouts/SwiftTerm/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
[151/164] Compiling TextBufferKit PieceTreeBuilder.swift
[152/164] Compiling TextBufferKit PieceTreeTextBuffer.swift
[153/164] Compiling TextBufferKit PieceTreeBase.swift
/host/spi-builder-workspace/.build/checkouts/TextBufferKit/Sources/TextBufferKit/PieceTreeBase.swift:392:50: error: binary operator '-' cannot be applied to operands of type 'Float' and 'Double'
390 | {
391 | let averageBufferSize = self.averageBufferSize
392 | let min = Int (Float (averageBufferSize) - floor(Float (averageBufferSize / 3)))
| |- error: binary operator '-' cannot be applied to operands of type 'Float' and 'Double'
| `- note: overloads for '-' exist with these partially matching parameter lists: (Double, Double), (Float, Float)
393 | let max = min * 2
394 |
/host/spi-builder-workspace/.build/checkouts/TextBufferKit/Sources/TextBufferKit/PieceTreeBase.swift:392:58: error: cannot convert value of type 'Float' to expected argument type 'Double'
390 | {
391 | let averageBufferSize = self.averageBufferSize
392 | let min = Int (Float (averageBufferSize) - floor(Float (averageBufferSize / 3)))
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
393 | let max = min * 2
394 |
[153/164] Wrapping AST for Logging for debugging
[154/164] Wrapping AST for Markdown for debugging
[156/164] Compiling TextBufferKit TreeBase.swift
BUILD FAILURE 6.2 android