The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build libgit2, reference spm (160ab4), with Swift 6.0 for Linux on 16 Sep 2024 20:08:55 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.53.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:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/mbernson/libgit2.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/213] Compiling http.c
[1/213] Compiling pcre_chartables.c
[2/213] Compiling inffast.c
[3/213] Compiling pcre_config.c
[4/213] Compiling pcre_byte_order.c
[5/213] Compiling inflate.c
[6/213] Compiling zstream.c
[7/213] Compiling wildmatch.c
[8/213] Compiling vector.c
[9/213] Compiling varint.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/213] Compiling util.c
[10/213] Compiling llhttp.c
[10/213] Compiling pcre_compile.c
[10/213] Compiling realpath.c
[10/213] Compiling process.c
[10/213] Compiling tsort.c
[10/213] Compiling map.c
[10/213] Compiling utf8.c
BUILD FAILURE 6.0 linux