Build Information
Failed to build SnapshotTestingWebP, reference main (22238d), with Swift 6.2 for Wasm on 4 Dec 2025 08:36:13 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexey1312/SnapshotTestingWebP.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/alexey1312/SnapshotTestingWebP
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 22238d8 Add CI and release GitHub Actions workflows
Cloned https://github.com/alexey1312/SnapshotTestingWebP.git
Revision (git rev-parse @):
22238d85de4722cfdfc3d7a2a148969bebe7a1bd
SUCCESS checkout https://github.com/alexey1312/SnapshotTestingWebP.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/alexey1312/SnapshotTestingWebP.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:302e3f347c593123f3d337e3da1bfe6e802bb8867614e9dfa745c72e13ca8eeb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/embedded-swift-sdk.json
Fetching https://github.com/the-swift-collective/libwebp.git
Fetching https://github.com/pointfreeco/swift-snapshot-testing.git
[1/54] Fetching libwebp
Fetched https://github.com/the-swift-collective/libwebp.git from cache (0.23s)
[1/15633] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing.git from cache (3.36s)
Computing version for https://github.com/the-swift-collective/libwebp.git
Computed https://github.com/the-swift-collective/libwebp.git at 1.4.1 (4.06s)
Fetching https://github.com/the-swift-collective/libpng.git
[1/30] Fetching libpng
Fetched https://github.com/the-swift-collective/libpng.git from cache (0.27s)
Computing version for https://github.com/the-swift-collective/libpng.git
Computed https://github.com/the-swift-collective/libpng.git at 1.6.45 (0.72s)
Fetching https://github.com/the-swift-collective/zlib.git
[1/48] Fetching zlib
Fetched https://github.com/the-swift-collective/zlib.git from cache (0.21s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing.git
Computed https://github.com/pointfreeco/swift-snapshot-testing.git at 1.18.7 (0.66s)
Fetching https://github.com/pointfreeco/swift-custom-dump
Fetching https://github.com/swiftlang/swift-syntax
[1/4651] Fetching swift-custom-dump
[4652/77670] Fetching swift-custom-dump, swift-syntax
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (5.05s)
Fetched https://github.com/swiftlang/swift-syntax from cache (5.12s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (5.45s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5600] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.68s)
Computing version for https://github.com/the-swift-collective/zlib.git
Computed https://github.com/the-swift-collective/zlib.git at 1.3.2 (1.15s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 602.0.0 (0.59s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.7.0 (0.36s)
Creating working copy for https://github.com/the-swift-collective/zlib.git
Working copy of https://github.com/the-swift-collective/zlib.git resolved at 1.3.2
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 602.0.0
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.7.0
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.3.3
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing.git
Working copy of https://github.com/pointfreeco/swift-snapshot-testing.git resolved at 1.18.7
Creating working copy for https://github.com/the-swift-collective/libpng.git
Working copy of https://github.com/the-swift-collective/libpng.git resolved at 1.6.45
Creating working copy for https://github.com/the-swift-collective/libwebp.git
Working copy of https://github.com/the-swift-collective/libwebp.git resolved at 1.4.1
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz (0.66s)
Building for debugging...
[0/182] Compiling sharpyuv_cpu.c
[1/182] Compiling sharpyuv_sse2.c
[1/182] Compiling sharpyuv_dsp.c
[3/182] Compiling sharpyuv_csp.c
[4/182] Compiling sharpyuv_gamma.c
[5/182] Compiling wicdec.c
[6/182] Compiling tiffdec.c
[7/182] Compiling sharpyuv_neon.c
[8/182] Write swift-version-24593BA9C3E375BF.txt
[9/182] Compiling sharpyuv.c
[9/182] Compiling webpdec.c
[11/182] Compiling pngdec.c
[12/182] Compiling pnmdec.c
[12/182] Compiling metadata.c
[13/182] Compiling jpegdec.c
[15/182] Compiling imageio_util.c
[16/182] Compiling ZLibC uncompr.c
[16/182] Compiling image_dec.c
[16/182] Compiling ZLibC zutil.c
[19/182] Compiling image_enc.c
[20/182] Compiling ZLibC inffast.c
[21/182] Compiling ZLibC inftrees.c
/host/spi-builder-workspace/.build/checkouts/zlib/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/.build/checkouts/zlib/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/.build/checkouts/zlib/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/.build/checkouts/zlib/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/.build/checkouts/zlib/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.
[22/182] Compiling ZLibC trees.c
[23/182] Compiling ZLibC gzwrite.c
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzread.c:22:15: error: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
22 | ret = read(state->fd, buf + *have, get);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzread.c:22:15: note: did you mean 'fread'?
/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:102:8: note: 'fread' declared here
102 | size_t fread(void *__restrict, size_t, size_t, FILE *__restrict);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzread.c:600:11: error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
600 | ret = close(state->fd);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzread.c:600:11: 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 *);
| ^
2 errors generated.
[23/182] Compiling ZLibC gzread.c
[23/182] Compiling ZLibC crc32.c
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:245:9: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
245 | LSEEK(state->fd, 0, SEEK_END); /* so gzoffset() is correct */
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:245:9: note: did you mean 'fseek'?
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
/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:95:5: note: 'fseek' declared here
95 | int fseek(FILE *, long, int);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:251:24: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
251 | state->start = LSEEK(state->fd, 0, SEEK_CUR);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:335:9: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
335 | if (LSEEK(state->fd, state->start, SEEK_SET) == -1)
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:372:15: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
372 | ret = LSEEK(state->fd, offset - (z_off64_t)state->x.have, SEEK_CUR);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:458:14: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
458 | offset = LSEEK(state->fd, 0, SEEK_CUR);
| ^
/host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzlib.c:15:17: note: expanded from macro 'LSEEK'
15 | # define LSEEK lseek
| ^
5 errors generated.
[23/182] Compiling ZLibC gzlib.c
[23/182] Compiling ZLibC deflate.c
[23/182] Compiling ZLibC infback.c
[23/182] Compiling ZLibC gzclose.c
[23/182] Compiling ZLibC inflate.c
BUILD FAILURE 6.2 wasm