The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-cli, reference main (70b998), with Swift 6.1 for Android on 21 Jan 2026 02:12:08 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.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: 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.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"
        ]
      }
    }
  ],
  "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"
      ],
      "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"
      ],
      "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"
      ],
      "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"
      ],
      "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"
      ],
      "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"
      ],
      "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"
      ],
      "sources" : [
        "Confirm.swift",
        "Input.swift",
        "MultiSelect.swift",
        "ProgressBar.swift",
        "Select.swift",
        "Spinner.swift"
      ],
      "target_dependencies" : [
        "ANSI",
        "TerminalCore",
        "TerminalStyle",
        "TerminalInput"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CLI",
      "module_type" : "SwiftTarget",
      "name" : "CLI",
      "path" : "Sources/CLI",
      "product_memberships" : [
        "CLI"
      ],
      "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"
      ],
      "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-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.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:59d1b5e7d2f3065c4a6b5e045771922b1e51742b0d69504dc6de4bec6728e3a4
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/2163] Fetching swift-docc-plugin
[218/3983] Fetching swift-docc-plugin, swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.89s)
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.90s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (2.04s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.5 (3.92s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3644] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.63s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.78s)
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
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-24593BA9C3E375BF.txt
[15/41] Compiling Atomics UnsafeAtomic.swift
[16/41] Compiling Atomics UnsafeAtomicLazyReference.swift
[17/43] Emitting module Atomics
[18/43] Compiling Atomics AtomicMemoryOrderings.swift
[19/43] Compiling Atomics DoubleWord.swift
[20/43] Compiling Atomics ManagedAtomic.swift
[21/43] Compiling Atomics ManagedAtomicLazyReference.swift
[22/43] Compiling Atomics AtomicStorage.swift
[23/43] Compiling Atomics AtomicValue.swift
[24/43] Compiling Atomics AtomicInteger.swift
[25/43] Compiling Atomics AtomicOptionalWrappable.swift
[26/43] Compiling Atomics AtomicReference.swift
[27/43] Compiling Atomics OptionalRawRepresentable.swift
[28/43] Compiling Atomics RawRepresentable.swift
[29/43] Compiling Atomics AtomicBool.swift
[30/43] Compiling Atomics IntegerConformances.swift
[31/43] Compiling Atomics PointerConformances.swift
[32/43] Compiling Atomics Primitives.native.swift
[33/43] Compiling ANSI Report.swift
[34/43] Compiling ANSI Screen.swift
[35/44] Compiling Atomics IntegerOperations.swift
[36/44] Compiling Atomics Unmanaged extensions.swift
[40/45] Emitting module ANSI
[41/45] Compiling ANSI Color.swift
[42/45] Compiling ANSI Style.swift
[43/45] Compiling ANSI Hyperlink.swift
[44/45] Compiling ANSI Cursor.swift
[45/45] Compiling ANSI Erase.swift
[47/53] Compiling TerminalCore TerminalConfiguration.swift
[48/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)
[49/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()
[50/53] Compiling TerminalCore TerminalError.swift
[51/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
[52/53] Compiling TerminalCore Logger.swift
[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
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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:59d1b5e7d2f3065c4a6b5e045771922b1e51742b0d69504dc6de4bec6728e3a4
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/3] Write swift-version-24593BA9C3E375BF.txt
[4/30] Compiling ANSI Erase.swift
[5/30] Compiling Atomics AtomicStorage.swift
[6/30] Compiling Atomics AtomicValue.swift
[7/33] Compiling ANSI Hyperlink.swift
[8/33] Compiling ANSI Screen.swift
[9/33] Compiling ANSI Cursor.swift
[10/33] Compiling ANSI Report.swift
[11/33] Emitting module ANSI
[12/33] Compiling ANSI Style.swift
[13/33] Compiling Atomics IntegerOperations.swift
[14/33] Compiling Atomics Unmanaged extensions.swift
[15/33] Compiling Atomics ManagedAtomic.swift
[16/33] Compiling Atomics ManagedAtomicLazyReference.swift
[17/33] Compiling Atomics UnsafeAtomic.swift
[18/33] Compiling Atomics UnsafeAtomicLazyReference.swift
[19/33] Compiling Atomics AtomicMemoryOrderings.swift
[20/33] Compiling Atomics DoubleWord.swift
[21/33] Compiling ANSI Color.swift
[22/33] Compiling Atomics OptionalRawRepresentable.swift
[23/33] Compiling Atomics RawRepresentable.swift
[24/34] Compiling Atomics AtomicInteger.swift
[25/34] Compiling Atomics AtomicOptionalWrappable.swift
[26/34] Compiling Atomics AtomicReference.swift
[28/34] Emitting module Atomics
[31/34] Compiling Atomics AtomicBool.swift
[32/34] Compiling Atomics IntegerConformances.swift
[33/34] Compiling Atomics PointerConformances.swift
[34/34] Compiling Atomics Primitives.native.swift
[36/42] 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()
[37/42] Compiling TerminalCore TerminalConfiguration.swift
[38/42] Compiling TerminalCore TerminalError.swift
[39/42] 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
[40/42] Compiling TerminalCore Logger.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[41/42] 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()
[42/42] 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.1 android