The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftFormat, reference main (44cfb4), with Swift 6.4 for Android on 14 Oct 2026 12:14:23 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nicklockwood/SwiftFormat.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/nicklockwood/SwiftFormat
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 44cfb4f Fix Declaration.swift path in CLAUDE.md and a doubled word in README (#2759)
Cloned https://github.com/nicklockwood/SwiftFormat.git
Revision (git rev-parse @):
44cfb4f1c2daee982040c20c4726bea9720929d5
SUCCESS checkout https://github.com/nicklockwood/SwiftFormat.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/nicklockwood/SwiftFormat.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:34a00a57f57797b403a98b861c3ce940f20735b4cb78ef45654f0d4f3b0c0295
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Building for debugging...
[Pre-planning 1 / 95]
[Planning deferred tasks]
[23 / 35] SwiftFormat
[32 / 44] SwiftFormat
/host/spi-builder-workspace/Sources/SwiftFormat.swift:151:13: warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
149 |     func onComplete(_ block: @escaping () throws -> Void) {
150 |         completionQueue.async(group: group) {
151 |             completionBlocks.append(block)
    |             `- warning: mutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
152 |         }
153 |     }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:206:10: warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
204 |     }
205 |
206 |     func enumerate(inputURL: URL,
    |          `- warning: concurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
207 |                    outputURL: URL?,
208 |                    options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:157:10: warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
155 |     let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
156 |
157 |     func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
    |          `- warning: concurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
158 |         let fileOptions = options.fileOptions ?? .default
159 |         let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:149:10: warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
147 |     var completionBlocks = [() throws -> Void]()
148 |     let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
149 |     func onComplete(_ block: @escaping () throws -> Void) {
    |          `- warning: concurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
150 |         completionQueue.async(group: group) {
151 |             completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: warning: will never be executed
 59 |         let result = SARIFLog(changes)
 60 |         var data = try encoder.encode(result)
 61 |         if stripSlashes, let string = String(data: data, encoding: .utf8) {
    |            |                          `- warning: will never be executed
    |            `- note: condition always evaluates to false
 62 |             data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
 63 |         }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/CommandLine.swift:775:14: warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
 773 |         var input: String?
 774 |         var status = Status.idle
 775 |         func processFromStdin() {
     |              `- warning: concurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
 776 |             status = .started
 777 |             while let line = CLI.readLine() {
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/CommandLineTool/main.swift:76:27: error: cannot find 'isatty' in scope
 74 | private var stderr = FileHandleOutputStream(filehandle: .standardError)
 75 |
 76 | private let stderrIsTTY = isatty(STDERR_FILENO) != 0
    |                           `- error: cannot find 'isatty' in scope
 77 |
 78 | private let printQueue = DispatchQueue(label: "swiftformat.print")
/host/spi-builder-workspace/CommandLineTool/main.swift:76:34: error: cannot find 'STDERR_FILENO' in scope
 74 | private var stderr = FileHandleOutputStream(filehandle: .standardError)
 75 |
 76 | private let stderrIsTTY = isatty(STDERR_FILENO) != 0
    |                                  `- error: cannot find 'STDERR_FILENO' in scope
 77 |
 78 | private let printQueue = DispatchQueue(label: "swiftformat.print")
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.0/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/CommandLineTool/main.swift -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I /host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /root/.local/share/swiftly/toolchains/6.4.0/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.0/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /android-ndk/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/21 -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftFormat.build/Debug-android-aarch64/swiftformat-p.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftFormat.build/Debug-android-aarch64/swiftformat-p.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftFormat.build/Debug-android-aarch64/swiftformat-p.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name CommandLineTool -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftFormat.build/Debug-android-aarch64/swiftformat-p.build/Objects-normal/aarch64/swiftformat_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.0/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.0/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.0/usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftFormat.build/Debug-android-aarch64/swiftformat-p.build/Objects-normal/aarch64/Modules/CommandLineTool.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftFormat.build/Debug-android-aarch64/swiftformat-p.build/Objects-normal/aarch64/Modules/CommandLineTool.swiftsourceinfo -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftFormat.build/Debug-android-aarch64/swiftformat-p.build/Objects-normal/aarch64/swiftformat-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftFormat.build/Debug-android-aarch64/swiftformat-p.build/Objects-normal/aarch64/swiftformat-primary-emit-module.d -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftFormat.build/Debug-android-aarch64/swiftformat-p.build/Objects-normal/aarch64/Modules/CommandLineTool.swiftmodule
error: Build failed
BUILD FAILURE 6.4 android