The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-cli, reference main (70b998), with Swift 6.3 for Android on 18 Apr 2026 02:27:18 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/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CorvidLabs/swift-cli.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/CorvidLabs/swift-cli
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 70b998e Update copyright year in LICENSE file (#7)
Cloned https://github.com/CorvidLabs/swift-cli.git
Revision (git rev-parse @):
70b998e88514c06cfe56f8517c045a96356cd800
SUCCESS checkout https://github.com/CorvidLabs/swift-cli.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/CorvidLabs/swift-cli.git
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/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetching https://github.com/apple/swift-atomics.git
[1/2277] Fetching swift-docc-plugin
[229/4097] Fetching swift-docc-plugin, swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.44s)
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.44s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.87s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.6 (2.30s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3672] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.39s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.89s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.6
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/14] Write sources
[12/14] Compiling _AtomicsShims.c
[13/14] Write swift-version--4F562202D5529B1.txt
[15/41] Emitting module Atomics
[16/43] Emitting module ANSI
[17/44] Compiling ANSI Report.swift
[18/44] Compiling ANSI Screen.swift
[19/44] Compiling ANSI Style.swift
[20/44] Compiling Atomics OptionalRawRepresentable.swift
[21/44] Compiling Atomics RawRepresentable.swift
[22/44] Compiling Atomics IntegerOperations.swift
[23/44] Compiling Atomics Unmanaged extensions.swift
[26/44] Compiling Atomics AtomicBool.swift
[27/44] Compiling Atomics UnsafeAtomic.swift
[28/44] Compiling Atomics UnsafeAtomicLazyReference.swift
[29/44] Compiling Atomics AtomicInteger.swift
[30/44] Compiling Atomics AtomicOptionalWrappable.swift
[31/44] Compiling Atomics AtomicReference.swift
[32/44] Compiling Atomics ManagedAtomic.swift
[33/44] Compiling Atomics ManagedAtomicLazyReference.swift
[34/44] Compiling ANSI Cursor.swift
[35/44] Compiling Atomics AtomicMemoryOrderings.swift
[36/44] Compiling Atomics DoubleWord.swift
[37/44] Compiling Atomics IntegerConformances.swift
[38/44] Compiling Atomics PointerConformances.swift
[39/44] Compiling Atomics Primitives.native.swift
[40/44] Compiling Atomics AtomicStorage.swift
[41/44] Compiling Atomics AtomicValue.swift
[43/45] Compiling ANSI Erase.swift
[44/45] Compiling ANSI Color.swift
[45/45] Compiling ANSI Hyperlink.swift
[47/53] Compiling TerminalCore TerminalSize.swift
/host/spi-builder-workspace/Sources/TerminalCore/TerminalSize.swift:33:43: error: cannot find 'STDOUT_FILENO' in scope
31 |
32 |     /// Detect terminal size from file descriptor.
33 |     public static func detect(fd: Int32 = STDOUT_FILENO) -> TerminalSize {
   |                                           `- error: cannot find 'STDOUT_FILENO' in scope
34 |         #if canImport(Darwin)
35 |         var ws = winsize()
[48/53] Compiling TerminalCore TerminalConfiguration.swift
[49/53] Compiling TerminalCore TerminalError.swift
[50/53] Compiling TerminalCore TerminalCapabilities.swift
/host/spi-builder-workspace/Sources/TerminalCore/TerminalCapabilities.swift:65:21: error: cannot find 'isatty' in scope
 63 |
 64 |         // Check if running in a TTY
 65 |         let isTTY = isatty(STDOUT_FILENO) != 0
    |                     `- error: cannot find 'isatty' in scope
 66 |
 67 |         // Check for CI environment
/host/spi-builder-workspace/Sources/TerminalCore/TerminalCapabilities.swift:65:28: error: cannot find 'STDOUT_FILENO' in scope
 63 |
 64 |         // Check if running in a TTY
 65 |         let isTTY = isatty(STDOUT_FILENO) != 0
    |                            `- error: cannot find 'STDOUT_FILENO' in scope
 66 |
 67 |         // Check for CI environment
error: emit-module command failed with exit code 1 (use -v to see invocation)
[51/53] Compiling TerminalCore Logger.swift
[52/53] Emitting module TerminalCore
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:74:24: error: cannot find 'STDIN_FILENO' in scope
 72 |     /// Create a new terminal instance with default configuration.
 73 |     public init() {
 74 |         self.inputFD = STDIN_FILENO
    |                        `- error: cannot find 'STDIN_FILENO' in scope
 75 |         self.outputFD = STDOUT_FILENO
 76 |         self.errorFD = STDERR_FILENO
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:75:25: error: cannot find 'STDOUT_FILENO' in scope
 73 |     public init() {
 74 |         self.inputFD = STDIN_FILENO
 75 |         self.outputFD = STDOUT_FILENO
    |                         `- error: cannot find 'STDOUT_FILENO' in scope
 76 |         self.errorFD = STDERR_FILENO
 77 |         self.configuration = .default
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:76:24: error: cannot find 'STDERR_FILENO' in scope
 74 |         self.inputFD = STDIN_FILENO
 75 |         self.outputFD = STDOUT_FILENO
 76 |         self.errorFD = STDERR_FILENO
    |                        `- error: cannot find 'STDERR_FILENO' in scope
 77 |         self.configuration = .default
 78 |         self.capabilities = TerminalCapabilities.detect()
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:84:24: error: cannot find 'STDIN_FILENO' in scope
 82 |     /// Create a terminal instance with custom configuration.
 83 |     public init(configuration: TerminalConfiguration) {
 84 |         self.inputFD = STDIN_FILENO
    |                        `- error: cannot find 'STDIN_FILENO' in scope
 85 |         self.outputFD = STDOUT_FILENO
 86 |         self.errorFD = STDERR_FILENO
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:85:25: error: cannot find 'STDOUT_FILENO' in scope
 83 |     public init(configuration: TerminalConfiguration) {
 84 |         self.inputFD = STDIN_FILENO
 85 |         self.outputFD = STDOUT_FILENO
    |                         `- error: cannot find 'STDOUT_FILENO' in scope
 86 |         self.errorFD = STDERR_FILENO
 87 |         self.configuration = configuration
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:86:24: error: cannot find 'STDERR_FILENO' in scope
 84 |         self.inputFD = STDIN_FILENO
 85 |         self.outputFD = STDOUT_FILENO
 86 |         self.errorFD = STDERR_FILENO
    |                        `- error: cannot find 'STDERR_FILENO' in scope
 87 |         self.configuration = configuration
 88 |         self.capabilities = TerminalCapabilities.detect()
/host/spi-builder-workspace/Sources/TerminalCore/TerminalSize.swift:33:43: error: cannot find 'STDOUT_FILENO' in scope
31 |
32 |     /// Detect terminal size from file descriptor.
33 |     public static func detect(fd: Int32 = STDOUT_FILENO) -> TerminalSize {
   |                                           `- error: cannot find 'STDOUT_FILENO' in scope
34 |         #if canImport(Darwin)
35 |         var ws = winsize()
[53/53] Compiling TerminalCore Terminal.swift
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:74:24: error: cannot find 'STDIN_FILENO' in scope
 72 |     /// Create a new terminal instance with default configuration.
 73 |     public init() {
 74 |         self.inputFD = STDIN_FILENO
    |                        `- error: cannot find 'STDIN_FILENO' in scope
 75 |         self.outputFD = STDOUT_FILENO
 76 |         self.errorFD = STDERR_FILENO
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:75:25: error: cannot find 'STDOUT_FILENO' in scope
 73 |     public init() {
 74 |         self.inputFD = STDIN_FILENO
 75 |         self.outputFD = STDOUT_FILENO
    |                         `- error: cannot find 'STDOUT_FILENO' in scope
 76 |         self.errorFD = STDERR_FILENO
 77 |         self.configuration = .default
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:76:24: error: cannot find 'STDERR_FILENO' in scope
 74 |         self.inputFD = STDIN_FILENO
 75 |         self.outputFD = STDOUT_FILENO
 76 |         self.errorFD = STDERR_FILENO
    |                        `- error: cannot find 'STDERR_FILENO' in scope
 77 |         self.configuration = .default
 78 |         self.capabilities = TerminalCapabilities.detect()
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:84:24: error: cannot find 'STDIN_FILENO' in scope
 82 |     /// Create a terminal instance with custom configuration.
 83 |     public init(configuration: TerminalConfiguration) {
 84 |         self.inputFD = STDIN_FILENO
    |                        `- error: cannot find 'STDIN_FILENO' in scope
 85 |         self.outputFD = STDOUT_FILENO
 86 |         self.errorFD = STDERR_FILENO
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:85:25: error: cannot find 'STDOUT_FILENO' in scope
 83 |     public init(configuration: TerminalConfiguration) {
 84 |         self.inputFD = STDIN_FILENO
 85 |         self.outputFD = STDOUT_FILENO
    |                         `- error: cannot find 'STDOUT_FILENO' in scope
 86 |         self.errorFD = STDERR_FILENO
 87 |         self.configuration = configuration
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:86:24: error: cannot find 'STDERR_FILENO' in scope
 84 |         self.inputFD = STDIN_FILENO
 85 |         self.outputFD = STDOUT_FILENO
 86 |         self.errorFD = STDERR_FILENO
    |                        `- error: cannot find 'STDERR_FILENO' in scope
 87 |         self.configuration = configuration
 88 |         self.capabilities = TerminalCapabilities.detect()
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:121:9: warning: using '_' to ignore the result of a Void-returning function is redundant
119 |     public func writeError(_ string: String) {
120 |         let data = Array(string.utf8)
121 |         _ = data.withUnsafeBytes { buffer in
    |         `- warning: using '_' to ignore the result of a Void-returning function is redundant
122 |             #if canImport(Darwin)
123 |             Darwin.write(errorFD, buffer.baseAddress, buffer.count)
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:166:9: warning: using '_' to ignore the result of a Void-returning function is redundant
164 |     private func writeToFD(_ string: String) {
165 |         let data = Array(string.utf8)
166 |         _ = data.withUnsafeBytes { buffer in
    |         `- warning: using '_' to ignore the result of a Void-returning function is redundant
167 |             #if canImport(Darwin)
168 |             Darwin.write(outputFD, buffer.baseAddress, buffer.count)
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:329:19: error: cannot find 'pollfd' in scope
327 |      */
328 |     public func waitForInput(timeoutMs: Int) -> Bool {
329 |         var pfd = pollfd(fd: inputFD, events: Int16(POLLIN), revents: 0)
    |                   `- error: cannot find 'pollfd' in scope
330 |         let result = poll(&pfd, 1, Int32(timeoutMs))
331 |         return result > 0 && (pfd.revents & Int16(POLLIN)) != 0
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:329:53: error: cannot find 'POLLIN' in scope
327 |      */
328 |     public func waitForInput(timeoutMs: Int) -> Bool {
329 |         var pfd = pollfd(fd: inputFD, events: Int16(POLLIN), revents: 0)
    |                                                     `- error: cannot find 'POLLIN' in scope
330 |         let result = poll(&pfd, 1, Int32(timeoutMs))
331 |         return result > 0 && (pfd.revents & Int16(POLLIN)) != 0
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:330:22: error: cannot find 'poll' in scope
328 |     public func waitForInput(timeoutMs: Int) -> Bool {
329 |         var pfd = pollfd(fd: inputFD, events: Int16(POLLIN), revents: 0)
330 |         let result = poll(&pfd, 1, Int32(timeoutMs))
    |                      `- error: cannot find 'poll' in scope
331 |         return result > 0 && (pfd.revents & Int16(POLLIN)) != 0
332 |     }
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:331:51: error: cannot find 'POLLIN' in scope
329 |         var pfd = pollfd(fd: inputFD, events: Int16(POLLIN), revents: 0)
330 |         let result = poll(&pfd, 1, Int32(timeoutMs))
331 |         return result > 0 && (pfd.revents & Int16(POLLIN)) != 0
    |                                                   `- error: cannot find 'POLLIN' in scope
332 |     }
333 |
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:347:12: error: cannot find 'result' in scope
345 |         let result = Glibc.read(inputFD, &byte, 1)
346 |         #endif
347 |         if result == 0 {
    |            `- error: cannot find 'result' in scope
348 |             return nil  // EOF
349 |         } else if result < 0 {
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:349:19: error: cannot find 'result' in scope
347 |         if result == 0 {
348 |             return nil  // EOF
349 |         } else if result < 0 {
    |                   `- error: cannot find 'result' in scope
350 |             if errno == EAGAIN || errno == EWOULDBLOCK {
351 |                 return nil  // No data available
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:350:16: error: cannot find 'errno' in scope
348 |             return nil  // EOF
349 |         } else if result < 0 {
350 |             if errno == EAGAIN || errno == EWOULDBLOCK {
    |                `- error: cannot find 'errno' in scope
351 |                 return nil  // No data available
352 |             }
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:350:25: error: cannot find 'EAGAIN' in scope
348 |             return nil  // EOF
349 |         } else if result < 0 {
350 |             if errno == EAGAIN || errno == EWOULDBLOCK {
    |                         `- error: cannot find 'EAGAIN' in scope
351 |                 return nil  // No data available
352 |             }
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:350:35: error: cannot find 'errno' in scope
348 |             return nil  // EOF
349 |         } else if result < 0 {
350 |             if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                   `- error: cannot find 'errno' in scope
351 |                 return nil  // No data available
352 |             }
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:350:44: error: cannot find 'EWOULDBLOCK' in scope
348 |             return nil  // EOF
349 |         } else if result < 0 {
350 |             if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                            `- error: cannot find 'EWOULDBLOCK' in scope
351 |                 return nil  // No data available
352 |             }
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:353:76: error: cannot find 'strerror' in scope
351 |                 return nil  // No data available
352 |             }
353 |             throw TerminalError.inputError("Read failed: \(String(cString: strerror(errno)))")
    |                                                                            `- error: cannot find 'strerror' in scope
354 |         }
355 |         return byte
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:353:85: error: cannot find 'errno' in scope
351 |                 return nil  // No data available
352 |             }
353 |             throw TerminalError.inputError("Read failed: \(String(cString: strerror(errno)))")
    |                                                                                     `- error: cannot find 'errno' in scope
354 |         }
355 |         return byte
BUILD FAILURE 6.3 android