The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwiftSystemd, reference master (4a93b1), with Swift 6.1 for Android on 29 May 2025 19:52:57 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" 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.63.1
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.1
Building package at path:  $PWD
https://github.com/MihaelIsaev/SwiftSystemd.git
https://github.com/MihaelIsaev/SwiftSystemd.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "console-kit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.15.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/console-kit"
    },
    {
      "identity" : "swiftbash",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/MihaelIsaev/SwiftBash"
    }
  ],
  "manifest_display_name" : "SwiftSystemd",
  "name" : "SwiftSystemd",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "systemd",
      "targets" : [
        "systemd"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "systemdTests",
      "module_type" : "SwiftTarget",
      "name" : "systemdTests",
      "path" : "Tests/systemdTests",
      "sources" : [
        "XCTestManifests.swift",
        "systemdTests.swift"
      ],
      "target_dependencies" : [
        "systemd"
      ],
      "type" : "test"
    },
    {
      "c99name" : "systemd",
      "module_type" : "SwiftTarget",
      "name" : "systemd",
      "path" : "Sources/systemd",
      "product_dependencies" : [
        "ConsoleKit",
        "Bash"
      ],
      "product_memberships" : [
        "systemd"
      ],
      "sources" : [
        "Commands/DisableCommand.swift",
        "Commands/EditCommand.swift",
        "Commands/EnableCommand.swift",
        "Commands/InstallCommand.swift",
        "Commands/KillCommand.swift",
        "Commands/LogsCommand.swift",
        "Commands/ReloadDaemonCommand.swift",
        "Commands/RestartCommand.swift",
        "Commands/StartCommand.swift",
        "Commands/StatusCommand.swift",
        "Commands/StopCommand.swift",
        "Commands/UninstallCommand.swift",
        "Commands/VersionCommand.swift",
        "Extensions/Console+Abort.swift",
        "Extensions/String+Fragment.swift",
        "Helpers/Journalctl.swift",
        "Helpers/Swift.swift",
        "Helpers/Systemctl.swift",
        "Helpers/Users.swift",
        "main.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.8"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" 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 -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/vapor/console-kit
Fetching https://github.com/MihaelIsaev/SwiftBash
[1/5647] Fetching console-kit
[5084/5662] Fetching console-kit, swiftbash
Fetched https://github.com/MihaelIsaev/SwiftBash from cache (0.31s)
Fetched https://github.com/vapor/console-kit from cache (0.32s)
Computing version for https://github.com/MihaelIsaev/SwiftBash
Computed https://github.com/MihaelIsaev/SwiftBash at 1.0.0 (2.21s)
Computing version for https://github.com/vapor/console-kit
Computed https://github.com/vapor/console-kit at 4.15.2 (0.49s)
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
[3837/79944] Fetching swift-log, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (4.28s)
Fetched https://github.com/apple/swift-nio.git from cache (4.39s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (4.89s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (1.22s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
[1/1710] Fetching swift-atomics
[925/6101] Fetching swift-atomics, swift-system
[1089/22692] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (0.79s)
[8705/20982] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.95s)
Fetched https://github.com/apple/swift-collections.git from cache (1.97s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (2.45s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.58s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.91s)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.83.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.6.3
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.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.2.0
Creating working copy for https://github.com/vapor/console-kit
Working copy of https://github.com/vapor/console-kit resolved at 4.15.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/MihaelIsaev/SwiftBash
Working copy of https://github.com/MihaelIsaev/SwiftBash resolved at 1.0.0
Building for debugging...
[0/19] Write sources
[7/19] Compiling c-nioatomics.c
[8/19] Compiling c-atomics.c
[9/19] Write swift-version-24593BA9C3E375BF.txt
[11/32] Compiling NIOConcurrencyHelpers lock.swift
[12/32] Emitting module NIOConcurrencyHelpers
[13/32] Compiling NIOConcurrencyHelpers NIOLock.swift
[14/32] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[15/32] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[16/32] Compiling NIOConcurrencyHelpers atomics.swift
[17/33] Wrapping AST for NIOConcurrencyHelpers for debugging
[19/33] Compiling Logging LogHandler.swift
[20/33] Compiling Logging Logging.swift
[21/33] Compiling Logging Locks.swift
[22/33] Emitting module Logging
[23/33] Compiling Logging MetadataProvider.swift
[24/37] Wrapping AST for Logging for debugging
[26/60] Emitting module Bash
[27/60] Compiling Bash Bash.swift
[29/61] Emitting module ConsoleKitTerminal
[30/64] Compiling ConsoleKitTerminal Console+Ephemeral.swift
[31/64] Compiling ConsoleKitTerminal ConsoleClear.swift
[32/64] Compiling ConsoleKitTerminal Console+Ask.swift
[33/64] Compiling ConsoleKitTerminal Console+Choose.swift
[34/64] Compiling ConsoleKitTerminal ActivityBar.swift
[35/64] Compiling ConsoleKitTerminal ActivityIndicator.swift
[36/64] Compiling ConsoleKitTerminal ActivityIndicatorRenderer.swift
[37/64] Compiling ConsoleKitTerminal ActivityIndicatorState.swift
[38/64] Compiling ConsoleKitTerminal Console+Confirm.swift
[39/64] Compiling ConsoleKitTerminal Console+Input.swift
[40/64] Compiling ConsoleKitTerminal Console+Center.swift
[41/64] Compiling ConsoleKitTerminal Console+Output.swift
[41/64] Wrapping AST for Bash for debugging
[43/64] Compiling ConsoleKitTerminal Console+Wait.swift
[44/64] Compiling ConsoleKitTerminal ConsoleColor.swift
[45/64] Compiling ConsoleKitTerminal ConsoleStyle.swift
[46/64] Compiling ConsoleKitTerminal ConsoleText.swift
[47/64] Compiling ConsoleKitTerminal ConsoleTextFragment.swift
[48/64] Compiling ConsoleKitTerminal ANSI.swift
[49/64] Compiling ConsoleKitTerminal CustomActivity.swift
[50/64] Compiling ConsoleKitTerminal LoadingBar.swift
[51/64] Compiling ConsoleKitTerminal ProgressBar.swift
[52/64] Compiling ConsoleKitTerminal Console+Clear.swift
[53/64] Compiling ConsoleKitTerminal Console.swift
[54/64] Compiling ConsoleKitTerminal Terminal.swift
[55/64] Compiling ConsoleKitTerminal readpassphrase_linux.swift
[56/64] Compiling ConsoleKitTerminal AnySendableHashable.swift
[57/64] Compiling ConsoleKitTerminal ConsoleLogger.swift
[58/64] Compiling ConsoleKitTerminal LoggerFragment.swift
[59/65] Wrapping AST for ConsoleKitTerminal for debugging
[61/87] Emitting module ConsoleKitCommands
[62/89] Compiling ConsoleKitCommands AsyncCommands.swift
[63/89] Compiling ConsoleKitCommands GenerateAsyncAutocompleteCommand.swift
[64/89] Compiling ConsoleKitCommands AnyCommand.swift
[65/89] Compiling ConsoleKitCommands AnyAsyncCommand.swift
[66/89] Compiling ConsoleKitCommands AsyncCommand.swift
[67/89] Compiling ConsoleKitCommands AsyncCommandGroup.swift
[68/89] Compiling ConsoleKitCommands String+LevenshteinDistance.swift
[69/89] Compiling ConsoleKitCommands Utilities.swift
[70/89] Compiling ConsoleKitCommands CommandSignature.swift
[71/89] Compiling ConsoleKitCommands Flag.swift
[72/89] Compiling ConsoleKitCommands Option.swift
[73/89] Compiling ConsoleKitCommands CommandGroup.swift
[74/89] Compiling ConsoleKitCommands CommandInput.swift
[75/89] Compiling ConsoleKitCommands Commands.swift
[76/89] Compiling ConsoleKitCommands GenerateAutocompleteCommand.swift
[77/89] Compiling ConsoleKitCommands MergedAsyncCommandGroup.swift
[78/89] Compiling ConsoleKitCommands Argument.swift
[79/89] Compiling ConsoleKitCommands Command.swift
[80/89] Compiling ConsoleKitCommands CommandContext.swift
[81/89] Compiling ConsoleKitCommands CommandError.swift
[82/89] Compiling ConsoleKitCommands Console+Run.swift
[83/89] Compiling ConsoleKitCommands ConsoleError.swift
[84/89] Compiling ConsoleKitCommands Completion.swift
[85/90] Wrapping AST for ConsoleKitCommands for debugging
[87/92] Emitting module ConsoleKit
[88/92] Compiling ConsoleKit Exports.swift
[89/93] Wrapping AST for ConsoleKit for debugging
[91/112] Emitting module systemd
/host/spi-builder-workspace/Sources/systemd/Commands/VersionCommand.swift:11:16: warning: static property 'currentVersion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | final class VersionCommand: Command {
11 |     static var currentVersion = "1.0.0"
   |                |- warning: static property 'currentVersion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'currentVersion' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'currentVersion' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     struct Signature: CommandSignature {
[92/114] Compiling systemd StatusCommand.swift
[93/114] Compiling systemd StopCommand.swift
[94/114] Compiling systemd UninstallCommand.swift
[95/114] Compiling systemd VersionCommand.swift
/host/spi-builder-workspace/Sources/systemd/Commands/VersionCommand.swift:11:16: warning: static property 'currentVersion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | final class VersionCommand: Command {
11 |     static var currentVersion = "1.0.0"
   |                |- warning: static property 'currentVersion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'currentVersion' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'currentVersion' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     struct Signature: CommandSignature {
[96/114] Compiling systemd Console+Abort.swift
/host/spi-builder-workspace/Sources/systemd/Commands/VersionCommand.swift:11:16: warning: static property 'currentVersion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | final class VersionCommand: Command {
11 |     static var currentVersion = "1.0.0"
   |                |- warning: static property 'currentVersion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'currentVersion' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'currentVersion' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     struct Signature: CommandSignature {
[97/114] Compiling systemd ReloadDaemonCommand.swift
[98/114] Compiling systemd RestartCommand.swift
[99/114] Compiling systemd StartCommand.swift
[100/114] Compiling systemd Swift.swift
/host/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift:26:19: error: cannot find 'getcwd' in scope
24 |
25 |     static func cwd(_ context: ConsoleKit.CommandContext? = nil) -> String? {
26 |         let cwd = getcwd(nil, Int(PATH_MAX))
   |                   `- error: cannot find 'getcwd' in scope
27 |         defer {
28 |             if let cwd = cwd {
/host/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift:26:26: error: 'nil' requires a contextual type
24 |
25 |     static func cwd(_ context: ConsoleKit.CommandContext? = nil) -> String? {
26 |         let cwd = getcwd(nil, Int(PATH_MAX))
   |                          `- error: 'nil' requires a contextual type
27 |         defer {
28 |             if let cwd = cwd {
/host/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift:75:17: warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
73 |                 group.leave()
74 |             } else {
75 |                 resultData.append(data)
   |                 `- warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
76 |             }
77 |         }
/host/spi-builder-workspace/Sources/systemd/Helpers/Systemctl.swift:199:17: warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
197 |                 group.leave()
198 |             } else {
199 |                 resultData.append(data)
    |                 `- warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
200 |             }
201 |         }
[101/114] Compiling systemd Systemctl.swift
/host/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift:26:19: error: cannot find 'getcwd' in scope
24 |
25 |     static func cwd(_ context: ConsoleKit.CommandContext? = nil) -> String? {
26 |         let cwd = getcwd(nil, Int(PATH_MAX))
   |                   `- error: cannot find 'getcwd' in scope
27 |         defer {
28 |             if let cwd = cwd {
/host/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift:26:26: error: 'nil' requires a contextual type
24 |
25 |     static func cwd(_ context: ConsoleKit.CommandContext? = nil) -> String? {
26 |         let cwd = getcwd(nil, Int(PATH_MAX))
   |                          `- error: 'nil' requires a contextual type
27 |         defer {
28 |             if let cwd = cwd {
/host/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift:75:17: warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
73 |                 group.leave()
74 |             } else {
75 |                 resultData.append(data)
   |                 `- warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
76 |             }
77 |         }
/host/spi-builder-workspace/Sources/systemd/Helpers/Systemctl.swift:199:17: warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
197 |                 group.leave()
198 |             } else {
199 |                 resultData.append(data)
    |                 `- warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
200 |             }
201 |         }
[102/114] Compiling systemd String+Fragment.swift
[103/114] Compiling systemd Journalctl.swift
[104/114] Compiling systemd DisableCommand.swift
[105/114] Compiling systemd EditCommand.swift
[106/114] Compiling systemd EnableCommand.swift
[107/114] Compiling systemd InstallCommand.swift
/host/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:87:24: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 79 |     }
 80 |
 81 |     private func create(targets: [Swift.SwiftPackage.Target]?, systemctl: Systemctl, signature: Signature) {
    |                  `- note: add '@MainActor' to make instance method 'create(targets:systemctl:signature:)' part of global actor 'MainActor'
 82 |         let target: String
 83 |         if let t = signature.target {
    :
 85 |         } else {
 86 |             guard let targets = targets, targets.count > 0 else {
 87 |                 return context.console.aborting()
    |                        `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 88 |             }
 89 |             if targets.count == 1 {
/host/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
 7 | let console: Console = Terminal()
 8 | var input = CommandInput(arguments: CommandLine.arguments)
 9 | var context = CommandContext(console: console, input: input)
   |     `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
/host/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:92:26: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 79 |     }
 80 |
 81 |     private func create(targets: [Swift.SwiftPackage.Target]?, systemctl: Systemctl, signature: Signature) {
    |                  `- note: add '@MainActor' to make instance method 'create(targets:systemctl:signature:)' part of global actor 'MainActor'
 82 |         let target: String
 83 |         if let t = signature.target {
    :
 90 |                 target = targets[0].name
 91 |             } else {
 92 |                 target = context.console.choose(
    |                          `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 93 |                     "Please choose the target of your app",
 94 |                     from: targets.map { $0.name }
/host/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
 7 | let console: Console = Terminal()
 8 | var input = CommandInput(arguments: CommandLine.arguments)
 9 | var context = CommandContext(console: console, input: input)
   |     `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
/host/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:98:45: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 96 |             }
 97 |         }
 98 |         let buildType = signature.config ?? context.console.choose(
    |                                             `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 99 |             "Please choose the target configuration",
100 |             from: ["release", "debug"]
/host/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
 7 | let console: Console = Terminal()
 8 | var input = CommandInput(arguments: CommandLine.arguments)
 9 | var context = CommandContext(console: console, input: input)
   |     `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
/host/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:102:38: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
100 |             from: ["release", "debug"]
101 |         ) { .init(stringLiteral: $0) }
102 |         let user = signature.user ?? context.console.choose(
    |                                      `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
103 |             "Please choose the user under which the service will run",
104 |             from: Users.list(console: console)
/host/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
 7 | let console: Console = Terminal()
 8 | var input = CommandInput(arguments: CommandLine.arguments)
 9 | var context = CommandContext(console: console, input: input)
   |     `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
[108/114] Compiling systemd KillCommand.swift
/host/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:87:24: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 79 |     }
 80 |
 81 |     private func create(targets: [Swift.SwiftPackage.Target]?, systemctl: Systemctl, signature: Signature) {
    |                  `- note: add '@MainActor' to make instance method 'create(targets:systemctl:signature:)' part of global actor 'MainActor'
 82 |         let target: String
 83 |         if let t = signature.target {
    :
 85 |         } else {
 86 |             guard let targets = targets, targets.count > 0 else {
 87 |                 return context.console.aborting()
    |                        `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 88 |             }
 89 |             if targets.count == 1 {
/host/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
 7 | let console: Console = Terminal()
 8 | var input = CommandInput(arguments: CommandLine.arguments)
 9 | var context = CommandContext(console: console, input: input)
   |     `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
/host/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:92:26: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 79 |     }
 80 |
 81 |     private func create(targets: [Swift.SwiftPackage.Target]?, systemctl: Systemctl, signature: Signature) {
    |                  `- note: add '@MainActor' to make instance method 'create(targets:systemctl:signature:)' part of global actor 'MainActor'
 82 |         let target: String
 83 |         if let t = signature.target {
    :
 90 |                 target = targets[0].name
 91 |             } else {
 92 |                 target = context.console.choose(
    |                          `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 93 |                     "Please choose the target of your app",
 94 |                     from: targets.map { $0.name }
/host/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
 7 | let console: Console = Terminal()
 8 | var input = CommandInput(arguments: CommandLine.arguments)
 9 | var context = CommandContext(console: console, input: input)
   |     `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
/host/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:98:45: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 96 |             }
 97 |         }
 98 |         let buildType = signature.config ?? context.console.choose(
    |                                             `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 99 |             "Please choose the target configuration",
100 |             from: ["release", "debug"]
/host/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
 7 | let console: Console = Terminal()
 8 | var input = CommandInput(arguments: CommandLine.arguments)
 9 | var context = CommandContext(console: console, input: input)
   |     `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
/host/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:102:38: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
100 |             from: ["release", "debug"]
101 |         ) { .init(stringLiteral: $0) }
102 |         let user = signature.user ?? context.console.choose(
    |                                      `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
103 |             "Please choose the user under which the service will run",
104 |             from: Users.list(console: console)
/host/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
 7 | let console: Console = Terminal()
 8 | var input = CommandInput(arguments: CommandLine.arguments)
 9 | var context = CommandContext(console: console, input: input)
   |     `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
[109/114] Compiling systemd LogsCommand.swift
/host/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:87:24: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 79 |     }
 80 |
 81 |     private func create(targets: [Swift.SwiftPackage.Target]?, systemctl: Systemctl, signature: Signature) {
    |                  `- note: add '@MainActor' to make instance method 'create(targets:systemctl:signature:)' part of global actor 'MainActor'
 82 |         let target: String
 83 |         if let t = signature.target {
    :
 85 |         } else {
 86 |             guard let targets = targets, targets.count > 0 else {
 87 |                 return context.console.aborting()
    |                        `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 88 |             }
 89 |             if targets.count == 1 {
/host/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
 7 | let console: Console = Terminal()
 8 | var input = CommandInput(arguments: CommandLine.arguments)
 9 | var context = CommandContext(console: console, input: input)
   |     `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
/host/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:92:26: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 79 |     }
 80 |
 81 |     private func create(targets: [Swift.SwiftPackage.Target]?, systemctl: Systemctl, signature: Signature) {
    |                  `- note: add '@MainActor' to make instance method 'create(targets:systemctl:signature:)' part of global actor 'MainActor'
 82 |         let target: String
 83 |         if let t = signature.target {
    :
 90 |                 target = targets[0].name
 91 |             } else {
 92 |                 target = context.console.choose(
    |                          `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 93 |                     "Please choose the target of your app",
 94 |                     from: targets.map { $0.name }
/host/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
 7 | let console: Console = Terminal()
 8 | var input = CommandInput(arguments: CommandLine.arguments)
 9 | var context = CommandContext(console: console, input: input)
   |     `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
/host/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:98:45: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 96 |             }
 97 |         }
 98 |         let buildType = signature.config ?? context.console.choose(
    |                                             `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
 99 |             "Please choose the target configuration",
100 |             from: ["release", "debug"]
/host/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
 7 | let console: Console = Terminal()
 8 | var input = CommandInput(arguments: CommandLine.arguments)
 9 | var context = CommandContext(console: console, input: input)
   |     `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
/host/spi-builder-workspace/Sources/systemd/Commands/InstallCommand.swift:102:38: error: main actor-isolated var 'context' can not be referenced from a nonisolated context
100 |             from: ["release", "debug"]
101 |         ) { .init(stringLiteral: $0) }
102 |         let user = signature.user ?? context.console.choose(
    |                                      `- error: main actor-isolated var 'context' can not be referenced from a nonisolated context
103 |             "Please choose the user under which the service will run",
104 |             from: Users.list(console: console)
/host/spi-builder-workspace/Sources/systemd/main.swift:9:5: note: var declared here
 7 | let console: Console = Terminal()
 8 | var input = CommandInput(arguments: CommandLine.arguments)
 9 | var context = CommandContext(console: console, input: input)
   |     `- note: var declared here
10 |
11 | guard Bash.whichBool("systemctl") else {
[110/114] Compiling systemd Users.swift
/host/spi-builder-workspace/Sources/systemd/Helpers/Users.swift:20:21: warning: 'launchPath' is deprecated: renamed to 'executableURL'
18 |             let stderr = Pipe()
19 |             let process = Process()
20 |             process.launchPath = try Bash.which("awk")
   |                     |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
   |                     `- note: use 'executableURL' instead
21 |             process.arguments = ["-F:", "\"{ print $1}\"", "/etc/passwd"]
22 |             process.standardOutput = stdout
/host/spi-builder-workspace/Sources/systemd/Helpers/Users.swift:27:21: warning: 'launch()' is deprecated: renamed to 'run'
25 |             let outHandle = stdout.fileHandleForReading
26 |
27 |             process.launch()
   |                     |- warning: 'launch()' is deprecated: renamed to 'run'
   |                     `- note: use 'run' instead
28 |             process.waitUntilExit()
29 |
[111/114] Compiling systemd main.swift
/host/spi-builder-workspace/Sources/systemd/Helpers/Users.swift:20:21: warning: 'launchPath' is deprecated: renamed to 'executableURL'
18 |             let stderr = Pipe()
19 |             let process = Process()
20 |             process.launchPath = try Bash.which("awk")
   |                     |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
   |                     `- note: use 'executableURL' instead
21 |             process.arguments = ["-F:", "\"{ print $1}\"", "/etc/passwd"]
22 |             process.standardOutput = stdout
/host/spi-builder-workspace/Sources/systemd/Helpers/Users.swift:27:21: warning: 'launch()' is deprecated: renamed to 'run'
25 |             let outHandle = stdout.fileHandleForReading
26 |
27 |             process.launch()
   |                     |- warning: 'launch()' is deprecated: renamed to 'run'
   |                     `- note: use 'run' instead
28 |             process.waitUntilExit()
29 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" 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:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/10] Write swift-version-24593BA9C3E375BF.txt
[2/23] Emitting module Bash
[3/23] Compiling Bash Bash.swift
[4/24] Compiling NIOConcurrencyHelpers NIOLock.swift
[6/23] Compiling NIOConcurrencyHelpers lock.swift
[7/23] Emitting module NIOConcurrencyHelpers
[8/23] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[9/23] Compiling Logging MetadataProvider.swift
[10/23] Compiling Logging Logging.swift
[11/23] Emitting module Logging
[12/23] Compiling Logging LogHandler.swift
[13/23] Compiling Logging Locks.swift
[14/24] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[15/24] Compiling NIOConcurrencyHelpers atomics.swift
[17/25] Wrapping AST for Logging for debugging
[19/50] Compiling ConsoleKitTerminal Console+Wait.swift
[20/50] Compiling ConsoleKitTerminal ConsoleColor.swift
[21/50] Compiling ConsoleKitTerminal ConsoleStyle.swift
[22/50] Compiling ConsoleKitTerminal Console+Ephemeral.swift
[23/50] Compiling ConsoleKitTerminal ConsoleClear.swift
[24/50] Compiling ConsoleKitTerminal Console+Ask.swift
[25/50] Compiling ConsoleKitTerminal Console+Choose.swift
[26/53] Emitting module ConsoleKitTerminal
[27/53] Compiling ConsoleKitTerminal ActivityBar.swift
[28/53] Compiling ConsoleKitTerminal ActivityIndicator.swift
[29/53] Compiling ConsoleKitTerminal ActivityIndicatorRenderer.swift
[30/53] Compiling ConsoleKitTerminal ActivityIndicatorState.swift
[31/53] Compiling ConsoleKitTerminal ConsoleText.swift
[32/53] Compiling ConsoleKitTerminal ConsoleTextFragment.swift
[33/53] Compiling ConsoleKitTerminal ANSI.swift
[34/53] Compiling ConsoleKitTerminal CustomActivity.swift
[35/53] Compiling ConsoleKitTerminal LoadingBar.swift
[36/53] Compiling ConsoleKitTerminal ProgressBar.swift
[37/53] Compiling ConsoleKitTerminal Console+Clear.swift
[38/53] Compiling ConsoleKitTerminal Console+Confirm.swift
[39/53] Compiling ConsoleKitTerminal Console+Input.swift
[40/53] Compiling ConsoleKitTerminal Console+Center.swift
[41/53] Compiling ConsoleKitTerminal Console+Output.swift
[42/53] Compiling ConsoleKitTerminal Console.swift
[43/53] Compiling ConsoleKitTerminal Terminal.swift
[44/53] Compiling ConsoleKitTerminal readpassphrase_linux.swift
[45/53] Compiling ConsoleKitTerminal AnySendableHashable.swift
[46/53] Compiling ConsoleKitTerminal ConsoleLogger.swift
[47/53] Compiling ConsoleKitTerminal LoggerFragment.swift
[49/75] Compiling ConsoleKitCommands AnyAsyncCommand.swift
[50/75] Compiling ConsoleKitCommands AsyncCommand.swift
[51/75] Compiling ConsoleKitCommands AsyncCommandGroup.swift
[52/75] Emitting module ConsoleKitCommands
[53/77] Compiling ConsoleKitCommands AsyncCommands.swift
[54/77] Compiling ConsoleKitCommands GenerateAsyncAutocompleteCommand.swift
[55/77] Compiling ConsoleKitCommands AnyCommand.swift
[56/77] Compiling ConsoleKitCommands Command.swift
[57/77] Compiling ConsoleKitCommands CommandContext.swift
[58/77] Compiling ConsoleKitCommands CommandError.swift
[59/77] Compiling ConsoleKitCommands String+LevenshteinDistance.swift
[60/77] Compiling ConsoleKitCommands Utilities.swift
[61/77] Compiling ConsoleKitCommands GenerateAutocompleteCommand.swift
[62/77] Compiling ConsoleKitCommands MergedAsyncCommandGroup.swift
[63/77] Compiling ConsoleKitCommands Argument.swift
[64/77] Compiling ConsoleKitCommands CommandGroup.swift
[65/77] Compiling ConsoleKitCommands CommandInput.swift
[66/77] Compiling ConsoleKitCommands Commands.swift
[67/77] Compiling ConsoleKitCommands CommandSignature.swift
[68/77] Compiling ConsoleKitCommands Flag.swift
[69/77] Compiling ConsoleKitCommands Option.swift
[70/77] Compiling ConsoleKitCommands Console+Run.swift
[71/77] Compiling ConsoleKitCommands ConsoleError.swift
[72/77] Compiling ConsoleKitCommands Completion.swift
[74/79] Emitting module ConsoleKit
[75/79] Compiling ConsoleKit Exports.swift
[77/98] Compiling systemd DisableCommand.swift
[78/98] Compiling systemd EditCommand.swift
[79/98] Compiling systemd EnableCommand.swift
[80/98] Compiling systemd String+Fragment.swift
[81/98] Compiling systemd Journalctl.swift
[82/98] Compiling systemd StatusCommand.swift
[83/98] Compiling systemd StopCommand.swift
[84/98] Compiling systemd UninstallCommand.swift
[85/100] Emitting module systemd
[86/100] Compiling systemd VersionCommand.swift
[87/100] Compiling systemd Console+Abort.swift
[88/100] Compiling systemd ReloadDaemonCommand.swift
[89/100] Compiling systemd RestartCommand.swift
[90/100] Compiling systemd StartCommand.swift
[91/100] Compiling systemd InstallCommand.swift
[92/100] Compiling systemd KillCommand.swift
[93/100] Compiling systemd LogsCommand.swift
[94/100] Compiling systemd Swift.swift
/host/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift:26:19: error: cannot find 'getcwd' in scope
24 |
25 |     static func cwd(_ context: ConsoleKit.CommandContext? = nil) -> String? {
26 |         let cwd = getcwd(nil, Int(PATH_MAX))
   |                   `- error: cannot find 'getcwd' in scope
27 |         defer {
28 |             if let cwd = cwd {
/host/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift:26:26: error: 'nil' requires a contextual type
24 |
25 |     static func cwd(_ context: ConsoleKit.CommandContext? = nil) -> String? {
26 |         let cwd = getcwd(nil, Int(PATH_MAX))
   |                          `- error: 'nil' requires a contextual type
27 |         defer {
28 |             if let cwd = cwd {
/host/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift:75:17: warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
73 |                 group.leave()
74 |             } else {
75 |                 resultData.append(data)
   |                 `- warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
76 |             }
77 |         }
/host/spi-builder-workspace/Sources/systemd/Helpers/Systemctl.swift:199:17: warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
197 |                 group.leave()
198 |             } else {
199 |                 resultData.append(data)
    |                 `- warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
200 |             }
201 |         }
[95/100] Compiling systemd Systemctl.swift
/host/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift:26:19: error: cannot find 'getcwd' in scope
24 |
25 |     static func cwd(_ context: ConsoleKit.CommandContext? = nil) -> String? {
26 |         let cwd = getcwd(nil, Int(PATH_MAX))
   |                   `- error: cannot find 'getcwd' in scope
27 |         defer {
28 |             if let cwd = cwd {
/host/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift:26:26: error: 'nil' requires a contextual type
24 |
25 |     static func cwd(_ context: ConsoleKit.CommandContext? = nil) -> String? {
26 |         let cwd = getcwd(nil, Int(PATH_MAX))
   |                          `- error: 'nil' requires a contextual type
27 |         defer {
28 |             if let cwd = cwd {
/host/spi-builder-workspace/Sources/systemd/Helpers/Swift.swift:75:17: warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
73 |                 group.leave()
74 |             } else {
75 |                 resultData.append(data)
   |                 `- warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
76 |             }
77 |         }
/host/spi-builder-workspace/Sources/systemd/Helpers/Systemctl.swift:199:17: warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
197 |                 group.leave()
198 |             } else {
199 |                 resultData.append(data)
    |                 `- warning: mutation of captured var 'resultData' in concurrently-executing code; this is an error in the Swift 6 language mode
200 |             }
201 |         }
[96/100] Compiling systemd Users.swift
/host/spi-builder-workspace/Sources/systemd/Helpers/Users.swift:20:21: warning: 'launchPath' is deprecated: renamed to 'executableURL'
18 |             let stderr = Pipe()
19 |             let process = Process()
20 |             process.launchPath = try Bash.which("awk")
   |                     |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
   |                     `- note: use 'executableURL' instead
21 |             process.arguments = ["-F:", "\"{ print $1}\"", "/etc/passwd"]
22 |             process.standardOutput = stdout
/host/spi-builder-workspace/Sources/systemd/Helpers/Users.swift:27:21: warning: 'launch()' is deprecated: renamed to 'run'
25 |             let outHandle = stdout.fileHandleForReading
26 |
27 |             process.launch()
   |                     |- warning: 'launch()' is deprecated: renamed to 'run'
   |                     `- note: use 'run' instead
28 |             process.waitUntilExit()
29 |
[97/100] Compiling systemd main.swift
/host/spi-builder-workspace/Sources/systemd/Helpers/Users.swift:20:21: warning: 'launchPath' is deprecated: renamed to 'executableURL'
18 |             let stderr = Pipe()
19 |             let process = Process()
20 |             process.launchPath = try Bash.which("awk")
   |                     |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
   |                     `- note: use 'executableURL' instead
21 |             process.arguments = ["-F:", "\"{ print $1}\"", "/etc/passwd"]
22 |             process.standardOutput = stdout
/host/spi-builder-workspace/Sources/systemd/Helpers/Users.swift:27:21: warning: 'launch()' is deprecated: renamed to 'run'
25 |             let outHandle = stdout.fileHandleForReading
26 |
27 |             process.launch()
   |                     |- warning: 'launch()' is deprecated: renamed to 'run'
   |                     `- note: use 'run' instead
28 |             process.waitUntilExit()
29 |
BUILD FAILURE 6.1 android