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.2 (beta) for Wasm on 7 Aug 2025 13:28:30 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.2-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.2
Building package at path:  $PWD
https://github.com/ibrahimcetin/libgit2.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Building for debugging...
[0/210] Compiling pcre_byte_order.c
[1/210] Compiling http.c
[1/210] Compiling pcre_chartables.c
[3/210] Compiling pcre_config.c
[4/210] Compiling api.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:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:107:
/host/spi-builder-workspace/src/util/thread.h:437:3: error: unknown threading model
  437 | # error unknown threading model
      |   ^
/host/spi-builder-workspace/src/util/thread.h:453:22: error: unknown type name 'git_tlsdata_key'
  453 | int git_tlsdata_init(git_tlsdata_key *key, void (GIT_SYSTEM_CALL *destroy_fn)(void *));
      |                      ^
/host/spi-builder-workspace/src/util/thread.h:462:21: error: unknown type name 'git_tlsdata_key'
  462 | int git_tlsdata_set(git_tlsdata_key key, void *value);
      |                     ^
/host/spi-builder-workspace/src/util/thread.h:470:23: error: unknown type name 'git_tlsdata_key'
  470 | void *git_tlsdata_get(git_tlsdata_key key);
      |                       ^
/host/spi-builder-workspace/src/util/thread.h:478:25: error: unknown type name 'git_tlsdata_key'
  478 | int git_tlsdata_dispose(git_tlsdata_key key);
      |                         ^
5 errors generated.
[5/210] Compiling wildmatch.c
[5/210] Compiling util.c
[5/210] Compiling varint.c
[5/210] Compiling pcre_dfa_exec.c
[5/210] Compiling llhttp.c
[5/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:
In file included from /host/spi-builder-workspace/src/util/git2_util.h:107:
/host/spi-builder-workspace/src/util/thread.h:437:3: error: unknown threading model
  437 | # error unknown threading model
      |   ^
/host/spi-builder-workspace/src/util/thread.h:453:22: error: unknown type name 'git_tlsdata_key'
  453 | int git_tlsdata_init(git_tlsdata_key *key, void (GIT_SYSTEM_CALL *destroy_fn)(void *));
      |                      ^
/host/spi-builder-workspace/src/util/thread.h[5/210] Compiling zstream.c
[5/210] Compiling pcre_compile.c
BUILD FAILURE 6.2 wasm