The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Resolver, reference master (47602a), with Swift 6.1 for Wasm on 29 May 2025 07:19:47 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hmlongco/Resolver.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/hmlongco/Resolver
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 47602af Update manifest
Cloned https://github.com/hmlongco/Resolver.git
Revision (git rev-parse @):
47602af1ac8d7952299fbd0bda3cfbd12cf3a8ca
SUCCESS checkout https://github.com/hmlongco/Resolver.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/hmlongco/Resolver.git
https://github.com/hmlongco/Resolver.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Resolver",
  "name" : "Resolver",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.14"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "Resolver",
      "targets" : [
        "Resolver"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Resolver-Static",
      "targets" : [
        "Resolver"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "Resolver-Dynamic",
      "targets" : [
        "Resolver"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ResolverTests",
      "module_type" : "SwiftTarget",
      "name" : "ResolverTests",
      "path" : "Tests/ResolverTests",
      "sources" : [
        "ResolverArgumentTests.swift",
        "ResolverBasicTests.swift",
        "ResolverClassTests.swift",
        "ResolverContainerTests.swift",
        "ResolverCyclicDependencyTests.swift",
        "ResolverInjectedTests.swift",
        "ResolverNameTests.swift",
        "ResolverProtocolTests.swift",
        "ResolverScopeNameTests.swift",
        "ResolverScopeReferenceTests.swift",
        "ResolverScopeValueTests.swift",
        "ResolverStoryboardTests.swift",
        "TestData.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Resolver"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Resolver",
      "module_type" : "SwiftTarget",
      "name" : "Resolver",
      "path" : "Sources/Resolver",
      "product_memberships" : [
        "Resolver",
        "Resolver-Static",
        "Resolver-Dynamic"
      ],
      "sources" : [
        "Resolver.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
warning: 'spi-builder-workspace': Invalid Resource 'PrivacyInfo.xcprivacy': File not found.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': Invalid Resource 'PrivacyInfo.xcprivacy': File not found.
Building for debugging...
[0/7] Write sources
[1/7] Write swift-version-24593BA9C3E375BF.txt
[3/9] Emitting module Resolver
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:61:23: warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Default registry used by the static Registration functions.
 61 |     public static var main: Resolver = Resolver()
    |                       |- warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'main' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'main' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 62 |     /// Default registry used by the static Resolution functions and by the Resolving protocol.
 63 |     public static var root: Resolver = main
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:63:23: warning: static property 'root' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 61 |     public static var main: Resolver = Resolver()
 62 |     /// Default registry used by the static Resolution functions and by the Resolving protocol.
 63 |     public static var root: Resolver = main
    |                       |- warning: static property 'root' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'root' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'root' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 64 |     /// Default scope applied when registering new objects.
 65 |     public static var defaultScope: ResolverScope = .graph
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:65:23: warning: static property 'defaultScope' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 63 |     public static var root: Resolver = main
 64 |     /// Default scope applied when registering new objects.
 65 |     public static var defaultScope: ResolverScope = .graph
    |                       |- warning: static property 'defaultScope' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'defaultScope' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'defaultScope' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 66 |     /// Internal scope cache used for .scope(.container)
 67 |     public lazy var cache: ResolverScope = ResolverScopeCache()
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:69:23: warning: static property 'decorate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |     public lazy var cache: ResolverScope = ResolverScopeCache()
 68 |     /// Decorator applied to all resolved objects
 69 |     public static var decorate: ((_ service: Any) -> Void)?
    |                       |- warning: static property 'decorate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'decorate' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'decorate' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |
 71 |     // MARK: - Lifecycle
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:105:23: warning: static property 'registerServices' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 |     /// Call function to force one-time initialization of the Resolver registries. Usually not needed as functionality
104 |     /// occurs automatically the first time a resolution function is called.
105 |     public static var registerServices: (() -> Void)? = {
    |                       |- warning: static property 'registerServices' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'registerServices' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'registerServices' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 |         lock.lock()
107 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:372:28: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'ResolverRecursiveLock' may have shared mutable state; this is an error in the Swift 6 language mode
351 |
352 | /// Resolving an instance of a service is a recursive process (service A needs a B which needs a C).
353 | private final class ResolverRecursiveLock {
    |                     `- note: class 'ResolverRecursiveLock' does not conform to the 'Sendable' protocol
354 |     init() {
355 |         pthread_mutexattr_init(&recursiveMutexAttr)
    :
370 |
371 | extension Resolver {
372 |     fileprivate static let lock = ResolverRecursiveLock()
    |                            |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'ResolverRecursiveLock' may have shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: add '@MainActor' to make static property 'lock' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
373 | }
374 |
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:453:13: warning: var 'registrationNeeded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
451 | // Registration Internals
452 |
453 | private var registrationNeeded: Bool = true
    |             |- warning: var 'registrationNeeded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'registrationNeeded' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'registrationNeeded' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
454 |
455 | @inline(__always)
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:601:23: warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'ResolverScopeCache' may have shared mutable state; this is an error in the Swift 6 language mode
599 |
600 |     /// All application scoped services exist for lifetime of the app. (e.g Singletons)
601 |     public static let application = ResolverScopeCache()
    |                       |- warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'ResolverScopeCache' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'application' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
602 |     /// Proxy to container's scope. Cache type depends on type supplied to container (default .cache)
603 |     public static let container = ResolverScopeContainer()
    :
624 |
625 | /// Cached services exist for lifetime of the app or until their cache is reset.
626 | public class ResolverScopeCache: ResolverScope {
    |              `- note: class 'ResolverScopeCache' does not conform to the 'Sendable' protocol
627 |
628 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:603:23: warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ResolverScopeContainer' may have shared mutable state; this is an error in the Swift 6 language mode
601 |     public static let application = ResolverScopeCache()
602 |     /// Proxy to container's scope. Cache type depends on type supplied to container (default .cache)
603 |     public static let container = ResolverScopeContainer()
    |                       |- warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ResolverScopeContainer' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'container' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
604 |     /// Cached services exist for lifetime of the app or until their cache is reset.
605 |     public static let cached = ResolverScopeCache()
    :
703 |
704 | /// Proxy to container's scope. Cache type depends on type supplied to container (default .cache)
705 | public final class ResolverScopeContainer: ResolverScope {
    |                    `- note: class 'ResolverScopeContainer' does not conform to the 'Sendable' protocol
706 |
707 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:605:23: warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'ResolverScopeCache' may have shared mutable state; this is an error in the Swift 6 language mode
603 |     public static let container = ResolverScopeContainer()
604 |     /// Cached services exist for lifetime of the app or until their cache is reset.
605 |     public static let cached = ResolverScopeCache()
    |                       |- warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'ResolverScopeCache' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'cached' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
606 |     /// Graph services are initialized once and only once during a given resolution cycle. This is the default scope.
607 |     public static let graph = ResolverScopeGraph()
    :
624 |
625 | /// Cached services exist for lifetime of the app or until their cache is reset.
626 | public class ResolverScopeCache: ResolverScope {
    |              `- note: class 'ResolverScopeCache' does not conform to the 'Sendable' protocol
627 |
628 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:607:23: warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ResolverScopeGraph' may have shared mutable state; this is an error in the Swift 6 language mode
605 |     public static let cached = ResolverScopeCache()
606 |     /// Graph services are initialized once and only once during a given resolution cycle. This is the default scope.
607 |     public static let graph = ResolverScopeGraph()
    |                       |- warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ResolverScopeGraph' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'graph' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
608 |     /// Shared services persist while strong references to them exist. They're then deallocated until the next resolve.
609 |     public static let shared = ResolverScopeShare()
    :
647 |
648 | /// Graph services are initialized once and only once during a given resolution cycle. This is the default scope.
649 | public final class ResolverScopeGraph: ResolverScope {
    |                    `- note: class 'ResolverScopeGraph' does not conform to the 'Sendable' protocol
650 |
651 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:609:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ResolverScopeShare' may have shared mutable state; this is an error in the Swift 6 language mode
607 |     public static let graph = ResolverScopeGraph()
608 |     /// Shared services persist while strong references to them exist. They're then deallocated until the next resolve.
609 |     public static let shared = ResolverScopeShare()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ResolverScopeShare' 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
610 |     /// Unique services are created and initialized each and every time they're resolved.
611 |     public static let unique = ResolverScope()
    :
673 |
674 | /// Shared services persist while strong references to them exist. They're then deallocated until the next resolve.
675 | public final class ResolverScopeShare: ResolverScope {
    |                    `- note: class 'ResolverScopeShare' does not conform to the 'Sendable' protocol
676 |
677 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:611:23: warning: static property 'unique' is not concurrency-safe because non-'Sendable' type 'ResolverScope' may have shared mutable state; this is an error in the Swift 6 language mode
594 | }
595 |
596 | public class ResolverScope: ResolverScopeType {
    |              `- note: class 'ResolverScope' does not conform to the 'Sendable' protocol
597 |
598 |     // Moved definitions to ResolverScope to allow for dot notation access
    :
609 |     public static let shared = ResolverScopeShare()
610 |     /// Unique services are created and initialized each and every time they're resolved.
611 |     public static let unique = ResolverScope()
    |                       |- warning: static property 'unique' is not concurrency-safe because non-'Sendable' type 'ResolverScope' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'unique' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
612 |
613 |     public init() {}
[4/9] Compiling Resolver Resolver.swift
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:61:23: warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Default registry used by the static Registration functions.
 61 |     public static var main: Resolver = Resolver()
    |                       |- warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'main' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'main' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 62 |     /// Default registry used by the static Resolution functions and by the Resolving protocol.
 63 |     public static var root: Resolver = main
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:63:23: warning: static property 'root' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 61 |     public static var main: Resolver = Resolver()
 62 |     /// Default registry used by the static Resolution functions and by the Resolving protocol.
 63 |     public static var root: Resolver = main
    |                       |- warning: static property 'root' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'root' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'root' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 64 |     /// Default scope applied when registering new objects.
 65 |     public static var defaultScope: ResolverScope = .graph
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:65:23: warning: static property 'defaultScope' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 63 |     public static var root: Resolver = main
 64 |     /// Default scope applied when registering new objects.
 65 |     public static var defaultScope: ResolverScope = .graph
    |                       |- warning: static property 'defaultScope' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'defaultScope' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'defaultScope' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 66 |     /// Internal scope cache used for .scope(.container)
 67 |     public lazy var cache: ResolverScope = ResolverScopeCache()
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:69:23: warning: static property 'decorate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |     public lazy var cache: ResolverScope = ResolverScopeCache()
 68 |     /// Decorator applied to all resolved objects
 69 |     public static var decorate: ((_ service: Any) -> Void)?
    |                       |- warning: static property 'decorate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'decorate' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'decorate' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |
 71 |     // MARK: - Lifecycle
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:105:23: warning: static property 'registerServices' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 |     /// Call function to force one-time initialization of the Resolver registries. Usually not needed as functionality
104 |     /// occurs automatically the first time a resolution function is called.
105 |     public static var registerServices: (() -> Void)? = {
    |                       |- warning: static property 'registerServices' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'registerServices' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'registerServices' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 |         lock.lock()
107 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:372:28: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'ResolverRecursiveLock' may have shared mutable state; this is an error in the Swift 6 language mode
351 |
352 | /// Resolving an instance of a service is a recursive process (service A needs a B which needs a C).
353 | private final class ResolverRecursiveLock {
    |                     `- note: class 'ResolverRecursiveLock' does not conform to the 'Sendable' protocol
354 |     init() {
355 |         pthread_mutexattr_init(&recursiveMutexAttr)
    :
370 |
371 | extension Resolver {
372 |     fileprivate static let lock = ResolverRecursiveLock()
    |                            |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'ResolverRecursiveLock' may have shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: add '@MainActor' to make static property 'lock' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
373 | }
374 |
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:453:13: warning: var 'registrationNeeded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
451 | // Registration Internals
452 |
453 | private var registrationNeeded: Bool = true
    |             |- warning: var 'registrationNeeded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'registrationNeeded' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'registrationNeeded' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
454 |
455 | @inline(__always)
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:601:23: warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'ResolverScopeCache' may have shared mutable state; this is an error in the Swift 6 language mode
599 |
600 |     /// All application scoped services exist for lifetime of the app. (e.g Singletons)
601 |     public static let application = ResolverScopeCache()
    |                       |- warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'ResolverScopeCache' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'application' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
602 |     /// Proxy to container's scope. Cache type depends on type supplied to container (default .cache)
603 |     public static let container = ResolverScopeContainer()
    :
624 |
625 | /// Cached services exist for lifetime of the app or until their cache is reset.
626 | public class ResolverScopeCache: ResolverScope {
    |              `- note: class 'ResolverScopeCache' does not conform to the 'Sendable' protocol
627 |
628 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:603:23: warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ResolverScopeContainer' may have shared mutable state; this is an error in the Swift 6 language mode
601 |     public static let application = ResolverScopeCache()
602 |     /// Proxy to container's scope. Cache type depends on type supplied to container (default .cache)
603 |     public static let container = ResolverScopeContainer()
    |                       |- warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ResolverScopeContainer' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'container' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
604 |     /// Cached services exist for lifetime of the app or until their cache is reset.
605 |     public static let cached = ResolverScopeCache()
    :
703 |
704 | /// Proxy to container's scope. Cache type depends on type supplied to container (default .cache)
705 | public final class ResolverScopeContainer: ResolverScope {
    |                    `- note: class 'ResolverScopeContainer' does not conform to the 'Sendable' protocol
706 |
707 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:605:23: warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'ResolverScopeCache' may have shared mutable state; this is an error in the Swift 6 language mode
603 |     public static let container = ResolverScopeContainer()
604 |     /// Cached services exist for lifetime of the app or until their cache is reset.
605 |     public static let cached = ResolverScopeCache()
    |                       |- warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'ResolverScopeCache' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'cached' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
606 |     /// Graph services are initialized once and only once during a given resolution cycle. This is the default scope.
607 |     public static let graph = ResolverScopeGraph()
    :
624 |
625 | /// Cached services exist for lifetime of the app or until their cache is reset.
626 | public class ResolverScopeCache: ResolverScope {
    |              `- note: class 'ResolverScopeCache' does not conform to the 'Sendable' protocol
627 |
628 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:607:23: warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ResolverScopeGraph' may have shared mutable state; this is an error in the Swift 6 language mode
605 |     public static let cached = ResolverScopeCache()
606 |     /// Graph services are initialized once and only once during a given resolution cycle. This is the default scope.
607 |     public static let graph = ResolverScopeGraph()
    |                       |- warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ResolverScopeGraph' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'graph' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
608 |     /// Shared services persist while strong references to them exist. They're then deallocated until the next resolve.
609 |     public static let shared = ResolverScopeShare()
    :
647 |
648 | /// Graph services are initialized once and only once during a given resolution cycle. This is the default scope.
649 | public final class ResolverScopeGraph: ResolverScope {
    |                    `- note: class 'ResolverScopeGraph' does not conform to the 'Sendable' protocol
650 |
651 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:609:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ResolverScopeShare' may have shared mutable state; this is an error in the Swift 6 language mode
607 |     public static let graph = ResolverScopeGraph()
608 |     /// Shared services persist while strong references to them exist. They're then deallocated until the next resolve.
609 |     public static let shared = ResolverScopeShare()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ResolverScopeShare' 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
610 |     /// Unique services are created and initialized each and every time they're resolved.
611 |     public static let unique = ResolverScope()
    :
673 |
674 | /// Shared services persist while strong references to them exist. They're then deallocated until the next resolve.
675 | public final class ResolverScopeShare: ResolverScope {
    |                    `- note: class 'ResolverScopeShare' does not conform to the 'Sendable' protocol
676 |
677 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:611:23: warning: static property 'unique' is not concurrency-safe because non-'Sendable' type 'ResolverScope' may have shared mutable state; this is an error in the Swift 6 language mode
594 | }
595 |
596 | public class ResolverScope: ResolverScopeType {
    |              `- note: class 'ResolverScope' does not conform to the 'Sendable' protocol
597 |
598 |     // Moved definitions to ResolverScope to allow for dot notation access
    :
609 |     public static let shared = ResolverScopeShare()
610 |     /// Unique services are created and initialized each and every time they're resolved.
611 |     public static let unique = ResolverScope()
    |                       |- warning: static property 'unique' is not concurrency-safe because non-'Sendable' type 'ResolverScope' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'unique' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
612 |
613 |     public init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:355:9: error: cannot find 'pthread_mutexattr_init' in scope
353 | private final class ResolverRecursiveLock {
354 |     init() {
355 |         pthread_mutexattr_init(&recursiveMutexAttr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
356 |         pthread_mutexattr_settype(&recursiveMutexAttr, PTHREAD_MUTEX_RECURSIVE)
357 |         pthread_mutex_init(&recursiveMutex, &recursiveMutexAttr)
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:356:9: error: cannot find 'pthread_mutexattr_settype' in scope
354 |     init() {
355 |         pthread_mutexattr_init(&recursiveMutexAttr)
356 |         pthread_mutexattr_settype(&recursiveMutexAttr, PTHREAD_MUTEX_RECURSIVE)
    |         `- error: cannot find 'pthread_mutexattr_settype' in scope
357 |         pthread_mutex_init(&recursiveMutex, &recursiveMutexAttr)
358 |     }
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:356:56: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
354 |     init() {
355 |         pthread_mutexattr_init(&recursiveMutexAttr)
356 |         pthread_mutexattr_settype(&recursiveMutexAttr, PTHREAD_MUTEX_RECURSIVE)
    |                                                        `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
357 |         pthread_mutex_init(&recursiveMutex, &recursiveMutexAttr)
358 |     }
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:357:9: error: cannot find 'pthread_mutex_init' in scope
355 |         pthread_mutexattr_init(&recursiveMutexAttr)
356 |         pthread_mutexattr_settype(&recursiveMutexAttr, PTHREAD_MUTEX_RECURSIVE)
357 |         pthread_mutex_init(&recursiveMutex, &recursiveMutexAttr)
    |         `- error: cannot find 'pthread_mutex_init' in scope
358 |     }
359 |     @inline(__always)
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:361:9: error: cannot find 'pthread_mutex_lock' in scope
359 |     @inline(__always)
360 |     final func lock() {
361 |         pthread_mutex_lock(&recursiveMutex)
    |         `- error: cannot find 'pthread_mutex_lock' in scope
362 |     }
363 |     @inline(__always)
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:365:9: error: cannot find 'pthread_mutex_unlock' in scope
363 |     @inline(__always)
364 |     final func unlock() {
365 |         pthread_mutex_unlock(&recursiveMutex)
    |         `- error: cannot find 'pthread_mutex_unlock' in scope
366 |     }
367 |     private var recursiveMutex = pthread_mutex_t()
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': Invalid Resource 'PrivacyInfo.xcprivacy': File not found.
[0/1] Planning build
Building for debugging...
[0/6] Write swift-version-24593BA9C3E375BF.txt
[2/8] Emitting module Resolver
[3/8] Compiling Resolver Resolver.swift
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:355:9: error: cannot find 'pthread_mutexattr_init' in scope
353 | private final class ResolverRecursiveLock {
354 |     init() {
355 |         pthread_mutexattr_init(&recursiveMutexAttr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
356 |         pthread_mutexattr_settype(&recursiveMutexAttr, PTHREAD_MUTEX_RECURSIVE)
357 |         pthread_mutex_init(&recursiveMutex, &recursiveMutexAttr)
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:356:9: error: cannot find 'pthread_mutexattr_settype' in scope
354 |     init() {
355 |         pthread_mutexattr_init(&recursiveMutexAttr)
356 |         pthread_mutexattr_settype(&recursiveMutexAttr, PTHREAD_MUTEX_RECURSIVE)
    |         `- error: cannot find 'pthread_mutexattr_settype' in scope
357 |         pthread_mutex_init(&recursiveMutex, &recursiveMutexAttr)
358 |     }
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:356:56: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
354 |     init() {
355 |         pthread_mutexattr_init(&recursiveMutexAttr)
356 |         pthread_mutexattr_settype(&recursiveMutexAttr, PTHREAD_MUTEX_RECURSIVE)
    |                                                        `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
357 |         pthread_mutex_init(&recursiveMutex, &recursiveMutexAttr)
358 |     }
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:357:9: error: cannot find 'pthread_mutex_init' in scope
355 |         pthread_mutexattr_init(&recursiveMutexAttr)
356 |         pthread_mutexattr_settype(&recursiveMutexAttr, PTHREAD_MUTEX_RECURSIVE)
357 |         pthread_mutex_init(&recursiveMutex, &recursiveMutexAttr)
    |         `- error: cannot find 'pthread_mutex_init' in scope
358 |     }
359 |     @inline(__always)
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:361:9: error: cannot find 'pthread_mutex_lock' in scope
359 |     @inline(__always)
360 |     final func lock() {
361 |         pthread_mutex_lock(&recursiveMutex)
    |         `- error: cannot find 'pthread_mutex_lock' in scope
362 |     }
363 |     @inline(__always)
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:365:9: error: cannot find 'pthread_mutex_unlock' in scope
363 |     @inline(__always)
364 |     final func unlock() {
365 |         pthread_mutex_unlock(&recursiveMutex)
    |         `- error: cannot find 'pthread_mutex_unlock' in scope
366 |     }
367 |     private var recursiveMutex = pthread_mutex_t()
BUILD FAILURE 6.1 wasm