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 LoggerKit, reference master (32680c), with Swift 6.1 for Android on 28 May 2025 13:27:52 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/pvieito/LoggerKit.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/pvieito/LoggerKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 32680ce [LoggerKit] Updated Rainbow package
Cloned https://github.com/pvieito/LoggerKit.git
Revision (git rev-parse @):
32680ce247721c879d3797c329904d3db720e551
SUCCESS checkout https://github.com/pvieito/LoggerKit.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/pvieito/LoggerKit.git
https://github.com/pvieito/LoggerKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "rainbow",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/onevcat/Rainbow"
    }
  ],
  "manifest_display_name" : "LoggerKit",
  "name" : "LoggerKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "LoggerKit",
      "targets" : [
        "LoggerKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "LoggerKitMac",
      "targets" : [
        "LoggerKitMac"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LoggerKitTests",
      "module_type" : "SwiftTarget",
      "name" : "LoggerKitTests",
      "path" : "Tests/LoggerKitTests",
      "sources" : [
        "LoggerKitTests.swift"
      ],
      "target_dependencies" : [
        "LoggerKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LoggerKitMac",
      "module_type" : "SwiftTarget",
      "name" : "LoggerKitMac",
      "path" : "LoggerKitMac",
      "product_memberships" : [
        "LoggerKitMac"
      ],
      "sources" : [
        "Logger.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "LoggerKit",
      "module_type" : "SwiftTarget",
      "name" : "LoggerKit",
      "path" : "LoggerKit",
      "product_dependencies" : [
        "Rainbow"
      ],
      "product_memberships" : [
        "LoggerKit"
      ],
      "sources" : [
        "Logger.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
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/onevcat/Rainbow
[1/1196] Fetching rainbow
Fetched https://github.com/onevcat/Rainbow from cache (0.37s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 4.1.0 (3.83s)
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 4.1.0
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/17] Emitting module Rainbow
/host/spi-builder-workspace/.build/checkouts/Rainbow/Sources/OutputTarget.swift:49:58: error: cannot find 'isatty' in scope
47 |         // Check if we are in any term env and the output is a tty.
48 |         let termType = getEnvValue("TERM")
49 |         if let t = termType, t.lowercased() != "dumb" && isatty(fileno(stdout)) != 0 {
   |                                                          `- error: cannot find 'isatty' in scope
50 |             return .console
51 |         }
[6/18] Compiling Rainbow StringGenerator.swift
[7/18] Compiling Rainbow Style.swift
[8/18] Compiling Rainbow String+Rainbow.swift
[9/18] Compiling Rainbow BackgroundColor.swift
[10/18] Compiling Rainbow CodesParser.swift
[11/18] Compiling Rainbow ControlCode.swift
[12/18] Compiling Rainbow ModesExtractor.swift
[13/18] Compiling Rainbow Rainbow.swift
[14/18] Compiling Rainbow OutputTarget.swift
/host/spi-builder-workspace/.build/checkouts/Rainbow/Sources/OutputTarget.swift:49:58: error: cannot find 'isatty' in scope
47 |         // Check if we are in any term env and the output is a tty.
48 |         let termType = getEnvValue("TERM")
49 |         if let t = termType, t.lowercased() != "dumb" && isatty(fileno(stdout)) != 0 {
   |                                                          `- error: cannot find 'isatty' in scope
50 |             return .console
51 |         }
[15/18] Compiling LoggerKitMac Logger.swift
/host/spi-builder-workspace/LoggerKitMac/Logger.swift:41:23: warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |     /// The Logger will only log messages with a level equal or higher than this.
 40 |     #if DEBUG
 41 |     public static var logLevel: LogLevel = .debug
    |                       |- warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'logLevel' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 42 |     #else
 43 |     public static var logLevel: LogLevel = .warning
/host/spi-builder-workspace/LoggerKitMac/Logger.swift:46:24: warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 |     /// Possible levels of the log.
 20 |     public enum LogLevel: Int, Comparable, CaseIterable {
    |                 `- note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
 21 |         case silence = 0
 22 |         case error
    :
 44 |     #endif
 45 |
 46 |     private static let _maxLogLevel = LogLevel.allCases.max()!
    |                        |- warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property '_maxLogLevel' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |     private static var _logLevel: LogLevel {
 48 |         if self.isExtendedLogEnabled {
/host/spi-builder-workspace/LoggerKitMac/Logger.swift:69:23: warning: static property 'logMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |
 68 |     /// The mode of the Logger.
 69 |     public static var logMode: LogMode = .logger
    |                       |- warning: static property 'logMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'logMode' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'logMode' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 | }
 71 |
/host/spi-builder-workspace/LoggerKitMac/Logger.swift:75:24: warning: static property 'isExtendedLogEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 73 |     // MARK: Private Log Functions
 74 |     private static let extendedLogEnvironmentVariableName = "LOGGERKIT_EXTENDED_LOG"
 75 |     private static var isExtendedLogEnabled: Bool = {
    |                        |- warning: static property 'isExtendedLogEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'isExtendedLogEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'isExtendedLogEnabled' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 76 |         return ProcessInfo.processInfo.environment[Logger.extendedLogEnvironmentVariableName] != nil
 77 |     }()
[16/18] Emitting module LoggerKitMac
/host/spi-builder-workspace/LoggerKitMac/Logger.swift:41:23: warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |     /// The Logger will only log messages with a level equal or higher than this.
 40 |     #if DEBUG
 41 |     public static var logLevel: LogLevel = .debug
    |                       |- warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'logLevel' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 42 |     #else
 43 |     public static var logLevel: LogLevel = .warning
/host/spi-builder-workspace/LoggerKitMac/Logger.swift:46:24: warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 |     /// Possible levels of the log.
 20 |     public enum LogLevel: Int, Comparable, CaseIterable {
    |                 `- note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
 21 |         case silence = 0
 22 |         case error
    :
 44 |     #endif
 45 |
 46 |     private static let _maxLogLevel = LogLevel.allCases.max()!
    |                        |- warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property '_maxLogLevel' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |     private static var _logLevel: LogLevel {
 48 |         if self.isExtendedLogEnabled {
/host/spi-builder-workspace/LoggerKitMac/Logger.swift:69:23: warning: static property 'logMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |
 68 |     /// The mode of the Logger.
 69 |     public static var logMode: LogMode = .logger
    |                       |- warning: static property 'logMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'logMode' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'logMode' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 | }
 71 |
/host/spi-builder-workspace/LoggerKitMac/Logger.swift:75:24: warning: static property 'isExtendedLogEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 73 |     // MARK: Private Log Functions
 74 |     private static let extendedLogEnvironmentVariableName = "LOGGERKIT_EXTENDED_LOG"
 75 |     private static var isExtendedLogEnabled: Bool = {
    |                        |- warning: static property 'isExtendedLogEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'isExtendedLogEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'isExtendedLogEnabled' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 76 |         return ProcessInfo.processInfo.environment[Logger.extendedLogEnvironmentVariableName] != nil
 77 |     }()
[17/19] Compiling Rainbow Color.swift
[18/19] Compiling Rainbow ColorApproximation.swift
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/1] Write swift-version-24593BA9C3E375BF.txt
[2/14] Compiling Rainbow OutputTarget.swift
/host/spi-builder-workspace/.build/checkouts/Rainbow/Sources/OutputTarget.swift:49:58: error: cannot find 'isatty' in scope
47 |         // Check if we are in any term env and the output is a tty.
48 |         let termType = getEnvValue("TERM")
49 |         if let t = termType, t.lowercased() != "dumb" && isatty(fileno(stdout)) != 0 {
   |                                                          `- error: cannot find 'isatty' in scope
50 |             return .console
51 |         }
[3/15] Compiling Rainbow ControlCode.swift
[4/15] Compiling Rainbow ModesExtractor.swift
[5/15] Compiling Rainbow StringGenerator.swift
[6/15] Compiling Rainbow Rainbow.swift
[7/15] Compiling Rainbow String+Rainbow.swift
[8/15] Compiling Rainbow Style.swift
[9/15] Compiling LoggerKitMac Logger.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/15] Emitting module Rainbow
/host/spi-builder-workspace/.build/checkouts/Rainbow/Sources/OutputTarget.swift:49:58: error: cannot find 'isatty' in scope
47 |         // Check if we are in any term env and the output is a tty.
48 |         let termType = getEnvValue("TERM")
49 |         if let t = termType, t.lowercased() != "dumb" && isatty(fileno(stdout)) != 0 {
   |                                                          `- error: cannot find 'isatty' in scope
50 |             return .console
51 |         }
[11/15] Compiling Rainbow Color.swift
[12/15] Compiling Rainbow ColorApproximation.swift
[13/15] Compiling Rainbow BackgroundColor.swift
[14/15] Compiling Rainbow CodesParser.swift
[15/15] Emitting module LoggerKitMac
BUILD FAILURE 6.1 android