The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftGit2, reference develop (9d3f41), with Swift 6.3 for Wasm on 4 Oct 2026 07:05:59 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mbernson/SwiftGit2.git
Reference: develop
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/mbernson/SwiftGit2
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at 9d3f41d Fix deprecation
Submodule path 'libgit2': checked out 'f7164261c9bc0a7e0ebf767c584e5192810a8b24'
Submodule 'libgit2' (https://github.com/libgit2/libgit2.git) registered for path 'libgit2'
Cloning into '/host/spi-builder-workspace/libgit2'...
Cloned https://github.com/mbernson/SwiftGit2.git
Revision (git rev-parse @):
9d3f41dda5f5d2cfcf52cad7323f042bd4b3a611
SUCCESS checkout https://github.com/mbernson/SwiftGit2.git at develop
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/mbernson/SwiftGit2.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:253aad7f5b11d25cf9eaef34120b94cd8a325782929c57fb304a7711494a3f9a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/ZipArchive/ZipArchive.git
[1/5550] Fetching ziparchive
Fetched https://github.com/ZipArchive/ZipArchive.git from cache (0.85s)
Computing version for https://github.com/ZipArchive/ZipArchive.git
Computed https://github.com/ZipArchive/ZipArchive.git at 2.6.0 (1.24s)
Creating working copy for https://github.com/ZipArchive/ZipArchive.git
Working copy of https://github.com/ZipArchive/ZipArchive.git resolved at 2.6.0
Building for debugging...
[0/212] Compiling http.c
[1/212] Compiling pcre_config.c
[2/212] Compiling pcre_byte_order.c
[3/212] Compiling pcre_chartables.c
[4/212] Write sources
[5/212] Compiling api.c
/host/spi-builder-workspace/libgit2/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 *));
      |                                                ^~~~~~
/host/spi-builder-workspace/libgit2/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/libgit2/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)
      |                                       ^~~
/host/spi-builder-workspace/libgit2/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/libgit2/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);
      |                                   ^~~~~~~~~~~
/host/spi-builder-workspace/libgit2/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/libgit2/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)
      |                                  ^~~
/host/spi-builder-workspace/libgit2/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/libgit2/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))
      |                                     ^~~~~~~~
/host/spi-builder-workspace/libgit2/src/util/integer.h:58:40: note: expanded from macro 'git__add_sizet_overflow'
   58 |      __builtin_uadd_overflow(one, two, out)
      |                                        ^~~
3 warnings generated.
[6/212] Compiling vector.c
[7/212] Compiling varint.c
[8/212] Write swift-version-24593BA9C3E375BF.txt
[9/212] Compiling wildmatch.c
[10/212] Compiling zstream.c
[11/212] Compiling realpath.c
[12/212] Compiling utf8.c
/host/spi-builder-workspace/libgit2/src/util/util.c:746:2: error: call to undeclared function 'qsort_r'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  746 |         qsort_r(els, nel, elsize, &glue, git__qsort_r_glue_cmp);
      |         ^
/host/spi-builder-workspace/libgit2/src/util/util.c:746:2: note: did you mean 'qsort'?
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/stdlib.h:70:6: note: 'qsort' declared here
   70 | void qsort (void *, size_t, size_t, int (*)(const void *, const void *));
      |      ^
1 error generated.
[13/212] Compiling util.c
[13/212] Compiling thread.c
[13/212] Compiling tsort.c
[13/212] Compiling pcre_compile.c
/host/spi-builder-workspace/libgit2/src/util/unix/process.c:9:10: fatal error: 'sys/wait.h' file not found
    9 | #include <sys/wait.h>
      |          ^~~~~~~~~~~~
[13/212] Compiling process.c
In file included from /host/spi-builder-workspace/libgit2/src/util/unix/map.c:13:
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
    2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
      |  ^
/host/spi-builder-workspace/libgit2/src/util/unix/map.c:35:14: error: use of undeclared identifier 'PROT_READ'
   35 |         int mprot = PROT_READ;
      |                     ^~~~~~~~~
/host/spi-builder-workspace/libgit2/src/util/unix/map.c:44:12: error: use of undeclared identifier 'PROT_WRITE'
   44 |                 mprot |= PROT_WRITE;
      |                          ^~~~~~~~~~
/host/spi-builder-workspace/libgit2/src/util/unix/map.c:47:11: error: use of undeclared identifier 'MAP_SHARED'
   47 |                 mflag = MAP_SHARED;
      |                         ^~~~~~~~~~
/host/spi-builder-workspace/libgit2/src/util/unix/map.c:49:11: error: use of undeclared identifier 'MAP_PRIVATE'
   49 |                 mflag = MAP_PRIVATE;
      |                         ^~~~~~~~~~~
/host/spi-builder-workspace/libgit2/src/util/unix/map.c:51:11: error: use of undeclared identifier 'MAP_SHARED'
   51 |                 mflag = MAP_SHARED;
      |                         ^~~~~~~~~~
/host/spi-builder-workspace/libgit2/src/util/unix/map.c:53:14: error: call to undeclared function 'mmap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   53 |         out->data = mmap(NULL, len, mprot, mflag, fd, offset);
      |                     ^
/host/spi-builder-workspace/libgit2/src/util/unix/map.c:55:33: error: use of undeclared identifier 'MAP_FAILED'
   55 |         if (!out->data || out->data == MAP_FAILED) {
      |                                        ^~~~~~~~~~
/host/spi-builder-workspace/libgit2/src/util/unix/map.c:68:2: error: call to undeclared function 'munmap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   68 |         munmap(map->data, map->len);
      |         ^
/host/spi-builder-workspace/libgit2/src/util/unix/map.c:68:2: note: did you mean 'p_munmap'?
[13/212] Compiling map.c
[13/212] Compiling llhttp.c
[13/212] Compiling pcre_dfa_exec.c
BUILD FAILURE 6.3 wasm