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 6.0 for Linux on 7 Aug 2025 13:29:31 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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:             6.0
Building package at path:  $PWD
https://github.com/ibrahimcetin/libgit2.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:f0ebbd71bee66c692411a61ab9a7ee6edc82316b7a7b4c6173cc06c00f20ed39
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/210] Compiling pcre_byte_order.c
[1/210] Compiling pcre_config.c
[2/210] Compiling pcre_fullinfo.c
[3/210] Compiling pcre_chartables.c
[4/210] Compiling zstream.c
[5/210] Compiling strarray.c
[6/210] Compiling wildmatch.c
[7/210] Compiling varint.c
[8/210] Compiling vector.c
[9/210] Compiling pcre_compile.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'?
/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.
[10/210] Compiling util.c
[10/210] Compiling llhttp.c
[10/210] Compiling map.c
[10/210] Compiling process.c
[10/210] Compiling tsort.c
[10/210] Compiling utf8.c
[10/210] Compiling realpath.c
[10/210] Compiling pcre_exec.c
BUILD FAILURE 6.0 linux