The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Kraken, reference main (535268), with Swift 6.4 for Wasm on 21 Sep 2026 13:50:46 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wabiverse/Kraken.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/wabiverse/Kraken
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 535268f profile: fix file casing for case-sensitive platforms.
Cloned https://github.com/wabiverse/Kraken.git
Revision (git rev-parse @):
535268f98b748311c3e495c0493960ae0723f080
SUCCESS checkout https://github.com/wabiverse/Kraken.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/wabiverse/Kraken.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/wabiverse/KrakenPlugs.git
Fetching https://github.com/ChimeHQ/TextFormation.git
Fetching https://github.com/apple/swift-collections
Fetching https://github.com/ChimeHQ/SwiftTreeSitter
Fetching https://github.com/ChimeHQ/TextStory.git
Fetching https://github.com/wabiverse/SwiftUSD.git
[1/1272] Fetching textformation
[14/1831] Fetching textformation, textstory
[1832/1844] Fetching textformation, textstory, krakenplugs
Fetched https://github.com/ChimeHQ/TextFormation.git (0.41s)
Fetching https://github.com/wabiverse/MetaversePlugin.git
[1/1752] Fetching swifttreesitter
[1753/29104] Fetching swifttreesitter, swift-collections
[7497/195588] Fetching swifttreesitter, swift-collections, swiftusd
[23980/195601] Fetching swifttreesitter, swift-collections, swiftusd, metaverseplugin
Fetched https://github.com/wabiverse/MetaversePlugin.git (0.43s)
[25644/195588] Fetching swifttreesitter, swift-collections, swiftusd
Fetched https://github.com/apple/swift-collections (1.23s)
[38379/168236] Fetching swifttreesitter, swiftusd
Fetched https://github.com/wabiverse/KrakenPlugs.git (7.83s)
Fetched https://github.com/ChimeHQ/TextStory.git (7.84s)
Fetched https://github.com/ChimeHQ/SwiftTreeSitter (7.84s)
Fetched https://github.com/wabiverse/SwiftUSD.git (7.94s)
Computing version for https://github.com/wabiverse/KrakenPlugs.git
Computed https://github.com/wabiverse/KrakenPlugs.git at 1.0.0 (8.12s)
Computing version for https://github.com/wabiverse/MetaversePlugin.git
Computed https://github.com/wabiverse/MetaversePlugin.git at 1.0.0 (0.14s)
Computing version for https://github.com/ChimeHQ/TextFormation.git
Computed https://github.com/ChimeHQ/TextFormation.git at 0.9.0 (0.17s)
Computing version for https://github.com/ChimeHQ/TextStory.git
Computed https://github.com/ChimeHQ/TextStory.git at 0.9.2 (0.17s)
Fetching https://github.com/ChimeHQ/Rearrange
[1/609] Fetching rearrange
Fetched https://github.com/ChimeHQ/Rearrange (0.48s)
Computing version for https://github.com/ChimeHQ/SwiftTreeSitter
Computed https://github.com/ChimeHQ/SwiftTreeSitter at 0.25.0 (0.65s)
Fetching https://github.com/tree-sitter/tree-sitter
[1/72484] Fetching tree-sitter
Fetched https://github.com/tree-sitter/tree-sitter (2.71s)
Computing version for https://github.com/ChimeHQ/Rearrange
Computed https://github.com/ChimeHQ/Rearrange at 2.1.1 (2.89s)
Computing version for https://github.com/wabiverse/SwiftUSD.git
Computed https://github.com/wabiverse/SwiftUSD.git at 24.8.21 (2.80s)
Fetching https://github.com/furbytm/MetaverseKit.git
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/mxcl/Version.git
Fetching https://github.com/furbytm/swift-cross-ui.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/onevcat/Rainbow.git
[1/311] Fetching version
[48/1789] Fetching version, rainbow
[1592/14338] Fetching version, rainbow, swift-cross-ui
[1593/26915] Fetching version, rainbow, swift-cross-ui, metaversekit
Fetched https://github.com/onevcat/Rainbow.git (0.50s)
[2069/25437] Fetching version, swift-cross-ui, metaversekit
Fetching https://github.com/apple/swift-log.git
[3452/44355] Fetching version, swift-cross-ui, metaversekit, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser (0.82s)
[15503/33533] Fetching version, swift-cross-ui, metaversekit, swift-log
Fetched https://github.com/apple/swift-log.git (0.60s)
[15503/105436] Fetching version, swift-cross-ui, metaversekit, swift-syntax
Fetched https://github.com/mxcl/Version.git (3.91s)
Fetched https://github.com/furbytm/swift-cross-ui.git (3.92s)
Fetched https://github.com/swiftlang/swift-syntax (3.94s)
[6541/12577] Fetching metaversekit
Fetched https://github.com/furbytm/MetaverseKit.git (6.18s)
Computing version for https://github.com/furbytm/swift-cross-ui.git
Computed https://github.com/furbytm/swift-cross-ui.git at 0.7.2 (7.40s)
Fetching https://github.com/stackotter/swift-java
Fetching https://github.com/swhitty/swift-mutex
Fetching https://github.com/moreSwift/AndroidKit
Fetching https://github.com/stackotter/swift-image-formats
Fetching https://github.com/moreSwift/swift-winui
Fetching https://github.com/stackotter/swift-macro-toolkit
[1/324] Fetching swift-mutex
[219/479] Fetching swift-mutex, swift-image-formats
[330/13306] Fetching swift-mutex, swift-image-formats, swift-java
[759/14302] Fetching swift-mutex, swift-image-formats, swift-java, swift-macro-toolkit
[6351/25447] Fetching swift-mutex, swift-image-formats, swift-java, swift-macro-toolkit, androidkit
Fetched https://github.com/swhitty/swift-mutex (0.69s)
Fetched https://github.com/moreSwift/AndroidKit (0.69s)
Fetched https://github.com/stackotter/swift-java (0.69s)
[1/1049] Fetching swift-winui
Fetched https://github.com/stackotter/swift-macro-toolkit (1.00s)
Fetched https://github.com/stackotter/swift-image-formats (1.00s)
Fetched https://github.com/moreSwift/swift-winui (1.00s)
Computing version for https://github.com/stackotter/swift-java
Computed https://github.com/stackotter/swift-java at 0.5.1 (1.25s)
Fetching https://github.com/swiftlang/swift-subprocess.git
Fetching https://github.com/apple/swift-system
Fetching https://github.com/swiftlang/swift-java-jni-core
[1/607] Fetching swift-java-jni-core
Fetched https://github.com/swiftlang/swift-java-jni-core (0.41s)
[1/4776] Fetching swift-subprocess
[2963/11674] Fetching swift-subprocess, swift-system
Fetched https://github.com/swiftlang/swift-subprocess.git (0.59s)
[6898/6898] Fetching swift-system
Fetched https://github.com/apple/swift-system (0.65s)
Computing version for https://github.com/moreSwift/AndroidKit
Computed https://github.com/moreSwift/AndroidKit at 0.8.1 (0.99s)
Fetching https://github.com/stackotter/SwiftJavaLang.git
Fetching https://github.com/swift-android-sdk/swift-android-native.git
Fetching https://github.com/stackotter/SwiftKotlin.git
[1/968] Fetching swiftkotlin
[969/2979] Fetching swiftkotlin, swift-android-native
[1995/6135] Fetching swiftkotlin, swift-android-native, swiftjavalang
Fetched https://github.com/stackotter/SwiftKotlin.git (0.80s)
Fetched https://github.com/swift-android-sdk/swift-android-native.git (0.80s)
Fetched https://github.com/stackotter/SwiftJavaLang.git (0.80s)
Computing version for https://github.com/swhitty/swift-mutex
Computed https://github.com/swhitty/swift-mutex at 0.0.6 (1.56s)
Computing version for https://github.com/stackotter/swift-image-formats
Computed https://github.com/stackotter/swift-image-formats at 0.5.0 (0.64s)
Fetching https://github.com/the-swift-collective/libwebp
Fetching https://github.com/the-swift-collective/libpng
Fetching https://github.com/stackotter/jpeg
[1/54] Fetching libwebp
[55/3165] Fetching libwebp, jpeg
Fetched https://github.com/the-swift-collective/libwebp (0.71s)
[32/3111] Fetching jpeg
[437/3141] Fetching jpeg, libpng
Fetched https://github.com/the-swift-collective/libpng (2.08s)
Fetched https://github.com/stackotter/jpeg (2.11s)
Computing version for https://github.com/stackotter/swift-macro-toolkit
Computed https://github.com/stackotter/swift-macro-toolkit at 0.9.0 (2.33s)
Computing version for https://github.com/swiftlang/swift-java-jni-core
Computed https://github.com/swiftlang/swift-java-jni-core at 0.5.1 (0.15s)
Computing version for https://github.com/stackotter/SwiftKotlin.git
Computed https://github.com/stackotter/SwiftKotlin.git at 0.3.0 (0.16s)
Computing version for https://github.com/stackotter/SwiftJavaLang.git
Computed https://github.com/stackotter/SwiftJavaLang.git at 0.3.0 (0.17s)
Computing version for https://github.com/the-swift-collective/libwebp
Computed https://github.com/the-swift-collective/libwebp at 1.4.1 (0.19s)
Computing version for https://github.com/stackotter/jpeg
Computed https://github.com/stackotter/jpeg at 1.0.2 (0.21s)
Computing version for https://github.com/the-swift-collective/libpng
Computed https://github.com/the-swift-collective/libpng at 1.6.45 (0.22s)
Fetching https://github.com/the-swift-collective/zlib.git
[1/71] Fetching zlib
Fetched https://github.com/the-swift-collective/zlib.git (0.42s)
Computing version for https://github.com/swiftlang/swift-subprocess.git
Computed https://github.com/swiftlang/swift-subprocess.git at 0.5.0 (0.61s)
Computing version for https://github.com/the-swift-collective/zlib.git
Computed https://github.com/the-swift-collective/zlib.git at 1.3.2 (0.18s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.16s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 603.0.2 (0.30s)
Computing version for https://github.com/moreSwift/swift-winui
Computed https://github.com/moreSwift/swift-winui at 0.2.2 (0.15s)
Computing version for https://github.com/swift-android-sdk/swift-android-native.git
Computed https://github.com/swift-android-sdk/swift-android-native.git at 2.1.0 (0.29s)
Computing version for https://github.com/mxcl/Version.git
Computed https://github.com/mxcl/Version.git at 2.2.1 (0.18s)
Computing version for https://github.com/onevcat/Rainbow.git
Computed https://github.com/onevcat/Rainbow.git at 4.2.1 (1.05s)
Computing version for https://github.com/furbytm/MetaverseKit.git
Computed https://github.com/furbytm/MetaverseKit.git at 2.0.7 (0.71s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.6.0 (0.29s)
Computing version for https://github.com/tree-sitter/tree-sitter
Computed https://github.com/tree-sitter/tree-sitter at 0.25.10 (0.14s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.8.1 (0.20s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (0.18s)
Creating working copy for https://github.com/wabiverse/KrakenPlugs.git
Working copy of https://github.com/wabiverse/KrakenPlugs.git resolved at 1.0.0
Creating working copy for https://github.com/mxcl/Version.git
Working copy of https://github.com/mxcl/Version.git resolved at 2.2.1
Creating working copy for https://github.com/swhitty/swift-mutex
Working copy of https://github.com/swhitty/swift-mutex resolved at 0.0.6
Creating working copy for https://github.com/stackotter/swift-image-formats
Working copy of https://github.com/stackotter/swift-image-formats resolved at 0.5.0
Creating working copy for https://github.com/moreSwift/swift-winui
Working copy of https://github.com/moreSwift/swift-winui resolved at 0.2.2
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/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.6.0
Creating working copy for https://github.com/furbytm/swift-cross-ui.git
Working copy of https://github.com/furbytm/swift-cross-ui.git resolved at 0.7.2
Creating working copy for https://github.com/stackotter/SwiftJavaLang.git
Working copy of https://github.com/stackotter/SwiftJavaLang.git resolved at 0.3.0
Creating working copy for https://github.com/swiftlang/swift-subprocess.git
Working copy of https://github.com/swiftlang/swift-subprocess.git resolved at 0.5.0
Creating working copy for https://github.com/furbytm/MetaverseKit.git
Working copy of https://github.com/furbytm/MetaverseKit.git resolved at 2.0.7
Creating working copy for https://github.com/wabiverse/SwiftUSD.git
Working copy of https://github.com/wabiverse/SwiftUSD.git resolved at 24.8.21
Creating working copy for https://github.com/ChimeHQ/TextFormation.git
Working copy of https://github.com/ChimeHQ/TextFormation.git resolved at 0.9.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
Creating working copy for https://github.com/stackotter/SwiftKotlin.git
Working copy of https://github.com/stackotter/SwiftKotlin.git resolved at 0.3.0
Creating working copy for https://github.com/swiftlang/swift-java-jni-core
Working copy of https://github.com/swiftlang/swift-java-jni-core resolved at 0.5.1
Creating working copy for https://github.com/moreSwift/AndroidKit
Working copy of https://github.com/moreSwift/AndroidKit resolved at 0.8.1
Creating working copy for https://github.com/ChimeHQ/TextStory.git
Working copy of https://github.com/ChimeHQ/TextStory.git resolved at 0.9.2
Creating working copy for https://github.com/swift-android-sdk/swift-android-native.git
Working copy of https://github.com/swift-android-sdk/swift-android-native.git resolved at 2.1.0
Creating working copy for https://github.com/the-swift-collective/libwebp
Working copy of https://github.com/the-swift-collective/libwebp resolved at 1.4.1
Creating working copy for https://github.com/tree-sitter/tree-sitter
Working copy of https://github.com/tree-sitter/tree-sitter resolved at 0.25.10
Creating working copy for https://github.com/onevcat/Rainbow.git
Working copy of https://github.com/onevcat/Rainbow.git resolved at 4.2.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.15.1
Creating working copy for https://github.com/stackotter/jpeg
Working copy of https://github.com/stackotter/jpeg resolved at 1.0.2
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.8.1
Creating working copy for https://github.com/stackotter/swift-java
Working copy of https://github.com/stackotter/swift-java resolved at 0.5.1
Creating working copy for https://github.com/the-swift-collective/libpng
Working copy of https://github.com/the-swift-collective/libpng resolved at 1.6.45
Creating working copy for https://github.com/wabiverse/MetaversePlugin.git
Working copy of https://github.com/wabiverse/MetaversePlugin.git resolved at 1.0.0
Creating working copy for https://github.com/ChimeHQ/SwiftTreeSitter
Working copy of https://github.com/ChimeHQ/SwiftTreeSitter resolved at 0.25.0
Creating working copy for https://github.com/stackotter/swift-macro-toolkit
Working copy of https://github.com/stackotter/swift-macro-toolkit resolved at 0.9.0
Creating working copy for https://github.com/ChimeHQ/Rearrange
Working copy of https://github.com/ChimeHQ/Rearrange resolved at 2.1.1
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 603.0.2
warning: 'metaversekit': you may be able to install libbz2 using your system-packager:
    apt-get install libbz2-dev
warning: 'swift-cross-ui': you may be able to install gtk+-3.0 using your system-packager:
    apt-get install libgtk-3-dev clang
warning: 'swift-cross-ui': you may be able to install gtk4 using your system-packager:
    apt-get install libgtk-4-dev clang
Building for debugging...
[Computing dependencies]
[Provisioning 1 / 205]
[Constructing description]
[Pre-planning 1 / 5317]
[Planning 113 / 5317]
[Planning 1276 / 5317]
[Planning 2103 / 5317]
[Planning 2797 / 5317]
[Planning 3588 / 5317]
[Planning 4379 / 5317]
[Planning 5157 / 5317]
[Planning deferred tasks]
[Creating build graph]
[Constructing 770 / 13452]
[Constructing 3056 / 13452]
[Constructing 9066 / 13452]
[Starting]
[29 / 4449] _SwiftSyntaxCShims
[397 / 4449] OCIOBundle
warning: no rule to process file '/host/spi-builder-workspace/Sources/Kraken/Resources/Assets.xcassets' of type 'folder.assetcatalog' for architecture 'wasm32'
[630 / 4449] _SwiftSyntaxCShims
[631 / 4449] ZStandard
[639 / 4449] ZStandard
[643 / 4449] ZStandard
[646 / 4449] ZStandard
[658 / 4449] ZStandard
[664 / 4449] ZStandard
[670 / 4450] ZLibC
/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'?
In file included from /host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzwrite.c:6:
In file included from /host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzguts.h:32:
/root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_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'?
In file included from /host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzwrite.c:6:
In file included from /host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzguts.h:32:
/root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/stdio.h:85:5: note: 'fclose' declared here
   85 | int fclose(FILE *);
      |     ^
3 errors generated.
error: CompileC /host/spi-builder-workspace/.build/out/Intermediates.noindex/zlib.build/Debug-webassembly-wasm32/ZLibC-t.build/Objects-normal/wasm32/gzwrite.o /host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzwrite.c normal wasm32 c com.apple.compilers.llvm.clang.1_0.compiler failed with a nonzero exit code. Command line:     cd /host

    Using response file: /host/spi-builder-workspace/.build/out/Intermediates.noindex/zlib.build/Debug-webassembly-wasm32/ZLibC-t.build/Objects-normal/wasm32/9f65232cb83f8421e3a495a5062eba382369c975104ee97bafc405ab795bfc5e-common-args.resp

    /usr/bin/clang -x c -target wasm32-unknown-wasip1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -w -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body --sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk @/host/spi-builder-workspace/.build/out/Intermediates.noindex/zlib.build/Debug-webassembly-wasm32/ZLibC-t.build/Objects-normal/wasm32/9f65232cb83f8421e3a495a5062eba382369c975104ee97bafc405ab795bfc5e-common-args.resp -MMD -MT dependencies -MF /host/spi-builder-workspace/.build/out/Intermediates.noindex/zlib.build/Debug-webassembly-wasm32/ZLibC-t.build/Objects-normal/wasm32/gzwrite.d --serialize-diagnostics /host/spi-builder-workspace/.build/out/Intermediates.noindex/zlib.build/Debug-webassembly-wasm32/ZLibC-t.build/Objects-normal/wasm32/gzwrite.dia -c /host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzwrite.c -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/zlib.build/Debug-webassembly-wasm32/ZLibC-t.build/Objects-normal/wasm32/gzwrite.o
/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'?
In file included from /host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzread.c:6:
In file included from /host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzguts.h:32:
/root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_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'?
In file included from /host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzread.c:6:
In file included from /host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzguts.h:32:
/root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/stdio.h:85:5: note: 'fclose' declared here
   85 | int fclose(FILE *);
      |     ^
2 errors generated.
error: CompileC /host/spi-builder-workspace/.build/out/Intermediates.noindex/zlib.build/Debug-webassembly-wasm32/ZLibC-t.build/Objects-normal/wasm32/gzread.o /host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzread.c normal wasm32 c com.apple.compilers.llvm.clang.1_0.compiler failed with a nonzero exit code. Command line:     cd /host

    Using response file: /host/spi-builder-workspace/.build/out/Intermediates.noindex/zlib.build/Debug-webassembly-wasm32/ZLibC-t.build/Objects-normal/wasm32/9f65232cb83f8421e3a495a5062eba382369c975104ee97bafc405ab795bfc5e-common-args.resp

    /usr/bin/clang -x c -target wasm32-unknown-wasip1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -w -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body --sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk @/host/spi-builder-workspace/.build/out/Intermediates.noindex/zlib.build/Debug-webassembly-wasm32/ZLibC-t.build/Objects-normal/wasm32/9f65232cb83f8421e3a495a5062eba382369c975104ee97bafc405ab795bfc5e-common-args.resp -MMD -MT dependencies -MF /host/spi-builder-workspace/.build/out/Intermediates.noindex/zlib.build/Debug-webassembly-wasm32/ZLibC-t.build/Objects-normal/wasm32/gzread.d --serialize-diagnostics /host/spi-builder-workspace/.build/out/Intermediates.noindex/zlib.build/Debug-webassembly-wasm32/ZLibC-t.build/Objects-normal/wasm32/gzread.dia -c /host/spi-builder-workspace/.build/checkouts/zlib/zlib/gzread.c -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/zlib.build/Debug-webassembly-wasm32/ZLibC-t.build/Objects-normal/wasm32/gzread.o
error: Build failed
BUILD FAILURE 6.4 wasm