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.2 (52287b), with Swift 6.1 for Wasm on 1 Dec 2025 12:02:11 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ibrahimcetin/libgit2.git
Reference: 1.9.2
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.2      -> FETCH_HEAD
HEAD is now at 52287b0 Update GIT_SSH and GIT_SSH_EXEC definitions in Package.swift to support specific platforms
Cloned https://github.com/ibrahimcetin/libgit2.git
Revision (git rev-parse @):
52287b0914f300f916b58fec80e13d8dd8f6824f
SUCCESS checkout https://github.com/ibrahimcetin/libgit2.git at 1.9.2
========================================
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/ntlmclient/crypt_openssl.c",
        "deps/ntlmclient/ntlm.c",
        "deps/ntlmclient/unicode_builtin.c",
        "deps/ntlmclient/util.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/builtin.c",
        "src/util/hash/collisiondetect.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-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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
e1a89dea01a6: Already exists
39bc14e52995: Already exists
cc0382103b05: Already exists
084072dee40a: Already exists
2f98f7ceacf8: Pulling fs layer
9c03b91b0d3b: Pulling fs layer
2f98f7ceacf8: Verifying Checksum
2f98f7ceacf8: Download complete
9c03b91b0d3b: Verifying Checksum
9c03b91b0d3b: Download complete
2f98f7ceacf8: Pull complete
9c03b91b0d3b: Pull complete
Digest: sha256:4dfe22dedd7a52399668938cbd466a34545eff77bced906005dc4032a6549d90
Status: Downloaded newer image for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/214] Compiling http.c
[1/214] Compiling crypt_openssl.c
[2/214] Compiling pcre_chartables.c
[3/214] Compiling pcre_byte_order.c
[4/214] Compiling pcre_config.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.
[5/214] Compiling zstream.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.
[5/214] 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>
      |                 ^~~~~~~~~~~
[5/214] Compiling varint.c
[5/214] Compiling pcre_compile.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>
      |                 ^~~~~~~~~~~
[5/214] Compiling vector.c
[5/214] Compiling llhttp.c
[5/214] Compiling ntlm.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>
      |                 ^~~~~~~~~~~
[5/214] Compiling util.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:4dfe22dedd7a52399668938cbd466a34545eff77bced906005dc4032a6549d90
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/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/209] Compiling varint.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>
      |                 ^~~~~~~~~~~
[0/209] Compiling vector.c
/host/spi-builder-workspace/src/util/unix/process.c:11:10: fatal error: 'sys/wait.h' file not found
   11 | #include <sys/wait.h>
      |          ^~~~~~~~~~~~
[0/209] Compiling process.c
[0/209] Compiling realpath.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>
      |                 ^~~~~~~~~~~
[0/209] Compiling util.c
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>
      |                 ^~~~~~~~~~~
[0/209] Compiling utf8.c
[0/209] Compiling zstream.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>
      |                 ^~~~~~~~~~~
[0/209] Compiling wildmatch.c
BUILD FAILURE 6.1 wasm