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>&1Build 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: [1;33mwarning: [1;39mmutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m149 |[0;0m func onComplete(_ block: @escaping () throws -> Void) {
[0;36m150 |[0;0m completionQueue.async(group: group) {
[0;36m151 |[0;0m completionBlocks.append(block)
[0;36m|[0;0m `- [1;33mwarning: [1;39mmutation of captured var 'completionBlocks' in concurrently-executing code; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m152 |[0;0m }
[0;36m153 |[0;0m }
/host/spi-builder-workspace/Sources/SwiftFormat.swift:206:10: [1;33mwarning: [1;39mconcurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode[0;0m
[0;36m204 |[0;0m }
[0;36m205 |[0;0m
[0;36m206 |[0;0m func enumerate(inputURL: URL,
[0;36m|[0;0m `- [1;33mwarning: [1;39mconcurrently-executed local function 'enumerate(inputURL:outputURL:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode[0;0m
[0;36m207 |[0;0m outputURL: URL?,
[0;36m208 |[0;0m options: Options)
/host/spi-builder-workspace/Sources/SwiftFormat.swift:157:10: [1;33mwarning: [1;39mconcurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode[0;0m
[0;36m155 |[0;0m let queue = concurrent ? DispatchQueue.global(qos: .userInitiated) : completionQueue
[0;36m156 |[0;0m
[0;36m157 |[0;0m func resolveInputURL(_ inputURL: URL, options: Options) -> (URL, URLResourceValues, Options)? {
[0;36m|[0;0m `- [1;33mwarning: [1;39mconcurrently-executed local function 'resolveInputURL(_:options:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode[0;0m
[0;36m158 |[0;0m let fileOptions = options.fileOptions ?? .default
[0;36m159 |[0;0m let inputURL = inputURL.standardizedFileURL
/host/spi-builder-workspace/Sources/SwiftFormat.swift:149:10: [1;33mwarning: [1;39mconcurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode[0;0m
[0;36m147 |[0;0m var completionBlocks = [() throws -> Void]()
[0;36m148 |[0;0m let completionQueue = DispatchQueue(label: "swiftformat.enumeration")
[0;36m149 |[0;0m func onComplete(_ block: @escaping () throws -> Void) {
[0;36m|[0;0m `- [1;33mwarning: [1;39mconcurrently-executed local function 'onComplete' must be marked as '@Sendable'; this is an error in the Swift 6 language mode[0;0m
[0;36m150 |[0;0m completionQueue.async(group: group) {
[0;36m151 |[0;0m completionBlocks.append(block)
/host/spi-builder-workspace/Sources/SARIFReporter.swift:61:39: [1;33mwarning: [1;39mwill never be executed[0;0m
[0;36m59 |[0;0m let result = SARIFLog(changes)
[0;36m60 |[0;0m var data = try encoder.encode(result)
[0;36m61 |[0;0m if stripSlashes, let string = String(data: data, encoding: .utf8) {
[0;36m|[0;0m | `- [1;33mwarning: [1;39mwill never be executed[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mcondition always evaluates to false[0;0m
[0;36m62 |[0;0m data = Data(string.replacingOccurrences(of: "\\/", with: "/").utf8)
[0;36m63 |[0;0m }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/CommandLine.swift:775:14: [1;33mwarning: [1;39mconcurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode[0;0m
[0;36m773 |[0;0m var input: String?
[0;36m774 |[0;0m var status = Status.idle
[0;36m775 |[0;0m func processFromStdin() {
[0;36m|[0;0m `- [1;33mwarning: [1;39mconcurrently-executed local function 'processFromStdin()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode[0;0m
[0;36m776 |[0;0m status = .started
[0;36m777 |[0;0m 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: [1;31merror: [1;39mcannot find 'isatty' in scope[0;0m
[0;36m74 |[0;0m private var stderr = FileHandleOutputStream(filehandle: .standardError)
[0;36m75 |[0;0m
[0;36m76 |[0;0m private let stderrIsTTY = [4;39misatty[0;0m(STDERR_FILENO) != 0
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'isatty' in scope[0;0m
[0;36m77 |[0;0m
[0;36m78 |[0;0m private let printQueue = DispatchQueue(label: "swiftformat.print")
/host/spi-builder-workspace/CommandLineTool/main.swift:76:34: [1;31merror: [1;39mcannot find 'STDERR_FILENO' in scope[0;0m
[0;36m74 |[0;0m private var stderr = FileHandleOutputStream(filehandle: .standardError)
[0;36m75 |[0;0m
[0;36m76 |[0;0m private let stderrIsTTY = isatty([4;39mSTDERR_FILENO[0;0m) != 0
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'STDERR_FILENO' in scope[0;0m
[0;36m77 |[0;0m
[0;36m78 |[0;0m 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