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

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1
Building package at path:  $PWD
https://github.com/ibrahimcetin/libgit2.git
https://github.com/ibrahimcetin/libgit2.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "libgit2",
  "name" : "libgit2",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "libgit2",
      "targets" : [
        "libgit2"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "libgit2",
      "module_type" : "ClangTarget",
      "name" : "libgit2",
      "path" : ".",
      "product_memberships" : [
        "libgit2"
      ],
      "sources" : [
        "deps/llhttp/api.c",
        "deps/llhttp/http.c",
        "deps/llhttp/llhttp.c",
        "deps/pcre/pcre_byte_order.c",
        "deps/pcre/pcre_chartables.c",
        "deps/pcre/pcre_compile.c",
        "deps/pcre/pcre_config.c",
        "deps/pcre/pcre_dfa_exec.c",
        "deps/pcre/pcre_exec.c",
        "deps/pcre/pcre_fullinfo.c",
        "deps/pcre/pcre_get.c",
        "deps/pcre/pcre_globals.c",
        "deps/pcre/pcre_jit_compile.c",
        "deps/pcre/pcre_maketables.c",
        "deps/pcre/pcre_newline.c",
        "deps/pcre/pcre_ord2utf8.c",
        "deps/pcre/pcre_printint.c",
        "deps/pcre/pcre_refcount.c",
        "deps/pcre/pcre_string_utils.c",
        "deps/pcre/pcre_study.c",
        "deps/pcre/pcre_tables.c",
        "deps/pcre/pcre_ucd.c",
        "deps/pcre/pcre_valid_utf8.c",
        "deps/pcre/pcre_version.c",
        "deps/pcre/pcre_xclass.c",
        "deps/pcre/pcreposix.c",
        "deps/xdiff/xdiffi.c",
        "deps/xdiff/xemit.c",
        "deps/xdiff/xhistogram.c",
        "deps/xdiff/xmerge.c",
        "deps/xdiff/xpatience.c",
        "deps/xdiff/xprepare.c",
        "deps/xdiff/xutils.c",
        "deps/zlib/adler32.c",
        "deps/zlib/crc32.c",
        "deps/zlib/deflate.c",
        "deps/zlib/infback.c",
        "deps/zlib/inffast.c",
        "deps/zlib/inflate.c",
        "deps/zlib/inftrees.c",
        "deps/zlib/trees.c",
        "deps/zlib/zutil.c",
        "src/libgit2/annotated_commit.c",
        "src/libgit2/apply.c",
        "src/libgit2/attr.c",
        "src/libgit2/attr_file.c",
        "src/libgit2/attrcache.c",
        "src/libgit2/blame.c",
        "src/libgit2/blame_git.c",
        "src/libgit2/blob.c",
        "src/libgit2/branch.c",
        "src/libgit2/buf.c",
        "src/libgit2/cache.c",
        "src/libgit2/checkout.c",
        "src/libgit2/cherrypick.c",
        "src/libgit2/clone.c",
        "src/libgit2/commit.c",
        "src/libgit2/commit_graph.c",
        "src/libgit2/commit_list.c",
        "src/libgit2/config.c",
        "src/libgit2/config_cache.c",
        "src/libgit2/config_file.c",
        "src/libgit2/config_list.c",
        "src/libgit2/config_mem.c",
        "src/libgit2/config_parse.c",
        "src/libgit2/config_snapshot.c",
        "src/libgit2/crlf.c",
        "src/libgit2/delta.c",
        "src/libgit2/describe.c",
        "src/libgit2/diff.c",
        "src/libgit2/diff_driver.c",
        "src/libgit2/diff_file.c",
        "src/libgit2/diff_generate.c",
        "src/libgit2/diff_parse.c",
        "src/libgit2/diff_print.c",
        "src/libgit2/diff_stats.c",
        "src/libgit2/diff_tform.c",
        "src/libgit2/diff_xdiff.c",
        "src/libgit2/email.c",
        "src/libgit2/fetch.c",
        "src/libgit2/fetchhead.c",
        "src/libgit2/filter.c",
        "src/libgit2/grafts.c",
        "src/libgit2/graph.c",
        "src/libgit2/hashsig.c",
        "src/libgit2/ident.c",
        "src/libgit2/ignore.c",
        "src/libgit2/index.c",
        "src/libgit2/index_map.c",
        "src/libgit2/indexer.c",
        "src/libgit2/iterator.c",
        "src/libgit2/libgit2.c",
        "src/libgit2/mailmap.c",
        "src/libgit2/merge.c",
        "src/libgit2/merge_driver.c",
        "src/libgit2/merge_file.c",
        "src/libgit2/message.c",
        "src/libgit2/midx.c",
        "src/libgit2/mwindow.c",
        "src/libgit2/notes.c",
        "src/libgit2/object.c",
        "src/libgit2/object_api.c",
        "src/libgit2/odb.c",
        "src/libgit2/odb_loose.c",
        "src/libgit2/odb_mempack.c",
        "src/libgit2/odb_pack.c",
        "src/libgit2/oid.c",
        "src/libgit2/oidarray.c",
        "src/libgit2/pack-objects.c",
        "src/libgit2/pack.c",
        "src/libgit2/parse.c",
        "src/libgit2/patch.c",
        "src/libgit2/patch_generate.c",
        "src/libgit2/patch_parse.c",
        "src/libgit2/path.c",
        "src/libgit2/pathspec.c",
        "src/libgit2/proxy.c",
        "src/libgit2/push.c",
        "src/libgit2/reader.c",
        "src/libgit2/rebase.c",
        "src/libgit2/refdb.c",
        "src/libgit2/refdb_fs.c",
        "src/libgit2/reflog.c",
        "src/libgit2/refs.c",
        "src/libgit2/refspec.c",
        "src/libgit2/remote.c",
        "src/libgit2/repository.c",
        "src/libgit2/reset.c",
        "src/libgit2/revert.c",
        "src/libgit2/revparse.c",
        "src/libgit2/revwalk.c",
        "src/libgit2/settings.c",
        "src/libgit2/signature.c",
        "src/libgit2/stash.c",
        "src/libgit2/status.c",
        "src/libgit2/strarray.c",
        "src/libgit2/streams/mbedtls.c",
        "src/libgit2/streams/openssl.c",
        "src/libgit2/streams/openssl_dynamic.c",
        "src/libgit2/streams/openssl_legacy.c",
        "src/libgit2/streams/registry.c",
        "src/libgit2/streams/schannel.c",
        "src/libgit2/streams/socket.c",
        "src/libgit2/streams/stransport.c",
        "src/libgit2/streams/tls.c",
        "src/libgit2/submodule.c",
        "src/libgit2/sysdir.c",
        "src/libgit2/tag.c",
        "src/libgit2/trace.c",
        "src/libgit2/trailer.c",
        "src/libgit2/transaction.c",
        "src/libgit2/transport.c",
        "src/libgit2/transports/auth.c",
        "src/libgit2/transports/auth_gssapi.c",
        "src/libgit2/transports/auth_ntlmclient.c",
        "src/libgit2/transports/auth_sspi.c",
        "src/libgit2/transports/credential.c",
        "src/libgit2/transports/credential_helpers.c",
        "src/libgit2/transports/git.c",
        "src/libgit2/transports/http.c",
        "src/libgit2/transports/httpclient.c",
        "src/libgit2/transports/httpparser.c",
        "src/libgit2/transports/local.c",
        "src/libgit2/transports/smart.c",
        "src/libgit2/transports/smart_pkt.c",
        "src/libgit2/transports/smart_protocol.c",
        "src/libgit2/transports/ssh.c",
        "src/libgit2/transports/ssh_exec.c",
        "src/libgit2/transports/ssh_libssh2.c",
        "src/libgit2/transports/winhttp.c",
        "src/libgit2/tree-cache.c",
        "src/libgit2/tree.c",
        "src/libgit2/worktree.c",
        "src/util/alloc.c",
        "src/util/allocators/debugalloc.c",
        "src/util/allocators/failalloc.c",
        "src/util/allocators/stdalloc.c",
        "src/util/allocators/win32_leakcheck.c",
        "src/util/date.c",
        "src/util/errors.c",
        "src/util/filebuf.c",
        "src/util/fs_path.c",
        "src/util/futils.c",
        "src/util/hash.c",
        "src/util/hash/common_crypto.c",
        "src/util/hash/mbedtls.c",
        "src/util/hash/rfc6234/sha224-256.c",
        "src/util/hash/sha1dc/sha1.c",
        "src/util/hash/sha1dc/ubc_check.c",
        "src/util/net.c",
        "src/util/pool.c",
        "src/util/posix.c",
        "src/util/pqueue.c",
        "src/util/rand.c",
        "src/util/regexp.c",
        "src/util/runtime.c",
        "src/util/sortedcache.c",
        "src/util/str.c",
        "src/util/strlist.c",
        "src/util/thread.c",
        "src/util/tsort.c",
        "src/util/unix/map.c",
        "src/util/unix/process.c",
        "src/util/unix/realpath.c",
        "src/util/utf8.c",
        "src/util/util.c",
        "src/util/varint.c",
        "src/util/vector.c",
        "src/util/wildmatch.c",
        "src/util/zstream.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2e2b3aca8600f890617c2faa770b70e33c1dfd303d6f92b308423b89ef6bde64
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/210] Compiling pcre_byte_order.c
[1/210] Compiling pcre_chartables.c
[2/210] Compiling pcre_config.c
[3/210] Compiling pcre_string_utils.c
[4/210] Compiling zstream.c
[4/210] Compiling varint.c
[6/210] Compiling wildmatch.c
[6/210] Compiling vector.c
[8/210] Compiling pcre_compile.c
In file included from /host/spi-builder-workspace/src/libgit2/transports/smart.c:12:
In file included from /host/spi-builder-workspace/src/libgit2/refs.h:16:
In file included from /host/spi-builder-workspace/src/libgit2/oid.h:14:
In file included from /host/spi-builder-workspace/src/util/hash.h:13:
In file included from /host/spi-builder-workspace/src/util/hash/sha.h:21:
/host/spi-builder-workspace/src/util/hash/common_crypto.h:13:10: fatal error: 'CommonCrypto/CommonDigest.h' file not found
   13 | #include <CommonCrypto/CommonDigest.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[9/210] Compiling smart.c
[9/210] Compiling utf8.c
[9/210] Compiling process.c
[9/210] Compiling map.c
[9/210] Compiling util.c
[9/210] Compiling realpath.c
In file included from /host/spi-builder-workspace/src/libgit2/transports/local.c:10:
In file included from /host/spi-builder-workspace/src/libgit2/pack-objects.h:14:
In file included from /host/spi-builder-workspace/src/util/hash.h:13:
In file included from /host/spi-builder-workspace/src/util/hash/sha.h:21:
/host/spi-builder-workspace/src/util/hash/common_crypto.h:13:10: fatal error: 'CommonCrypto/CommonDigest.h' file not found
   13 | #include <CommonCrypto/CommonDigest.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[9/210] Compiling local.c
[9/210] Compiling llhttp.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2e2b3aca8600f890617c2faa770b70e33c1dfd303d6f92b308423b89ef6bde64
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/201] Compiling realpath.c
[0/201] Compiling utf8.c
[2/201] Compiling tsort.c
[3/201] Compiling strlist.c
[4/201] Compiling map.c
[5/201] Compiling thread.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.
[6/201] Compiling util.c
[6/201] Compiling rand.c
[6/201] Compiling process.c
[6/201] Compiling runtime.c
In file included from /host/spi-builder-workspace/src/util/sortedcache.c:8:
In file included from /host/spi-builder-workspace/src/util/sortedcache.h:13:
In file included from /host/spi-builder-workspace/src/util/futils.h:16:
In file included from /host/spi-builder-workspace/src/util/hash.h:13:
In file included from /host/spi-builder-workspace/src/util/hash/sha.h:21:
/host/spi-builder-workspace/src/util/hash/common_crypto.h:13:10: fatal error: 'CommonCrypto/CommonDigest.h' file not found
   13 | #include <CommonCrypto/CommonDigest.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[6/201] Compiling sortedcache.c
[6/201] Compiling pqueue.c
[6/201] Compiling regexp.c
[6/201] Compiling str.c
BUILD FAILURE 6.1 linux