Build Information
Failed to build swift-libgit2, reference v1.9.6 (8fb964), with Swift 6.3 for Wasm on 24 Jul 2026 12:39:41 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 333316120c8b89ed7d21f1b34865290794301d91
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Formkunft/swift-libgit2.git
Reference: v1.9.6
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/Formkunft/swift-libgit2
* tag v1.9.6 -> FETCH_HEAD
HEAD is now at 8fb9645 Update to libgit2 1.9.6
Submodule path 'Sources/Clibgit2': checked out '26055f5af74ab1cf636d272e8a34315496d3f06f'
Submodule 'Sources/Clibgit2' (https://github.com/libgit2/libgit2) registered for path 'Sources/Clibgit2'
Cloning into '/host/spi-builder-workspace/Sources/Clibgit2'...
Cloned https://github.com/Formkunft/swift-libgit2.git
Revision (git rev-parse @):
8fb96456da3164f049fa267183465ef7e4ed7780
SUCCESS checkout https://github.com/Formkunft/swift-libgit2.git at v1.9.6
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/Formkunft/swift-libgit2.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-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.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:501b6bfc4ca8a27c305c68f9d5c778f996de82635741ab45476a03ffa6fa26d2
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Building for debugging...
[0/218] Compiling pcre2_match_data.c
[0/218] Compiling pcre2_match_next.c
[2/218] Compiling pcre2_chkdint.c
[3/218] Compiling realpath.c
[4/218] Compiling pcre2_chartables.c
[5/218] Compiling pcre2_auto_possess.c
[6/218] Compiling varint.c
/host/spi-builder-workspace/Sources/Clibgit2/src/util/unix/process.c:9:10: fatal error: 'sys/wait.h' file not found
9 | #include <sys/wait.h>
| ^~~~~~~~~~~~
1 error generated.
[7/218] Compiling process.c
[7/218] Compiling map.c
[7/218] Compiling utf8.c
/host/spi-builder-workspace/Sources/Clibgit2/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/Sources/Clibgit2/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/Sources/Clibgit2/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/Sources/Clibgit2/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/Sources/Clibgit2/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/Sources/Clibgit2/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/Sources/Clibgit2/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/Sources/Clibgit2/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/Sources/Clibgit2/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/Sources/Clibgit2/src/util/integer.h:58:40: note: expanded from macro 'git__add_sizet_overflow'
58 | __builtin_uadd_overflow(one, two, out)
| ^~~
[7/218] Compiling vector.c
[7/218] Compiling zstream.c
[7/218] Compiling wildmatch.c
/host/spi-builder-workspace/Sources/Clibgit2/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/Sources/Clibgit2/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 *));
| ^
[7/218] Compiling llhttp.c
[7/218] Compiling util.c
BUILD FAILURE 6.3 wasm