Build Information
Failed to build NKeys, reference v0.2.0 (88a177), with Swift 6.2 for Wasm on 16 Jul 2025 09:21:38 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/nats-io/nkeys.swift.git
Reference: v0.2.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/nats-io/nkeys.swift
* tag v0.2.0 -> FETCH_HEAD
HEAD is now at 88a1778 Remove unused CryptoKit dependency
Cloned https://github.com/nats-io/nkeys.swift.git
Revision (git rev-parse @):
88a1778b06b5631506ca90ebb593df0431c8a9f3
SUCCESS checkout https://github.com/nats-io/nkeys.swift.git at v0.2.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/nats-io/nkeys.swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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
Fetching https://github.com/apple/swift-format.git
Fetching https://github.com/Jarema/Base32
Fetching https://github.com/jedisct1/swift-sodium.git
[1/1112] Fetching base32
[1113/13430] Fetching base32, swift-format
[13431/17917] Fetching base32, swift-format, swift-sodium
Fetched https://github.com/apple/swift-format.git from cache (1.18s)
[1830/5599] Fetching base32, swift-sodium
Fetched https://github.com/Jarema/Base32 from cache (6.69s)
Fetched https://github.com/jedisct1/swift-sodium.git from cache (6.83s)
Computing version for https://github.com/Jarema/Base32
Computed https://github.com/Jarema/Base32 at 0.10.2 (9.71s)
Computing version for https://github.com/jedisct1/swift-sodium.git
Computed https://github.com/jedisct1/swift-sodium.git at 0.9.1 (0.50s)
Computing version for https://github.com/apple/swift-format.git
Computed https://github.com/apple/swift-format.git at 0.50700.1 (0.74s)
Fetching https://github.com/apple/swift-syntax
Fetching https://github.com/apple/swift-tools-support-core.git
Fetching https://github.com/apple/swift-argument-parser.git
[1/6871] Fetching swift-tools-support-core
[6872/22395] Fetching swift-tools-support-core, swift-argument-parser
Fetched https://github.com/apple/swift-tools-support-core.git from cache (0.69s)
[10246/15524] Fetching swift-argument-parser
[15525/86965] Fetching swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.16s)
[7859/71441] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax from cache (6.88s)
Computing version for https://github.com/apple/swift-tools-support-core.git
Computed https://github.com/apple/swift-tools-support-core.git at 0.2.7 (7.64s)
Fetching https://github.com/apple/swift-system.git
[1/4657] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.57s)
Computing version for https://github.com/apple/swift-syntax
Computed https://github.com/apple/swift-syntax at 0.50700.1 (1.36s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.1.4 (0.79s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.1.1 (0.86s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.1.4
Creating working copy for https://github.com/jedisct1/swift-sodium.git
Working copy of https://github.com/jedisct1/swift-sodium.git resolved at 0.9.1
Creating working copy for https://github.com/apple/swift-syntax
Working copy of https://github.com/apple/swift-syntax resolved at 0.50700.1
Creating working copy for https://github.com/apple/swift-tools-support-core.git
Working copy of https://github.com/apple/swift-tools-support-core.git resolved at 0.2.7
Creating working copy for https://github.com/Jarema/Base32
Working copy of https://github.com/Jarema/Base32 resolved at 0.10.2
Creating working copy for https://github.com/apple/swift-format.git
Working copy of https://github.com/apple/swift-format.git resolved at 0.50700.1
warning: you may be able to install libsodium using your system-packager:
apt-get install libsodium-dev
warning: you may be able to install libsodium using your system-packager:
apt-get install libsodium-dev
[1/1] Compiling plugin GenerateManualPlugin
Building for debugging...
[1/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/30] Emitting module Base32
/host/spi-builder-workspace/.build/checkouts/Base32/Sources/Base32/Base16.swift:27:8: error: no such module 'Foundation'
25 | // THE SOFTWARE.
26 |
27 | import Foundation
| `- error: no such module 'Foundation'
28 |
29 | // MARK: - Base16 Data <-> String
[7/30] Compiling Base32 shim.swift
/host/spi-builder-workspace/.build/checkouts/Base32/Sources/Base32/Base16.swift:27:8: error: no such module 'Foundation'
25 | // THE SOFTWARE.
26 |
27 | import Foundation
| `- error: no such module 'Foundation'
28 |
29 | // MARK: - Base16 Data <-> String
[8/30] Compiling Sodium Sign.swift
/host/spi-builder-workspace/.build/checkouts/swift-sodium/Sodium/Aead.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import Clibsodium
3 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
[9/30] Compiling Sodium Sodium.swift
/host/spi-builder-workspace/.build/checkouts/swift-sodium/Sodium/Aead.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import Clibsodium
3 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
[10/32] Compiling Sodium GenericHash.swift
/host/spi-builder-workspace/.build/checkouts/swift-sodium/Sodium/Aead.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import Clibsodium
3 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
[11/32] Compiling Sodium KeyDerivation.swift
/host/spi-builder-workspace/.build/checkouts/swift-sodium/Sodium/Aead.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import Clibsodium
3 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
[12/32] Compiling Sodium KeyExchange.swift
/host/spi-builder-workspace/.build/checkouts/swift-sodium/Sodium/Aead.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import Clibsodium
3 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
[13/32] Compiling Sodium KeyPairProtocol.swift
/host/spi-builder-workspace/.build/checkouts/swift-sodium/Sodium/Aead.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import Clibsodium
3 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
[14/32] Compiling Sodium NonceGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-sodium/Sodium/Aead.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import Clibsodium
3 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
[15/32] Compiling Sodium SecretKeyGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-sodium/Sodium/Aead.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import Clibsodium
3 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
[16/32] Compiling Base32 StringExtension.swift
/host/spi-builder-workspace/.build/checkouts/Base32/Sources/Base32/Base16.swift:27:8: error: no such module 'Foundation'
25 | // THE SOFTWARE.
26 |
27 | import Foundation
| `- error: no such module 'Foundation'
28 |
29 | // MARK: - Base16 Data <-> String
[17/32] Compiling Sodium Stream.swift
/host/spi-builder-workspace/.build/checkouts/swift-sodium/Sodium/Aead.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import Clibsodium
3 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
[18/32] Compiling Sodium Utils.swift
/host/spi-builder-workspace/.build/checkouts/swift-sodium/Sodium/Aead.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import Clibsodium
3 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
[19/32] Compiling Base32 Base32.swift
/host/spi-builder-workspace/.build/checkouts/Base32/Sources/Base32/Base16.swift:27:8: error: no such module 'Foundation'
25 | // THE SOFTWARE.
26 |
27 | import Foundation
| `- error: no such module 'Foundation'
28 |
29 | // MARK: - Base16 Data <-> String
[20/32] Compiling Base32 Base16.swift
/host/spi-builder-workspace/.build/checkouts/Base32/Sources/Base32/Base16.swift:27:8: error: no such module 'Foundation'
25 | // THE SOFTWARE.
26 |
27 | import Foundation
| `- error: no such module 'Foundation'
28 |
29 | // MARK: - Base16 Data <-> String
error: emit-module command failed with exit code 1 (use -v to see invocation)
[21/32] Emitting module Sodium
/host/spi-builder-workspace/.build/checkouts/swift-sodium/Sodium/Aead.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 | import Clibsodium
3 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
BUILD FAILURE 6.2 wasm