Build Information
Failed to build libgit2, reference spm (160ab4), with Swift 6.2 for Wasm on 21 Jun 2025 22:38:28 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mbernson/libgit2.git
Reference: spm
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/libgit2
* branch spm -> FETCH_HEAD
* [new branch] spm -> origin/spm
HEAD is now at 160ab4b Update Package.swift
Cloned https://github.com/mbernson/libgit2.git
Revision (git rev-parse @):
160ab4b0b213679c3188d97536534446bf189737
SUCCESS checkout https://github.com/mbernson/libgit2.git at spm
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/mbernson/libgit2.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Building for debugging...
[0/213] Compiling http.c
[1/213] Compiling pcre_fullinfo.c
[2/213] Compiling zstream.c
[3/213] Compiling pcre_config.c
[4/213] Compiling varint.c
[5/213] Compiling wildmatch.c
/host/spi-builder-workspace/src/util/util.c:733:2: error: call to undeclared function 'qsort_r'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
733 | qsort_r(els, nel, elsize, &glue, git__qsort_r_glue_cmp);
| ^
/host/spi-builder-workspace/src/util/util.c:733:2: note: did you mean 'qsort'?
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/stdlib.h:70:6: note: 'qsort' declared here
70 | void qsort (void *, size_t, size_t, int (*)(const void *, const void *));
| ^
1 error generated.
/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 *));
| ^~~~~~
/host/spi-builder-workspace/src/util/git2_util.h:165:34: note: expanded from macro 'GIT_ERROR_CHECK_ALLOC_MULTIPLY'
165 | if (GIT_MULTIPLY_SIZET_OVERFLOW(out, nelem, elsize)) { return -1; }
| ^~~
/host/spi-builder-workspace/src/util/git2_util.h:142:32: note: expanded from macro 'GIT_MULTIPLY_SIZET_OVERFLOW'
142 | (git__multiply_sizet_overflow(out, nelem, elsize) ? (git_error_set_oom(), 1) : 0)
| ^~~
/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);
| ^~~~~~~~~~~
/host/spi-builder-workspace/src/util/git2_util.h:146:29: note: expanded from macro 'GIT_ERROR_CHECK_ALLOC_ADD'
146 | if (GIT_ADD_SIZET_OVERFLOW(out, one, two)) { return -1; }
| ^~~
/host/spi-builder-workspace/src/util/git2_util.h:138:27: note: expanded from macro 'GIT_ADD_SIZET_OVERFLOW'
138 | (git__add_sizet_overflow(out, one, two) ? (git_error_set_oom(), 1) : 0)
| ^~~
/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))
| ^~~~~~~~
/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.
[6/213] Compiling util.c
[6/213] Compiling vector.c
[6/213] Compiling utf8.c
[6/213] Compiling pcre_exec.c
[6/213] Compiling pcre_compile.c
[6/213] Compiling pcre_dfa_exec.c
[6/213] Compiling realpath.c
[6/213] Compiling llhttp.c
BUILD FAILURE 6.2 wasm