The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build libgit2, reference 1.9.1 (a75bab), with Swift 5.10 for Linux on 7 Aug 2025 13:28:23 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.65.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ibrahimcetin/libgit2.git
Reference: 1.9.1
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/ibrahimcetin/libgit2
 * tag               1.9.1      -> FETCH_HEAD
HEAD is now at a75bab8 fix: update GIT_SECURE_TRANSPORT definition in Package.swift to GIT_HTTPS_SECURETRANSPORT
Cloned https://github.com/ibrahimcetin/libgit2.git
Revision (git rev-parse @):
a75bab85c48cef6583841ff2a435744f206fcff9
SUCCESS checkout https://github.com/ibrahimcetin/libgit2.git at 1.9.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $PWD
https://github.com/ibrahimcetin/libgit2.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:c30bb8beee7254e839cc0142f4ae78578b8fc8e8159324cc3637097cc1b395b6
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Building for debugging...
[0/210] Compiling http.c
[1/210] Compiling stdalloc.c
[2/210] Compiling realpath.c
[3/210] Compiling api.c
[4/210] Compiling win32_leakcheck.c
[5/210] Compiling zstream.c
[6/210] Compiling date.c
[7/210] Compiling wildmatch.c
[8/210] Compiling varint.c
[9/210] Compiling utf8.c
[10/210] Compiling vector.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]
        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'?
/usr/include/stdlib.h:838:13: note: 'qsort' declared here
extern void qsort (void *__base, size_t __nmemb, size_t __size,
            ^
1 error generated.
[11/210] Compiling util.c
[11/210] Compiling strlist.c
[11/210] Compiling map.c
[11/210] Compiling str.c
[11/210] Compiling process.c
[11/210] Compiling thread.c
[11/210] Compiling llhttp.c
[11/210] Compiling tsort.c
BUILD FAILURE 5.10 linux