The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Resyncer, reference master (77343d), with Swift 6.1 for Wasm on 30 May 2025 18:07:42 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/danielepantaleone/Resyncer.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/danielepantaleone/Resyncer
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 77343dc Fix running unit tests on GitHub actions
Cloned https://github.com/danielepantaleone/Resyncer.git
Revision (git rev-parse @):
77343dc8862f4cb252f9daf6989e4762986fab6e
SUCCESS checkout https://github.com/danielepantaleone/Resyncer.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/danielepantaleone/Resyncer.git
https://github.com/danielepantaleone/Resyncer.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Resyncer",
  "name" : "Resyncer",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "Resyncer",
      "targets" : [
        "Resyncer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ResyncerTests",
      "module_type" : "SwiftTarget",
      "name" : "ResyncerTests",
      "path" : "Tests/ResyncerTests",
      "sources" : [
        "ResyncerTests.swift"
      ],
      "target_dependencies" : [
        "Resyncer"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Resyncer",
      "module_type" : "SwiftTarget",
      "name" : "Resyncer",
      "path" : "Sources/Resyncer",
      "product_memberships" : [
        "Resyncer"
      ],
      "sources" : [
        "Resyncer.swift",
        "ResyncerBox.swift",
        "ResyncerError.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/6] Compiling Resyncer ResyncerError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Compiling Resyncer ResyncerBox.swift
[5/6] Emitting module Resyncer
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:37:16: error: cannot find type 'OperationQueue' in scope
 35 |     // MARK: - Properties
 36 |
 37 |     let queue: OperationQueue
    |                `- error: cannot find type 'OperationQueue' in scope
 38 |     let raiseErrorIfOnMainThread: Bool
 39 |
[6/6] Compiling Resyncer Resyncer.swift
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:37:16: error: cannot find type 'OperationQueue' in scope
 35 |     // MARK: - Properties
 36 |
 37 |     let queue: OperationQueue
    |                `- error: cannot find type 'OperationQueue' in scope
 38 |     let raiseErrorIfOnMainThread: Bool
 39 |
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:63:22: error: cannot find 'OperationQueue' in scope
 61 |     ///   - raiseErrorIfOnMainThread: A Boolean value indicating whether an error should be thrown if `synchronize` is called from the main thread. The default value is `true`.
 62 |     init(maxConcurrentOperationCount: Int = 10, qos: QualityOfService = .userInitiated, raiseErrorIfOnMainThread: Bool = true) {
 63 |         self.queue = OperationQueue()
    |                      `- error: cannot find 'OperationQueue' in scope
 64 |         self.queue.maxConcurrentOperationCount = maxConcurrentOperationCount
 65 |         self.queue.qualityOfService = qos
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:99:45: error: cannot find 'Thread' in scope
 97 |     public func synchronize<T>(timeout: TimeInterval = 10.0, work: @escaping (@escaping (Result<T, Error>) -> Void) -> Void) throws -> T {
 98 |
 99 |         guard !raiseErrorIfOnMainThread || !Thread.isMainThread else {
    |                                             `- error: cannot find 'Thread' in scope
100 |             throw ResyncerError.calledFromMainThread
101 |         }
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:106:24: error: cannot find type 'BlockOperation' in scope
104 |         var completed = false
105 |         var result: Result<T, Error>?
106 |         let operation: BlockOperation = .init {
    |                        `- error: cannot find type 'BlockOperation' in scope
107 |             work { r in
108 |                 condition.withLock {
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:165:45: error: cannot find 'Thread' in scope
163 |     public func synchronize<T>(timeout: TimeInterval = 10.0, work: @escaping () async throws -> T) throws -> T {
164 |
165 |         guard !raiseErrorIfOnMainThread || !Thread.isMainThread else {
    |                                             `- error: cannot find 'Thread' in scope
166 |             throw ResyncerError.calledFromMainThread
167 |         }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/5] Compiling Resyncer ResyncerBox.swift
[3/5] Compiling Resyncer ResyncerError.swift
[4/5] Emitting module Resyncer
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:37:16: error: cannot find type 'OperationQueue' in scope
 35 |     // MARK: - Properties
 36 |
 37 |     let queue: OperationQueue
    |                `- error: cannot find type 'OperationQueue' in scope
 38 |     let raiseErrorIfOnMainThread: Bool
 39 |
[5/5] Compiling Resyncer Resyncer.swift
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:37:16: error: cannot find type 'OperationQueue' in scope
 35 |     // MARK: - Properties
 36 |
 37 |     let queue: OperationQueue
    |                `- error: cannot find type 'OperationQueue' in scope
 38 |     let raiseErrorIfOnMainThread: Bool
 39 |
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:63:22: error: cannot find 'OperationQueue' in scope
 61 |     ///   - raiseErrorIfOnMainThread: A Boolean value indicating whether an error should be thrown if `synchronize` is called from the main thread. The default value is `true`.
 62 |     init(maxConcurrentOperationCount: Int = 10, qos: QualityOfService = .userInitiated, raiseErrorIfOnMainThread: Bool = true) {
 63 |         self.queue = OperationQueue()
    |                      `- error: cannot find 'OperationQueue' in scope
 64 |         self.queue.maxConcurrentOperationCount = maxConcurrentOperationCount
 65 |         self.queue.qualityOfService = qos
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:99:45: error: cannot find 'Thread' in scope
 97 |     public func synchronize<T>(timeout: TimeInterval = 10.0, work: @escaping (@escaping (Result<T, Error>) -> Void) -> Void) throws -> T {
 98 |
 99 |         guard !raiseErrorIfOnMainThread || !Thread.isMainThread else {
    |                                             `- error: cannot find 'Thread' in scope
100 |             throw ResyncerError.calledFromMainThread
101 |         }
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:106:24: error: cannot find type 'BlockOperation' in scope
104 |         var completed = false
105 |         var result: Result<T, Error>?
106 |         let operation: BlockOperation = .init {
    |                        `- error: cannot find type 'BlockOperation' in scope
107 |             work { r in
108 |                 condition.withLock {
/host/spi-builder-workspace/Sources/Resyncer/Resyncer.swift:165:45: error: cannot find 'Thread' in scope
163 |     public func synchronize<T>(timeout: TimeInterval = 10.0, work: @escaping () async throws -> T) throws -> T {
164 |
165 |         guard !raiseErrorIfOnMainThread || !Thread.isMainThread else {
    |                                             `- error: cannot find 'Thread' in scope
166 |             throw ResyncerError.calledFromMainThread
167 |         }
BUILD FAILURE 6.1 wasm