Build Information
Failed to build tui-fuzzy-finder, reference main (51b1bb), with Swift 6.2 for Android on 3 Nov 2025 21:59:05 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/juri/tui-fuzzy-finder.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/juri/tui-fuzzy-finder
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 51b1bb7 terminal-input: Bump to 0.1.0
Cloned https://github.com/juri/tui-fuzzy-finder.git
Revision (git rev-parse @):
51b1bb71680db1dc3916953d4c50612972d0ea5f
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/juri/tui-fuzzy-finder.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/juri/tui-fuzzy-finder.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-async-algorithms
Fetching https://github.com/juri/terminal-ansi
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/juri/terminal-input
[1/101] Fetching terminal-input
[102/2663] Fetching terminal-input, swift-service-lifecycle
[2664/3247] Fetching terminal-input, swift-service-lifecycle, terminal-ansi
[3248/19933] Fetching terminal-input, swift-service-lifecycle, terminal-ansi, swift-argument-parser
[3249/25590] Fetching terminal-input, swift-service-lifecycle, terminal-ansi, swift-argument-parser, swift-async-algorithms
Fetched https://github.com/juri/terminal-input from cache (0.35s)
[4439/25489] Fetching swift-service-lifecycle, terminal-ansi, swift-argument-parser, swift-async-algorithms
Fetched https://github.com/juri/terminal-ansi from cache (0.52s)
Fetched https://github.com/apple/swift-async-algorithms from cache (0.52s)
[9404/19248] Fetching swift-service-lifecycle, swift-argument-parser
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.90s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.90s)
Computing version for https://github.com/juri/terminal-input
Computed https://github.com/juri/terminal-input at 0.1.0 (1.26s)
Computing version for https://github.com/juri/terminal-ansi
Computed https://github.com/juri/terminal-ansi at 0.3.0 (1.43s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.9.0 (0.79s)
Fetching https://github.com/apple/swift-log.git
[1/4155] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.99s)
Computing version for https://github.com/apple/swift-async-algorithms
Computed https://github.com/apple/swift-async-algorithms at 1.0.4 (1.94s)
Fetching https://github.com/apple/swift-collections.git
[1/18286] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.99s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.2 (2.53s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (1.18s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (0.69s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.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/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.6.2
Creating working copy for https://github.com/juri/terminal-input
Working copy of https://github.com/juri/terminal-input resolved at 0.1.0
Creating working copy for https://github.com/juri/terminal-ansi
Working copy of https://github.com/juri/terminal-ansi resolved at 0.3.0
Creating working copy for https://github.com/apple/swift-async-algorithms
Working copy of https://github.com/apple/swift-async-algorithms resolved at 1.0.4
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.9.0
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/30] Write sources
[14/30] Compiling CSelect select.c
[15/30] Write swift-version--11D90AFD9DD3AB2.txt
[17/62] Emitting module InternalCollectionsUtilities
[18/64] Emitting module TerminalANSI
[19/64] Compiling TerminalInput TerminalKey.swift
[20/64] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[21/64] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[22/64] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[23/64] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[24/64] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[25/64] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[26/64] Compiling InternalCollectionsUtilities Debugging.swift
[27/64] Compiling InternalCollectionsUtilities Descriptions.swift
[28/64] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[29/64] Compiling InternalCollectionsUtilities Integer rank.swift
[30/64] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[31/64] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[32/64] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[33/64] Compiling InternalCollectionsUtilities _SortedCollection.swift
[34/64] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[35/64] Compiling InternalCollectionsUtilities UInt+reversed.swift
[36/64] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[37/65] Wrapping AST for InternalCollectionsUtilities for debugging
[39/112] Emitting module ArgumentParserToolInfo
[40/113] Compiling ArgumentParserToolInfo ToolInfo.swift
[41/136] Wrapping AST for ArgumentParserToolInfo for debugging
[43/180] Compiling ArgumentParser Option.swift
[44/180] Compiling ArgumentParser OptionGroup.swift
[45/182] Compiling ArgumentParser FishCompletionsGenerator.swift
[46/182] Compiling ArgumentParser ZshCompletionsGenerator.swift
[47/182] Compiling ArgumentParser ArgumentHelp.swift
[48/182] Compiling ArgumentParser ArgumentVisibility.swift
[49/182] Compiling ArgumentParser Argument.swift
[50/182] Compiling ArgumentParser ArgumentDiscussion.swift
[51/182] Compiling ArgumentParser CompletionKind.swift
[52/182] Compiling ArgumentParser Errors.swift
[53/182] Compiling ArgumentParser UsageGenerator.swift
[54/182] Compiling ArgumentParser InputKey.swift
[55/182] Compiling ArgumentParser InputOrigin.swift
[56/182] Compiling ArgumentParser Name.swift
[57/182] Compiling ArgumentParser Parsed.swift
[58/182] Compiling ArgumentParser ParsedValues.swift
[59/182] Compiling ArgumentParser ParserError.swift
[60/189] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[61/189] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[62/189] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[63/189] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[64/189] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[65/189] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[66/189] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[67/189] Compiling DequeModule _DequeSlot.swift
[68/189] Compiling DequeModule _UnsafeWrappedBuffer.swift
[69/189] Compiling ArgumentParser BashCompletionsGenerator.swift
[70/189] Compiling ArgumentParser CompletionsGenerator.swift
[71/189] Compiling ArgumentParser Flag.swift
[72/189] Compiling ArgumentParser NameSpecification.swift
[81/189] Compiling ArgumentParser CommandGroup.swift
[82/189] Compiling ArgumentParser EnumerableFlag.swift
[83/189] Compiling ArgumentParser ExpressibleByArgument.swift
[84/189] Compiling ArgumentParser SplitArguments.swift
[85/189] Compiling ArgumentParser DumpHelpGenerator.swift
[86/189] Compiling ArgumentParser HelpCommand.swift
[87/189] Compiling ArgumentParser HelpGenerator.swift
[88/189] Compiling ArgumentParser MessageInfo.swift
[89/189] Compiling ArgumentParser Platform.swift
[90/189] Compiling ArgumentParser SequenceExtensions.swift
[91/189] Compiling ArgumentParser StringExtensions.swift
[92/189] Compiling ArgumentParser SwiftExtensions.swift
[93/189] Compiling OrderedCollections OrderedSet+Diffing.swift
[94/189] Compiling OrderedCollections OrderedSet+Equatable.swift
[95/189] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[96/189] Compiling OrderedCollections OrderedSet+Hashable.swift
[97/189] Compiling ArgumentParser ParsableArguments.swift
[98/189] Compiling ArgumentParser ParsableCommand.swift
[99/189] Compiling ArgumentParser ArgumentDecoder.swift
[100/189] Compiling ArgumentParser ArgumentDefinition.swift
[101/189] Compiling ArgumentParser ArgumentSet.swift
[102/189] Compiling ArgumentParser CommandParser.swift
[103/189] Compiling ArgumentParser CollectionExtensions.swift
[104/189] Compiling ArgumentParser Mutex.swift
[105/189] Emitting module DequeModule
[106/190] Wrapping AST for DequeModule for debugging
[116/190] Compiling OrderedCollections OrderedSet+Sendable.swift
[117/190] Compiling OrderedCollections OrderedSet+SubSequence.swift
[118/190] Compiling OrderedCollections OrderedSet+Testing.swift
[119/190] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[120/190] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[121/190] Compiling OrderedCollections OrderedSet.swift
[122/190] Compiling OrderedCollections _UnsafeBitset.swift
[123/190] Emitting module OrderedCollections
[125/191] Compiling ConcurrencyHelpers LockedValueBox.swift
[126/191] Compiling ConcurrencyHelpers Lock.swift
[127/191] Emitting module ConcurrencyHelpers
[128/192] Wrapping AST for OrderedCollections for debugging
[129/192] Wrapping AST for ConcurrencyHelpers for debugging
[131/240] Emitting module UnixSignals
[132/240] Compiling UnixSignals UnixSignal.swift
[133/240] Compiling TerminalANSI ColorMode.swift
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/ColorMode.swift:25:15: error: cannot find 'isatty' in scope
23 | fileHandle: FileHandle,
24 | ) -> ColorMode {
25 | guard isatty(fileHandle.fileDescriptor) == 1 else { return .noColor }
| `- error: cannot find 'isatty' in scope
26 | return self.current(environment: environment ?? ProcessInfo.processInfo.environment)
27 | }
[134/240] Compiling TerminalANSI Color.swift
[135/240] Compiling TerminalANSI ANSIControlCode.swift
[136/240] Compiling TerminalANSI Terminal.swift
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Terminal.swift:34:15: error: cannot find 'isatty' in scope
32 | fileHandle: FileHandle
33 | ) {
34 | guard isatty(fileHandle.fileDescriptor) == 1 else { return nil }
| `- error: cannot find 'isatty' in scope
35 | self.environment = environment ?? ProcessInfo.processInfo.environment
36 | self.fileHandle = fileHandle
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Terminal.swift:41:9: error: cannot find 'tcflush' in scope
39 | public func close() throws {
40 | try self.fileHandle.synchronize()
41 | tcflush(self.fileHandle.fileDescriptor, TCOFLUSH)
| `- error: cannot find 'tcflush' in scope
42 | try self.fileHandle.close()
43 | }
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Terminal.swift:41:49: error: cannot find 'TCOFLUSH' in scope
39 | public func close() throws {
40 | try self.fileHandle.synchronize()
41 | tcflush(self.fileHandle.fileDescriptor, TCOFLUSH)
| `- error: cannot find 'TCOFLUSH' in scope
42 | try self.fileHandle.close()
43 | }
[137/240] Compiling TerminalANSI Inspect.swift
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Inspect.swift:159:27: error: cannot find 'termios' in scope
157 | }
158 |
159 | var originalTermios = termios()
| `- error: cannot find 'termios' in scope
160 | if tcgetattr(fileHandle.fileDescriptor, &originalTermios) == -1 {
161 | throw .callFailure(.tcgetattr, errno: errno)
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Inspect.swift:160:8: error: cannot find 'tcgetattr' in scope
158 |
159 | var originalTermios = termios()
160 | if tcgetattr(fileHandle.fileDescriptor, &originalTermios) == -1 {
| `- error: cannot find 'tcgetattr' in scope
161 | throw .callFailure(.tcgetattr, errno: errno)
162 | }
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Inspect.swift:161:47: error: cannot find 'errno' in scope
159 | var originalTermios = termios()
160 | if tcgetattr(fileHandle.fileDescriptor, &originalTermios) == -1 {
161 | throw .callFailure(.tcgetattr, errno: errno)
| `- error: cannot find 'errno' in scope
162 | }
163 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Inspect.swift:165:9: error: cannot find 'tcsetattr' in scope
163 |
164 | defer {
165 | tcsetattr(fileHandle.fileDescriptor, TCSAFLUSH, &originalTermios)
| `- error: cannot find 'tcsetattr' in scope
166 | }
167 |
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Inspect.swift:165:46: error: cannot find 'TCSAFLUSH' in scope
163 |
164 | defer {
165 | tcsetattr(fileHandle.fileDescriptor, TCSAFLUSH, &originalTermios)
| `- error: cannot find 'TCSAFLUSH' in scope
166 | }
167 |
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Inspect.swift:169:23: error: cannot find 'tcflag_t' in scope
167 |
168 | var noEcho = originalTermios
169 | noEcho.c_lflag ^= tcflag_t(ECHO)
| `- error: cannot find 'tcflag_t' in scope
170 | noEcho.c_lflag ^= tcflag_t(ICANON)
171 |
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Inspect.swift:169:32: error: cannot find 'ECHO' in scope
167 |
168 | var noEcho = originalTermios
169 | noEcho.c_lflag ^= tcflag_t(ECHO)
| `- error: cannot find 'ECHO' in scope
170 | noEcho.c_lflag ^= tcflag_t(ICANON)
171 |
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Inspect.swift:170:23: error: cannot find 'tcflag_t' in scope
168 | var noEcho = originalTermios
169 | noEcho.c_lflag ^= tcflag_t(ECHO)
170 | noEcho.c_lflag ^= tcflag_t(ICANON)
| `- error: cannot find 'tcflag_t' in scope
171 |
172 | tcsetattr(fileHandle.fileDescriptor, TCSAFLUSH, &noEcho)
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Inspect.swift:170:32: error: cannot find 'ICANON' in scope
168 | var noEcho = originalTermios
169 | noEcho.c_lflag ^= tcflag_t(ECHO)
170 | noEcho.c_lflag ^= tcflag_t(ICANON)
| `- error: cannot find 'ICANON' in scope
171 |
172 | tcsetattr(fileHandle.fileDescriptor, TCSAFLUSH, &noEcho)
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Inspect.swift:172:5: error: cannot find 'tcsetattr' in scope
170 | noEcho.c_lflag ^= tcflag_t(ICANON)
171 |
172 | tcsetattr(fileHandle.fileDescriptor, TCSAFLUSH, &noEcho)
| `- error: cannot find 'tcsetattr' in scope
173 |
174 | // first, send OSC query, which is ignored by terminal which do not support it
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Inspect.swift:172:42: error: cannot find 'TCSAFLUSH' in scope
170 | noEcho.c_lflag ^= tcflag_t(ICANON)
171 |
172 | tcsetattr(fileHandle.fileDescriptor, TCSAFLUSH, &noEcho)
| `- error: cannot find 'TCSAFLUSH' in scope
173 |
174 | // first, send OSC query, which is ignored by terminal which do not support it
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Inspect.swift:209:25: error: cannot find 'errno' in scope
207 |
208 | if result == -1 {
209 | let error = errno
| `- error: cannot find 'errno' in scope
210 | if error == EINTR {
211 | continue // Interrupted by signal, retry
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Inspect.swift:293:11: error: cannot find 'ioctl' in scope
291 | func isForeground(fileHandle: FileHandle) -> Bool {
292 | var pgrp = pid_t()
293 | guard ioctl(fileHandle.fileDescriptor, UInt(TIOCGPGRP), &pgrp) > -1 else { return false }
| `- error: cannot find 'ioctl' in scope
294 | return pgrp == getpgrp()
295 | }
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Inspect.swift:293:49: error: cannot find 'TIOCGPGRP' in scope
291 | func isForeground(fileHandle: FileHandle) -> Bool {
292 | var pgrp = pid_t()
293 | guard ioctl(fileHandle.fileDescriptor, UInt(TIOCGPGRP), &pgrp) > -1 else { return false }
| `- error: cannot find 'TIOCGPGRP' in scope
294 | return pgrp == getpgrp()
295 | }
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Inspect.swift:294:20: error: cannot find 'getpgrp' in scope
292 | var pgrp = pid_t()
293 | guard ioctl(fileHandle.fileDescriptor, UInt(TIOCGPGRP), &pgrp) > -1 else { return false }
294 | return pgrp == getpgrp()
| `- error: cannot find 'getpgrp' in scope
295 | }
296 |
[138/240] Compiling TerminalANSI Size.swift
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Size.swift:19:17: error: cannot find 'winsize' in scope
17 | @MainActor
18 | public static func current(fileHandle: FileHandle) throws(TerminalReadFailure) -> Self {
19 | var w = winsize()
| `- error: cannot find 'winsize' in scope
20 | guard ioctl(fileHandle.fileDescriptor, UInt(TIOCGWINSZ), &w) >= 0 else {
21 | throw .callFailure(.ioctl, errno: errno)
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Size.swift:20:15: error: cannot find 'ioctl' in scope
18 | public static func current(fileHandle: FileHandle) throws(TerminalReadFailure) -> Self {
19 | var w = winsize()
20 | guard ioctl(fileHandle.fileDescriptor, UInt(TIOCGWINSZ), &w) >= 0 else {
| `- error: cannot find 'ioctl' in scope
21 | throw .callFailure(.ioctl, errno: errno)
22 | }
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Size.swift:20:53: error: cannot find 'TIOCGWINSZ' in scope
18 | public static func current(fileHandle: FileHandle) throws(TerminalReadFailure) -> Self {
19 | var w = winsize()
20 | guard ioctl(fileHandle.fileDescriptor, UInt(TIOCGWINSZ), &w) >= 0 else {
| `- error: cannot find 'TIOCGWINSZ' in scope
21 | throw .callFailure(.ioctl, errno: errno)
22 | }
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/Size.swift:21:47: error: cannot find 'errno' in scope
19 | var w = winsize()
20 | guard ioctl(fileHandle.fileDescriptor, UInt(TIOCGWINSZ), &w) >= 0 else {
21 | throw .callFailure(.ioctl, errno: errno)
| `- error: cannot find 'errno' in scope
22 | }
23 | return TerminalSize(height: Int(w.ws_row), width: Int(w.ws_col))
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[139/240] Compiling TerminalANSI EnvironmentColorMode.swift
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/EnvironmentColorMode.swift:56:13: error: cannot find 'isatty' in scope
54 | false
55 | case .enable:
56 | isatty(fileHandle.fileDescriptor) == 1
| `- error: cannot find 'isatty' in scope
57 | case .force:
58 | true
/host/spi-builder-workspace/.build/checkouts/terminal-ansi/Sources/TerminalANSI/EnvironmentColorMode.swift:60:13: error: cannot find 'isatty' in scope
58 | true
59 | case .none:
60 | isatty(fileHandle.fileDescriptor) == 1
| `- error: cannot find 'isatty' in scope
61 | }
62 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[140/240] Emitting module TerminalInput
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:186:78: error: cannot find type 'termios' in scope
184 |
185 | /// Set the terminal represented by `fileHandle` into raw mode.
186 | public static func setRaw(fileHandle: FileHandle) throws(CallFailure) -> termios {
| `- error: cannot find type 'termios' in scope
187 | var originalTermios = termios()
188 |
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:214:26: error: cannot find type 'termios' in scope
212 | public static func unsetRaw(
213 | fileHandle: FileHandle,
214 | originalTermios: termios,
| `- error: cannot find type 'termios' in scope
215 | ) throws(CallFailure) {
216 | var originalTermios = originalTermios
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:186:78: error: cannot find type 'termios' in scope
184 |
185 | /// Set the terminal represented by `fileHandle` into raw mode.
186 | public static func setRaw(fileHandle: FileHandle) throws(CallFailure) -> termios {
| `- error: cannot find type 'termios' in scope
187 | var originalTermios = termios()
188 |
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:214:26: error: cannot find type 'termios' in scope
212 | public static func unsetRaw(
213 | fileHandle: FileHandle,
214 | originalTermios: termios,
| `- error: cannot find type 'termios' in scope
215 | ) throws(CallFailure) {
216 | var originalTermios = originalTermios
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:22:37: error: cannot find 'read' in scope
20 | if bufferPoint < bufferSize {
21 | var inputBuffer = [UInt8](repeating: 0, count: bufferSize - bufferPoint)
22 | let bytesRead = read(fileHandle.fileDescriptor, &inputBuffer, bufferSize - bufferPoint)
| `- error: cannot find 'read' in scope
23 | for byteIndex in 0..<bytesRead {
24 | let byte = inputBuffer[byteIndex]
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:164:30: error: cannot find type 'termios' in scope
162 | closure: (RawKeyReader) async throws(E) -> T
163 | ) async throws(FailureInRawMode<E>) -> T {
164 | let originalTermios: termios
| `- error: cannot find type 'termios' in scope
165 | do {
166 | originalTermios = try self.setRaw(fileHandle: fileHandle)
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:168:32: error: cannot convert value of type 'any Error' to expected argument type 'KeyReader.CallFailure'
166 | originalTermios = try self.setRaw(fileHandle: fileHandle)
167 | } catch {
168 | throw .callFailure(error)
| `- error: cannot convert value of type 'any Error' to expected argument type 'KeyReader.CallFailure'
169 | }
170 | let rawReader = RawKeyReader(fileHandle: fileHandle)
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:180:32: error: cannot convert value of type 'any Error' to expected argument type 'KeyReader.CallFailure'
178 | try self.unsetRaw(fileHandle: fileHandle, originalTermios: originalTermios)
179 | } catch {
180 | throw .callFailure(error)
| `- error: cannot convert value of type 'any Error' to expected argument type 'KeyReader.CallFailure'
181 | }
182 | return value
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:187:31: error: cannot find 'termios' in scope
185 | /// Set the terminal represented by `fileHandle` into raw mode.
186 | public static func setRaw(fileHandle: FileHandle) throws(CallFailure) -> termios {
187 | var originalTermios = termios()
| `- error: cannot find 'termios' in scope
188 |
189 | if tcgetattr(fileHandle.fileDescriptor, &originalTermios) == -1 {
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:189:12: error: cannot find 'tcgetattr' in scope
187 | var originalTermios = termios()
188 |
189 | if tcgetattr(fileHandle.fileDescriptor, &originalTermios) == -1 {
| `- error: cannot find 'tcgetattr' in scope
190 | throw CallFailure(call: .tcgetattr, errno: errno)
191 | }
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:190:56: error: cannot find 'errno' in scope
188 |
189 | if tcgetattr(fileHandle.fileDescriptor, &originalTermios) == -1 {
190 | throw CallFailure(call: .tcgetattr, errno: errno)
| `- error: cannot find 'errno' in scope
191 | }
192 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:195:25: error: cannot find 'tcflag_t' in scope
193 | var raw = originalTermios
194 |
195 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
| `- error: cannot find 'tcflag_t' in scope
196 | raw.c_oflag &= ~tcflag_t(OPOST)
197 | raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:195:34: error: cannot find 'BRKINT' in scope
193 | var raw = originalTermios
194 |
195 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
| `- error: cannot find 'BRKINT' in scope
196 | raw.c_oflag &= ~tcflag_t(OPOST)
197 | raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:195:43: error: cannot find 'ICRNL' in scope
193 | var raw = originalTermios
194 |
195 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
| `- error: cannot find 'ICRNL' in scope
196 | raw.c_oflag &= ~tcflag_t(OPOST)
197 | raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:195:51: error: cannot find 'INPCK' in scope
193 | var raw = originalTermios
194 |
195 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
| `- error: cannot find 'INPCK' in scope
196 | raw.c_oflag &= ~tcflag_t(OPOST)
197 | raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:195:59: error: cannot find 'ISTRIP' in scope
193 | var raw = originalTermios
194 |
195 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
| `- error: cannot find 'ISTRIP' in scope
196 | raw.c_oflag &= ~tcflag_t(OPOST)
197 | raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:195:68: error: cannot find 'IXON' in scope
193 | var raw = originalTermios
194 |
195 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
| `- error: cannot find 'IXON' in scope
196 | raw.c_oflag &= ~tcflag_t(OPOST)
197 | raw.c_cflag |= tcflag_t(CS8)
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:196:25: error: cannot find 'tcflag_t' in scope
194 |
195 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
196 | raw.c_oflag &= ~tcflag_t(OPOST)
| `- error: cannot find 'tcflag_t' in scope
197 | raw.c_cflag |= tcflag_t(CS8)
198 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:196:34: error: cannot find 'OPOST' in scope
194 |
195 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
196 | raw.c_oflag &= ~tcflag_t(OPOST)
| `- error: cannot find 'OPOST' in scope
197 | raw.c_cflag |= tcflag_t(CS8)
198 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:197:24: error: cannot find 'tcflag_t' in scope
195 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
196 | raw.c_oflag &= ~tcflag_t(OPOST)
197 | raw.c_cflag |= tcflag_t(CS8)
| `- error: cannot find 'tcflag_t' in scope
198 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
199 |
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:197:33: error: cannot find 'CS8' in scope
195 | raw.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
196 | raw.c_oflag &= ~tcflag_t(OPOST)
197 | raw.c_cflag |= tcflag_t(CS8)
| `- error: cannot find 'CS8' in scope
198 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
199 |
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:198:25: error: cannot find 'tcflag_t' in scope
196 | raw.c_oflag &= ~tcflag_t(OPOST)
197 | raw.c_cflag |= tcflag_t(CS8)
198 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
| `- error: cannot find 'tcflag_t' in scope
199 |
200 | withUnsafeMutablePointer(to: &raw.c_cc) {
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:198:34: error: cannot find 'ECHO' in scope
196 | raw.c_oflag &= ~tcflag_t(OPOST)
197 | raw.c_cflag |= tcflag_t(CS8)
198 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
| `- error: cannot find 'ECHO' in scope
199 |
200 | withUnsafeMutablePointer(to: &raw.c_cc) {
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:198:41: error: cannot find 'ICANON' in scope
196 | raw.c_oflag &= ~tcflag_t(OPOST)
197 | raw.c_cflag |= tcflag_t(CS8)
198 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
| `- error: cannot find 'ICANON' in scope
199 |
200 | withUnsafeMutablePointer(to: &raw.c_cc) {
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:198:50: error: cannot find 'IEXTEN' in scope
196 | raw.c_oflag &= ~tcflag_t(OPOST)
197 | raw.c_cflag |= tcflag_t(CS8)
198 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
| `- error: cannot find 'IEXTEN' in scope
199 |
200 | withUnsafeMutablePointer(to: &raw.c_cc) {
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:198:59: error: cannot find 'ISIG' in scope
196 | raw.c_oflag &= ~tcflag_t(OPOST)
197 | raw.c_cflag |= tcflag_t(CS8)
198 | raw.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)
| `- error: cannot find 'ISIG' in scope
199 |
200 | withUnsafeMutablePointer(to: &raw.c_cc) {
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:201:38: error: cannot find 'cc_t' in scope
199 |
200 | withUnsafeMutablePointer(to: &raw.c_cc) {
201 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { $0[Int(VMIN)] = 1 }
| `- error: cannot find 'cc_t' in scope
202 | }
203 |
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:201:63: error: cannot find 'NCCS' in scope
199 |
200 | withUnsafeMutablePointer(to: &raw.c_cc) {
201 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { $0[Int(VMIN)] = 1 }
| `- error: cannot find 'NCCS' in scope
202 | }
203 |
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:201:79: error: cannot find 'VMIN' in scope
199 |
200 | withUnsafeMutablePointer(to: &raw.c_cc) {
201 | $0.withMemoryRebound(to: cc_t.self, capacity: Int(NCCS)) { $0[Int(VMIN)] = 1 }
| `- error: cannot find 'VMIN' in scope
202 | }
203 |
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:204:12: error: cannot find 'tcsetattr' in scope
202 | }
203 |
204 | if tcsetattr(fileHandle.fileDescriptor, TCSAFLUSH, &raw) < 0 {
| `- error: cannot find 'tcsetattr' in scope
205 | throw CallFailure(call: .tcsetattr, errno: errno)
206 | }
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:204:49: error: cannot find 'TCSAFLUSH' in scope
202 | }
203 |
204 | if tcsetattr(fileHandle.fileDescriptor, TCSAFLUSH, &raw) < 0 {
| `- error: cannot find 'TCSAFLUSH' in scope
205 | throw CallFailure(call: .tcsetattr, errno: errno)
206 | }
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:205:56: error: cannot find 'errno' in scope
203 |
204 | if tcsetattr(fileHandle.fileDescriptor, TCSAFLUSH, &raw) < 0 {
205 | throw CallFailure(call: .tcsetattr, errno: errno)
| `- error: cannot find 'errno' in scope
206 | }
207 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:217:12: error: cannot find 'tcsetattr' in scope
215 | ) throws(CallFailure) {
216 | var originalTermios = originalTermios
217 | if tcsetattr(fileHandle.fileDescriptor, TCSAFLUSH, &originalTermios) < 0 {
| `- error: cannot find 'tcsetattr' in scope
218 | throw CallFailure(call: .tcsetattr, errno: errno)
219 | }
/host/spi-builder-workspace/.build/checkouts/terminal-input/Sources/TerminalInput/TerminalInput.swift:217:49: error: cannot find 'TCSAFLUSH' in scope
215 | ) throws(CallFailure) {
216 | var originalTermios = originalTermios
217 | if tcsetattr(fileHandle.fileDescriptor, TCSAFLUSH, &originalTermios) < 0 {
| `- error: cannot find 'TCSAFLUSH' in scope
218 | throw CallFailure(call: .tcsetattr, errno: errno)
219 | }
BUILD FAILURE 6.2 android