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 master (e2617c), with Swift 6.1 for Wasm on 29 May 2025 17:03:37 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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: 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/mxcl/swift-sh
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at e2617c0 Update tea.yaml for sepolia
Cloned https://github.com/mxcl/swift-sh.git
Revision (git rev-parse @):
e2617c0ab425a7303f2f60e25d1fe387b7a6f057
SUCCESS checkout https://github.com/mxcl/swift-sh.git at master
========================================
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-4606859-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
Fetching https://github.com/mxcl/Path.swift
Fetching https://github.com/mxcl/LegibleError
Fetching https://github.com/mxcl/Version
Fetching https://github.com/mxcl/StreamReader
[1/288] Fetching version
[148/1347] Fetching version, path.swift
[362/1525] Fetching version, path.swift, legibleerror
[550/1575] Fetching version, path.swift, legibleerror, streamreader
Fetched https://github.com/mxcl/Version from cache (0.43s)
Fetched https://github.com/mxcl/Path.swift from cache (0.44s)
Fetching https://github.com/krzyzanowskim/CryptoSwift
Fetched https://github.com/mxcl/LegibleError from cache (0.45s)
Fetched https://github.com/mxcl/StreamReader from cache (0.44s)
[1/12941] Fetching cryptoswift
Fetched https://github.com/krzyzanowskim/CryptoSwift from cache (1.56s)
Computing version for https://github.com/mxcl/StreamReader
Computed https://github.com/mxcl/StreamReader at 1.0.1 (5.13s)
Computing version for https://github.com/mxcl/Version
Computed https://github.com/mxcl/Version at 2.1.0 (1.24s)
Computing version for https://github.com/mxcl/LegibleError
Computed https://github.com/mxcl/LegibleError at 1.0.6 (0.95s)
Computing version for https://github.com/mxcl/Path.swift
Computed https://github.com/mxcl/Path.swift at 1.4.1 (0.81s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift
Computed https://github.com/krzyzanowskim/CryptoSwift at 1.8.4 (0.65s)
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/Path.swift
Working copy of https://github.com/mxcl/Path.swift resolved at 1.4.1
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/StreamReader
Working copy of https://github.com/mxcl/StreamReader resolved at 1.0.1
Building for debugging...
[0/22] Write sources
[5/22] Copying PrivacyInfo.xcprivacy
[6/22] Write sources
[10/22] Write swift-version-24593BA9C3E375BF.txt
[12/141] Compiling Version Version.swift
[13/141] Compiling Version Version+Range.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/141] 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
[15/141] 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
[16/141] 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
[17/142] Compiling Path Path.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
[18/142] 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
[19/142] Compiling CryptoSwift BlockModeOptions.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
[20/142] Compiling CryptoSwift CBC.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/142] 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
[22/142] Compiling Path Pathish.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/142] Emitting module LegibleError
[24/142] 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
[25/142] Compiling Path Path+StringConvertibles.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
[26/142] Compiling Path Path+ls.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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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/12] Write swift-version-24593BA9C3E375BF.txt
[2/131] Emitting module LegibleError
[3/131] 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
[4/131] Compiling Path Path+StringConvertibles.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
[5/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
BUILD FAILURE 6.1 wasm