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 SemiSingleton, reference 2.0.5 (9459d4), with Swift 6.1 for Android on 28 May 2025 09:51:44 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/happn-app/SemiSingleton.git
Reference: 2.0.5
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/happn-app/SemiSingleton
 * tag               2.0.5      -> FETCH_HEAD
HEAD is now at 9459d45 Update dependencies paths
Cloned https://github.com/happn-app/SemiSingleton.git
Revision (git rev-parse @):
9459d45f4d4719c306b5e0534438eeaa18fad27e
SUCCESS checkout https://github.com/happn-app/SemiSingleton.git at 2.0.5
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/happn-app/SemiSingleton.git
https://github.com/happn-app/SemiSingleton.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "recursivesyncdispatch",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/happn-app/RecursiveSyncDispatch.git"
    }
  ],
  "manifest_display_name" : "SemiSingleton",
  "name" : "SemiSingleton",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SemiSingleton",
      "targets" : [
        "SemiSingleton"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SemiSingletonTests",
      "module_type" : "SwiftTarget",
      "name" : "SemiSingletonTests",
      "path" : "Tests/SemiSingletonTests",
      "sources" : [
        "Helpers/ReentrantSemiSingletonInit.swift",
        "Helpers/SimpleSemiSingleton.swift",
        "SemiSingletonTests.swift"
      ],
      "target_dependencies" : [
        "SemiSingleton"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SemiSingleton",
      "module_type" : "SwiftTarget",
      "name" : "SemiSingleton",
      "path" : "Sources/SemiSingleton",
      "product_dependencies" : [
        "Logging",
        "RecursiveSyncDispatch"
      ],
      "product_memberships" : [
        "SemiSingleton"
      ],
      "sources" : [
        "LinuxStrongToWeakMapTable.swift",
        "SemiSingletonConfig.swift",
        "SemiSingletonStore.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/apple/swift-log.git
Fetching https://github.com/happn-app/RecursiveSyncDispatch.git
[1/178] Fetching recursivesyncdispatch
[179/4014] Fetching recursivesyncdispatch, swift-log
Fetched https://github.com/happn-app/RecursiveSyncDispatch.git from cache (0.37s)
Fetched https://github.com/apple/swift-log.git from cache (0.37s)
Computing version for https://github.com/happn-app/RecursiveSyncDispatch.git
Computed https://github.com/happn-app/RecursiveSyncDispatch.git at 1.0.1 (0.89s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.47s)
Creating working copy for https://github.com/happn-app/RecursiveSyncDispatch.git
Working copy of https://github.com/happn-app/RecursiveSyncDispatch.git resolved at 1.0.1
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
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/11] Emitting module Logging
[6/11] Compiling Logging Logging.swift
[7/11] Compiling Logging LogHandler.swift
[8/11] Compiling Logging Locks.swift
[9/11] Compiling Logging MetadataProvider.swift
[11/12] Emitting module RecursiveSyncDispatch
[12/12] Compiling RecursiveSyncDispatch RecursiveSyncDispatch.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/17] Compiling SemiSingleton SemiSingletonConfig.swift
/host/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonConfig.swift:47:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 | 	public static var oslog: OSLog? = .default
46 | #endif
47 | 	public static var logger: Logging.Logger? = {
   |                    |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | #if canImport(os)
49 | 		if #available(macOS 10.12, tvOS 10.0, iOS 10.0, watchOS 3.0, *) {
[15/17] Compiling SemiSingleton LinuxStrongToWeakMapTable.swift
[16/17] Emitting module SemiSingleton
/host/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonConfig.swift:47:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 | 	public static var oslog: OSLog? = .default
46 | #endif
47 | 	public static var logger: Logging.Logger? = {
   |                    |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | #if canImport(os)
49 | 		if #available(macOS 10.12, tvOS 10.0, iOS 10.0, watchOS 3.0, *) {
/host/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonStore.swift:69:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SemiSingletonStore' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |
 61 | public class SemiSingletonStore {
    |              `- note: class 'SemiSingletonStore' does not conform to the 'Sendable' protocol
 62 |
 63 | 	public enum Error : Swift.Error {
    :
 67 | 	}
 68 |
 69 | 	public static let shared = SemiSingletonStore(forceClassInKeys: true)
    |                    |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SemiSingletonStore' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |
 71 | 	public let forceClassInKeys: Bool
/host/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonStore.swift:227:34: error: cannot find 'NSMapTable' in scope
225 |
226 | #if !os(Linux)
227 | 	private var registeredObjects = NSMapTable<StoreKey, AnyObject>.strongToWeakObjects()
    |                                  `- error: cannot find 'NSMapTable' in scope
228 | #else
229 | 	private var registeredObjects = LinuxStrongToWeakMapTable<StoreKey, AnyObject>()
[17/17] Compiling SemiSingleton SemiSingletonStore.swift
/host/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonStore.swift:69:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SemiSingletonStore' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |
 61 | public class SemiSingletonStore {
    |              `- note: class 'SemiSingletonStore' does not conform to the 'Sendable' protocol
 62 |
 63 | 	public enum Error : Swift.Error {
    :
 67 | 	}
 68 |
 69 | 	public static let shared = SemiSingletonStore(forceClassInKeys: true)
    |                    |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SemiSingletonStore' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |
 71 | 	public let forceClassInKeys: Bool
/host/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonStore.swift:227:34: error: cannot find 'NSMapTable' in scope
225 |
226 | #if !os(Linux)
227 | 	private var registeredObjects = NSMapTable<StoreKey, AnyObject>.strongToWeakObjects()
    |                                  `- error: cannot find 'NSMapTable' in scope
228 | #else
229 | 	private var registeredObjects = LinuxStrongToWeakMapTable<StoreKey, AnyObject>()
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/8] Compiling Logging MetadataProvider.swift
[3/8] Emitting module RecursiveSyncDispatch
[4/8] Compiling RecursiveSyncDispatch RecursiveSyncDispatch.swift
[6/9] Compiling Logging LogHandler.swift
[7/9] Compiling Logging Locks.swift
[8/9] Emitting module Logging
[9/9] Compiling Logging Logging.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/14] Compiling SemiSingleton LinuxStrongToWeakMapTable.swift
[12/14] Compiling SemiSingleton SemiSingletonConfig.swift
[13/14] Emitting module SemiSingleton
/host/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonStore.swift:227:34: error: cannot find 'NSMapTable' in scope
225 |
226 | #if !os(Linux)
227 | 	private var registeredObjects = NSMapTable<StoreKey, AnyObject>.strongToWeakObjects()
    |                                  `- error: cannot find 'NSMapTable' in scope
228 | #else
229 | 	private var registeredObjects = LinuxStrongToWeakMapTable<StoreKey, AnyObject>()
[14/14] Compiling SemiSingleton SemiSingletonStore.swift
/host/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonStore.swift:227:34: error: cannot find 'NSMapTable' in scope
225 |
226 | #if !os(Linux)
227 | 	private var registeredObjects = NSMapTable<StoreKey, AnyObject>.strongToWeakObjects()
    |                                  `- error: cannot find 'NSMapTable' in scope
228 | #else
229 | 	private var registeredObjects = LinuxStrongToWeakMapTable<StoreKey, AnyObject>()
BUILD FAILURE 6.1 android