Build Information
Failed to build swift-libgit2, reference v1.9.2 (cb7704), with Swift 6.3 for Linux on 17 Apr 2026 19:14:11 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Formkunft/swift-libgit2.git
Reference: v1.9.2
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.2 -> FETCH_HEAD
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 v1.9.2
========================================
Build
========================================
Selected platform: linux
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-4606859-2":/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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Building for debugging...
[0/210] Compiling http.c
[1/210] Compiling pcre_tables.c
[2/210] Compiling pcre_study.c
[3/210] Compiling xpatience.c
[4/210] Compiling api.c
[4/210] Compiling xprepare.c
[6/210] Compiling zstream.c
[7/210] Compiling wildmatch.c
[8/210] Compiling varint.c
[9/210] Compiling vector.c
[10/210] Compiling llhttp.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'?
/usr/include/stdlib.h:838:13: note: 'qsort' declared here
838 | extern void qsort (void *__base, size_t __nmemb, size_t __size,
| ^
1 error generated.
[11/210] Compiling util.c
[11/210] Compiling map.c
[11/210] Compiling utf8.c
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/unix/process.c:15:
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>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[11/210] Compiling process.c
[11/210] Compiling realpath.c
[11/210] Compiling strlist.c
[11/210] Compiling tsort.c
[11/210] Compiling thread.c
BUILD FAILURE 6.3 linux