The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Zip, reference main (6cf230), with Swift 6.1 for Wasm on 22 Sep 2025 15:29:30 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vapor-community/Zip.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/vapor-community/Zip
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6cf2301 Drop Swift 5.10 (#15)
Cloned https://github.com/vapor-community/Zip.git
Revision (git rev-parse @):
6cf23016de581f1797842cbed799ef33a952bcf4
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/vapor-community/Zip.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/vapor-community/Zip.git
https://github.com/vapor-community/Zip.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Zip",
  "name" : "Zip",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Zip",
      "targets" : [
        "Zip"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ZipTests",
      "module_type" : "SwiftTarget",
      "name" : "ZipTests",
      "path" : "Tests/ZipTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/ZipTests/TestResources",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "ZipTests.swift"
      ],
      "target_dependencies" : [
        "Zip"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Zip",
      "module_type" : "SwiftTarget",
      "name" : "Zip",
      "path" : "Sources/Zip",
      "product_memberships" : [
        "Zip"
      ],
      "sources" : [
        "ArchiveFile.swift",
        "Date+dosDate.swift",
        "FileManager+ProcessedFilePath.swift",
        "QuickZip.swift",
        "URL+nativePath.swift",
        "Zip.swift",
        "ZipCompression.swift",
        "ZipError.swift"
      ],
      "target_dependencies" : [
        "CMinizip"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CMinizip",
      "module_type" : "ClangTarget",
      "name" : "CMinizip",
      "path" : "Sources/CMinizip",
      "product_memberships" : [
        "Zip"
      ],
      "sources" : [
        "crypt.c",
        "ioapi.c",
        "unzip.c",
        "zip.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/6] Write sources
In file included from /host/spi-builder-workspace/Sources/CMinizip/ioapi.c:24:
/host/spi-builder-workspace/Sources/CMinizip/include/ioapi.h:23:10: fatal error: 'zlib.h' file not found
   23 | #include "zlib.h"
      |          ^~~~~~~~
1 error generated.
[1/6] Compiling CMinizip ioapi.c
/host/spi-builder-workspace/Sources/CMinizip/unzip.c:27:10: fatal error: 'zlib.h' file not found
   27 | #include "zlib.h"
      |          ^~~~~~~~
[1/6] Compiling CMinizip unzip.c
[1/6] Compiling CMinizip crypt.c
/host/spi-builder-workspace/Sources/CMinizip/zip.c:25:10: fatal error: 'zlib.h' file not found
   25 | #include "zlib.h"
      |          ^~~~~~~~
[1/6] Compiling CMinizip zip.c
[1/6] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
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/Sources/CMinizip/unzip.c:27:10: fatal error: 'zlib.h' file not found
   27 | #include "zlib.h"
      |          ^~~~~~~~
1 error generated.
[0/5] Compiling CMinizip unzip.c
[0/5] Compiling CMinizip crypt.c
[0/5] Compiling CMinizip zip.c
In file included from /host/spi-builder-workspace/Sources/CMinizip/ioapi.c:24:
/host/spi-builder-workspace/Sources/CMinizip/include/ioapi.h:23:10: fatal error: 'zlib.h' file not found
   23 | #include "zlib.h"
      |          ^~~~~~~~
1 error generated.
[0/5] Compiling CMinizip ioapi.c
[0/5] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm