The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-libgit2, reference main (8fb964), with Swift 6.3 for Android on 23 Jul 2026 12:33:30 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 333316120c8b89ed7d21f1b34865290794301d91
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 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 main
========================================
Build
========================================
Selected platform:         android
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-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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:451958f7df55f9af673f8b0851dc526f2aee3222db374ae53b89fa21ad564bc8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.3-latest
Building for debugging...
[0/218] Compiling pcre2_convert.c
[1/218] Compiling pcre2_context.c
[2/218] Compiling pcre2_compile_class.c
[3/218] Compiling pcre2_config.c
[4/218] Compiling pcre2_auto_possess.c
[5/218] Compiling wildmatch.c
[6/218] Compiling zstream.c
[7/218] Compiling varint.c
[8/218] Compiling vector.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_android.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.
[9/218] Compiling util.c
[9/218] Compiling map.c
[9/218] Compiling realpath.c
[9/218] Compiling process.c
[9/218] Compiling utf8.c
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/libgit2/index.c:8:
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/libgit2/index.h:12:
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/futils.h:16:
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/hash.h:13:
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/hash/sha.h:17:
/host/spi-builder-workspace/Sources/Clibgit2/src/util/hash/common_crypto.h:13:10: fatal error: 'CommonCrypto/CommonDigest.h' file not found
   13 | #include <CommonCrypto/CommonDigest.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[9/218] Compiling index.c
[9/218] Compiling pcre2_dfa_match.c
[9/218] Compiling llhttp.c
BUILD FAILURE 6.3 android