Build Information
Failed to build Macaroni, reference main (015ba4), with Swift 6.1 for Wasm on 31 May 2025 08:16:56 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bealex/Macaroni.git
Reference: main
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/bealex/Macaroni
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 015ba44 Added information about locking in the README
Cloned https://github.com/bealex/Macaroni.git
Revision (git rev-parse @):
015ba440cca1842e653b3b14d108738fb0caff2d
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/bealex/Macaroni.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/bealex/Macaroni.git
https://github.com/bealex/Macaroni.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "Macaroni",
"name" : "Macaroni",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "10.14"
}
],
"products" : [
{
"name" : "Macaroni",
"targets" : [
"Macaroni"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "MacaroniTests",
"module_type" : "SwiftTarget",
"name" : "MacaroniTests",
"path" : "Tests/MacaroniTests",
"sources" : [
"Tests/AlternativeTests.swift",
"Tests/ContainerFindPolicyTests.swift",
"Tests/ContainerResolveSpeedTests.swift",
"Tests/ContainerSelectorTests.swift",
"Tests/InjectedAsParameterTests.swift",
"Tests/InjectedEagerTests.swift",
"Tests/InjectedLazyTests.swift",
"Tests/InjectedMultithreadedProblemsTests.swift",
"Tests/InjectedTests.swift",
"Tests/InjectedWeaklyTests.swift",
"Tests/ParentContainerTests.swift",
"Tests/SimpleContainerTests.swift",
"Tests/SimpleContainerWithParameterTests.swift",
"WaitForDeathTrap.swift"
],
"target_dependencies" : [
"Macaroni"
],
"type" : "test"
},
{
"c99name" : "Macaroni",
"module_type" : "SwiftTarget",
"name" : "Macaroni",
"path" : "Sources",
"product_memberships" : [
"Macaroni"
],
"sources" : [
"Container.swift",
"ContainerLookupPolicies/ContainerLookupPolicy+Resolve.swift",
"ContainerLookupPolicies/ContainerableLookupPolicy.swift",
"ContainerLookupPolicies/SingletonContainerLookupPolicy.swift",
"ContainerLookupPolicy.swift",
"Logging/MacaroniLogger.swift",
"Macaroni.swift",
"PropertyWrappers/Injected.swift",
"PropertyWrappers/InjectedWeakly.swift",
"RegistrationAlternative.swift"
],
"type" : "library"
}
],
"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: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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/12] Compiling Macaroni InjectedWeakly.swift
[4/13] Compiling Macaroni Injected.swift
/host/spi-builder-workspace/Sources/PropertyWrappers/Injected.swift:11:16: warning: static property 'alwaysFailRootContainer' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | private extension Container {
11 | static let alwaysFailRootContainer: Container = Container(name: "_alwaysFailContainersDeriveFromThis")
| |- warning: static property 'alwaysFailRootContainer' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'alwaysFailRootContainer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/host/spi-builder-workspace/Sources/Container.swift:30:20: note: class 'Container' does not conform to the 'Sendable' protocol
28 | ///
29 | /// There is a `@Injected` property wrapper that helps to inject objects into classes (mostly).
30 | public final class Container {
| `- note: class 'Container' does not conform to the 'Sendable' protocol
31 | let name: String
32 | let parent: Container?
/host/spi-builder-workspace/Sources/Container.swift:35:24: error: cannot find type 'DispatchQueue' in scope
33 |
34 | private static var counter: Int = 1
35 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
36 |
37 | /// you can lock container in case it will not be updated anymore.
[5/13] Compiling Macaroni ContainerLookupPolicy.swift
[6/13] Compiling Macaroni MacaroniLogger.swift
[7/13] Compiling Macaroni RegistrationAlternative.swift
[8/13] Compiling Macaroni Macaroni.swift
[9/13] Compiling Macaroni ContainerableLookupPolicy.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/13] Compiling Macaroni SingletonContainerLookupPolicy.swift
[11/13] Emitting module Macaroni
/host/spi-builder-workspace/Sources/Container.swift:34:24: warning: static property 'counter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | let parent: Container?
33 |
34 | private static var counter: Int = 1
| |- warning: static property 'counter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'counter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'counter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | private let queue: DispatchQueue
36 |
/host/spi-builder-workspace/Sources/Container.swift:35:24: error: cannot find type 'DispatchQueue' in scope
33 |
34 | private static var counter: Int = 1
35 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
36 |
37 | /// you can lock container in case it will not be updated anymore.
/host/spi-builder-workspace/Sources/PropertyWrappers/Injected.swift:11:16: warning: static property 'alwaysFailRootContainer' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | private extension Container {
11 | static let alwaysFailRootContainer: Container = Container(name: "_alwaysFailContainersDeriveFromThis")
| |- warning: static property 'alwaysFailRootContainer' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'alwaysFailRootContainer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/host/spi-builder-workspace/Sources/Container.swift:30:20: note: class 'Container' does not conform to the 'Sendable' protocol
28 | ///
29 | /// There is a `@Injected` property wrapper that helps to inject objects into classes (mostly).
30 | public final class Container {
| `- note: class 'Container' does not conform to the 'Sendable' protocol
31 | let name: String
32 | let parent: Container?
[12/13] Compiling Macaroni Container.swift
/host/spi-builder-workspace/Sources/Container.swift:34:24: warning: static property 'counter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | let parent: Container?
33 |
34 | private static var counter: Int = 1
| |- warning: static property 'counter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'counter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'counter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | private let queue: DispatchQueue
36 |
/host/spi-builder-workspace/Sources/Container.swift:35:24: error: cannot find type 'DispatchQueue' in scope
33 |
34 | private static var counter: Int = 1
35 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
36 |
37 | /// you can lock container in case it will not be updated anymore.
/host/spi-builder-workspace/Sources/Container.swift:48:17: error: cannot find 'DispatchQueue' in scope
46 | self.parent = parent
47 | self.name = name ?? "UnnamedContainer.\(Container.counter)"
48 | queue = DispatchQueue(label: "container.\(self.name)", attributes: [ .concurrent ])
| `- error: cannot find 'DispatchQueue' in scope
49 |
50 | Container.counter += 1
/host/spi-builder-workspace/Sources/Container.swift:48:79: error: reference to member 'concurrent' cannot be resolved without a contextual type
46 | self.parent = parent
47 | self.name = name ?? "UnnamedContainer.\(Container.counter)"
48 | queue = DispatchQueue(label: "container.\(self.name)", attributes: [ .concurrent ])
| `- error: reference to member 'concurrent' cannot be resolved without a contextual type
49 |
50 | Container.counter += 1
/host/spi-builder-workspace/Sources/Container.swift:121:29: error: cannot infer contextual base in reference to member 'barrier'
119 |
120 | let alternativeKey = alternative ?? defaultAlternativeKey
121 | queue.async(flags: .barrier) { [self] in
| `- error: cannot infer contextual base in reference to member 'barrier'
122 | let nonOptionalObjectId = ObjectIdentifier(D.self)
123 | let optionalObjectId = ObjectIdentifier(Optional<D>.self)
/host/spi-builder-workspace/Sources/Container.swift:150:29: error: cannot infer contextual base in reference to member 'barrier'
148 |
149 | let alternativeKey = alternative ?? defaultAlternativeKey
150 | queue.async(flags: .barrier) { [self] in
| `- error: cannot infer contextual base in reference to member 'barrier'
151 | let nonOptionalObjectId = ObjectIdentifier(D.self)
152 | let optionalObjectId = ObjectIdentifier(Optional<D>.self)
/host/spi-builder-workspace/Sources/Container.swift:210:29: error: cannot infer contextual base in reference to member 'barrier'
208 | /// Removes all resolvers.
209 | public func cleanup(file: StaticString = #fileID, function: String = #function, line: UInt = #line) {
210 | queue.async(flags: .barrier) { [self] in
| `- error: cannot infer contextual base in reference to member 'barrier'
211 | typeResolvers = [:]
212 | typeParametrizedResolvers = [:]
[13/13] Compiling Macaroni ContainerLookupPolicy+Resolve.swift
/host/spi-builder-workspace/Sources/Container.swift:34:24: warning: static property 'counter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | let parent: Container?
33 |
34 | private static var counter: Int = 1
| |- warning: static property 'counter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'counter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'counter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | private let queue: DispatchQueue
36 |
/host/spi-builder-workspace/Sources/Container.swift:35:24: error: cannot find type 'DispatchQueue' in scope
33 |
34 | private static var counter: Int = 1
35 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
36 |
37 | /// you can lock container in case it will not be updated anymore.
/host/spi-builder-workspace/Sources/Container.swift:48:17: error: cannot find 'DispatchQueue' in scope
46 | self.parent = parent
47 | self.name = name ?? "UnnamedContainer.\(Container.counter)"
48 | queue = DispatchQueue(label: "container.\(self.name)", attributes: [ .concurrent ])
| `- error: cannot find 'DispatchQueue' in scope
49 |
50 | Container.counter += 1
/host/spi-builder-workspace/Sources/Container.swift:48:79: error: reference to member 'concurrent' cannot be resolved without a contextual type
46 | self.parent = parent
47 | self.name = name ?? "UnnamedContainer.\(Container.counter)"
48 | queue = DispatchQueue(label: "container.\(self.name)", attributes: [ .concurrent ])
| `- error: reference to member 'concurrent' cannot be resolved without a contextual type
49 |
50 | Container.counter += 1
/host/spi-builder-workspace/Sources/Container.swift:121:29: error: cannot infer contextual base in reference to member 'barrier'
119 |
120 | let alternativeKey = alternative ?? defaultAlternativeKey
121 | queue.async(flags: .barrier) { [self] in
| `- error: cannot infer contextual base in reference to member 'barrier'
122 | let nonOptionalObjectId = ObjectIdentifier(D.self)
123 | let optionalObjectId = ObjectIdentifier(Optional<D>.self)
/host/spi-builder-workspace/Sources/Container.swift:150:29: error: cannot infer contextual base in reference to member 'barrier'
148 |
149 | let alternativeKey = alternative ?? defaultAlternativeKey
150 | queue.async(flags: .barrier) { [self] in
| `- error: cannot infer contextual base in reference to member 'barrier'
151 | let nonOptionalObjectId = ObjectIdentifier(D.self)
152 | let optionalObjectId = ObjectIdentifier(Optional<D>.self)
/host/spi-builder-workspace/Sources/Container.swift:210:29: error: cannot infer contextual base in reference to member 'barrier'
208 | /// Removes all resolvers.
209 | public func cleanup(file: StaticString = #fileID, function: String = #function, line: UInt = #line) {
210 | queue.async(flags: .barrier) { [self] in
| `- error: cannot infer contextual base in reference to member 'barrier'
211 | typeResolvers = [:]
212 | typeParametrizedResolvers = [:]
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/11] Compiling Macaroni ContainerLookupPolicy.swift
[3/11] Compiling Macaroni MacaroniLogger.swift
[4/12] Compiling Macaroni InjectedWeakly.swift
[5/12] Compiling Macaroni Macaroni.swift
[6/12] Compiling Macaroni Injected.swift
/host/spi-builder-workspace/Sources/Container.swift:35:24: error: cannot find type 'DispatchQueue' in scope
33 |
34 | private static var counter: Int = 1
35 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
36 |
37 | /// you can lock container in case it will not be updated anymore.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/12] Compiling Macaroni ContainerableLookupPolicy.swift
[8/12] Compiling Macaroni SingletonContainerLookupPolicy.swift
[9/12] Emitting module Macaroni
/host/spi-builder-workspace/Sources/Container.swift:35:24: error: cannot find type 'DispatchQueue' in scope
33 |
34 | private static var counter: Int = 1
35 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
36 |
37 | /// you can lock container in case it will not be updated anymore.
[10/12] Compiling Macaroni Container.swift
/host/spi-builder-workspace/Sources/Container.swift:35:24: error: cannot find type 'DispatchQueue' in scope
33 |
34 | private static var counter: Int = 1
35 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
36 |
37 | /// you can lock container in case it will not be updated anymore.
/host/spi-builder-workspace/Sources/Container.swift:48:17: error: cannot find 'DispatchQueue' in scope
46 | self.parent = parent
47 | self.name = name ?? "UnnamedContainer.\(Container.counter)"
48 | queue = DispatchQueue(label: "container.\(self.name)", attributes: [ .concurrent ])
| `- error: cannot find 'DispatchQueue' in scope
49 |
50 | Container.counter += 1
/host/spi-builder-workspace/Sources/Container.swift:48:79: error: reference to member 'concurrent' cannot be resolved without a contextual type
46 | self.parent = parent
47 | self.name = name ?? "UnnamedContainer.\(Container.counter)"
48 | queue = DispatchQueue(label: "container.\(self.name)", attributes: [ .concurrent ])
| `- error: reference to member 'concurrent' cannot be resolved without a contextual type
49 |
50 | Container.counter += 1
/host/spi-builder-workspace/Sources/Container.swift:121:29: error: cannot infer contextual base in reference to member 'barrier'
119 |
120 | let alternativeKey = alternative ?? defaultAlternativeKey
121 | queue.async(flags: .barrier) { [self] in
| `- error: cannot infer contextual base in reference to member 'barrier'
122 | let nonOptionalObjectId = ObjectIdentifier(D.self)
123 | let optionalObjectId = ObjectIdentifier(Optional<D>.self)
/host/spi-builder-workspace/Sources/Container.swift:150:29: error: cannot infer contextual base in reference to member 'barrier'
148 |
149 | let alternativeKey = alternative ?? defaultAlternativeKey
150 | queue.async(flags: .barrier) { [self] in
| `- error: cannot infer contextual base in reference to member 'barrier'
151 | let nonOptionalObjectId = ObjectIdentifier(D.self)
152 | let optionalObjectId = ObjectIdentifier(Optional<D>.self)
/host/spi-builder-workspace/Sources/Container.swift:210:29: error: cannot infer contextual base in reference to member 'barrier'
208 | /// Removes all resolvers.
209 | public func cleanup(file: StaticString = #fileID, function: String = #function, line: UInt = #line) {
210 | queue.async(flags: .barrier) { [self] in
| `- error: cannot infer contextual base in reference to member 'barrier'
211 | typeResolvers = [:]
212 | typeParametrizedResolvers = [:]
[11/12] Compiling Macaroni ContainerLookupPolicy+Resolve.swift
/host/spi-builder-workspace/Sources/Container.swift:35:24: error: cannot find type 'DispatchQueue' in scope
33 |
34 | private static var counter: Int = 1
35 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
36 |
37 | /// you can lock container in case it will not be updated anymore.
/host/spi-builder-workspace/Sources/Container.swift:48:17: error: cannot find 'DispatchQueue' in scope
46 | self.parent = parent
47 | self.name = name ?? "UnnamedContainer.\(Container.counter)"
48 | queue = DispatchQueue(label: "container.\(self.name)", attributes: [ .concurrent ])
| `- error: cannot find 'DispatchQueue' in scope
49 |
50 | Container.counter += 1
/host/spi-builder-workspace/Sources/Container.swift:48:79: error: reference to member 'concurrent' cannot be resolved without a contextual type
46 | self.parent = parent
47 | self.name = name ?? "UnnamedContainer.\(Container.counter)"
48 | queue = DispatchQueue(label: "container.\(self.name)", attributes: [ .concurrent ])
| `- error: reference to member 'concurrent' cannot be resolved without a contextual type
49 |
50 | Container.counter += 1
/host/spi-builder-workspace/Sources/Container.swift:121:29: error: cannot infer contextual base in reference to member 'barrier'
119 |
120 | let alternativeKey = alternative ?? defaultAlternativeKey
121 | queue.async(flags: .barrier) { [self] in
| `- error: cannot infer contextual base in reference to member 'barrier'
122 | let nonOptionalObjectId = ObjectIdentifier(D.self)
123 | let optionalObjectId = ObjectIdentifier(Optional<D>.self)
/host/spi-builder-workspace/Sources/Container.swift:150:29: error: cannot infer contextual base in reference to member 'barrier'
148 |
149 | let alternativeKey = alternative ?? defaultAlternativeKey
150 | queue.async(flags: .barrier) { [self] in
| `- error: cannot infer contextual base in reference to member 'barrier'
151 | let nonOptionalObjectId = ObjectIdentifier(D.self)
152 | let optionalObjectId = ObjectIdentifier(Optional<D>.self)
/host/spi-builder-workspace/Sources/Container.swift:210:29: error: cannot infer contextual base in reference to member 'barrier'
208 | /// Removes all resolvers.
209 | public func cleanup(file: StaticString = #fileID, function: String = #function, line: UInt = #line) {
210 | queue.async(flags: .barrier) { [self] in
| `- error: cannot infer contextual base in reference to member 'barrier'
211 | typeResolvers = [:]
212 | typeParametrizedResolvers = [:]
[12/12] Compiling Macaroni RegistrationAlternative.swift
BUILD FAILURE 6.1 wasm