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 SwiftMnemonic, reference 0.2.1 (b05972), with Swift 6.1 for Wasm on 26 Sep 2025 20:46:27 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kingpin-Apps/swift-mnemonic.git
Reference: 0.2.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/Kingpin-Apps/swift-mnemonic
 * tag               0.2.1      -> FETCH_HEAD
HEAD is now at b05972f bump: version 0.2.0 → 0.2.1
Cloned https://github.com/Kingpin-Apps/swift-mnemonic.git
Revision (git rev-parse @):
b05972fe91e2fd63a507b73862842724007a35bc
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Kingpin-Apps/swift-mnemonic.git at 0.2.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Kingpin-Apps/swift-mnemonic.git
https://github.com/Kingpin-Apps/swift-mnemonic.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "uncommoncrypto.swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.1",
            "upper_bound" : "0.3.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/tesseract-one/UncommonCrypto.swift.git"
    },
    {
      "identity" : "swift-base58",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.2",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/KINGH242/swift-base58.git"
    }
  ],
  "manifest_display_name" : "SwiftMnemonic",
  "name" : "SwiftMnemonic",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftMnemonic",
      "targets" : [
        "SwiftMnemonic"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftMnemonicTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftMnemonicTests",
      "path" : "Tests/SwiftMnemonicTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/SwiftMnemonicTests/data",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "ErrorsTests.swift",
        "LanguageTests.swift",
        "MnemonicTests.swift",
        "TestHelpers.swift"
      ],
      "target_dependencies" : [
        "SwiftMnemonic"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftMnemonic",
      "module_type" : "SwiftTarget",
      "name" : "SwiftMnemonic",
      "path" : "Sources/SwiftMnemonic",
      "product_dependencies" : [
        "UncommonCrypto",
        "SwiftBase58"
      ],
      "product_memberships" : [
        "SwiftMnemonic"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/SwiftMnemonic/wordlist",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Enums.swift",
        "Errors.swift",
        "Mnemonic.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/KINGH242/swift-base58.git
Fetching https://github.com/tesseract-one/UncommonCrypto.swift.git
[1/54] Fetching swift-base58
[52/197] Fetching swift-base58, uncommoncrypto.swift
Fetched https://github.com/KINGH242/swift-base58.git from cache (0.24s)
Fetched https://github.com/tesseract-one/UncommonCrypto.swift.git from cache (0.26s)
Computing version for https://github.com/KINGH242/swift-base58.git
Computed https://github.com/KINGH242/swift-base58.git at 0.1.2 (0.97s)
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/attaswift/BigInt.git
[1/4826] Fetching bigint
[4586/21982] Fetching bigint, swift-crypto
Fetched https://github.com/attaswift/BigInt.git from cache (0.70s)
[1716/17156] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (2.72s)
Computing version for https://github.com/tesseract-one/UncommonCrypto.swift.git
Computed https://github.com/tesseract-one/UncommonCrypto.swift.git at 0.2.1 (6.62s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (2.34s)
Fetching https://github.com/apple/swift-asn1.git
[1/1645] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.35s)
Computing version for https://github.com/attaswift/BigInt.git
Computed https://github.com/attaswift/BigInt.git at 5.3.0 (1.25s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.4.0 (0.87s)
Creating working copy for https://github.com/attaswift/BigInt.git
Working copy of https://github.com/attaswift/BigInt.git resolved at 5.3.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.1
Creating working copy for https://github.com/KINGH242/swift-base58.git
Working copy of https://github.com/KINGH242/swift-base58.git resolved at 0.1.2
Creating working copy for https://github.com/tesseract-one/UncommonCrypto.swift.git
Working copy of https://github.com/tesseract-one/UncommonCrypto.swift.git resolved at 0.2.1
Building for debugging...
[0/11] Write sources
[4/11] Copying wordlist
[5/11] Compiling CUncommonCrypto hmac.c
[6/11] Compiling CUncommonCrypto sha3.c
[7/11] Compiling CUncommonCrypto memzero.c
[8/11] Compiling CUncommonCrypto pbkdf2.c
[9/11] Write swift-version-24593BA9C3E375BF.txt
[10/32] Compiling CUncommonCrypto sha2.c
[12/39] Compiling BigInt Strideable.swift
[13/39] Compiling BigInt String Conversion.swift
[14/41] Emitting module BigInt
[15/41] Compiling BigInt Floating Point Conversion.swift
[16/41] Compiling BigInt GCD.swift
[17/41] Compiling BigInt Hashable.swift
[18/41] Compiling BigInt Subtraction.swift
[19/41] Compiling BigInt Words and Bits.swift
[20/41] Compiling BigInt Data Conversion.swift
[21/41] Compiling BigInt Division.swift
[22/41] Compiling BigInt Exponentiation.swift
[23/41] Compiling UncommonCrypto SecureRandom.swift
/host/spi-builder-workspace/.build/checkouts/UncommonCrypto.swift/Sources/UncommonCrypto/SecureRandom.swift:55:8: error: SecureRandom isn't implemented for this platform
53 | }
54 | #else
55 | #error("SecureRandom isn't implemented for this platform")
   |        `- error: SecureRandom isn't implemented for this platform
56 | #endif
57 |
/host/spi-builder-workspace/.build/checkouts/UncommonCrypto.swift/Sources/UncommonCrypto/SecureRandom.swift:20:20: error: cannot find 'native' in scope
18 |             throw Error.invalidSize
19 |         }
20 |         return try native(size: size)
   |                    `- error: cannot find 'native' in scope
21 |     }
22 |
/host/spi-builder-workspace/.build/checkouts/UncommonCrypto.swift/Sources/UncommonCrypto/SecureRandom.swift:24:25: error: cannot find 'native' in scope
22 |
23 |     public static func number<T: BinaryInteger>(of type: T) throws -> T {
24 |         let bytes = try native(size: MemoryLayout<T>.size)
   |                         `- error: cannot find 'native' in scope
25 |         return bytes.withUnsafeBytes { $0.load(as: T.self) }
26 |     }
[24/41] Compiling UncommonCrypto SHA2.swift
[25/41] Compiling UncommonCrypto SHA3.swift
[26/41] Compiling UncommonCrypto PBKDF2.swift
[27/41] Compiling UncommonCrypto SHA1.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/41] Emitting module UncommonCrypto
/host/spi-builder-workspace/.build/checkouts/UncommonCrypto.swift/Sources/UncommonCrypto/SecureRandom.swift:55:8: error: SecureRandom isn't implemented for this platform
53 | }
54 | #else
55 | #error("SecureRandom isn't implemented for this platform")
   |        `- error: SecureRandom isn't implemented for this platform
56 | #endif
57 |
[29/41] Compiling UncommonCrypto HMAC.swift
[30/41] Compiling BigInt Random.swift
[31/41] Compiling BigInt Shifts.swift
[32/41] Compiling BigInt Square Root.swift
[33/41] Compiling BigInt Integer Conversion.swift
[34/41] Compiling BigInt Multiplication.swift
[35/41] Compiling BigInt Prime Test.swift
[36/41] Compiling BigInt Bitwise Ops.swift
[37/41] Compiling BigInt Codable.swift
[38/41] Compiling BigInt Comparable.swift
[39/41] Compiling BigInt Addition.swift
[40/41] Compiling BigInt BigInt.swift
[41/41] Compiling BigInt BigUInt.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
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/29] Compiling UncommonCrypto SecureRandom.swift
/host/spi-builder-workspace/.build/checkouts/UncommonCrypto.swift/Sources/UncommonCrypto/SecureRandom.swift:55:8: error: SecureRandom isn't implemented for this platform
53 | }
54 | #else
55 | #error("SecureRandom isn't implemented for this platform")
   |        `- error: SecureRandom isn't implemented for this platform
56 | #endif
57 |
/host/spi-builder-workspace/.build/checkouts/UncommonCrypto.swift/Sources/UncommonCrypto/SecureRandom.swift:20:20: error: cannot find 'native' in scope
18 |             throw Error.invalidSize
19 |         }
20 |         return try native(size: size)
   |                    `- error: cannot find 'native' in scope
21 |     }
22 |
/host/spi-builder-workspace/.build/checkouts/UncommonCrypto.swift/Sources/UncommonCrypto/SecureRandom.swift:24:25: error: cannot find 'native' in scope
22 |
23 |     public static func number<T: BinaryInteger>(of type: T) throws -> T {
24 |         let bytes = try native(size: MemoryLayout<T>.size)
   |                         `- error: cannot find 'native' in scope
25 |         return bytes.withUnsafeBytes { $0.load(as: T.self) }
26 |     }
[3/29] Compiling UncommonCrypto SHA3.swift
[4/29] Compiling UncommonCrypto PBKDF2.swift
[5/29] Compiling UncommonCrypto SHA1.swift
[6/29] Compiling UncommonCrypto SHA2.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/29] Emitting module UncommonCrypto
/host/spi-builder-workspace/.build/checkouts/UncommonCrypto.swift/Sources/UncommonCrypto/SecureRandom.swift:55:8: error: SecureRandom isn't implemented for this platform
53 | }
54 | #else
55 | #error("SecureRandom isn't implemented for this platform")
   |        `- error: SecureRandom isn't implemented for this platform
56 | #endif
57 |
[8/29] Compiling UncommonCrypto HMAC.swift
[9/29] Emitting module BigInt
BUILD FAILURE 6.1 wasm