The Swift Package Index logo.Swift Package Index

Build Information

Failed to build libgit2, reference spm (160ab4), with Swift 6.1 for Wasm on 29 May 2025 14:54:06 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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.63.1
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:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/mbernson/libgit2.git
https://github.com/mbernson/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/idxmap.c",
        "src/libgit2/ignore.c",
        "src/libgit2/index.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/offmap.c",
        "src/libgit2/oid.c",
        "src/libgit2/oidarray.c",
        "src/libgit2/oidmap.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/strmap.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.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/213] Compiling http.c
[1/213] Compiling pcre_byte_order.c
[2/213] Compiling inftrees.c
In file included from /host/spi-builder-workspace/src/libgit2/attrcache.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/attrcache.h:12:
In file included from /host/spi-builder-workspace/src/libgit2/attr_file.h:17:
In file included from /host/spi-builder-workspace/src/util/futils.h:17:
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:17:
/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.
[3/213] Compiling attrcache.c
In file included from /host/spi-builder-workspace/src/libgit2/transports/smart.c:8:
In file included from /host/spi-builder-workspace/src/libgit2/transports/smart.h:16:
In file included from /host/spi-builder-workspace/src/libgit2/oidarray.h:13:
/host/spi-builder-workspace/src/util/array.h:55:35: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
   55 |                 if (GIT_MULTIPLY_SIZET_OVERFLOW(&new_size, *asize, 3))
      |                                                 ^~~~~~~~~
/host/spi-builder-workspace/src/util/git2_util.h:142:32: note: expanded from macro 'GIT_MULTIPLY_SIZET_OVERFLOW'
  142 |         (git__multiply_sizet_overflow(out, nelem, elsize) ? (git_error_set_oom(), 1) : 0)
      |                                       ^~~
/host/spi-builder-workspace/src/util/integer.h:60:40: note: expanded from macro 'git__multiply_sizet_overflow'
   60 |      __builtin_umul_overflow(one, two, out)
      |                                        ^~~
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:17:
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:17:
/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>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[3/213] Compiling smart.c
[3/213] Compiling wildmatch.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:17:
/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.
[3/213] Compiling local.c
[3/213] Compiling zstream.c
/host/spi-builder-workspace/src/util/vector.c:69:34: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
   69 |                 GIT_ERROR_CHECK_ALLOC_MULTIPLY(&bytes, src->length, sizeof(void *));
      |                                                ^~~~~~
/host/spi-builder-workspace/src/util/git2_util.h:165:34: note: expanded from macro 'GIT_ERROR_CHECK_ALLOC_MULTIPLY'
  165 |         if (GIT_MULTIPLY_SIZET_OVERFLOW(out, nelem, elsize)) { return -1; }
      |                                         ^~~
/host/spi-builder-workspace/src/util/git2_util.h:142:32: note: expanded from macro 'GIT_MULTIPLY_SIZET_OVERFLOW'
  142 |         (git__multiply_sizet_overflow(out, nelem, elsize) ? (git_error_set_oom(), 1) : 0)
      |                                       ^~~
/host/spi-builder-workspace/src/util/integer.h:60:40: note: expanded from macro 'git__multiply_sizet_overflow'
   60 |      __builtin_umul_overflow(one, two, out)
      |                                        ^~~
/host/spi-builder-workspace/src/util/vector.c:349:28: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
  349 |         GIT_ERROR_CHECK_ALLOC_ADD(&new_length, v->length, insert_len);
      |                                   ^~~~~~~~~~~
/host/spi-builder-workspace/src/util/git2_util.h:146:29: note: expanded from macro 'GIT_ERROR_CHECK_ALLOC_ADD'
  146 |         if (GIT_ADD_SIZET_OVERFLOW(out, one, two)) { return -1; }
      |                                    ^~~
/host/spi-builder-workspace/src/util/git2_util.h:138:27: note: expanded from macro 'GIT_ADD_SIZET_OVERFLOW'
  138 |         (git__add_sizet_overflow(out, one, two) ? (git_error_set_oom(), 1) : 0)
      |                                  ^~~
/host/spi-builder-workspace/src/util/integer.h:58:40: note: expanded from macro 'git__add_sizet_overflow'
   58 |      __builtin_uadd_overflow(one, two, out)
      |                                        ^~~
[3/213] Compiling vector.c
[3/213] Compiling llhttp.c
[3/213] Compiling pcre_dfa_exec.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/210] Compiling utf8.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'?
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/stdlib.h:70:6: note: 'qsort' declared here
   70 | void qsort (void *, size_t, size_t, int (*)(const void *, const void *));
      |      ^
1 error generated.
[1/210] Compiling util.c
[1/210] Compiling zstream.c
[1/210] Compiling realpath.c
[1/210] Compiling varint.c
[1/210] Compiling map.c
/host/spi-builder-workspace/src/util/vector.c:69:34: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
   69 |                 GIT_ERROR_CHECK_ALLOC_MULTIPLY(&bytes, src->length, sizeof(void *));
      |                                                ^~~~~~
/host/spi-builder-workspace/src/util/git2_util.h:165:34: note: expanded from macro 'GIT_ERROR_CHECK_ALLOC_MULTIPLY'
  165 |         if (GIT_MULTIPLY_SIZET_OVERFLOW(out, nelem, elsize)) { return -1; }
      |                                         ^~~
/host/spi-builder-workspace/src/util/git2_util.h:142:32: note: expanded from macro 'GIT_MULTIPLY_SIZET_OVERFLOW'
  142 |         (git__multiply_sizet_overflow(out, nelem, elsize) ? (git_error_set_oom(), 1) : 0)
      |                                       ^~~
/host/spi-builder-workspace/src/util/integer.h:60:40: note: expanded from macro 'git__multiply_sizet_overflow'
   60 |      __builtin_umul_overflow(one, two, out)
      |                                        ^~~
/host/spi-builder-workspace/src/util/vector.c:349:28: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
  349 |         GIT_ERROR_CHECK_ALLOC_ADD(&new_length, v->length, insert_len);
      |                                   ^~~~~~~~~~~
/host/spi-builder-workspace/src/util/git2_util.h:146:29: note: expanded from macro 'GIT_ERROR_CHECK_ALLOC_ADD'
  146 |         if (GIT_ADD_SIZET_OVERFLOW(out, one, two)) { return -1; }
      |                                    ^~~
/host/spi-builder-workspace/src/util/git2_util.h:138:27: note: expanded from macro 'GIT_ADD_SIZET_OVERFLOW'
  138 |         (git__add_sizet_overflow(out, one, two) ? (git_error_set_oom(), 1) : 0)
      |                                  ^~~
/host/spi-builder-workspace/src/util/integer.h:58:40: note: expanded from macro 'git__add_sizet_overflow'
   58 |      __builtin_uadd_overflow(one, two, out)
      |                                        ^~~
/host/spi-builder-workspace/src/util/vector.c:369:30: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
  369 |         if (git__add_sizet_overflow(&end_idx, idx, remove_len))
      |                                     ^~~~~~~~
/host/spi-builder-workspace/src/util/integer.h:58:40: note: expanded from macro 'git__add_sizet_overflow'
   58 |      __builtin_uadd_overflow(one, two, out)
      |                                        ^~~
[1/210] Compiling vector.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>
      |          ^~~~~~~~~~~~
[1/210] Compiling process.c
[1/210] Compiling wildmatch.c
BUILD FAILURE 6.1 wasm