The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-cli, reference 0.1.2 (b2526e), with Swift 6.1 for Android on 4 Jan 2026 20:54:14 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CorvidLabs/swift-cli.git
Reference: 0.1.2
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
 * tag               0.1.2      -> FETCH_HEAD
HEAD is now at b2526e6 Fix multiline Text rendering bug and add DocC documentation (#3)
Cloned https://github.com/CorvidLabs/swift-cli.git
Revision (git rev-parse @):
b2526e6ccad5916f548a7fad5f5ce9d4f73c7be4
SUCCESS checkout https://github.com/CorvidLabs/swift-cli.git at 0.1.2
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/CorvidLabs/swift-cli.git
https://github.com/CorvidLabs/swift-cli.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swiftlang/swift-docc-plugin"
    },
    {
      "identity" : "swift-atomics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-atomics.git"
    }
  ],
  "manifest_display_name" : "swift-cli",
  "name" : "swift-cli",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "ANSI",
      "targets" : [
        "ANSI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "TerminalCore",
      "targets" : [
        "TerminalCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "TerminalStyle",
      "targets" : [
        "TerminalStyle"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "TerminalInput",
      "targets" : [
        "TerminalInput"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "TerminalLayout",
      "targets" : [
        "TerminalLayout"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "TerminalComponents",
      "targets" : [
        "TerminalComponents"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "TerminalGraphics",
      "targets" : [
        "TerminalGraphics"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "TerminalUI",
      "targets" : [
        "TerminalUI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CLI",
      "targets" : [
        "CLI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "swift-cli-example",
      "targets" : [
        "SwiftCLIExample"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TerminalUITests",
      "module_type" : "SwiftTarget",
      "name" : "TerminalUITests",
      "path" : "Tests/TerminalUITests",
      "sources" : [
        "TerminalUITests.swift"
      ],
      "target_dependencies" : [
        "TerminalUI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TerminalUI",
      "module_type" : "SwiftTarget",
      "name" : "TerminalUI",
      "path" : "Sources/TerminalUI",
      "product_memberships" : [
        "TerminalUI",
        "CLI",
        "swift-cli-example"
      ],
      "sources" : [
        "App.swift",
        "Border.swift",
        "DifferentialRenderer.swift",
        "EmptyView.swift",
        "ForEach.swift",
        "HStack.swift",
        "Padding.swift",
        "ProgressBarView.swift",
        "ProgressView.swift",
        "RenderBuffer.swift",
        "RenderEngine.swift",
        "SpinnerView.swift",
        "SystemMetrics.swift",
        "Text.swift",
        "VStack.swift",
        "View.swift",
        "ViewBuilder.swift",
        "ZStack.swift"
      ],
      "target_dependencies" : [
        "ANSI",
        "TerminalCore",
        "TerminalStyle",
        "TerminalInput",
        "TerminalLayout",
        "TerminalComponents",
        "TerminalGraphics"
      ],
      "type" : "library"
    },
    {
      "c99name" : "TerminalStyleTests",
      "module_type" : "SwiftTarget",
      "name" : "TerminalStyleTests",
      "path" : "Tests/TerminalStyleTests",
      "sources" : [
        "TerminalStyleTests.swift"
      ],
      "target_dependencies" : [
        "TerminalStyle"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TerminalStyle",
      "module_type" : "SwiftTarget",
      "name" : "TerminalStyle",
      "path" : "Sources/TerminalStyle",
      "product_memberships" : [
        "TerminalStyle",
        "TerminalInput",
        "TerminalLayout",
        "TerminalComponents",
        "TerminalUI",
        "CLI",
        "swift-cli-example"
      ],
      "sources" : [
        "Gradient.swift",
        "String+Style.swift",
        "StyledText.swift",
        "Terminal+Style.swift",
        "Theme.swift"
      ],
      "target_dependencies" : [
        "ANSI",
        "TerminalCore"
      ],
      "type" : "library"
    },
    {
      "c99name" : "TerminalLayoutTests",
      "module_type" : "SwiftTarget",
      "name" : "TerminalLayoutTests",
      "path" : "Tests/TerminalLayoutTests",
      "sources" : [
        "TerminalLayoutTests.swift"
      ],
      "target_dependencies" : [
        "TerminalLayout"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TerminalLayout",
      "module_type" : "SwiftTarget",
      "name" : "TerminalLayout",
      "path" : "Sources/TerminalLayout",
      "product_memberships" : [
        "TerminalLayout",
        "TerminalUI",
        "CLI",
        "swift-cli-example"
      ],
      "sources" : [
        "Box.swift",
        "BoxStyle.swift",
        "Divider.swift",
        "Panel.swift",
        "Renderable.swift",
        "Table.swift",
        "Terminal+Layout.swift",
        "Tree.swift"
      ],
      "target_dependencies" : [
        "ANSI",
        "TerminalCore",
        "TerminalStyle"
      ],
      "type" : "library"
    },
    {
      "c99name" : "TerminalInputTests",
      "module_type" : "SwiftTarget",
      "name" : "TerminalInputTests",
      "path" : "Tests/TerminalInputTests",
      "sources" : [
        "TerminalInputTests.swift"
      ],
      "target_dependencies" : [
        "TerminalInput"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TerminalInput",
      "module_type" : "SwiftTarget",
      "name" : "TerminalInput",
      "path" : "Sources/TerminalInput",
      "product_memberships" : [
        "TerminalInput",
        "TerminalComponents",
        "TerminalUI",
        "CLI",
        "swift-cli-example"
      ],
      "sources" : [
        "InputEvent.swift",
        "InputReader.swift",
        "KeyCode.swift",
        "LineEditor.swift",
        "Modifiers.swift",
        "MouseEvent.swift",
        "Terminal+Input.swift"
      ],
      "target_dependencies" : [
        "ANSI",
        "TerminalCore",
        "TerminalStyle"
      ],
      "type" : "library"
    },
    {
      "c99name" : "TerminalGraphicsTests",
      "module_type" : "SwiftTarget",
      "name" : "TerminalGraphicsTests",
      "path" : "Tests/TerminalGraphicsTests",
      "sources" : [
        "TerminalGraphicsTests.swift"
      ],
      "target_dependencies" : [
        "TerminalGraphics"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TerminalGraphics",
      "module_type" : "SwiftTarget",
      "name" : "TerminalGraphics",
      "path" : "Sources/TerminalGraphics",
      "product_memberships" : [
        "TerminalGraphics",
        "TerminalUI",
        "CLI",
        "swift-cli-example"
      ],
      "sources" : [
        "ITerm2Image.swift",
        "ImageProtocol.swift",
        "KittyImage.swift",
        "SixelImage.swift",
        "TerminalImage.swift"
      ],
      "target_dependencies" : [
        "ANSI",
        "TerminalCore"
      ],
      "type" : "library"
    },
    {
      "c99name" : "TerminalCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "TerminalCoreTests",
      "path" : "Tests/TerminalCoreTests",
      "sources" : [
        "TerminalCoreTests.swift"
      ],
      "target_dependencies" : [
        "TerminalCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TerminalCore",
      "module_type" : "SwiftTarget",
      "name" : "TerminalCore",
      "path" : "Sources/TerminalCore",
      "product_dependencies" : [
        "Atomics"
      ],
      "product_memberships" : [
        "TerminalCore",
        "TerminalStyle",
        "TerminalInput",
        "TerminalLayout",
        "TerminalComponents",
        "TerminalGraphics",
        "TerminalUI",
        "CLI",
        "swift-cli-example"
      ],
      "sources" : [
        "Logger.swift",
        "Terminal.swift",
        "TerminalCapabilities.swift",
        "TerminalConfiguration.swift",
        "TerminalError.swift",
        "TerminalSize.swift"
      ],
      "target_dependencies" : [
        "ANSI"
      ],
      "type" : "library"
    },
    {
      "c99name" : "TerminalComponentsTests",
      "module_type" : "SwiftTarget",
      "name" : "TerminalComponentsTests",
      "path" : "Tests/TerminalComponentsTests",
      "sources" : [
        "TerminalComponentsTests.swift"
      ],
      "target_dependencies" : [
        "TerminalComponents"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TerminalComponents",
      "module_type" : "SwiftTarget",
      "name" : "TerminalComponents",
      "path" : "Sources/TerminalComponents",
      "product_memberships" : [
        "TerminalComponents",
        "TerminalUI",
        "CLI",
        "swift-cli-example"
      ],
      "sources" : [
        "Confirm.swift",
        "Input.swift",
        "MultiSelect.swift",
        "ProgressBar.swift",
        "Select.swift",
        "Spinner.swift"
      ],
      "target_dependencies" : [
        "ANSI",
        "TerminalCore",
        "TerminalStyle",
        "TerminalInput"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftCLIExample",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCLIExample",
      "path" : "Sources/SwiftCLIExample",
      "product_memberships" : [
        "swift-cli-example"
      ],
      "sources" : [
        "Apps/ExploreApp.swift",
        "Apps/FileBrowserApp.swift",
        "Apps/NetworkMonitorApp.swift",
        "Apps/SnakeApp.swift",
        "Apps/TestRunnerApp.swift",
        "Apps/TextEditorApp.swift",
        "Apps/TodoApp.swift",
        "SwiftCLIExample.swift"
      ],
      "target_dependencies" : [
        "CLI"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "CLI",
      "module_type" : "SwiftTarget",
      "name" : "CLI",
      "path" : "Sources/CLI",
      "product_memberships" : [
        "CLI",
        "swift-cli-example"
      ],
      "sources" : [
        "SwiftCLI.swift"
      ],
      "target_dependencies" : [
        "ANSI",
        "TerminalCore",
        "TerminalStyle",
        "TerminalInput",
        "TerminalLayout",
        "TerminalComponents",
        "TerminalGraphics",
        "TerminalUI"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ANSITests",
      "module_type" : "SwiftTarget",
      "name" : "ANSITests",
      "path" : "Tests/ANSITests",
      "sources" : [
        "ANSITests.swift"
      ],
      "target_dependencies" : [
        "ANSI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ANSI",
      "module_type" : "SwiftTarget",
      "name" : "ANSI",
      "path" : "Sources/ANSI",
      "product_memberships" : [
        "ANSI",
        "TerminalCore",
        "TerminalStyle",
        "TerminalInput",
        "TerminalLayout",
        "TerminalComponents",
        "TerminalGraphics",
        "TerminalUI",
        "CLI",
        "swift-cli-example"
      ],
      "sources" : [
        "ANSI.swift",
        "BoxDrawing.swift",
        "Color.swift",
        "Cursor.swift",
        "Erase.swift",
        "Hyperlink.swift",
        "Report.swift",
        "Screen.swift",
        "Style.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.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:df03784badd7f27c5aaf58aceda7a3eace61955b295b55f91184969c309ad8ef
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2158] Fetching swift-docc-plugin
[239/3978] Fetching swift-docc-plugin, swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.42s)
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.42s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.00s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.5 (2.39s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3632] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.38s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.10s)
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
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.5
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/28] Write sources
[13/28] Write swift-version-24593BA9C3E375BF.txt
[14/28] Compiling _AtomicsShims.c
[16/55] Compiling Atomics UnsafeAtomic.swift
[17/55] Compiling Atomics UnsafeAtomicLazyReference.swift
[18/57] Emitting module Atomics
[19/57] Compiling Atomics OptionalRawRepresentable.swift
[20/57] Compiling Atomics RawRepresentable.swift
[21/57] Compiling Atomics AtomicBool.swift
[22/57] Compiling Atomics AtomicMemoryOrderings.swift
[23/57] Compiling Atomics DoubleWord.swift
[24/57] Compiling Atomics AtomicStorage.swift
[25/57] Compiling Atomics AtomicValue.swift
[26/57] Compiling Atomics ManagedAtomic.swift
[27/57] Compiling Atomics ManagedAtomicLazyReference.swift
[28/57] Compiling Atomics IntegerOperations.swift
[29/57] Compiling Atomics Unmanaged extensions.swift
[30/57] Compiling Atomics IntegerConformances.swift
[31/57] Compiling Atomics PointerConformances.swift
[32/57] Compiling Atomics Primitives.native.swift
[33/57] Compiling Atomics AtomicInteger.swift
[34/57] Compiling Atomics AtomicOptionalWrappable.swift
[35/57] Compiling Atomics AtomicReference.swift
[36/57] Compiling ANSI Report.swift
[37/58] Compiling ANSI Screen.swift
[38/59] Compiling ANSI Cursor.swift
[42/59] Emitting module ANSI
[43/59] Compiling ANSI Color.swift
[43/59] Wrapping AST for Atomics for debugging
[45/59] Compiling ANSI Style.swift
[46/59] Compiling ANSI Erase.swift
[47/59] Compiling ANSI Hyperlink.swift
[48/60] Wrapping AST for ANSI for debugging
[50/67] 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()
[51/67] Compiling TerminalCore TerminalConfiguration.swift
[52/67] Compiling TerminalCore TerminalError.swift
[53/67] 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)
[54/67] Compiling TerminalCore Logger.swift
[55/67] Emitting module TerminalCore
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:72:24: error: cannot find 'STDIN_FILENO' in scope
 70 |     /// Create a new terminal instance with default configuration.
 71 |     public init() {
 72 |         self.inputFD = STDIN_FILENO
    |                        `- error: cannot find 'STDIN_FILENO' in scope
 73 |         self.outputFD = STDOUT_FILENO
 74 |         self.errorFD = STDERR_FILENO
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:73:25: error: cannot find 'STDOUT_FILENO' in scope
 71 |     public init() {
 72 |         self.inputFD = STDIN_FILENO
 73 |         self.outputFD = STDOUT_FILENO
    |                         `- error: cannot find 'STDOUT_FILENO' in scope
 74 |         self.errorFD = STDERR_FILENO
 75 |         self.configuration = .default
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:74:24: error: cannot find 'STDERR_FILENO' in scope
 72 |         self.inputFD = STDIN_FILENO
 73 |         self.outputFD = STDOUT_FILENO
 74 |         self.errorFD = STDERR_FILENO
    |                        `- error: cannot find 'STDERR_FILENO' in scope
 75 |         self.configuration = .default
 76 |         self.capabilities = TerminalCapabilities.detect()
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:82:24: error: cannot find 'STDIN_FILENO' in scope
 80 |     /// Create a terminal instance with custom configuration.
 81 |     public init(configuration: TerminalConfiguration) {
 82 |         self.inputFD = STDIN_FILENO
    |                        `- error: cannot find 'STDIN_FILENO' in scope
 83 |         self.outputFD = STDOUT_FILENO
 84 |         self.errorFD = STDERR_FILENO
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:83:25: error: cannot find 'STDOUT_FILENO' in scope
 81 |     public init(configuration: TerminalConfiguration) {
 82 |         self.inputFD = STDIN_FILENO
 83 |         self.outputFD = STDOUT_FILENO
    |                         `- error: cannot find 'STDOUT_FILENO' in scope
 84 |         self.errorFD = STDERR_FILENO
 85 |         self.configuration = configuration
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:84:24: error: cannot find 'STDERR_FILENO' in scope
 82 |         self.inputFD = STDIN_FILENO
 83 |         self.outputFD = STDOUT_FILENO
 84 |         self.errorFD = STDERR_FILENO
    |                        `- error: cannot find 'STDERR_FILENO' in scope
 85 |         self.configuration = configuration
 86 |         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()
[56/67] Compiling TerminalCore Terminal.swift
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:72:24: error: cannot find 'STDIN_FILENO' in scope
 70 |     /// Create a new terminal instance with default configuration.
 71 |     public init() {
 72 |         self.inputFD = STDIN_FILENO
    |                        `- error: cannot find 'STDIN_FILENO' in scope
 73 |         self.outputFD = STDOUT_FILENO
 74 |         self.errorFD = STDERR_FILENO
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:73:25: error: cannot find 'STDOUT_FILENO' in scope
 71 |     public init() {
 72 |         self.inputFD = STDIN_FILENO
 73 |         self.outputFD = STDOUT_FILENO
    |                         `- error: cannot find 'STDOUT_FILENO' in scope
 74 |         self.errorFD = STDERR_FILENO
 75 |         self.configuration = .default
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:74:24: error: cannot find 'STDERR_FILENO' in scope
 72 |         self.inputFD = STDIN_FILENO
 73 |         self.outputFD = STDOUT_FILENO
 74 |         self.errorFD = STDERR_FILENO
    |                        `- error: cannot find 'STDERR_FILENO' in scope
 75 |         self.configuration = .default
 76 |         self.capabilities = TerminalCapabilities.detect()
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:82:24: error: cannot find 'STDIN_FILENO' in scope
 80 |     /// Create a terminal instance with custom configuration.
 81 |     public init(configuration: TerminalConfiguration) {
 82 |         self.inputFD = STDIN_FILENO
    |                        `- error: cannot find 'STDIN_FILENO' in scope
 83 |         self.outputFD = STDOUT_FILENO
 84 |         self.errorFD = STDERR_FILENO
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:83:25: error: cannot find 'STDOUT_FILENO' in scope
 81 |     public init(configuration: TerminalConfiguration) {
 82 |         self.inputFD = STDIN_FILENO
 83 |         self.outputFD = STDOUT_FILENO
    |                         `- error: cannot find 'STDOUT_FILENO' in scope
 84 |         self.errorFD = STDERR_FILENO
 85 |         self.configuration = configuration
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:84:24: error: cannot find 'STDERR_FILENO' in scope
 82 |         self.inputFD = STDIN_FILENO
 83 |         self.outputFD = STDOUT_FILENO
 84 |         self.errorFD = STDERR_FILENO
    |                        `- error: cannot find 'STDERR_FILENO' in scope
 85 |         self.configuration = configuration
 86 |         self.capabilities = TerminalCapabilities.detect()
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:119:9: warning: using '_' to ignore the result of a Void-returning function is redundant
117 |     public func writeError(_ string: String) {
118 |         let data = Array(string.utf8)
119 |         _ = data.withUnsafeBytes { buffer in
    |         `- warning: using '_' to ignore the result of a Void-returning function is redundant
120 |             #if canImport(Darwin)
121 |             Darwin.write(errorFD, buffer.baseAddress, buffer.count)
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:164:9: warning: using '_' to ignore the result of a Void-returning function is redundant
162 |     private func writeToFD(_ string: String) {
163 |         let data = Array(string.utf8)
164 |         _ = data.withUnsafeBytes { buffer in
    |         `- warning: using '_' to ignore the result of a Void-returning function is redundant
165 |             #if canImport(Darwin)
166 |             Darwin.write(outputFD, buffer.baseAddress, buffer.count)
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:323:19: error: cannot find 'pollfd' in scope
321 |     /// This is much faster than polling with sleep loops.
322 |     public func waitForInput(timeoutMs: Int) -> Bool {
323 |         var pfd = pollfd(fd: inputFD, events: Int16(POLLIN), revents: 0)
    |                   `- error: cannot find 'pollfd' in scope
324 |         let result = poll(&pfd, 1, Int32(timeoutMs))
325 |         return result > 0 && (pfd.revents & Int16(POLLIN)) != 0
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:323:53: error: cannot find 'POLLIN' in scope
321 |     /// This is much faster than polling with sleep loops.
322 |     public func waitForInput(timeoutMs: Int) -> Bool {
323 |         var pfd = pollfd(fd: inputFD, events: Int16(POLLIN), revents: 0)
    |                                                     `- error: cannot find 'POLLIN' in scope
324 |         let result = poll(&pfd, 1, Int32(timeoutMs))
325 |         return result > 0 && (pfd.revents & Int16(POLLIN)) != 0
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:324:22: error: cannot find 'poll' in scope
322 |     public func waitForInput(timeoutMs: Int) -> Bool {
323 |         var pfd = pollfd(fd: inputFD, events: Int16(POLLIN), revents: 0)
324 |         let result = poll(&pfd, 1, Int32(timeoutMs))
    |                      `- error: cannot find 'poll' in scope
325 |         return result > 0 && (pfd.revents & Int16(POLLIN)) != 0
326 |     }
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:325:51: error: cannot find 'POLLIN' in scope
323 |         var pfd = pollfd(fd: inputFD, events: Int16(POLLIN), revents: 0)
324 |         let result = poll(&pfd, 1, Int32(timeoutMs))
325 |         return result > 0 && (pfd.revents & Int16(POLLIN)) != 0
    |                                                   `- error: cannot find 'POLLIN' in scope
326 |     }
327 |
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:341:12: error: cannot find 'result' in scope
339 |         let result = Glibc.read(inputFD, &byte, 1)
340 |         #endif
341 |         if result == 0 {
    |            `- error: cannot find 'result' in scope
342 |             return nil  // EOF
343 |         } else if result < 0 {
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:343:19: error: cannot find 'result' in scope
341 |         if result == 0 {
342 |             return nil  // EOF
343 |         } else if result < 0 {
    |                   `- error: cannot find 'result' in scope
344 |             if errno == EAGAIN || errno == EWOULDBLOCK {
345 |                 return nil  // No data available
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:344:16: error: cannot find 'errno' in scope
342 |             return nil  // EOF
343 |         } else if result < 0 {
344 |             if errno == EAGAIN || errno == EWOULDBLOCK {
    |                `- error: cannot find 'errno' in scope
345 |                 return nil  // No data available
346 |             }
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:344:25: error: cannot find 'EAGAIN' in scope
342 |             return nil  // EOF
343 |         } else if result < 0 {
344 |             if errno == EAGAIN || errno == EWOULDBLOCK {
    |                         `- error: cannot find 'EAGAIN' in scope
345 |                 return nil  // No data available
346 |             }
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:344:35: error: cannot find 'errno' in scope
342 |             return nil  // EOF
343 |         } else if result < 0 {
344 |             if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                   `- error: cannot find 'errno' in scope
345 |                 return nil  // No data available
346 |             }
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:344:44: error: cannot find 'EWOULDBLOCK' in scope
342 |             return nil  // EOF
343 |         } else if result < 0 {
344 |             if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                            `- error: cannot find 'EWOULDBLOCK' in scope
345 |                 return nil  // No data available
346 |             }
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:347:76: error: cannot find 'strerror' in scope
345 |                 return nil  // No data available
346 |             }
347 |             throw TerminalError.inputError("Read failed: \(String(cString: strerror(errno)))")
    |                                                                            `- error: cannot find 'strerror' in scope
348 |         }
349 |         return byte
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:347:85: error: cannot find 'errno' in scope
345 |                 return nil  // No data available
346 |             }
347 |             throw TerminalError.inputError("Read failed: \(String(cString: strerror(errno)))")
    |                                                                                     `- error: cannot find 'errno' in scope
348 |         }
349 |         return byte
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:df03784badd7f27c5aaf58aceda7a3eace61955b295b55f91184969c309ad8ef
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 Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/16] Write swift-version-24593BA9C3E375BF.txt
[4/43] Compiling ANSI Cursor.swift
[5/43] Compiling ANSI Erase.swift
[6/44] Compiling ANSI Report.swift
[7/44] Compiling ANSI Screen.swift
[8/44] Compiling ANSI Hyperlink.swift
[9/44] Compiling Atomics AtomicStorage.swift
[10/44] Compiling Atomics AtomicValue.swift
[11/44] Compiling Atomics AtomicMemoryOrderings.swift
[12/44] Compiling Atomics DoubleWord.swift
[13/46] Compiling Atomics ManagedAtomic.swift
[14/46] Compiling Atomics ManagedAtomicLazyReference.swift
[15/46] Compiling Atomics UnsafeAtomic.swift
[16/46] Compiling Atomics UnsafeAtomicLazyReference.swift
[17/46] Compiling ANSI Color.swift
[18/46] Emitting module ANSI
[19/46] Compiling Atomics OptionalRawRepresentable.swift
[20/46] Compiling Atomics RawRepresentable.swift
[21/46] Compiling ANSI Style.swift
[23/47] Compiling Atomics AtomicInteger.swift
[24/47] Compiling Atomics AtomicOptionalWrappable.swift
[25/47] Compiling Atomics AtomicReference.swift
[26/47] Compiling Atomics IntegerOperations.swift
[27/47] Compiling Atomics Unmanaged extensions.swift
[28/46] Emitting module Atomics
[31/46] Compiling Atomics AtomicBool.swift
[32/46] Compiling Atomics IntegerConformances.swift
[33/46] Compiling Atomics PointerConformances.swift
[34/46] Compiling Atomics Primitives.native.swift
[36/53] Compiling TerminalCore TerminalError.swift
[37/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()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[38/53] Emitting module TerminalCore
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:72:24: error: cannot find 'STDIN_FILENO' in scope
 70 |     /// Create a new terminal instance with default configuration.
 71 |     public init() {
 72 |         self.inputFD = STDIN_FILENO
    |                        `- error: cannot find 'STDIN_FILENO' in scope
 73 |         self.outputFD = STDOUT_FILENO
 74 |         self.errorFD = STDERR_FILENO
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:73:25: error: cannot find 'STDOUT_FILENO' in scope
 71 |     public init() {
 72 |         self.inputFD = STDIN_FILENO
 73 |         self.outputFD = STDOUT_FILENO
    |                         `- error: cannot find 'STDOUT_FILENO' in scope
 74 |         self.errorFD = STDERR_FILENO
 75 |         self.configuration = .default
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:74:24: error: cannot find 'STDERR_FILENO' in scope
 72 |         self.inputFD = STDIN_FILENO
 73 |         self.outputFD = STDOUT_FILENO
 74 |         self.errorFD = STDERR_FILENO
    |                        `- error: cannot find 'STDERR_FILENO' in scope
 75 |         self.configuration = .default
 76 |         self.capabilities = TerminalCapabilities.detect()
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:82:24: error: cannot find 'STDIN_FILENO' in scope
 80 |     /// Create a terminal instance with custom configuration.
 81 |     public init(configuration: TerminalConfiguration) {
 82 |         self.inputFD = STDIN_FILENO
    |                        `- error: cannot find 'STDIN_FILENO' in scope
 83 |         self.outputFD = STDOUT_FILENO
 84 |         self.errorFD = STDERR_FILENO
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:83:25: error: cannot find 'STDOUT_FILENO' in scope
 81 |     public init(configuration: TerminalConfiguration) {
 82 |         self.inputFD = STDIN_FILENO
 83 |         self.outputFD = STDOUT_FILENO
    |                         `- error: cannot find 'STDOUT_FILENO' in scope
 84 |         self.errorFD = STDERR_FILENO
 85 |         self.configuration = configuration
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:84:24: error: cannot find 'STDERR_FILENO' in scope
 82 |         self.inputFD = STDIN_FILENO
 83 |         self.outputFD = STDOUT_FILENO
 84 |         self.errorFD = STDERR_FILENO
    |                        `- error: cannot find 'STDERR_FILENO' in scope
 85 |         self.configuration = configuration
 86 |         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()
[39/53] Compiling TerminalCore TerminalConfiguration.swift
[40/53] Compiling TerminalCore Logger.swift
[41/53] Compiling TerminalCore Terminal.swift
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:72:24: error: cannot find 'STDIN_FILENO' in scope
 70 |     /// Create a new terminal instance with default configuration.
 71 |     public init() {
 72 |         self.inputFD = STDIN_FILENO
    |                        `- error: cannot find 'STDIN_FILENO' in scope
 73 |         self.outputFD = STDOUT_FILENO
 74 |         self.errorFD = STDERR_FILENO
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:73:25: error: cannot find 'STDOUT_FILENO' in scope
 71 |     public init() {
 72 |         self.inputFD = STDIN_FILENO
 73 |         self.outputFD = STDOUT_FILENO
    |                         `- error: cannot find 'STDOUT_FILENO' in scope
 74 |         self.errorFD = STDERR_FILENO
 75 |         self.configuration = .default
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:74:24: error: cannot find 'STDERR_FILENO' in scope
 72 |         self.inputFD = STDIN_FILENO
 73 |         self.outputFD = STDOUT_FILENO
 74 |         self.errorFD = STDERR_FILENO
    |                        `- error: cannot find 'STDERR_FILENO' in scope
 75 |         self.configuration = .default
 76 |         self.capabilities = TerminalCapabilities.detect()
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:82:24: error: cannot find 'STDIN_FILENO' in scope
 80 |     /// Create a terminal instance with custom configuration.
 81 |     public init(configuration: TerminalConfiguration) {
 82 |         self.inputFD = STDIN_FILENO
    |                        `- error: cannot find 'STDIN_FILENO' in scope
 83 |         self.outputFD = STDOUT_FILENO
 84 |         self.errorFD = STDERR_FILENO
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:83:25: error: cannot find 'STDOUT_FILENO' in scope
 81 |     public init(configuration: TerminalConfiguration) {
 82 |         self.inputFD = STDIN_FILENO
 83 |         self.outputFD = STDOUT_FILENO
    |                         `- error: cannot find 'STDOUT_FILENO' in scope
 84 |         self.errorFD = STDERR_FILENO
 85 |         self.configuration = configuration
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:84:24: error: cannot find 'STDERR_FILENO' in scope
 82 |         self.inputFD = STDIN_FILENO
 83 |         self.outputFD = STDOUT_FILENO
 84 |         self.errorFD = STDERR_FILENO
    |                        `- error: cannot find 'STDERR_FILENO' in scope
 85 |         self.configuration = configuration
 86 |         self.capabilities = TerminalCapabilities.detect()
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:119:9: warning: using '_' to ignore the result of a Void-returning function is redundant
117 |     public func writeError(_ string: String) {
118 |         let data = Array(string.utf8)
119 |         _ = data.withUnsafeBytes { buffer in
    |         `- warning: using '_' to ignore the result of a Void-returning function is redundant
120 |             #if canImport(Darwin)
121 |             Darwin.write(errorFD, buffer.baseAddress, buffer.count)
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:164:9: warning: using '_' to ignore the result of a Void-returning function is redundant
162 |     private func writeToFD(_ string: String) {
163 |         let data = Array(string.utf8)
164 |         _ = data.withUnsafeBytes { buffer in
    |         `- warning: using '_' to ignore the result of a Void-returning function is redundant
165 |             #if canImport(Darwin)
166 |             Darwin.write(outputFD, buffer.baseAddress, buffer.count)
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:323:19: error: cannot find 'pollfd' in scope
321 |     /// This is much faster than polling with sleep loops.
322 |     public func waitForInput(timeoutMs: Int) -> Bool {
323 |         var pfd = pollfd(fd: inputFD, events: Int16(POLLIN), revents: 0)
    |                   `- error: cannot find 'pollfd' in scope
324 |         let result = poll(&pfd, 1, Int32(timeoutMs))
325 |         return result > 0 && (pfd.revents & Int16(POLLIN)) != 0
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:323:53: error: cannot find 'POLLIN' in scope
321 |     /// This is much faster than polling with sleep loops.
322 |     public func waitForInput(timeoutMs: Int) -> Bool {
323 |         var pfd = pollfd(fd: inputFD, events: Int16(POLLIN), revents: 0)
    |                                                     `- error: cannot find 'POLLIN' in scope
324 |         let result = poll(&pfd, 1, Int32(timeoutMs))
325 |         return result > 0 && (pfd.revents & Int16(POLLIN)) != 0
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:324:22: error: cannot find 'poll' in scope
322 |     public func waitForInput(timeoutMs: Int) -> Bool {
323 |         var pfd = pollfd(fd: inputFD, events: Int16(POLLIN), revents: 0)
324 |         let result = poll(&pfd, 1, Int32(timeoutMs))
    |                      `- error: cannot find 'poll' in scope
325 |         return result > 0 && (pfd.revents & Int16(POLLIN)) != 0
326 |     }
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:325:51: error: cannot find 'POLLIN' in scope
323 |         var pfd = pollfd(fd: inputFD, events: Int16(POLLIN), revents: 0)
324 |         let result = poll(&pfd, 1, Int32(timeoutMs))
325 |         return result > 0 && (pfd.revents & Int16(POLLIN)) != 0
    |                                                   `- error: cannot find 'POLLIN' in scope
326 |     }
327 |
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:341:12: error: cannot find 'result' in scope
339 |         let result = Glibc.read(inputFD, &byte, 1)
340 |         #endif
341 |         if result == 0 {
    |            `- error: cannot find 'result' in scope
342 |             return nil  // EOF
343 |         } else if result < 0 {
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:343:19: error: cannot find 'result' in scope
341 |         if result == 0 {
342 |             return nil  // EOF
343 |         } else if result < 0 {
    |                   `- error: cannot find 'result' in scope
344 |             if errno == EAGAIN || errno == EWOULDBLOCK {
345 |                 return nil  // No data available
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:344:16: error: cannot find 'errno' in scope
342 |             return nil  // EOF
343 |         } else if result < 0 {
344 |             if errno == EAGAIN || errno == EWOULDBLOCK {
    |                `- error: cannot find 'errno' in scope
345 |                 return nil  // No data available
346 |             }
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:344:25: error: cannot find 'EAGAIN' in scope
342 |             return nil  // EOF
343 |         } else if result < 0 {
344 |             if errno == EAGAIN || errno == EWOULDBLOCK {
    |                         `- error: cannot find 'EAGAIN' in scope
345 |                 return nil  // No data available
346 |             }
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:344:35: error: cannot find 'errno' in scope
342 |             return nil  // EOF
343 |         } else if result < 0 {
344 |             if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                   `- error: cannot find 'errno' in scope
345 |                 return nil  // No data available
346 |             }
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:344:44: error: cannot find 'EWOULDBLOCK' in scope
342 |             return nil  // EOF
343 |         } else if result < 0 {
344 |             if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                            `- error: cannot find 'EWOULDBLOCK' in scope
345 |                 return nil  // No data available
346 |             }
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:347:76: error: cannot find 'strerror' in scope
345 |                 return nil  // No data available
346 |             }
347 |             throw TerminalError.inputError("Read failed: \(String(cString: strerror(errno)))")
    |                                                                            `- error: cannot find 'strerror' in scope
348 |         }
349 |         return byte
/host/spi-builder-workspace/Sources/TerminalCore/Terminal.swift:347:85: error: cannot find 'errno' in scope
345 |                 return nil  // No data available
346 |             }
347 |             throw TerminalError.inputError("Read failed: \(String(cString: strerror(errno)))")
    |                                                                                     `- error: cannot find 'errno' in scope
348 |         }
349 |         return byte
[42/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
BUILD FAILURE 6.1 android