The Swift Package Index logo.Swift Package Index

Build Information

Failed to build libgit2, reference spm (160ab4), with Swift 6.3 for Android on 14 Apr 2026 22:10:53 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/mbernson/libgit2.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Building for debugging...
[0/213] Compiling pcre_globals.c
[1/213] Compiling pcre_config.c
[2/213] Compiling pcre_chartables.c
[3/213] Compiling pcre_fullinfo.c
[4/213] Compiling pcre_get.c
[5/213] Compiling wildmatch.c
[6/213] Compiling varint.c
[7/213] Compiling pcre_dfa_exec.c
[8/213] Compiling zstream.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.3-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/213] Compiling util.c
In file included from /host/spi-builder-workspace/src/libgit2/remote.c:12:
In file included from /host/spi-builder-workspace/src/libgit2/config.h:15:
In file included from /host/spi-builder-workspace/src/libgit2/repository.h:21:
In file included from /host/spi-builder-workspace/src/libgit2/refs.h:17:
In file included from /host/spi-builder-workspace/src/libgit2/oid.h:14:
In file included from /host/spi-builder-workspace/src/util/hash.h:13:
In file included from /host/spi-builder-workspace/src/util/hash/sha.h:17:
/host/spi-builder-workspace/src/util/hash/common_crypto.h:13:10: fatal error: 'CommonCrypto/CommonDigest.h' file not found
   13 | #include <CommonCrypto/CommonDigest.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[9/213] Compiling remote.c
[9/213] Compiling vector.c
[9/213] Compiling realpath.c
[9/213] Compiling map.c
[9/213] Compiling utf8.c
[9/213] Compiling pcre_exec.c
[9/213] Compiling process.c
BUILD FAILURE 6.3 android