Build Information
Failed to build zlib, reference v1.3.2 (f1d153), with Swift 6.2 for Wasm on 4 Sep 2026 09:11:02 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-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.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/the-swift-collective/zlib.git
Reference: v1.3.2
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/the-swift-collective/zlib
* tag v1.3.2 -> FETCH_HEAD
HEAD is now at f1d153b ci: Bump to Swift 6.1 on Windows to fix SDK bug
Submodule path 'zlib': checked out 'afcd7d6652aaa890e426a22ee327d508783d76c8'
Submodule 'zlib' (https://github.com/the-swift-collective/ZLibC.git) registered for path 'zlib'
Cloning into '/host/spi-builder-workspace/zlib'...
Cloned https://github.com/the-swift-collective/zlib.git
Revision (git rev-parse @):
f1d153b90420f9fcc6ef916cd67ea96f0e68d137
SUCCESS checkout https://github.com/the-swift-collective/zlib.git at v1.3.2
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/the-swift-collective/zlib.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-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:70428a4f4110aef5b17a27427e965f31cf3855e8cf1dfdc416ed61c780337965
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/17] Compiling ZLibC compress.c
[1/17] Compiling ZLibC zutil.c
/host/spi-builder-workspace/zlib/gzwrite.c:78:20: error: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
78 | writ = write(state->fd, strm->next_in, put);
| ^
/host/spi-builder-workspace/zlib/gzwrite.c:78:20: note: did you mean 'fwrite'?
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/stdio.h:103:8: note: 'fwrite' declared here
103 | size_t fwrite(const void *__restrict, size_t, size_t, FILE *__restrict);
| ^
/host/spi-builder-workspace/zlib/gzwrite.c:108:24: error: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
108 | writ = write(state->fd, state->x.next, put);
| ^
/host/spi-builder-workspace/zlib/gzwrite.c:627:9: error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
627 | if (close(state->fd) == -1)
| ^
/host/spi-builder-workspace/zlib/gzwrite.c:627:9: note: did you mean 'fclose'?
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/stdio.h:85:5: note: 'fclose' declared here
85 | int fclose(FILE *);
| ^
3 errors generated.
[2/17] Compiling ZLibC gzwrite.c
[2/17] Compiling ZLibC crc32.c
[2/17] Compiling ZLibC uncompr.c
[2/17] Compiling ZLibC inftrees.c
[2/17] Compiling ZLibC trees.c
[2/17] Compiling ZLibC deflate.c
[2/17] Compiling ZLibC gzclose.c
[2/17] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.2 wasm