Build Information
Failed to build secp256k1, reference main (40b4b3), with Swift 6.2 for Wasm on 20 Jun 2025 23:42:35 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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jb55/secp256k1.swift.git
Reference: main
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/jb55/secp256k1.swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 40b4b38 context: make public
Submodule path 'Sources/bindings/secp256k1': checked out '43756da819a235d813e7ecd53eae6df073b53247'
Submodule path 'Sources/implementation/swift-crypto': checked out '4832fa0d133b9e03077040f123a9087e23ed21dd'
Submodule 'Sources/bindings/secp256k1' (https://github.com/bitcoin-core/secp256k1) registered for path 'Sources/bindings/secp256k1'
Submodule 'Sources/implementation/swift-crypto' (https://github.com/apple/swift-crypto) registered for path 'Sources/implementation/swift-crypto'
Cloning into '/host/spi-builder-workspace/Sources/bindings/secp256k1'...
Cloning into '/host/spi-builder-workspace/Sources/implementation/swift-crypto'...
Cloned https://github.com/jb55/secp256k1.swift.git
Revision (git rev-parse @):
40b4b38b3b1c83f7088c76189a742870e0ca06a9
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/jb55/secp256k1.swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/jb55/secp256k1.swift.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/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[3/7] Compiling Utility.c
[4/7] Compiling precomputed_ecmult_gen.c
[5/7] Compiling secp256k1.c
[6/7] Compiling precomputed_ecmult.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/26] Emitting module secp256k1_implementation
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[9/28] Compiling secp256k1_implementation SafeCompare.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[10/28] Compiling secp256k1_implementation Schnorr.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[11/28] Compiling secp256k1_implementation Tweak.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[12/28] Compiling secp256k1_implementation Signature.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[13/28] Compiling secp256k1_implementation RNG_boring.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[14/28] Compiling secp256k1_implementation SecureBytes.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[15/28] Compiling secp256k1_implementation BytesUtil.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[16/28] Compiling secp256k1_implementation ECDH.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[17/28] Compiling secp256k1_implementation ECDSA.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[18/28] Compiling secp256k1_implementation EdDSA.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[19/28] Compiling secp256k1_implementation secp256k1.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[20/28] Compiling secp256k1_implementation Digest.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[21/28] Compiling secp256k1_implementation Utility.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[22/28] Compiling secp256k1_implementation Zeroization.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[23/28] Compiling secp256k1_implementation Asymmetric.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[24/28] Compiling secp256k1_implementation DH.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[25/28] Compiling secp256k1_implementation Digests.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[26/28] Compiling secp256k1_implementation Errors.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[27/28] Compiling secp256k1_implementation PrettyBytes.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
[28/28] Compiling secp256k1_implementation SHA256.swift
/host/spi-builder-workspace/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
9 | //
10 |
11 | import Foundation
| `- error: no such module 'Foundation'
12 |
13 | /// The secp256k1 Elliptic Curve.
BUILD FAILURE 6.2 wasm