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 K1, reference 0.6.0 (c77e6c), with Swift 6.2 (beta) for Wasm on 23 Jun 2025 09:50:51 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Sajjon/K1.git
Reference: 0.6.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/Sajjon/K1
 * tag               0.6.0      -> FETCH_HEAD
HEAD is now at c77e6c2 Upgrade libsecp256k1 to 0.6.0 (0cdc758a56360bf58a851fe91085a327ec97685a) (#44)
Submodule path 'Sources/secp256k1/libsecp256k1': checked out '0cdc758a56360bf58a851fe91085a327ec97685a'
Submodule 'Sources/secp256k1/libsecp256k1' (https://github.com/bitcoin-core/secp256k1.git) registered for path 'Sources/secp256k1/libsecp256k1'
Cloning into '/host/spi-builder-workspace/Sources/secp256k1/libsecp256k1'...
Cloned https://github.com/Sajjon/K1.git
Revision (git rev-parse @):
c77e6c2bd23ec019b7ecf80b567f5eccbec59887
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Sajjon/K1.git at 0.6.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/Sajjon/K1.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Building for debugging...
[0/8] Write sources
[1/8] Compiling ecdh_variants.c
[2/8] Compiling lax_der_privatekey_parsing.c
[3/8] Compiling lax_der_parsing.c
[4/8] Compiling precomputed_ecmult_gen.c
[5/8] Compiling secp256k1.c
[6/8] Write swift-version-24593BA9C3E375BF.txt
[7/8] Compiling precomputed_ecmult.c
[9/57] Compiling K1 PrivateKeyImplementation.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[10/57] Compiling K1 PublicKeyImplementation.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[11/57] Compiling K1 Schnorr+Signature.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[12/57] Compiling K1 Schnorr.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[13/57] Compiling K1 Signing.generated.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[14/57] Compiling K1 Validation.generated.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[15/57] Compiling K1 Data+Extensions.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[16/63] Compiling K1 K1.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[17/63] Compiling K1 KeyAgreement.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[18/63] Compiling K1 ECDSA.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[19/63] Compiling K1 ECDSASignatureNonRecoverable.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[20/63] Compiling K1 ECDSASignatureRecoverable.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[21/63] Compiling K1 RecoveryID.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[22/63] Compiling K1 Keys.generated.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/63] Emitting module K1
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[24/63] Compiling K1 GeneralizedTime.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[25/63] Compiling K1 ObjectIdentifier.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[26/63] Compiling K1 ECDSASignature.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[27/63] Compiling K1 PEMDocument.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[28/63] Compiling K1 PKCS8PrivateKey.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[29/63] Compiling K1 SEC1PrivateKey.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[30/63] Compiling K1 FFI+Raw.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[31/63] Compiling K1 Curve.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[32/63] Compiling K1 K1+Error.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[33/63] Compiling K1 SharedSecret.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[34/63] Compiling K1 ASN1.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[35/63] Compiling K1 ASN1Any.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[36/63] Compiling K1 ASN1BitString.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[37/63] Compiling K1 FFI+PublicKey.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[38/63] Compiling K1 PublicKey+Wrapped.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[39/63] Compiling K1 FFI+Schnorr.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[40/63] Compiling K1 Schnorr+Wrapped.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[41/63] Compiling K1 FFI+Call.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[42/63] Compiling K1 FFI+Context.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[43/63] Compiling K1 FFI+Format.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[44/63] Compiling K1 ASN1Boolean.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[45/63] Compiling K1 ASN1Identifier.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[46/63] Compiling K1 ASN1Integer.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[47/63] Compiling K1 ASN1Null.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[48/63] Compiling K1 ASN1OctetString.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[49/63] Compiling K1 ASN1Strings.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[50/63] Compiling K1 ArraySliceBigint.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[51/63] Compiling K1 FFI+ECDH.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[52/63] Compiling K1 FFI+ECDSA.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[53/63] Compiling K1 ECDSA+NonRecovery+Wrapped.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[54/63] Compiling K1 FFI+ECDSA+NonRecovery.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[55/63] Compiling K1 ECDSA+Recovery+Wrapped.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[56/63] Compiling K1 FFI+ECDSA+Recovery.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[57/63] Compiling K1 PrivateKey+Wrapped.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[58/63] Compiling K1 SubjectPublicKeyInfo.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[59/63] Compiling K1 ASN1Error.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[60/63] Compiling K1 BytesUtil.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[61/63] Compiling K1 RNG_boring.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[62/63] Compiling K1 SafeCompare_boring.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
[63/63] Compiling K1 SecureBytes.swift
/host/spi-builder-workspace/Sources/K1/K1.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | /// The Elliptic Curve `secp256k1`
BUILD FAILURE 6.2 wasm