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 Wasm on 7 Aug 2025 13:29:43 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 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:         wasm
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-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/210] Compiling pcre_string_utils.c
[1/210] Compiling pcre_ord2utf8.c
[2/210] Compiling pcre_refcount.c
[3/210] Compiling pcre_printint.c
In file included from /host/spi-builder-workspace/src/util/wildmatch.c:19:
In file included from /host/spi-builder-workspace/src/util/wildmatch.h:11:
/host/spi-builder-workspace/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
   88 | #       include <pthread.h>
      |                 ^~~~~~~~~~~
1 error generated.
In file included from /host/spi-builder-workspace/src/util/vector.c:8:
In file included from /host/spi-builder-workspace/src/util/vector.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
   88 | #       include <pthread.h>
      |                 ^~~~~~~~~~~
1 error generated.
[4/210] Compiling vector.c
In file included from /host/spi-builder-workspace/src/util/zstream.c:8:
In file included from /host/spi-builder-workspace/src/util/zstream.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
   88 | #       include <pthread.h>
      |                 ^~~~~~~~~~~
1 error generated.
[4/210] Compiling zstream.c
[4/210] Compiling wildmatch.c
In file included from /host/spi-builder-workspace/src/util/varint.c:8:
In file included from /host/spi-builder-workspace/src/util/varint.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
   88 | #       include <pthread.h>
      |                 ^~~~~~~~~~~
[4/210] Compiling varint.c
[4/210] Compiling inflate.c
In file included from /host/spi-builder-workspace/src/libgit2/branch.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/branch.h:10:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
   88 | #       include <pthread.h>
      |                 ^~~~~~~~~~~
[4/210] Compiling branch.c
In file included from /host/spi-builder-workspace/src/libgit2/blob.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/blob.h:10:
In file included from /host/spi-builder-workspace/src/libgit2/common.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
   88 | #       include <pthread.h>
      |                 ^~~~~~~~~~~
[4/210] Compiling blob.c
[4/210] Compiling pcre_compile.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
In file included from /host/spi-builder-workspace/src/util/unix/realpath.c:8:
/host/spi-builder-workspace/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
   88 | #       include <pthread.h>
      |                 ^~~~~~~~~~~
1 error generated.
In file included from /host/spi-builder-workspace/src/util/utf8.c:8:
In file included from /host/spi-builder-workspace/src/util/utf8.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
   88 | #       include <pthread.h>
      |                 ^~~~~~~~~~~
1 error generated.
[0/206] Compiling utf8.c
[0/206] Compiling realpath.c
In file included from /host/spi-builder-workspace/src/util/varint.c:8:
In file included from /host/spi-builder-workspace/src/util/varint.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
   88 | #       include <pthread.h>
      |                 ^~~~~~~~~~~
1 error generated.
[0/206] Compiling varint.c
/host/spi-builder-workspace/src/util/unix/process.c:9:10: fatal error: 'sys/wait.h' file not found
    9 | #include <sys/wait.h>
      |          ^~~~~~~~~~~~
[0/206] Compiling process.c
In file included from /host/spi-builder-workspace/src/util/util.c:8:
In file included from /host/spi-builder-workspace/src/util/util.h:10:
In file included from /host/spi-builder-workspace/src/util/str.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
   88 | #       include <pthread.h>
      |                 ^~~~~~~~~~~
1 error generated.
[0/206] Compiling util.c
In file included from /host/spi-builder-workspace/src/util/wildmatch.c:19:
In file included from /host/spi-builder-workspace/src/util/wildmatch.h:11:
/host/spi-builder-workspace/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
   88 | #       include <pthread.h>
      |                 ^~~~~~~~~~~
1 error generated.
[0/206] Compiling wildmatch.c
In file included from /host/spi-builder-workspace/src/util/vector.c:8:
In file included from /host/spi-builder-workspace/src/util/vector.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
   88 | #       include <pthread.h>
      |                 ^~~~~~~~~~~
1 error generated.
[0/206] Compiling vector.c
In file included from /host/spi-builder-workspace/src/util/zstream.c:8:
In file included from /host/spi-builder-workspace/src/util/zstream.h:10:
/host/spi-builder-workspace/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
   88 | #       include <pthread.h>
      |                 ^~~~~~~~~~~
1 error generated.
[0/206] Compiling zstream.c
BUILD FAILURE 6.1 wasm