The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NKeys, reference main (88a177), with Swift 6.2 for Wasm on 16 Jul 2025 09:23:44 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/nats-io/nkeys.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/nats-io/nkeys.swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
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-4609320-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/Jarema/Base32
Fetching https://github.com/jedisct1/swift-sodium.git
Fetching https://github.com/apple/swift-format.git
[1/1112] Fetching base32
[947/13430] Fetching base32, swift-format
Fetched https://github.com/Jarema/Base32 from cache (0.32s)
[1848/12318] Fetching swift-format
[12319/16805] Fetching swift-format, swift-sodium
Fetched https://github.com/apple/swift-format.git from cache (3.92s)
Fetched https://github.com/jedisct1/swift-sodium.git from cache (4.02s)
Computing version for https://github.com/Jarema/Base32
Computed https://github.com/Jarema/Base32 at 0.10.2 (6.27s)
Computing version for https://github.com/jedisct1/swift-sodium.git
Computed https://github.com/jedisct1/swift-sodium.git at 0.9.1 (0.46s)
Computing version for https://github.com/apple/swift-format.git
Computed https://github.com/apple/swift-format.git at 0.50700.1 (2.64s)
Fetching https://github.com/apple/swift-syntax
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/apple/swift-tools-support-core.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.52s)
[156/15524] Fetching swift-argument-parser
[15525/86965] Fetching swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser.git from cache (4.63s)
Fetched https://github.com/apple/swift-syntax from cache (4.68s)
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 (5.35s)
Fetching https://github.com/apple/swift-system.git
[1/4657] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.49s)
Computing version for https://github.com/apple/swift-syntax
Computed https://github.com/apple/swift-syntax at 0.50700.1 (1.37s)
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.48s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.1.1 (0.44s)
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-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/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/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
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-tools-support-core.git
Working copy of https://github.com/apple/swift-tools-support-core.git resolved at 0.2.7
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
[6/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 |
[7/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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/32] 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
[9/32] 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
[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 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
[14/32] Compiling Sodium Bytes.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 ExitCode.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 Sodium KeyPairGenerator.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 |
[17/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 |
[18/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 |
[19/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 |
[20/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 |
[21/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 |
[22/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
[23/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[24/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 |
[25/32] Compiling Sodium PWHash.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 |
[26/32] Compiling Sodium RandomBytes.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 |
[27/32] Compiling Sodium SecretBox.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 |
BUILD FAILURE 6.2 wasm