The Swift Package Index logo.Swift Package Index

Build Information

Failed to build libgit2, reference 1.9.2 (52287b), with Swift 6.4 for Wasm on 23 Sep 2026 12:07:50 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-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/ibrahimcetin/libgit2.git
Reference: 1.9.2
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/ibrahimcetin/libgit2
 * tag               1.9.2      -> FETCH_HEAD
HEAD is now at 52287b0 Update GIT_SSH and GIT_SSH_EXEC definitions in Package.swift to support specific platforms
Cloned https://github.com/ibrahimcetin/libgit2.git
Revision (git rev-parse @):
52287b0914f300f916b58fec80e13d8dd8f6824f
SUCCESS checkout https://github.com/ibrahimcetin/libgit2.git at 1.9.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/ibrahimcetin/libgit2.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-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
Building for debugging...
[Planning deferred tasks]
[24 / 231] libgit2
/host/spi-builder-workspace/src/util/vector.c:69:34: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
   69 |                 GIT_ERROR_CHECK_ALLOC_MULTIPLY(&bytes, src->length, sizeof(void *));
      |                                                ^~~~~~
In file included from /host/spi-builder-workspace/src/util/vector.c:8:
In file included from /host/spi-builder-workspace/src/util/vector.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:169:34: note: expanded from macro 'GIT_ERROR_CHECK_ALLOC_MULTIPLY'
  169 |         if (GIT_MULTIPLY_SIZET_OVERFLOW(out, nelem, elsize)) { return -1; }
      |                                         ^~~
/host/spi-builder-workspace/src/util/git2_util.h:146:32: note: expanded from macro 'GIT_MULTIPLY_SIZET_OVERFLOW'
  146 |         (git__multiply_sizet_overflow(out, nelem, elsize) ? (git_error_set_oom(), 1) : 0)
      |                                       ^~~
In file included from /host/spi-builder-workspace/src/util/vector.c:8:
In file included from /host/spi-builder-workspace/src/util/vector.h:10:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:108:
/host/spi-builder-workspace/src/util/integer.h:60:40: note: expanded from macro 'git__multiply_sizet_overflow'
   60 |      __builtin_umul_overflow(one, two, out)
      |                                        ^~~
/host/spi-builder-workspace/src/util/vector.c:349:28: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
  349 |         GIT_ERROR_CHECK_ALLOC_ADD(&new_length, v->length, insert_len);
      |                                   ^~~~~~~~~~~
In file included from /host/spi-builder-workspace/src/util/vector.c:8:
In file included from /host/spi-builder-workspace/src/util/vector.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:150:29: note: expanded from macro 'GIT_ERROR_CHECK_ALLOC_ADD'
  150 |         if (GIT_ADD_SIZET_OVERFLOW(out, one, two)) { return -1; }
      |                                    ^~~
/host/spi-builder-workspace/src/util/git2_util.h:142:27: note: expanded from macro 'GIT_ADD_SIZET_OVERFLOW'
  142 |         (git__add_sizet_overflow(out, one, two) ? (git_error_set_oom(), 1) : 0)
      |                                  ^~~
In file included from /host/spi-builder-workspace/src/util/vector.c:8:
In file included from /host/spi-builder-workspace/src/util/vector.h:10:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:108:
/host/spi-builder-workspace/src/util/integer.h:58:40: note: expanded from macro 'git__add_sizet_overflow'
   58 |      __builtin_uadd_overflow(one, two, out)
      |                                        ^~~
/host/spi-builder-workspace/src/util/vector.c:369:30: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
  369 |         if (git__add_sizet_overflow(&end_idx, idx, remove_len))
      |                                     ^~~~~~~~
In file included from /host/spi-builder-workspace/src/util/vector.c:8:
In file included from /host/spi-builder-workspace/src/util/vector.h:10:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:108:
/host/spi-builder-workspace/src/util/integer.h:58:40: note: expanded from macro 'git__add_sizet_overflow'
   58 |      __builtin_uadd_overflow(one, two, out)
      |                                        ^~~
3 warnings generated.
[31 / 231] libgit2
In file included from /host/spi-builder-workspace/src/libgit2/worktree.c:11:
In file included from /host/spi-builder-workspace/src/libgit2/repository.h:20:
/host/spi-builder-workspace/src/util/array.h:55:35: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
   55 |                 if (GIT_MULTIPLY_SIZET_OVERFLOW(&new_size, *asize, 3))
      |                                                 ^~~~~~~~~
In file included from /host/spi-builder-workspace/src/libgit2/worktree.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/worktree.h:10:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:146:32: note: expanded from macro 'GIT_MULTIPLY_SIZET_OVERFLOW'
  146 |         (git__multiply_sizet_overflow(out, nelem, elsize) ? (git_error_set_oom(), 1) : 0)
      |                                       ^~~
In file included from /host/spi-builder-workspace/src/libgit2/worktree.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/worktree.h:10:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:108:
/host/spi-builder-workspace/src/util/integer.h:60:40: note: expanded from macro 'git__multiply_sizet_overflow'
   60 |      __builtin_umul_overflow(one, two, out)
      |                                        ^~~
1 warning generated.
[39 / 231] libgit2
[44 / 231] libgit2
In file included from /host/spi-builder-workspace/src/libgit2/trailer.c:7:
/host/spi-builder-workspace/src/util/array.h:55:35: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
   55 |                 if (GIT_MULTIPLY_SIZET_OVERFLOW(&new_size, *asize, 3))
      |                                                 ^~~~~~~~~
In file included from /host/spi-builder-workspace/src/libgit2/trailer.c:7:
In file included from /host/spi-builder-workspace/src/util/array.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:146:32: note: expanded from macro 'GIT_MULTIPLY_SIZET_OVERFLOW'
  146 |         (git__multiply_sizet_overflow(out, nelem, elsize) ? (git_error_set_oom(), 1) : 0)
      |                                       ^~~
In file included from /host/spi-builder-workspace/src/libgit2/trailer.c:7:
In file included from /host/spi-builder-workspace/src/util/array.h:10:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:108:
/host/spi-builder-workspace/src/util/integer.h:60:40: note: expanded from macro 'git__multiply_sizet_overflow'
   60 |      __builtin_umul_overflow(one, two, out)
      |                                        ^~~
1 warning generated.
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.c:11:
In file included from /host/spi-builder-workspace/src/libgit2/tree.h:13:
In file included from /host/spi-builder-workspace/src/libgit2/repository.h:20:
/host/spi-builder-workspace/src/util/array.h:55:35: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
   55 |                 if (GIT_MULTIPLY_SIZET_OVERFLOW(&new_size, *asize, 3))
      |                                                 ^~~~~~~~~
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.h:11:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:146:32: note: expanded from macro 'GIT_MULTIPLY_SIZET_OVERFLOW'
  146 |         (git__multiply_sizet_overflow(out, nelem, elsize) ? (git_error_set_oom(), 1) : 0)
      |                                       ^~~
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.h:11:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:108:
/host/spi-builder-workspace/src/util/integer.h:60:40: note: expanded from macro 'git__multiply_sizet_overflow'
   60 |      __builtin_umul_overflow(one, two, out)
      |                                        ^~~
/host/spi-builder-workspace/src/libgit2/tree-cache.c:129:34: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
  129 |                 GIT_ERROR_CHECK_ALLOC_MULTIPLY(&bufsize, tree->children_count, sizeof(git_tree_cache*));
      |                                                ^~~~~~~~
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.h:11:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:169:34: note: expanded from macro 'GIT_ERROR_CHECK_ALLOC_MULTIPLY'
  169 |         if (GIT_MULTIPLY_SIZET_OVERFLOW(out, nelem, elsize)) { return -1; }
      |                                         ^~~
/host/spi-builder-workspace/src/util/git2_util.h:146:32: note: expanded from macro 'GIT_MULTIPLY_SIZET_OVERFLOW'
  146 |         (git__multiply_sizet_overflow(out, nelem, elsize) ? (git_error_set_oom(), 1) : 0)
      |                                       ^~~
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.h:11:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:108:
/host/spi-builder-workspace/src/util/integer.h:60:40: note: expanded from macro 'git__multiply_sizet_overflow'
   60 |      __builtin_umul_overflow(one, two, out)
      |                                        ^~~
/host/spi-builder-workspace/src/libgit2/tree-cache.c:196:33: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
  196 |         GIT_ERROR_CHECK_ALLOC_MULTIPLY(&alloc_size, ntrees, sizeof(git_tree_cache *));
      |                                        ^~~~~~~~~~~
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.h:11:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:169:34: note: expanded from macro 'GIT_ERROR_CHECK_ALLOC_MULTIPLY'
  169 |         if (GIT_MULTIPLY_SIZET_OVERFLOW(out, nelem, elsize)) { return -1; }
      |                                         ^~~
/host/spi-builder-workspace/src/util/git2_util.h:146:32: note: expanded from macro 'GIT_MULTIPLY_SIZET_OVERFLOW'
  146 |         (git__multiply_sizet_overflow(out, nelem, elsize) ? (git_error_set_oom(), 1) : 0)
      |                                       ^~~
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.h:11:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:108:
/host/spi-builder-workspace/src/util/integer.h:60:40: note: expanded from macro 'git__multiply_sizet_overflow'
   60 |      __builtin_umul_overflow(one, two, out)
      |                                        ^~~
/host/spi-builder-workspace/src/libgit2/tree-cache.c:253:29: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
  253 |         GIT_ERROR_CHECK_ALLOC_ADD3(&alloc_size, sizeof(git_tree_cache), name_len, 1);
      |                                    ^~~~~~~~~~~
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.h:11:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:153:29: note: expanded from macro 'GIT_ERROR_CHECK_ALLOC_ADD3'
  153 |         if (GIT_ADD_SIZET_OVERFLOW(out, one, two) || \
      |                                    ^~~
/host/spi-builder-workspace/src/util/git2_util.h:142:27: note: expanded from macro 'GIT_ADD_SIZET_OVERFLOW'
  142 |         (git__add_sizet_overflow(out, one, two) ? (git_error_set_oom(), 1) : 0)
      |                                  ^~~
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.h:11:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:108:
/host/spi-builder-workspace/src/util/integer.h:58:40: note: expanded from macro 'git__add_sizet_overflow'
   58 |      __builtin_uadd_overflow(one, two, out)
      |                                        ^~~
/host/spi-builder-workspace/src/libgit2/tree-cache.c:253:29: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
  253 |         GIT_ERROR_CHECK_ALLOC_ADD3(&alloc_size, sizeof(git_tree_cache), name_len, 1);
      |                                    ^~~~~~~~~~~
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.h:11:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:154:26: note: expanded from macro 'GIT_ERROR_CHECK_ALLOC_ADD3'
  154 |                 GIT_ADD_SIZET_OVERFLOW(out, *(out), three)) { return -1; }
      |                                        ^~~
/host/spi-builder-workspace/src/util/git2_util.h:142:27: note: expanded from macro 'GIT_ADD_SIZET_OVERFLOW'
  142 |         (git__add_sizet_overflow(out, one, two) ? (git_error_set_oom(), 1) : 0)
      |                                  ^~~
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree-cache.h:11:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:108:
/host/spi-builder-workspace/src/util/integer.h:58:40: note: expanded from macro 'git__add_sizet_overflow'
   58 |      __builtin_uadd_overflow(one, two, out)
      |                                        ^~~
5 warnings generated.
[51 / 231] libgit2
In file included from /host/spi-builder-workspace/src/libgit2/transaction.c:10:
In file included from /host/spi-builder-workspace/src/libgit2/repository.h:20:
/host/spi-builder-workspace/src/util/array.h:55:35: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
   55 |                 if (GIT_MULTIPLY_SIZET_OVERFLOW(&new_size, *asize, 3))
      |                                                 ^~~~~~~~~
In file included from /host/spi-builder-workspace/src/libgit2/transaction.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/transaction.h:10:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:146:32: note: expanded from macro 'GIT_MULTIPLY_SIZET_OVERFLOW'
  146 |         (git__multiply_sizet_overflow(out, nelem, elsize) ? (git_error_set_oom(), 1) : 0)
      |                                       ^~~
In file included from /host/spi-builder-workspace/src/libgit2/transaction.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/transaction.h:10:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:108:
/host/spi-builder-workspace/src/util/integer.h:60:40: note: expanded from macro 'git__multiply_sizet_overflow'
   60 |      __builtin_umul_overflow(one, two, out)
      |                                        ^~~
1 warning generated.
/host/spi-builder-workspace/src/util/strlist.c:36:28: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
   36 |         GIT_ERROR_CHECK_ALLOC_ADD(&new_len, len, 1);
      |                                   ^~~~~~~~
In file included from /host/spi-builder-workspace/src/util/strlist.c:10:
/host/spi-builder-workspace/src/util/git2_util.h:150:29: note: expanded from macro 'GIT_ERROR_CHECK_ALLOC_ADD'
  150 |         if (GIT_ADD_SIZET_OVERFLOW(out, one, two)) { return -1; }
      |                                    ^~~
/host/spi-builder-workspace/src/util/git2_util.h:142:27: note: expanded from macro 'GIT_ADD_SIZET_OVERFLOW'
  142 |         (git__add_sizet_overflow(out, one, two) ? (git_error_set_oom(), 1) : 0)
      |                                  ^~~
In file included from /host/spi-builder-workspace/src/util/strlist.c:10:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:108:
/host/spi-builder-workspace/src/util/integer.h:58:40: note: expanded from macro 'git__add_sizet_overflow'
   58 |      __builtin_uadd_overflow(one, two, out)
      |                                        ^~~
1 warning generated.
/host/spi-builder-workspace/src/libgit2/sysdir.c:20:11: fatal error: 'pwd.h' file not found
   20 | # include <pwd.h>
      |           ^~~~~~~
1 error generated.
error: CompileC /host/spi-builder-workspace/.build/out/Intermediates.noindex/libgit2.build/Debug-webassembly-wasm32/libgit2-t.build/Objects-normal/wasm32/sysdir.o /host/spi-builder-workspace/src/libgit2/sysdir.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/libgit2.build/Debug-webassembly-wasm32/libgit2-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 -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/libgit2.build/Debug-webassembly-wasm32/libgit2-t.build/Objects-normal/wasm32/9f65232cb83f8421e3a495a5062eba382369c975104ee97bafc405ab795bfc5e-common-args.resp -MMD -MT dependencies -MF /host/spi-builder-workspace/.build/out/Intermediates.noindex/libgit2.build/Debug-webassembly-wasm32/libgit2-t.build/Objects-normal/wasm32/sysdir.d --serialize-diagnostics /host/spi-builder-workspace/.build/out/Intermediates.noindex/libgit2.build/Debug-webassembly-wasm32/libgit2-t.build/Objects-normal/wasm32/sysdir.dia -c /host/spi-builder-workspace/src/libgit2/sysdir.c -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/libgit2.build/Debug-webassembly-wasm32/libgit2-t.build/Objects-normal/wasm32/sysdir.o
In file included from /host/spi-builder-workspace/src/libgit2/tree.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree.h:13:
In file included from /host/spi-builder-workspace/src/libgit2/repository.h:20:
/host/spi-builder-workspace/src/util/array.h:55:35: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
   55 |                 if (GIT_MULTIPLY_SIZET_OVERFLOW(&new_size, *asize, 3))
      |                                                 ^~~~~~~~~
In file included from /host/spi-builder-workspace/src/libgit2/tree.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree.h:10:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:146:32: note: expanded from macro 'GIT_MULTIPLY_SIZET_OVERFLOW'
  146 |         (git__multiply_sizet_overflow(out, nelem, elsize) ? (git_error_set_oom(), 1) : 0)
      |                                       ^~~
In file included from /host/spi-builder-workspace/src/libgit2/tree.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree.h:10:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:108:
/host/spi-builder-workspace/src/util/integer.h:60:40: note: expanded from macro 'git__multiply_sizet_overflow'
   60 |      __builtin_umul_overflow(one, two, out)
      |                                        ^~~
/host/spi-builder-workspace/src/libgit2/tree.c:98:29: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
   98 |         if (GIT_ADD_SIZET_OVERFLOW(&tree_len, sizeof(git_tree_entry), filename_len) ||
      |                                    ^~~~~~~~~
In file included from /host/spi-builder-workspace/src/libgit2/tree.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree.h:10:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:142:27: note: expanded from macro 'GIT_ADD_SIZET_OVERFLOW'
  142 |         (git__add_sizet_overflow(out, one, two) ? (git_error_set_oom(), 1) : 0)
      |                                  ^~~
In file included from /host/spi-builder-workspace/src/libgit2/tree.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree.h:10:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:108:
/host/spi-builder-workspace/src/util/integer.h:58:40: note: expanded from macro 'git__add_sizet_overflow'
   58 |      __builtin_uadd_overflow(one, two, out)
      |                                        ^~~
/host/spi-builder-workspace/src/libgit2/tree.c:99:29: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
   99 |             GIT_ADD_SIZET_OVERFLOW(&tree_len, tree_len, 1) ||
      |                                    ^~~~~~~~~
In file included from /host/spi-builder-workspace/src/libgit2/tree.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree.h:10:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:142:27: note: expanded from macro 'GIT_ADD_SIZET_OVERFLOW'
  142 |         (git__add_sizet_overflow(out, one, two) ? (git_error_set_oom(), 1) : 0)
      |                                  ^~~
In file included from /host/spi-builder-workspace/src/libgit2/tree.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree.h:10:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:108:
/host/spi-builder-workspace/src/util/integer.h:58:40: note: expanded from macro 'git__add_sizet_overflow'
   58 |      __builtin_uadd_overflow(one, two, out)
      |                                        ^~~
/host/spi-builder-workspace/src/libgit2/tree.c:100:29: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
  100 |             GIT_ADD_SIZET_OVERFLOW(&tree_len, tree_len, oid_size))
      |                                    ^~~~~~~~~
In file included from /host/spi-builder-workspace/src/libgit2/tree.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree.h:10:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:142:27: note: expanded from macro 'GIT_ADD_SIZET_OVERFLOW'
  142 |         (git__add_sizet_overflow(out, one, two) ? (git_error_set_oom(), 1) : 0)
      |                                  ^~~
In file included from /host/spi-builder-workspace/src/libgit2/tree.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/tree.h:10:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:108:
/host/spi-builder-workspace/src/util/integer.h:58:40: note: expanded from macro 'git__add_sizet_overflow'
   58 |      __builtin_uadd_overflow(one, two, out)
      |                                        ^~~
4 warnings generated.
error: Build failed
BUILD FAILURE 6.4 wasm