Build Information
Failed to build SwiftSystemd, reference master (4a93b1), with Swift 6.4 for Android on 21 Sep 2026 07:57:49 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MihaelIsaev/SwiftSystemd.git
Reference: master
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/MihaelIsaev/SwiftSystemd
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 4a93b1b 📖 Update readme
Cloned https://github.com/MihaelIsaev/SwiftSystemd.git
Revision (git rev-parse @):
4a93b1b6c28999252fa88877b4e29d724065b948
SUCCESS checkout https://github.com/MihaelIsaev/SwiftSystemd.git at master
========================================
Build
========================================
Selected platform: android
Swift version: 6.4
Building package at path: $PWD
https://github.com/MihaelIsaev/SwiftSystemd.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/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:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Fetching https://github.com/vapor/console-kit
Fetching https://github.com/MihaelIsaev/SwiftBash
[1/15] Fetching swiftbash
[16/6858] Fetching swiftbash, console-kit
Fetched https://github.com/MihaelIsaev/SwiftBash (0.55s)
Fetched https://github.com/vapor/console-kit (0.55s)
Computing version for https://github.com/MihaelIsaev/SwiftBash
Computed https://github.com/MihaelIsaev/SwiftBash at 1.0.0 (1.59s)
Computing version for https://github.com/vapor/console-kit
Computed https://github.com/vapor/console-kit at 4.16.1 (0.18s)
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-log.git
[1/8096] Fetching swift-log
[8097/94161] Fetching swift-log, swift-nio
Fetched https://github.com/apple/swift-log.git (3.16s)
Fetched https://github.com/apple/swift-nio.git (3.20s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (3.40s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.103.0 (0.33s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-collections.git
[1/1875] Fetching swift-atomics
[1876/8773] Fetching swift-atomics, swift-system
[8706/36125] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-atomics.git (0.70s)
Fetched https://github.com/apple/swift-system.git (0.70s)
[2189/27352] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git (1.14s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (1.30s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (0.28s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (0.21s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.8.1
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.103.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.1
Creating working copy for https://github.com/vapor/console-kit
Working copy of https://github.com/vapor/console-kit resolved at 4.16.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
Creating working copy for https://github.com/MihaelIsaev/SwiftBash
Working copy of https://github.com/MihaelIsaev/SwiftBash resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.15.1
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 245]
[Starting]
[67 / 125] NIOConcurrencyHelpers
[68 / 125] NIOConcurrencyHelpers
[75 / 125] NIOConcurrencyHelpers
[76 / 125] Bash
[87 / 125] NIOConcurrencyHelpers-product
[88 / 125] NIOConcurrencyHelpers-product
[90 / 125] Logging
[92 / 125] Logging
[96 / 127]
[102 / 136] ConsoleKitTerminal
[103 / 136] ConsoleKitTerminal
[104 / 136] ConsoleKitTerminal
[108 / 137] ConsoleKitTerminal
[114 / 137] ConsoleKitCommands
[119 / 139] ConsoleKitCommands
[125 / 148] ConsoleKitTerminal
[127 / 148] ConsoleKitCommands
[136 / 151] ConsoleKit
[150 / 163] ConsoleKitCommands
[153 / 163] systemd-product
error: SwiftCompile normal aarch64 /host/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile Swift.swift
/host/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift:26:19: [1;31merror: [1;39mcannot find 'getcwd' in scope[0;0m
[0;36m24 |[0;0m
[0;36m25 |[0;0m static func cwd(_ context: ConsoleKit.CommandContext? = nil) -> String? {
[0;36m26 |[0;0m let cwd = [4;39mgetcwd[0;0m(nil, Int(PATH_MAX))
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'getcwd' in scope[0;0m
[0;36m27 |[0;0m defer {
[0;36m28 |[0;0m if let cwd = cwd {
/host/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift:75:17: [1;33mwarning: [1;39mmutation of captured var 'resultData' 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;36m73 |[0;0m group.leave()
[0;36m74 |[0;0m } else {
[0;36m75 |[0;0m resultData.append(data)
[0;36m|[0;0m `- [1;33mwarning: [1;39mmutation of captured var 'resultData' 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;36m76 |[0;0m }
[0;36m77 |[0;0m }
/host/spi-builder-workspace/Sources/systemd/Helpers/Systemctl.swift:199:17: [1;33mwarning: [1;39mmutation of captured var 'resultData' 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;36m197 |[0;0m group.leave()
[0;36m198 |[0;0m } else {
[0;36m199 |[0;0m resultData.append(data)
[0;36m|[0;0m `- [1;33mwarning: [1;39mmutation of captured var 'resultData' 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;36m200 |[0;0m }
[0;36m201 |[0;0m }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/systemd/Commands/DisableCommand.swift /host/spi-builder-workspace/Sources/systemd/Commands/EditCommand.swift /host/spi-builder-workspace/Sources/systemd/Commands/EnableCommand.swift /host/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift /host/spi-builder-workspace/Sources/systemd/Commands/KillCommand.swift /host/spi-builder-workspace/Sources/systemd/Commands/LogsCommand.swift /host/spi-builder-workspace/Sources/systemd/Commands/ReloadDaemonCommand.swift /host/spi-builder-workspace/Sources/systemd/Commands/RestartCommand.swift /host/spi-builder-workspace/Sources/systemd/Commands/StartCommand.swift /host/spi-builder-workspace/Sources/systemd/Commands/StatusCommand.swift /host/spi-builder-workspace/Sources/systemd/Commands/StopCommand.swift /host/spi-builder-workspace/Sources/systemd/Commands/UninstallCommand.swift /host/spi-builder-workspace/Sources/systemd/Commands/VersionCommand.swift /host/spi-builder-workspace/Sources/systemd/Extensions/Console+Abort.swift /host/spi-builder-workspace/Sources/systemd/Extensions/String+Fragment.swift /host/spi-builder-workspace/Sources/systemd/Helpers/Journalctl.swift -primary-file /host/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift -primary-file /host/spi-builder-workspace/Sources/systemd/Helpers/Systemctl.swift /host/spi-builder-workspace/Sources/systemd/Helpers/Users.swift /host/spi-builder-workspace/Sources/systemd/main.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSystemd.build/Debug-android-aarch64/systemd-p.build/Objects-normal/aarch64/Swift.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSystemd.build/Debug-android-aarch64/systemd-p.build/Objects-normal/aarch64/Swift.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSystemd.build/Debug-android-aarch64/systemd-p.build/Objects-normal/aarch64/Swift.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSystemd.build/Debug-android-aarch64/systemd-p.build/Objects-normal/aarch64/Swift.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSystemd.build/Debug-android-aarch64/systemd-p.build/Objects-normal/aarch64/Systemctl.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSystemd.build/Debug-android-aarch64/systemd-p.build/Objects-normal/aarch64/Systemctl.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSystemd.build/Debug-android-aarch64/systemd-p.build/Objects-normal/aarch64/Systemctl.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSystemd.build/Debug-android-aarch64/systemd-p.build/Objects-normal/aarch64/Systemctl.dia -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r27d/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.x-snapshot-2026-09-04/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/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.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_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-r27d/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/18 -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-android-aarch64/CNIOAtomics.modulemap -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/checkouts/swift-nio/Sources/CNIOAtomics/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSystemd.build/Debug-android-aarch64/systemd-p.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSystemd.build/Debug-android-aarch64/systemd-p.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSystemd.build/Debug-android-aarch64/systemd-p.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name systemd -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSystemd.build/Debug-android-aarch64/systemd-p.build/Objects-normal/aarch64/systemd_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/local/lib/swift/host/plugins -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSystemd.build/Debug-android-aarch64/systemd-p.build/Objects-normal/aarch64/Swift.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftSystemd.build/Debug-android-aarch64/systemd-p.build/Objects-normal/aarch64/Systemctl.o -index-unit-output-path /SwiftSystemd.build/Debug-android-aarch64/systemd-p.build/Objects-normal/aarch64/Swift.o -index-unit-output-path /SwiftSystemd.build/Debug-android-aarch64/systemd-p.build/Objects-normal/aarch64/Systemctl.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 android