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 Work, reference 0.1.1 (4a7a6f), with Swift 6.1 for Wasm on 27 May 2025 18:04:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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/flintprocessor/Work.git
Reference: 0.1.1
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/flintprocessor/Work
 * tag               0.1.1      -> FETCH_HEAD
HEAD is now at 4a7a6ff Merge branch 'develop'
Cloned https://github.com/flintprocessor/Work.git
Revision (git rev-parse @):
4a7a6ff7a87bac408cfc69382b8332f53f89e046
SUCCESS checkout https://github.com/flintprocessor/Work.git at 0.1.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/flintprocessor/Work.git
https://github.com/flintprocessor/Work.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Work",
  "name" : "Work",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Work",
      "targets" : [
        "Work"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "work-sync",
      "targets" : [
        "work-sync"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "work-async",
      "targets" : [
        "work-async"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "work_sync",
      "module_type" : "SwiftTarget",
      "name" : "work-sync",
      "path" : "Sources/work-sync",
      "product_memberships" : [
        "work-sync"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Work"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "work_async",
      "module_type" : "SwiftTarget",
      "name" : "work-async",
      "path" : "Sources/work-async",
      "product_memberships" : [
        "work-async"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Work"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Work",
      "module_type" : "SwiftTarget",
      "name" : "Work",
      "path" : "Sources/Work",
      "product_memberships" : [
        "Work",
        "work-sync",
        "work-async"
      ],
      "sources" : [
        "String+Trimming.swift",
        "Work.swift",
        "WorkResult.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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/11] Write sources
[3/11] Write swift-version-24593BA9C3E375BF.txt
[5/15] Compiling Work WorkResult.swift
[6/15] Compiling Work Work.swift
/host/spi-builder-workspace/Sources/Work/Work.swift:54:22: error: cannot find type 'Process' in scope
 52 |
 53 |     /// Process object.
 54 |     public let task: Process
    |                      `- error: cannot find type 'Process' in scope
 55 |     /// Standard output handler.
 56 |     open var standardOutputHandler: ((String) -> Void)?
/host/spi-builder-workspace/Sources/Work/Work.swift:106:24: error: method does not override any method from its superclass
104 |
105 |     /// Execute shell command.
106 |     open override func main() {
    |                        `- error: method does not override any method from its superclass
107 |         task.launch()
108 |         task.waitUntilExit()
/host/spi-builder-workspace/Sources/Work/Work.swift:29:18: error: cannot find type 'Operation' in scope
 27 |
 28 | /// Shell command.
 29 | open class Work: Operation {
    |                  `- error: cannot find type 'Operation' in scope
 30 |
 31 |     /// Termination result.
/host/spi-builder-workspace/Sources/Work/Work.swift:73:16: error: cannot find 'Process' in scope
 71 |                 standardErrorHandler: ((String) -> Void)? = nil,
 72 |                 completion: ((WorkResult) -> Void)? = nil) {
 73 |         task = Process()
    |                `- error: cannot find 'Process' in scope
 74 |         self.standardOutputHandler = standardOutputHandler
 75 |         self.standardErrorHandler = standardErrorHandler
/host/spi-builder-workspace/Sources/Work/Work.swift:84:9: error: 'super' cannot be used in class 'Work' because it has no superclass
 82 |         standardErrorRawString = ""
 83 |
 84 |         super.init()
    |         `- error: 'super' cannot be used in class 'Work' because it has no superclass
 85 |
 86 |         task.launchPath = "/bin/bash"
/host/spi-builder-workspace/Sources/Work/Work.swift:91:49: error: value of type 'FileHandle' has no member 'readabilityHandler'
 89 |         task.standardError = standardErrorPipe
 90 |
 91 |         standardOutputPipe.fileHandleForReading.readabilityHandler = { [weak self] fileHandle in
    |                                                 `- error: value of type 'FileHandle' has no member 'readabilityHandler'
 92 |             guard let string = String(data: fileHandle.availableData, encoding: .utf8) else { return }
 93 |             guard !string.isEmpty else { return }
/host/spi-builder-workspace/Sources/Work/Work.swift:91:84: error: cannot infer type of closure parameter 'fileHandle' without a type annotation
 89 |         task.standardError = standardErrorPipe
 90 |
 91 |         standardOutputPipe.fileHandleForReading.readabilityHandler = { [weak self] fileHandle in
    |                                                                                    `- error: cannot infer type of closure parameter 'fileHandle' without a type annotation
 92 |             guard let string = String(data: fileHandle.availableData, encoding: .utf8) else { return }
 93 |             guard !string.isEmpty else { return }
/host/spi-builder-workspace/Sources/Work/Work.swift:97:48: error: value of type 'FileHandle' has no member 'readabilityHandler'
 95 |             self?.standardOutputHandler?(string.trimmingNewLineCharacter())
 96 |         }
 97 |         standardErrorPipe.fileHandleForReading.readabilityHandler = { [weak self] fileHandle in
    |                                                `- error: value of type 'FileHandle' has no member 'readabilityHandler'
 98 |             guard let string = String(data: fileHandle.availableData, encoding: .utf8) else { return }
 99 |             guard !string.isEmpty else { return }
/host/spi-builder-workspace/Sources/Work/Work.swift:97:83: error: cannot infer type of closure parameter 'fileHandle' without a type annotation
 95 |             self?.standardOutputHandler?(string.trimmingNewLineCharacter())
 96 |         }
 97 |         standardErrorPipe.fileHandleForReading.readabilityHandler = { [weak self] fileHandle in
    |                                                                                   `- error: cannot infer type of closure parameter 'fileHandle' without a type annotation
 98 |             guard let string = String(data: fileHandle.availableData, encoding: .utf8) else { return }
 99 |             guard !string.isEmpty else { return }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/15] Compiling Work String+Trimming.swift
/host/spi-builder-workspace/Sources/Work/String+Trimming.swift:34:5: warning: 'public' modifier is redundant for instance method declared in a public extension
32 |     ///
33 |     /// - Returns: Trimmed string.
34 |     public func trimmingNewLineCharacter() -> String {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
35 |         if hasSuffix("\n") {
36 |             return String(dropLast())
[8/15] Emitting module Work
/host/spi-builder-workspace/Sources/Work/String+Trimming.swift:34:5: warning: 'public' modifier is redundant for instance method declared in a public extension
32 |     ///
33 |     /// - Returns: Trimmed string.
34 |     public func trimmingNewLineCharacter() -> String {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
35 |         if hasSuffix("\n") {
36 |             return String(dropLast())
/host/spi-builder-workspace/Sources/Work/Work.swift:54:22: error: cannot find type 'Process' in scope
 52 |
 53 |     /// Process object.
 54 |     public let task: Process
    |                      `- error: cannot find type 'Process' in scope
 55 |     /// Standard output handler.
 56 |     open var standardOutputHandler: ((String) -> Void)?
/host/spi-builder-workspace/Sources/Work/Work.swift:106:24: error: method does not override any method from its superclass
104 |
105 |     /// Execute shell command.
106 |     open override func main() {
    |                        `- error: method does not override any method from its superclass
107 |         task.launch()
108 |         task.waitUntilExit()
/host/spi-builder-workspace/Sources/Work/Work.swift:29:18: error: cannot find type 'Operation' in scope
 27 |
 28 | /// Shell command.
 29 | open class Work: Operation {
    |                  `- error: cannot find type 'Operation' in scope
 30 |
 31 |     /// Termination result.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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/8] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/12] Compiling Work WorkResult.swift
[3/12] Compiling Work String+Trimming.swift
/host/spi-builder-workspace/Sources/Work/String+Trimming.swift:34:5: warning: 'public' modifier is redundant for instance method declared in a public extension
32 |     ///
33 |     /// - Returns: Trimmed string.
34 |     public func trimmingNewLineCharacter() -> String {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
35 |         if hasSuffix("\n") {
36 |             return String(dropLast())
[4/12] Emitting module Work
/host/spi-builder-workspace/Sources/Work/String+Trimming.swift:34:5: warning: 'public' modifier is redundant for instance method declared in a public extension
32 |     ///
33 |     /// - Returns: Trimmed string.
34 |     public func trimmingNewLineCharacter() -> String {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
35 |         if hasSuffix("\n") {
36 |             return String(dropLast())
/host/spi-builder-workspace/Sources/Work/Work.swift:54:22: error: cannot find type 'Process' in scope
 52 |
 53 |     /// Process object.
 54 |     public let task: Process
    |                      `- error: cannot find type 'Process' in scope
 55 |     /// Standard output handler.
 56 |     open var standardOutputHandler: ((String) -> Void)?
/host/spi-builder-workspace/Sources/Work/Work.swift:106:24: error: method does not override any method from its superclass
104 |
105 |     /// Execute shell command.
106 |     open override func main() {
    |                        `- error: method does not override any method from its superclass
107 |         task.launch()
108 |         task.waitUntilExit()
/host/spi-builder-workspace/Sources/Work/Work.swift:29:18: error: cannot find type 'Operation' in scope
 27 |
 28 | /// Shell command.
 29 | open class Work: Operation {
    |                  `- error: cannot find type 'Operation' in scope
 30 |
 31 |     /// Termination result.
[5/12] Compiling Work Work.swift
/host/spi-builder-workspace/Sources/Work/Work.swift:54:22: error: cannot find type 'Process' in scope
 52 |
 53 |     /// Process object.
 54 |     public let task: Process
    |                      `- error: cannot find type 'Process' in scope
 55 |     /// Standard output handler.
 56 |     open var standardOutputHandler: ((String) -> Void)?
/host/spi-builder-workspace/Sources/Work/Work.swift:106:24: error: method does not override any method from its superclass
104 |
105 |     /// Execute shell command.
106 |     open override func main() {
    |                        `- error: method does not override any method from its superclass
107 |         task.launch()
108 |         task.waitUntilExit()
/host/spi-builder-workspace/Sources/Work/Work.swift:29:18: error: cannot find type 'Operation' in scope
 27 |
 28 | /// Shell command.
 29 | open class Work: Operation {
    |                  `- error: cannot find type 'Operation' in scope
 30 |
 31 |     /// Termination result.
/host/spi-builder-workspace/Sources/Work/Work.swift:73:16: error: cannot find 'Process' in scope
 71 |                 standardErrorHandler: ((String) -> Void)? = nil,
 72 |                 completion: ((WorkResult) -> Void)? = nil) {
 73 |         task = Process()
    |                `- error: cannot find 'Process' in scope
 74 |         self.standardOutputHandler = standardOutputHandler
 75 |         self.standardErrorHandler = standardErrorHandler
/host/spi-builder-workspace/Sources/Work/Work.swift:84:9: error: 'super' cannot be used in class 'Work' because it has no superclass
 82 |         standardErrorRawString = ""
 83 |
 84 |         super.init()
    |         `- error: 'super' cannot be used in class 'Work' because it has no superclass
 85 |
 86 |         task.launchPath = "/bin/bash"
/host/spi-builder-workspace/Sources/Work/Work.swift:91:49: error: value of type 'FileHandle' has no member 'readabilityHandler'
 89 |         task.standardError = standardErrorPipe
 90 |
 91 |         standardOutputPipe.fileHandleForReading.readabilityHandler = { [weak self] fileHandle in
    |                                                 `- error: value of type 'FileHandle' has no member 'readabilityHandler'
 92 |             guard let string = String(data: fileHandle.availableData, encoding: .utf8) else { return }
 93 |             guard !string.isEmpty else { return }
/host/spi-builder-workspace/Sources/Work/Work.swift:91:84: error: cannot infer type of closure parameter 'fileHandle' without a type annotation
 89 |         task.standardError = standardErrorPipe
 90 |
 91 |         standardOutputPipe.fileHandleForReading.readabilityHandler = { [weak self] fileHandle in
    |                                                                                    `- error: cannot infer type of closure parameter 'fileHandle' without a type annotation
 92 |             guard let string = String(data: fileHandle.availableData, encoding: .utf8) else { return }
 93 |             guard !string.isEmpty else { return }
/host/spi-builder-workspace/Sources/Work/Work.swift:97:48: error: value of type 'FileHandle' has no member 'readabilityHandler'
 95 |             self?.standardOutputHandler?(string.trimmingNewLineCharacter())
 96 |         }
 97 |         standardErrorPipe.fileHandleForReading.readabilityHandler = { [weak self] fileHandle in
    |                                                `- error: value of type 'FileHandle' has no member 'readabilityHandler'
 98 |             guard let string = String(data: fileHandle.availableData, encoding: .utf8) else { return }
 99 |             guard !string.isEmpty else { return }
/host/spi-builder-workspace/Sources/Work/Work.swift:97:83: error: cannot infer type of closure parameter 'fileHandle' without a type annotation
 95 |             self?.standardOutputHandler?(string.trimmingNewLineCharacter())
 96 |         }
 97 |         standardErrorPipe.fileHandleForReading.readabilityHandler = { [weak self] fileHandle in
    |                                                                                   `- error: cannot infer type of closure parameter 'fileHandle' without a type annotation
 98 |             guard let string = String(data: fileHandle.availableData, encoding: .utf8) else { return }
 99 |             guard !string.isEmpty else { return }
BUILD FAILURE 6.1 wasm