Build Information
Failed to build TermKit, reference main (6fd4a9), with Swift 6.1 for Android on 28 Sep 2025 13:40:22 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 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.1
Building package at path: $PWD
https://github.com/migueldeicaza/TermKit.git
https://github.com/migueldeicaza/TermKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "textbufferkit",
"requirement" : {
"range" : [
{
"lower_bound" : "0.3.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/migueldeicaza/TextBufferKit.git"
},
{
"identity" : "swiftterm",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/migueldeicaza/SwiftTerm.git"
},
{
"identity" : "swiftlintplugins",
"requirement" : {
"range" : [
{
"lower_bound" : "0.58.2",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SimplyDanny/SwiftLintPlugins"
},
{
"identity" : "swift-markdown",
"requirement" : {
"range" : [
{
"lower_bound" : "0.5.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-markdown"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
}
],
"manifest_display_name" : "TermKit",
"name" : "TermKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "TermKit",
"targets" : [
"TermKit"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Example",
"targets" : [
"Example"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "TermKitTests",
"module_type" : "SwiftTarget",
"name" : "TermKitTests",
"path" : "Tests/TermKitTests",
"sources" : [
"TermKitTests.swift",
"TerminfoTest.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"TermKit"
],
"type" : "test"
},
{
"c99name" : "TermKit",
"module_type" : "SwiftTarget",
"name" : "TermKit",
"path" : "Sources/TermKit",
"product_dependencies" : [
"TextBufferKit",
"SwiftTerm",
"Markdown",
"Logging"
],
"product_memberships" : [
"TermKit",
"Example"
],
"sources" : [
"Core/Application.swift",
"Core/AttributedString.swift",
"Core/BorderStyle.swift",
"Core/Clipboard.swift",
"Core/Dim.swift",
"Core/EdgeInsets.swift",
"Core/Events.swift",
"Core/Layer.swift",
"Core/Painter.swift",
"Core/Point.swift",
"Core/Pos.swift",
"Core/Rect.swift",
"Core/Responder.swift",
"Core/Size.swift",
"Core/StandardDesktop.swift",
"Core/SwiftLogging.swift",
"Core/Toplevel.swift",
"Core/View.swift",
"Core/WcWidth.swift",
"Core/Window.swift",
"Dialogs/Dialog.swift",
"Dialogs/FileDialog.swift",
"Dialogs/InputBox.swift",
"Dialogs/MessageBox.swift",
"Drivers/ConsoleDriver.swift",
"Drivers/CursesDriver.swift",
"Drivers/TTYDriver.swift",
"Drivers/TerminalCapability.swift",
"Drivers/TerminfoParser.swift",
"Drivers/UnixDriver.swift",
"Drivers/WindowsDriver.swift",
"Drivers/XtermCapability.swift",
"Extensions/StringChar.swift",
"Views/Button.swift",
"Views/Checkbox.swift",
"Views/CommandPalette.swift",
"Views/DataTable.swift",
"Views/Frame.swift",
"Views/HexView.swift",
"Views/Label.swift",
"Views/ListView.swift",
"Views/MarkdownView.swift",
"Views/Menu.swift",
"Views/ProgressBar.swift",
"Views/RadioGroup.swift",
"Views/ScrollView.swift",
"Views/SolidBackground.swift",
"Views/Spinner.swift",
"Views/SplitView.swift",
"Views/StatusBar.swift",
"Views/TabView.swift",
"Views/Terminal.swift",
"Views/TextField.swift",
"Views/TextView.swift"
],
"target_dependencies" : [
"Curses"
],
"type" : "library"
},
{
"c99name" : "Example",
"module_type" : "SwiftTarget",
"name" : "Example",
"path" : "Sources/Example",
"product_dependencies" : [
"SwiftTerm"
],
"product_memberships" : [
"Example"
],
"sources" : [
"DemoAssorted.swift",
"DemoBoxModel.swift",
"DemoCommandPalette.swift",
"DemoDataTable.swift",
"DemoDialogs.swift",
"DemoDrawing.swift",
"DemoHost.swift",
"DemoLayer.swift",
"DemoMarkdown.swift",
"DemoSplitView.swift",
"DemoStandardDesktop.swift",
"DemoStatusBar.swift",
"DemoTabBar.swift",
"DemoTerminal.swift",
"DemoWindows.swift",
"SpinnerDemo.swift",
"SpinnerTest.swift",
"main.swift"
],
"target_dependencies" : [
"TermKit"
],
"type" : "executable"
},
{
"c99name" : "Curses",
"module_type" : "SystemLibraryTarget",
"name" : "Curses",
"path" : "Sources/Curses",
"product_memberships" : [
"TermKit",
"Example"
],
"sources" : [
],
"type" : "system-target"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:496d77b037d0552dd779110e0d7093275ebb8376a63c7a364a5a4acca11a4ff5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-markdown
Fetching https://github.com/SimplyDanny/SwiftLintPlugins
Fetching https://github.com/migueldeicaza/SwiftTerm.git
Fetching https://github.com/migueldeicaza/TextBufferKit.git
Fetching https://github.com/apple/swift-log.git
[1/239] Fetching swiftlintplugins
[240/479] Fetching swiftlintplugins, textbufferkit
[480/7400] Fetching swiftlintplugins, textbufferkit, swift-markdown
[1795/11310] Fetching swiftlintplugins, textbufferkit, swift-markdown, swift-log
[4699/18504] Fetching swiftlintplugins, textbufferkit, swift-markdown, swift-log, swiftterm
Fetched https://github.com/apple/swift-log.git from cache (0.58s)
[12077/14594] Fetching swiftlintplugins, textbufferkit, swift-markdown, swiftterm
Fetched https://github.com/SimplyDanny/SwiftLintPlugins from cache (0.76s)
Fetched https://github.com/migueldeicaza/TextBufferKit.git from cache (0.76s)
Fetched https://github.com/apple/swift-markdown from cache (0.76s)
Fetched https://github.com/migueldeicaza/SwiftTerm.git from cache (0.89s)
Computing version for https://github.com/migueldeicaza/SwiftTerm.git
Computed https://github.com/migueldeicaza/SwiftTerm.git at 1.5.1 (1.39s)
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.74s)
Computing version for https://github.com/migueldeicaza/TextBufferKit.git
Computed https://github.com/migueldeicaza/TextBufferKit.git at 0.3.0 (2.72s)
Computing version for https://github.com/apple/swift-markdown
Computed https://github.com/apple/swift-markdown at 0.7.1 (0.52s)
Fetching https://github.com/swiftlang/swift-cmark.git
[1/18208] Fetching swift-cmark
Fetched https://github.com/swiftlang/swift-cmark.git from cache (0.91s)
Computing version for https://github.com/swiftlang/swift-cmark.git
Computed https://github.com/swiftlang/swift-cmark.git at 0.7.0 (1.52s)
Computing version for https://github.com/SimplyDanny/SwiftLintPlugins
Computed https://github.com/SimplyDanny/SwiftLintPlugins at 0.61.0 (0.45s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (0.46s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.1 (0.45s)
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/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-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-markdown
Working copy of https://github.com/apple/swift-markdown resolved at 0.7.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 (5.51s)
[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 cmark_ctype.c
[5/54] Compiling cmark-gfm houdini_href_e.c
[6/54] Compiling cmark-gfm footnotes.c
[7/54] Compiling cmark-gfm cmark.c
[8/54] Compiling cmark-gfm buffer.c
[9/54] Compiling cmark-gfm arena.c
[10/54] Compiling cmark-gfm commonmark.c
[11/54] Compiling cmark-gfm-extensions tasklist.c
[12/54] Compiling cmark-gfm-extensions tagfilter.c
[13/54] Compiling cmark-gfm-extensions strikethrough.c
[14/54] Compiling cmark-gfm-extensions core-extensions.c
[15/54] Compiling cmark-gfm-extensions ext_scanners.c
[16/54] Compiling cmark-gfm blocks.c
[17/54] Compiling cmark-gfm-extensions table.c
[17/54] Compiling cmark-gfm xml.c
[19/54] Compiling cmark-gfm syntax_extension.c
[19/54] Compiling cmark-gfm-extensions autolink.c
[21/54] Compiling cmark-gfm render.c
[22/54] Compiling cmark-gfm registry.c
[23/54] Compiling cmark-gfm references.c
[24/54] Write swift-version-24593BA9C3E375BF.txt
[25/54] Compiling cmark-gfm plugin.c
[26/54] Compiling cmark-gfm map.c
[27/54] Compiling cmark-gfm plaintext.c
[28/54] Compiling cmark-gfm linked_list.c
[29/54] Compiling cmark-gfm latex.c
[30/54] Compiling cmark-gfm man.c
[31/54] Compiling cmark-gfm utf8.c
[31/54] Write sources
[31/54] Compiling cmark-gfm iterator.c
[31/54] Write sources
[39/54] Compiling cmark-gfm inlines.c
[40/54] Compiling cmark-gfm scanners.c
[40/54] Compiling cmark-gfm node.c
[42/54] Compiling CAtomic CAtomic.c
[43/54] Compiling cmark-gfm html.c
[44/54] Compiling cmark-gfm houdini_html_u.c
[45/54] Compiling cmark-gfm houdini_html_e.c
[47/151] Compiling Markdown Link.swift
[48/151] Compiling Markdown Strikethrough.swift
[49/151] Compiling Markdown Strong.swift
[50/151] Compiling Markdown CustomInline.swift
[51/151] Compiling Markdown InlineCode.swift
[52/151] Compiling Markdown InlineHTML.swift
[53/151] Compiling Markdown LineBreak.swift
[54/151] Compiling Markdown SoftBreak.swift
[55/151] Compiling Markdown SymbolLink.swift
[56/159] Compiling Markdown BasicBlockContainer.swift
[57/159] Compiling Markdown BasicInlineContainer.swift
[58/159] Compiling Markdown BlockContainer.swift
[59/159] Compiling Markdown BlockMarkup.swift
[60/159] Compiling Markdown InlineContainer.swift
[61/159] Compiling Markdown InlineMarkup.swift
[62/159] Compiling Markdown ListItemContainer.swift
[63/159] Compiling Markdown AtomicCounter.swift
[64/159] Compiling Logging Logging.swift
[65/159] Compiling Logging MetadataProvider.swift
[66/159] Compiling Logging LogHandler.swift
[67/159] Emitting module Logging
[68/159] Compiling Logging Locks.swift
[69/160] Wrapping AST for Logging for debugging
[71/160] Compiling TextBufferKit FindMatch.swift
[72/161] Compiling Markdown TableCell.swift
[73/161] Compiling Markdown TableCellContainer.swift
[74/161] Compiling Markdown TableHead.swift
[75/161] Compiling Markdown TableRow.swift
[76/161] Compiling Markdown Replacement.swift
[77/161] Compiling Markdown SourceLocation.swift
[78/161] Compiling Markdown Emphasis.swift
[79/161] Compiling Markdown Image.swift
[80/161] Compiling Markdown InlineAttributes.swift
[81/161] Compiling Markdown OrderedList.swift
[82/161] Compiling Markdown UnorderedList.swift
[83/161] Compiling Markdown Paragraph.swift
[84/161] Compiling Markdown CodeBlock.swift
[85/161] Compiling Markdown HTMLBlock.swift
[86/161] Compiling Markdown Heading.swift
[87/161] Compiling Markdown ThematicBreak.swift
[88/161] Compiling Markdown Table.swift
[89/161] Compiling Markdown TableBody.swift
[90/161] Compiling Markdown BlockDirective.swift
[91/161] Compiling Markdown BlockQuote.swift
[92/161] Compiling Markdown CustomBlock.swift
[93/161] Compiling Markdown DoxygenAbstract.swift
[94/161] Compiling Markdown DoxygenDiscussion.swift
[95/161] Compiling Markdown DoxygenNote.swift
[96/161] Compiling Markdown DoxygenParameter.swift
[97/161] Compiling Markdown DoxygenReturns.swift
[98/161] Compiling Markdown ListItem.swift
[99/161] Compiling TextBufferKit Range.swift
[100/161] Compiling TextBufferKit SearchData.swift
[101/161] Compiling TextBufferKit PieceTreeTextBuffer.swift
[102/161] Compiling TextBufferKit Position.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[103/161] 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)
[104/163] Compiling Markdown LiteralMarkup.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 | }
[105/163] Compiling Markdown Markup.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 | }
[106/163] Compiling Markdown MarkupChildren.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 | }
[107/163] Compiling Markdown ChildIndexPath.swift
[108/163] Compiling Markdown DirectiveArgument.swift
[109/163] Compiling Markdown Document.swift
[113/163] Compiling Markdown MarkupData.swift
[114/163] Compiling Markdown PlainTextConvertibleMarkup.swift
[115/163] Compiling Markdown RawMarkup.swift
[116/163] Emitting module Markdown
/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
/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 |
[129/163] Emitting module TextBufferKit
[130/163] Compiling TextBufferKit PieceTreeBuilder.swift
[131/163] 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 |
[132/163] Compiling Markdown Text.swift
[133/163] Compiling Markdown Aside.swift
[134/163] Compiling Markdown BlockDirectiveParser.swift
[135/163] Compiling Markdown CommonMarkConverter.swift
[136/163] Compiling Markdown LazySplitLines.swift
[137/163] Compiling Markdown ParseOptions.swift
[138/163] Compiling Markdown RangeAdjuster.swift
[139/163] Compiling Markdown RangerTracker.swift
[140/163] Compiling Markdown MarkupRewriter.swift
[141/163] Compiling TextBufferKit TreeBase.swift
[142/163] Compiling Markdown CharacterExtensions.swift
[143/163] Compiling Markdown CollectionExtensions.swift
[144/163] Compiling Markdown StringExtensions.swift
[145/163] Compiling Markdown MarkupVisitor.swift
[146/163] Compiling Markdown MarkupWalker.swift
[147/163] Compiling Markdown HTMLFormatter.swift
[148/163] Compiling Markdown MarkupFormatter.swift
[149/163] Compiling Markdown MarkupTreeDumper.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:496d77b037d0552dd779110e0d7093275ebb8376a63c7a364a5a4acca11a4ff5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin SwiftLintCommandPlugin
[2/2] Compiling plugin SwiftLintBuildToolPlugin
[3/3] Compiling plugin GenerateManual
[4/4] Compiling plugin GenerateDoccReference
Building for debugging...
[4/13] Write swift-version-24593BA9C3E375BF.txt
[6/110] Compiling Logging MetadataProvider.swift
[7/110] Compiling TextBufferKit SearchData.swift
[8/111] Compiling TextBufferKit Position.swift
[9/111] Compiling TextBufferKit Range.swift
[10/111] Compiling Markdown DoxygenParameter.swift
/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 |
[11/111] Compiling Markdown DoxygenReturns.swift
/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 |
[12/111] Compiling Markdown ListItem.swift
/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 |
[13/111] Compiling Markdown LiteralMarkup.swift
/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
[14/111] Compiling Markdown Markup.swift
/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
[15/111] Compiling Markdown MarkupChildren.swift
/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/113] 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)
[17/113] Compiling Markdown BasicBlockContainer.swift
[18/113] Compiling Markdown BasicInlineContainer.swift
[19/113] Compiling Markdown BlockContainer.swift
[20/113] Compiling Markdown BlockMarkup.swift
[21/113] Compiling Markdown InlineContainer.swift
[22/113] Compiling Markdown InlineMarkup.swift
[23/113] Compiling Markdown ListItemContainer.swift
[24/113] Compiling Markdown AtomicCounter.swift
[25/121] Compiling TextBufferKit TreeBase.swift
[26/121] Compiling TextBufferKit PieceTreeBuilder.swift
[27/121] Compiling SwiftTerm TerminalOptions.swift
[28/121] Compiling SwiftTerm Utilities.swift
[29/121] Compiling TextBufferKit PieceTreeTextBuffer.swift
[30/121] Compiling Markdown BlockDirective.swift
[31/121] Compiling Markdown BlockQuote.swift
[32/121] Compiling Markdown CustomBlock.swift
[33/121] Compiling Markdown DoxygenAbstract.swift
[34/121] Compiling Markdown DoxygenDiscussion.swift
[35/121] Compiling Markdown DoxygenNote.swift
[39/121] Compiling Markdown OrderedList.swift
[40/121] Compiling Markdown UnorderedList.swift
[43/121] Compiling Markdown HTMLBlock.swift
[44/121] Compiling Markdown Heading.swift
[45/121] Compiling Markdown ThematicBreak.swift
[46/121] Compiling Markdown Table.swift
[47/121] Compiling Markdown TableBody.swift
[48/121] Compiling Logging LogHandler.swift
[49/121] Compiling Logging Logging.swift
[50/121] Compiling Logging Locks.swift
[51/121] Emitting module Logging
[52/122] Compiling TextBufferKit FindMatch.swift
[53/122] Emitting module TextBufferKit
[54/122] 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 |
[56/122] Emitting module Markdown
[57/122] Compiling Markdown RawMarkup.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 | }
BUILD FAILURE 6.1 android