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 swift-sh, reference 2.5.0 (e19c34), with Swift 6.1 for Wasm on 29 May 2025 17:03:21 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/mxcl/swift-sh.git
Reference: 2.5.0
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/mxcl/swift-sh
 * tag               2.5.0      -> FETCH_HEAD
HEAD is now at e19c345 swifts 5.1...5.9 & 6.0
Cloned https://github.com/mxcl/swift-sh.git
Revision (git rev-parse @):
e19c3451b142e5257e411e6e81cfa9762eb5a94a
SUCCESS checkout https://github.com/mxcl/swift-sh.git at 2.5.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/mxcl/swift-sh.git
https://github.com/mxcl/swift-sh.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "path.swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mxcl/Path.swift"
    },
    {
      "identity" : "streamreader",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mxcl/StreamReader"
    },
    {
      "identity" : "legibleerror",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mxcl/LegibleError"
    },
    {
      "identity" : "version",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mxcl/Version"
    },
    {
      "identity" : "cryptoswift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/krzyzanowskim/CryptoSwift"
    }
  ],
  "manifest_display_name" : "swift-sh",
  "name" : "swift-sh",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    }
  ],
  "products" : [
    {
      "name" : "swift-sh",
      "targets" : [
        "swift-sh"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "Script",
      "targets" : [
        "Script"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Utility",
      "targets" : [
        "Utility"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Command",
      "targets" : [
        "Command"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "swift_sh",
      "module_type" : "SwiftTarget",
      "name" : "swift-sh",
      "path" : "Sources",
      "product_dependencies" : [
        "LegibleError"
      ],
      "product_memberships" : [
        "swift-sh"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Command"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Utility",
      "module_type" : "SwiftTarget",
      "name" : "Utility",
      "path" : "Sources/Utility",
      "product_dependencies" : [
        "Path",
        "Version",
        "CryptoSwift"
      ],
      "product_memberships" : [
        "swift-sh",
        "Script",
        "Utility",
        "Command"
      ],
      "sources" : [
        "Path+ResolvedHash.swift",
        "Process+1up.swift",
        "TemporaryDirectory.swift",
        "etc.swift",
        "exec().swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Script",
      "module_type" : "SwiftTarget",
      "name" : "Script",
      "path" : "Sources/Script",
      "product_dependencies" : [
        "StreamReader"
      ],
      "product_memberships" : [
        "swift-sh",
        "Script",
        "Command"
      ],
      "sources" : [
        "Constraint.swift",
        "DependencyName.swift",
        "ExecutableTargetMainStyle.swift",
        "ImportSpecification.swift",
        "Script.swift",
        "parse().swift"
      ],
      "target_dependencies" : [
        "Utility"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Command",
      "module_type" : "SwiftTarget",
      "name" : "Command",
      "path" : "Sources/Command",
      "product_memberships" : [
        "swift-sh",
        "Command"
      ],
      "sources" : [
        "CommandLine.usage.swift",
        "clean().swift",
        "edit().swift",
        "editor().swift",
        "eject().swift",
        "run().Input.swift",
        "run().swift"
      ],
      "target_dependencies" : [
        "Script"
      ],
      "type" : "library"
    },
    {
      "c99name" : "All",
      "module_type" : "SwiftTarget",
      "name" : "All",
      "path" : "Tests/All",
      "sources" : [
        "ImportSpecificationUnitTests.swift",
        "IntegrationTests.swift",
        "ModeUnitTests.swift",
        "UtilityTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "swift-sh"
      ],
      "type" : "test"
    }
  ],
  "tools_version" : "5.3"
}
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
Fetching https://github.com/krzyzanowskim/CryptoSwift
Fetching https://github.com/mxcl/Path.swift
Fetching https://github.com/mxcl/StreamReader
Fetching https://github.com/mxcl/Version
Fetching https://github.com/mxcl/LegibleError
[1/1059] Fetching path.swift
[467/14000] Fetching path.swift, cryptoswift
[1042/14288] Fetching path.swift, cryptoswift, version
[1569/14338] Fetching path.swift, cryptoswift, version, streamreader
[2545/14516] Fetching path.swift, cryptoswift, version, streamreader, legibleerror
Fetched https://github.com/mxcl/StreamReader from cache (0.36s)
Fetched https://github.com/mxcl/LegibleError from cache (0.36s)
Fetched https://github.com/mxcl/Version from cache (0.36s)
[2853/14000] Fetching path.swift, cryptoswift
Fetched https://github.com/mxcl/Path.swift from cache (2.49s)
Fetched https://github.com/krzyzanowskim/CryptoSwift from cache (2.51s)
Computing version for https://github.com/mxcl/StreamReader
Computed https://github.com/mxcl/StreamReader at 1.0.1 (5.47s)
Computing version for https://github.com/mxcl/Version
Computed https://github.com/mxcl/Version at 2.1.0 (0.58s)
Computing version for https://github.com/mxcl/LegibleError
Computed https://github.com/mxcl/LegibleError at 1.0.6 (0.76s)
Computing version for https://github.com/mxcl/Path.swift
Computed https://github.com/mxcl/Path.swift at 1.4.1 (0.93s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift
Computed https://github.com/krzyzanowskim/CryptoSwift at 1.8.4 (0.55s)
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift
Working copy of https://github.com/krzyzanowskim/CryptoSwift resolved at 1.8.4
Creating working copy for https://github.com/mxcl/LegibleError
Working copy of https://github.com/mxcl/LegibleError resolved at 1.0.6
Creating working copy for https://github.com/mxcl/Version
Working copy of https://github.com/mxcl/Version resolved at 2.1.0
Creating working copy for https://github.com/mxcl/StreamReader
Working copy of https://github.com/mxcl/StreamReader resolved at 1.0.1
Creating working copy for https://github.com/mxcl/Path.swift
Working copy of https://github.com/mxcl/Path.swift resolved at 1.4.1
Building for debugging...
[0/22] Write sources
[4/22] Copying PrivacyInfo.xcprivacy
[5/22] Write sources
[10/22] Write swift-version-24593BA9C3E375BF.txt
[12/141] Compiling Version Version.swift
[13/141] Compiling Version Version+Range.swift
[14/141] Compiling Version Version+Codable.swift
[15/141] Emitting module Version
[16/141] Compiling Path PathToBool.swift
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
[17/142] Compiling Version Version+Comparable.swift
[18/142] Compiling Version Version+Foundation.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/142] Emitting module Path
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
[20/143] Compiling Path Path+FileManager.swift
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
[21/143] Compiling CryptoSwift BlockEncryptor.swift
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
[22/143] Compiling CryptoSwift BlockMode.swift
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
[23/143] Emitting module LegibleError
[24/143] Compiling LegibleError LegibleError.swift
/host/spi-builder-workspace/.build/checkouts/LegibleError/Sources/LegibleError.swift:63:45: error: cannot find 'object_getClassName' in scope
61 |         let foo: Any = self
62 |         let nativeClassNames = ["_SwiftNativeNSError", "__SwiftNativeNSError"]
63 |         let selfClassName = String(cString: object_getClassName(self))
   |                                             `- error: cannot find 'object_getClassName' in scope
64 |         let isNSError = !nativeClassNames.contains(selfClassName) && foo is NSObject
65 |         // ^^ ∵ otherwise implicit bridging implicitly casts as for other tests
[27/143] Compiling CryptoSwift BlockModeOptions.swift
[28/143] Compiling CryptoSwift CBC.swift
[29/143] Compiling CryptoSwift CCM.swift
[30/143] Compiling CryptoSwift CFB.swift
[31/143] Compiling CryptoSwift CTR.swift
[32/143] Compiling CryptoSwift CipherModeWorker.swift
[33/143] Compiling CryptoSwift ECB.swift
[34/143] Compiling CryptoSwift GCM.swift
[35/143] Compiling CryptoSwift OCB.swift
[36/143] Compiling CryptoSwift OFB.swift
[37/143] Compiling CryptoSwift PCBC.swift
[38/143] Compiling CryptoSwift Blowfish.swift
[39/143] Compiling CryptoSwift CBCMAC.swift
[40/143] Emitting module CryptoSwift
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/12] Write swift-version-24593BA9C3E375BF.txt
[2/131] Compiling Path PathToBool.swift
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
[3/131] Compiling Version Version+Foundation.swift
[4/132] Compiling LegibleError LegibleError.swift
/host/spi-builder-workspace/.build/checkouts/LegibleError/Sources/LegibleError.swift:63:45: error: cannot find 'object_getClassName' in scope
61 |         let foo: Any = self
62 |         let nativeClassNames = ["_SwiftNativeNSError", "__SwiftNativeNSError"]
63 |         let selfClassName = String(cString: object_getClassName(self))
   |                                             `- error: cannot find 'object_getClassName' in scope
64 |         let isNSError = !nativeClassNames.contains(selfClassName) && foo is NSObject
65 |         // ^^ ∵ otherwise implicit bridging implicitly casts as for other tests
[5/132] Emitting module LegibleError
[6/132] Compiling Version Version+Codable.swift
[7/132] Emitting module Version
BUILD FAILURE 6.1 wasm