Build Information
Failed to build swift-libgit2, reference main (cb7704), with Swift 6.2 for Android on 14 Dec 2025 12:23:17 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Formkunft/swift-libgit2.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/Formkunft/swift-libgit2
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at cb7704b Update to libgit2 1.9.2
Submodule path 'Sources/Clibgit2': checked out 'ca225744b992bf2bf24e9a2eb357ddef78179667'
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 @):
cb7704bd880669d59e739b177e61c468f5894910
SUCCESS checkout https://github.com/Formkunft/swift-libgit2.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/Formkunft/swift-libgit2.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:5dcfe09194e3c36609f58c2a9689c9c974fddafea0cac7c12077a98d08c6b397
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/210] Compiling http.c
[1/210] Compiling pcre_config.c
[2/210] Compiling pcre_fullinfo.c
[3/210] Compiling api.c
[4/210] Compiling pcre_byte_order.c
[5/210] Compiling pcre_globals.c
[6/210] Compiling pcre_get.c
[7/210] Compiling varint.c
[8/210] Compiling vector.c
[9/210] Compiling wildmatch.c
[9/210] Compiling zstream.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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/stdlib.h:126:6: note: 'qsort' declared here
126 | void qsort(void* _Nullable __base, size_t __nmemb, size_t __size, int (* _Nonnull __comparator)(const void* _Nullable __lhs, const void* _Nullable __rhs));
| ^
1 error generated.
[11/210] Compiling util.c
[11/210] Compiling utf8.c
[11/210] Compiling tsort.c
[11/210] Compiling realpath.c
[11/210] Compiling llhttp.c
[11/210] Compiling thread.c
[11/210] Compiling process.c
[11/210] Compiling map.c
BUILD FAILURE 6.2 android