Build Information
Failed to build Zlib, reference 1.0.2 (8cf51b), with Swift 6.2 for Wasm on 20 Apr 2026 07:58:42 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/beatt83/swift-zlib.git
Reference: 1.0.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/beatt83/swift-zlib
* tag 1.0.2 -> FETCH_HEAD
HEAD is now at 8cf51bf Merge pull request #1 from beatt83/fix/fix-ios-not-building
Cloned https://github.com/beatt83/swift-zlib.git
Revision (git rev-parse @):
8cf51bfdf81c46702dac496d16397d92ac392532
SUCCESS checkout https://github.com/beatt83/swift-zlib.git at 1.0.2
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/beatt83/swift-zlib.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:2a8b2d9e022a9894c61e0736af7cdaa1ee64c002dbb133a55c0d7e8980b3ad16
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
Building for debugging...
[0/3] Write sources
/host/spi-builder-workspace/Sources/ZlibShims/ZlibShim.c:12:10: fatal error: 'zlib.h' file not found
12 | #include <zlib.h>
| ^~~~~~~~
1 error generated.
[1/3] Compiling ZlibShims ZlibShim.c
[1/3] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.2 wasm