Build Information
Failed to build KpqC, reference main (bf8770), with Swift 6.2 for Wasm on 17 Oct 2026 15:23:20 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/KpqC/kpqc-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/KpqC/kpqc-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at bf87705 docs: pluralize KEM parameter size heading
Cloned https://github.com/KpqC/kpqc-swift.git
Revision (git rev-parse @):
bf877051fe6909a4534f5d6401d66d214b9c57ec
SUCCESS checkout https://github.com/KpqC/kpqc-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/KpqC/kpqc-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:0563b842faffea9ddc6fe15fbd2051d02dff3ef29dc4b5bfe0a0910a084eee81
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Tests/KpqCTests/__pycache__': File not found.
Building for debugging...
[0/193] Compiling 02_hash.c
[0/193] Compiling 01_field_common.c
[2/193] Compiling 04_tree.c
[3/193] Compiling secure_zero.c
In file included from /host/spi-builder-workspace/Sources/KpqCCore/Generated/timer/15_randombytes.c:6:
/host/spi-builder-workspace/native/csrc/randombytes.c:16:2: error: "kpqc currently supports operating-system entropy on Windows, Linux, Android, macOS, and BSD"
16 | #error "kpqc currently supports operating-system entropy on Windows, Linux, Android, macOS, and BSD"
| ^
/host/spi-builder-workspace/native/csrc/randombytes.c:37:9: error: unknown type name 'ssize_t'; did you mean 'size_t'?
37 | ssize_t count = getrandom(output, length, 0);
| ^~~~~~~
| size_t
/usr/lib/clang/17/include/__stddef_size_t.h:18:23: note: 'size_t' declared here
18 | typedef __SIZE_TYPE__ size_t;
| ^
In file included from /host/spi-builder-workspace/Sources/KpqCCore/Generated/timer/15_randombytes.c:6:
/host/spi-builder-workspace/native/csrc/randombytes.c:37:25: error: call to undeclared function 'getrandom'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
37 | ssize_t count = getrandom(output, length, 0);
| ^
/host/spi-builder-workspace/native/csrc/randombytes.c:39:17: error: use of undeclared identifier 'errno'
39 | if (errno == EINTR) continue;
| ^
/host/spi-builder-workspace/native/csrc/randombytes.c:39:26: error: use of undeclared identifier 'EINTR'
39 | if (errno == EINTR) continue;
| ^
5 errors generated.
[4/193] Compiling 15_randombytes.c
[4/193] Compiling 05_field128.c
[4/193] Compiling 13_fips202.c
[4/193] Compiling 14_kem_wrapper.c
[4/193] Compiling 03_sign.c
[4/193] Compiling 06_fips202.c
[4/193] Compiling 07_signature.c
[4/193] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.2 wasm