The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CommandLineKit, reference v4.1.2 (b83f09), with Swift 6.1 for Android on 29 May 2025 01:52:55 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/basvankuijck/CommandLine.git
Reference: v4.1.2
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/basvankuijck/CommandLine
 * tag               v4.1.2     -> FETCH_HEAD
HEAD is now at b83f09a Fixed sources
Cloned https://github.com/basvankuijck/CommandLine.git
Revision (git rev-parse @):
b83f09a25224c29b820f9e8d1311569736021820
SUCCESS checkout https://github.com/basvankuijck/CommandLine.git at v4.1.2
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/basvankuijck/CommandLine.git
https://github.com/basvankuijck/CommandLine.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CommandLineKit",
  "name" : "CommandLineKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "CommandLineKit",
      "targets" : [
        "CommandLineKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CommandLineKit",
      "module_type" : "SwiftTarget",
      "name" : "CommandLineKit",
      "path" : ".",
      "product_memberships" : [
        "CommandLineKit"
      ],
      "sources" : [
        "CommandLineKit/CommandLine.swift",
        "CommandLineKit/Option.swift",
        "CommandLineKit/StringExtensions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling CommandLineKit Option.swift
[4/6] Emitting module CommandLineKit
/host/spi-builder-workspace/CommandLineKit/CommandLine.swift:158:10: warning: associated value 'invalidValueForOption' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
156 |
157 |     /** Thrown if the value for an Option is invalid (e.g. a string is passed to an IntOption) */
158 |     case invalidValueForOption(Option, [String])
    |          `- warning: associated value 'invalidValueForOption' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
159 |
160 |     /** Thrown if an Option with required: true is missing */
/host/spi-builder-workspace/CommandLineKit/Option.swift:21:14: note: class 'Option' does not conform to the 'Sendable' protocol
 19 |  * The base class for a command-line option.
 20 |  */
 21 | public class Option {
    |              `- note: class 'Option' does not conform to the 'Sendable' protocol
 22 |   public let shortFlag: String?
 23 |   public let longFlag: String?
/host/spi-builder-workspace/CommandLineKit/CommandLine.swift:161:10: warning: associated value 'missingRequiredOptions' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
159 |
160 |     /** Thrown if an Option with required: true is missing */
161 |     case missingRequiredOptions([Option])
    |          `- warning: associated value 'missingRequiredOptions' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
162 |
163 |     public var description: String {
/host/spi-builder-workspace/CommandLineKit/Option.swift:21:14: note: class 'Option' does not conform to the 'Sendable' protocol
 19 |  * The base class for a command-line option.
 20 |  */
 21 | public class Option {
    |              `- note: class 'Option' does not conform to the 'Sendable' protocol
 22 |   public let shortFlag: String?
 23 |   public let longFlag: String?
[5/6] Compiling CommandLineKit CommandLine.swift
/host/spi-builder-workspace/CommandLineKit/CommandLine.swift:158:10: warning: associated value 'invalidValueForOption' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
156 |
157 |     /** Thrown if the value for an Option is invalid (e.g. a string is passed to an IntOption) */
158 |     case invalidValueForOption(Option, [String])
    |          `- warning: associated value 'invalidValueForOption' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
159 |
160 |     /** Thrown if an Option with required: true is missing */
/host/spi-builder-workspace/CommandLineKit/Option.swift:21:14: note: class 'Option' does not conform to the 'Sendable' protocol
 19 |  * The base class for a command-line option.
 20 |  */
 21 | public class Option {
    |              `- note: class 'Option' does not conform to the 'Sendable' protocol
 22 |   public let shortFlag: String?
 23 |   public let longFlag: String?
/host/spi-builder-workspace/CommandLineKit/CommandLine.swift:161:10: warning: associated value 'missingRequiredOptions' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
159 |
160 |     /** Thrown if an Option with required: true is missing */
161 |     case missingRequiredOptions([Option])
    |          `- warning: associated value 'missingRequiredOptions' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
162 |
163 |     public var description: String {
/host/spi-builder-workspace/CommandLineKit/Option.swift:21:14: note: class 'Option' does not conform to the 'Sendable' protocol
 19 |  * The base class for a command-line option.
 20 |  */
 21 | public class Option {
    |              `- note: class 'Option' does not conform to the 'Sendable' protocol
 22 |   public let shortFlag: String?
 23 |   public let longFlag: String?
/host/spi-builder-workspace/CommandLineKit/CommandLine.swift:37:14: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 35 |   static let stream = StderrOutputStream()
 36 |   func write(_ s: String) {
 37 |     fputs(s, stderr)
    |              `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 38 |   }
 39 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:64:23: note: var declared here
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
    |                       `- note: var declared here
 65 |
 66 | /* C99 and earlier plus current C++ standards say these must be macros. */
[6/6] Compiling CommandLineKit StringExtensions.swift
/host/spi-builder-workspace/CommandLineKit/StringExtensions.swift:30:24: error: cannot find 'localeconv' in scope
 28 |    */
 29 |   private func _localDecimalPoint() -> Character {
 30 |     guard let locale = localeconv(), let decimalPoint = locale.pointee.decimal_point else {
    |                        `- error: cannot find 'localeconv' in scope
 31 |       return "."
 32 |     }
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/5] Compiling CommandLineKit Option.swift
[3/5] Compiling CommandLineKit StringExtensions.swift
/host/spi-builder-workspace/CommandLineKit/StringExtensions.swift:30:24: error: cannot find 'localeconv' in scope
 28 |    */
 29 |   private func _localDecimalPoint() -> Character {
 30 |     guard let locale = localeconv(), let decimalPoint = locale.pointee.decimal_point else {
    |                        `- error: cannot find 'localeconv' in scope
 31 |       return "."
 32 |     }
[4/5] Compiling CommandLineKit CommandLine.swift
[5/5] Emitting module CommandLineKit
BUILD FAILURE 6.1 android