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 swift-zip-archive, reference main (b04d3d), with Swift 6.1 for Wasm on 17 Oct 2025 11:24:18 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/adam-fowler/swift-zip-archive.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/adam-fowler/swift-zip-archive
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b04d3d1 Make FileHeader.isDirectory public
Cloned https://github.com/adam-fowler/swift-zip-archive.git
Revision (git rev-parse @):
b04d3d130b9a8b212db9d97da3b8853b024887be
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/adam-fowler/swift-zip-archive.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/adam-fowler/swift-zip-archive.git
https://github.com/adam-fowler/swift-zip-archive.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-system",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-system.git"
    }
  ],
  "manifest_display_name" : "swift-zip-archive",
  "name" : "swift-zip-archive",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "ZipArchive",
      "targets" : [
        "ZipArchive"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ZipArchiveTests",
      "module_type" : "SwiftTarget",
      "name" : "ZipArchiveTests",
      "path" : "Tests/ZipArchiveTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/ZipArchiveTests/resources/encoding.zip",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/ZipArchiveTests/resources/encrypted.zip",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/ZipArchiveTests/resources/hello64.zip",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/ZipArchiveTests/resources/linux.zip",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/ZipArchiveTests/resources/macos.zip",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/ZipArchiveTests/resources/source.zip",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/ZipArchiveTests/resources/test.bin",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "EncryptionTests.swift",
        "FileDescriptor+remove.swift",
        "FileStorageTests.swift",
        "MemoryStorageTests.swift",
        "ZipArchiveReaderTests.swift",
        "ZipArchiveWriterTests.swift",
        "ZipCompressionTests.swift"
      ],
      "target_dependencies" : [
        "ZipArchive"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ZipArchive",
      "module_type" : "SwiftTarget",
      "name" : "ZipArchive",
      "path" : "Sources/ZipArchive",
      "product_dependencies" : [
        "SystemPackage"
      ],
      "product_memberships" : [
        "ZipArchive"
      ],
      "sources" : [
        "CryptKey.swift",
        "Date.swift",
        "DirectoryDescriptor.swift",
        "MemoryBuffer.swift",
        "System+directory.swift",
        "ZipArchiveReader+extract.swift",
        "ZipArchiveReader.swift",
        "ZipArchiveWriter+writeFolderContents.swift",
        "ZipArchiveWriter.swift",
        "ZipCompression.swift",
        "ZipFileStorage.swift",
        "ZipMemoryStorage.swift",
        "ZipStorage.swift",
        "ZipTypes.swift",
        "crc32.swift"
      ],
      "target_dependencies" : [
        "CZipZlib"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CZipZlib",
      "module_type" : "ClangTarget",
      "name" : "CZipZlib",
      "path" : "Sources/CZipZlib",
      "product_memberships" : [
        "ZipArchive"
      ],
      "sources" : [
        "empty.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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
Fetching https://github.com/apple/swift-system.git
[1/5051] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.66s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.3 (1.80s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.3
Building for debugging...
[0/5] Write sources
[2/5] Compiling CSystem shims.c
[3/5] Compiling CZipZlib empty.c
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/36] Emitting module SystemPackage
[7/40] Compiling SystemPackage FilePathWindows.swift
[8/40] Compiling SystemPackage FilePermissions.swift
[9/40] Compiling SystemPackage IOCompletion.swift
[10/40] Compiling SystemPackage IORequest.swift
[11/40] Compiling SystemPackage Errno.swift
[12/40] Compiling SystemPackage ErrnoWindows.swift
[13/40] Compiling SystemPackage FileDescriptor.swift
[14/40] Compiling SystemPackage FileHelpers.swift
[15/40] Compiling SystemPackage FileOperations.swift
[16/40] Compiling SystemPackage SystemString.swift
[17/40] Compiling SystemPackage Util+StringArray.swift
[18/40] Compiling SystemPackage Util.swift
[19/40] Compiling SystemPackage UtilConsumers.swift
[20/40] Compiling SystemPackage Constants.swift
[21/40] Compiling SystemPackage Exports.swift
[22/40] Compiling SystemPackage Mocking.swift
[23/40] Compiling SystemPackage RawBuffer.swift
[24/40] Compiling SystemPackage Syscalls.swift
[25/40] Compiling SystemPackage WindowsSyscallAdapters.swift
[26/40] Compiling SystemPackage MachPort.swift
[27/40] Compiling SystemPackage PlatformString.swift
[28/40] Compiling SystemPackage FilePathSyntax.swift
[29/40] Compiling SystemPackage FilePathTemp.swift
[30/40] Compiling SystemPackage FilePathTempPosix.swift
[31/40] Compiling SystemPackage FilePathTempWindows.swift
[32/40] Compiling SystemPackage FilePath.swift
[33/40] Compiling SystemPackage FilePathComponentView.swift
[34/40] Compiling SystemPackage FilePathComponents.swift
[35/40] Compiling SystemPackage FilePathParsing.swift
[36/40] Compiling SystemPackage FilePathString.swift
[37/40] Compiling SystemPackage IORing.swift
[38/40] Compiling SystemPackage RawIORequest.swift
[39/40] Compiling SystemPackage Backcompat.swift
[40/40] Compiling SystemPackage CInterop.swift
[42/56] Compiling ZipArchive ZipStorage.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[43/56] Compiling ZipArchive ZipTypes.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[44/56] Compiling ZipArchive ZipFileStorage.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[45/56] Compiling ZipArchive ZipMemoryStorage.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[46/57] Compiling ZipArchive ZipArchiveWriter.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[47/57] Compiling ZipArchive ZipCompression.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[48/57] Compiling ZipArchive DirectoryDescriptor.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[49/57] Compiling ZipArchive MemoryBuffer.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[50/57] Compiling ZipArchive System+directory.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[51/57] Compiling ZipArchive ZipArchiveReader+extract.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[52/57] Emitting module ZipArchive
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[53/57] Compiling ZipArchive ZipArchiveReader.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[54/57] Compiling ZipArchive ZipArchiveWriter+writeFolderContents.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[55/57] Compiling ZipArchive CryptKey.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[56/57] Compiling ZipArchive Date.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[57/57] Compiling ZipArchive crc32.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/32] Compiling SystemPackage Syscalls.swift
[3/32] Compiling SystemPackage WindowsSyscallAdapters.swift
[4/32] Compiling SystemPackage MachPort.swift
[5/32] Compiling SystemPackage PlatformString.swift
[6/36] Emitting module SystemPackage
[7/36] Compiling SystemPackage Errno.swift
[8/36] Compiling SystemPackage ErrnoWindows.swift
[9/36] Compiling SystemPackage FileDescriptor.swift
[10/36] Compiling SystemPackage FileHelpers.swift
[11/36] Compiling SystemPackage FileOperations.swift
[12/36] Compiling SystemPackage FilePathSyntax.swift
[13/36] Compiling SystemPackage FilePathTemp.swift
[14/36] Compiling SystemPackage FilePathTempPosix.swift
[15/36] Compiling SystemPackage FilePathTempWindows.swift
[16/36] Compiling SystemPackage IORing.swift
[17/36] Compiling SystemPackage RawIORequest.swift
[18/36] Compiling SystemPackage Backcompat.swift
[19/36] Compiling SystemPackage CInterop.swift
[20/36] Compiling SystemPackage FilePathWindows.swift
[21/36] Compiling SystemPackage FilePermissions.swift
[22/36] Compiling SystemPackage IOCompletion.swift
[23/36] Compiling SystemPackage IORequest.swift
[24/36] Compiling SystemPackage Constants.swift
[25/36] Compiling SystemPackage Exports.swift
[26/36] Compiling SystemPackage Mocking.swift
[27/36] Compiling SystemPackage RawBuffer.swift
[28/36] Compiling SystemPackage FilePath.swift
[29/36] Compiling SystemPackage FilePathComponentView.swift
[30/36] Compiling SystemPackage FilePathComponents.swift
[31/36] Compiling SystemPackage FilePathParsing.swift
[32/36] Compiling SystemPackage FilePathString.swift
[33/36] Compiling SystemPackage SystemString.swift
[34/36] Compiling SystemPackage Util+StringArray.swift
[35/36] Compiling SystemPackage Util.swift
[36/36] Compiling SystemPackage UtilConsumers.swift
[38/52] Compiling ZipArchive ZipFileStorage.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[39/52] Compiling ZipArchive ZipMemoryStorage.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[40/52] Compiling ZipArchive ZipStorage.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[41/52] Compiling ZipArchive ZipTypes.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[42/53] Compiling ZipArchive System+directory.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[43/53] Compiling ZipArchive ZipArchiveReader+extract.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[44/53] Compiling ZipArchive ZipArchiveWriter.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[45/53] Compiling ZipArchive ZipCompression.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[46/53] Compiling ZipArchive ZipArchiveReader.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[47/53] Compiling ZipArchive ZipArchiveWriter+writeFolderContents.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[48/53] Emitting module ZipArchive
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[49/53] Compiling ZipArchive DirectoryDescriptor.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[50/53] Compiling ZipArchive MemoryBuffer.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[51/53] Compiling ZipArchive CryptKey.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[52/53] Compiling ZipArchive Date.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
[53/53] Compiling ZipArchive crc32.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/CZipZlib/include/CZipZlib.h:4:10: error: 'zlib.h' file not found
 2 | #define C_COMPRESS_ZLIB_H
 3 |
 4 | #include <zlib.h>
   |          `- error: 'zlib.h' file not found
 5 |
 6 | static inline int CZipZlib_deflateInit2(z_streamp strm, int level, int method,
/host/spi-builder-workspace/Sources/ZipArchive/ZipArchiveReader.swift:1:8: error: could not build C module 'CZipZlib'
  1 | import CZipZlib
    |        `- error: could not build C module 'CZipZlib'
  2 | import SystemPackage
  3 |
BUILD FAILURE 6.1 wasm