The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SnapshotTestingWebP, reference main (22238d), with Swift 6.1 for Wasm on 4 Dec 2025 08:38:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build 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.1
Building package at path:  $PWD
https://github.com/alexey1312/SnapshotTestingWebP.git
https://github.com/alexey1312/SnapshotTestingWebP.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-snapshot-testing",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.18.6",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/pointfreeco/swift-snapshot-testing.git"
    },
    {
      "identity" : "libwebp",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/the-swift-collective/libwebp.git"
    }
  ],
  "manifest_display_name" : "SnapshotTestingWebP",
  "name" : "SnapshotTestingWebP",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "SnapshotTestingWebP",
      "targets" : [
        "SnapshotTestingWebP"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SnapshotTestingWebPTests",
      "module_type" : "SwiftTarget",
      "name" : "SnapshotTestingWebPTests",
      "path" : "Tests/SnapshotTestingWebPTests",
      "sources" : [
        "SnapshotTestingWebPTests.swift",
        "SwiftUIView.swift",
        "TestNSView.swift"
      ],
      "target_dependencies" : [
        "SnapshotTestingWebP"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SnapshotTestingWebP",
      "module_type" : "SwiftTarget",
      "name" : "SnapshotTestingWebP",
      "path" : "Sources/SnapshotTestingWebP",
      "product_dependencies" : [
        "SnapshotTesting",
        "WebP",
        "libwebp"
      ],
      "product_memberships" : [
        "SnapshotTestingWebP"
      ],
      "sources" : [
        "CompressionQuality.swift",
        "NSImage.swift",
        "NSView.swift",
        "NSViewController.swift",
        "SwiftUIView.swift",
        "UIImage.swift",
        "UIView.swift",
        "UIViewController.swift",
        "WebP/NSImage+WebP.swift",
        "WebP/UIImage+WebP.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:4dfe22dedd7a52399668938cbd466a34545eff77bced906005dc4032a6549d90
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/the-swift-collective/libwebp.git
Fetching https://github.com/pointfreeco/swift-snapshot-testing.git
[1/54] Fetching libwebp
[55/15687] Fetching libwebp, swift-snapshot-testing
Fetched https://github.com/the-swift-collective/libwebp.git from cache (3.05s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing.git from cache (3.14s)
Computing version for https://github.com/the-swift-collective/libwebp.git
Computed https://github.com/the-swift-collective/libwebp.git at 1.4.1 (5.80s)
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.82s)
Computing version for https://github.com/the-swift-collective/libpng.git
Computed https://github.com/the-swift-collective/libpng.git at 1.6.45 (1.57s)
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.30s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing.git
Computed https://github.com/pointfreeco/swift-snapshot-testing.git at 1.18.7 (1.16s)
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 (7.00s)
Fetched https://github.com/swiftlang/swift-syntax from cache (7.05s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (7.92s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5600] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.10s)
Computing version for https://github.com/the-swift-collective/zlib.git
Computed https://github.com/the-swift-collective/zlib.git at 1.3.2 (2.73s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 602.0.0 (1.35s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.7.0 (0.57s)
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/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/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/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
Building for debugging...
[0/182] Compiling sharpyuv_sse2.c
[0/182] Compiling sharpyuv_cpu.c
[2/182] Compiling sharpyuv_neon.c
[3/182] Compiling sharpyuv_dsp.c
[4/182] Compiling wicdec.c
[5/182] Compiling webpdec.c
[6/182] Compiling sharpyuv_gamma.c
[7/182] Compiling pngdec.c
[8/182] Compiling sharpyuv.c
[9/182] Compiling metadata.c
[9/182] Compiling pnmdec.c
[10/182] Compiling tiffdec.c
[12/182] Compiling jpegdec.c
[13/182] Compiling imageio_util.c
[14/182] Compiling image_dec.c
[15/182] Write swift-version-24593BA9C3E375BF.txt
[16/182] Compiling sharpyuv_csp.c
[17/182] Compiling ZLibC uncompr.c
[18/182] Compiling image_enc.c
[18/182] Compiling ZLibC inftrees.c
[18/182] Compiling ZLibC zutil.c
[21/182] Compiling ZLibC trees.c
[22/182] Compiling ZLibC inffast.c
[23/182] Compiling ZLibC infback.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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/stdio.h:85:5: note: 'fclose' declared here
   85 | int fclose(FILE *);
      |     ^
2 errors generated.
[24/182] Compiling ZLibC gzread.c
[24/182] Compiling ZLibC crc32.c
[24/182] Compiling ZLibC gzlib.c
[24/182] Compiling ZLibC deflate.c
[24/182] Compiling ZLibC compress.c
[24/182] Compiling ZLibC inflate.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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/stdio.h:85:5: note: 'fclose' declared here
   85 | int fclose(FILE *);
      |     ^
3[24/182] Compiling ZLibC gzwrite.c
[24/182] Compiling ZLibC gzclose.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:4dfe22dedd7a52399668938cbd466a34545eff77bced906005dc4032a6549d90
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
/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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/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.
[0/159] Compiling ZLibC gzlib.c
[0/159] Compiling ZLibC crc32.c
[0/159] Compiling ZLibC inflate.c
[0/159] Compiling ZLibC deflate.c
[0/159] Compiling ZLibC gzread.c
[0/159] Compiling ZLibC gzclose.c
[0/159] Compiling ZLibC gzwrite.c
[0/159] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm