Build Information
Failed to build swift-libgit2, reference main (e7605b), with Swift 6.2 for Linux on 9 Nov 2026 12:06:45 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-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:linux-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
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 e7605bb Update to libgit2 1.9.7
Submodule path 'Sources/Clibgit2': checked out '49e408b3208bc3093757a1c2db938d3590f3f412'
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 @):
e7605bb30202a6f4c509dc4cc538953d66162e6a
SUCCESS checkout https://github.com/Formkunft/swift-libgit2.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/Formkunft/swift-libgit2.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-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:linux-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:3b8ac581d32055e8615440d6f2242826e343275e8abdb3534700e4187075d534
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.2-latest
Building for debugging...
[0/218] Compiling pcre2_newline.c
[1/218] Compiling pcre2_ord2utf.c
[2/218] Compiling pcre2_serialize.c
[3/218] Compiling pcre2_script_run.c
[3/218] Compiling pcre2_string_utils.c
[5/218] Compiling pcre2_pattern_info.c
[5/218] Compiling zstream.c
[7/218] Compiling pcre2_study.c
[8/218] Compiling varint.c
[9/218] Compiling utf8.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:970:13: note: 'qsort' declared here
970 | extern void qsort (void *__base, size_t __nmemb, size_t __size,
| ^
1 error generated.
[10/218] Compiling util.c
[10/218] Compiling tsort.c
[10/218] Compiling vector.c
[10/218] Compiling thread.c
[10/218] Compiling map.c
[10/218] Compiling process.c
[10/218] Compiling realpath.c
[10/218] Compiling wildmatch.c
BUILD FAILURE 6.2 linux