Build Information
Failed to build libgit2, reference 1.9.2 (52287b), with Swift 6.2 for Wasm on 1 Dec 2025 12:05:48 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build 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.2
Building package at path: $PWD
https://github.com/ibrahimcetin/libgit2.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
828c1365039a: Pulling fs layer
253e69351b70: Pulling fs layer
46083a23d362: Pulling fs layer
18070bf5de03: Pulling fs layer
157d3060a2d0: Pulling fs layer
55903ee226c6: Pulling fs layer
18070bf5de03: Waiting
157d3060a2d0: Waiting
55903ee226c6: Waiting
828c1365039a: Verifying Checksum
828c1365039a: Download complete
18070bf5de03: Verifying Checksum
18070bf5de03: Download complete
157d3060a2d0: Verifying Checksum
157d3060a2d0: Download complete
55903ee226c6: Verifying Checksum
55903ee226c6: Download complete
253e69351b70: Verifying Checksum
253e69351b70: Download complete
828c1365039a: Pull complete
46083a23d362: Verifying Checksum
46083a23d362: Download complete
253e69351b70: Pull complete
46083a23d362: Pull complete
18070bf5de03: Pull complete
157d3060a2d0: Pull complete
55903ee226c6: Pull complete
Digest: sha256:302e3f347c593123f3d337e3da1bfe6e802bb8867614e9dfa745c72e13ca8eeb
Status: Downloaded newer image for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift-sdk.json
Building for debugging...
[0/214] Compiling http.c
[1/214] Compiling pcre_chartables.c
[1/214] Compiling util.c
[3/214] Compiling crypt_openssl.c
[4/214] Compiling pcre_byte_order.c
[5/214] Compiling unicode_builtin.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.
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:
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.
[6/214] Compiling utf8.c
[6/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:
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.
[6/214] 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:
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);
| ^
/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:169:34: note: expanded from macro 'GIT_ERROR_CHECK_ALLOC_MULTIPLY'
169 | if (GIT_MULTIPLY_SIZET_OVERFLOW(out, nelem, elsize)) { return -1; }
| ^~~
/host/spi-builder-workspace/src/util/git2_util.h:146:32: note: expanded from macro 'GIT_MULTIPLY_SIZET_OVERFLOW'
146 | (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:150:29: note: expanded from macro 'GIT_ERROR_CHECK_ALLOC_ADD'
150 | if (GIT_ADD_SIZET_OVERFLOW(out, one, two)) { return -1; }
| ^~~
/host/spi-builder-workspace/src/util/git2_util.h:142:27: note: expanded from macro 'GIT_ADD_SIZET_OVERFLOW'
142 | (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)
| ^~~
3 warnings and 5 errors generated.
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:
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.
[6/214] Compiling util.c
[6/214] 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: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.
[6/214] Compiling zstream.c
[6/214] Compiling llhttp.c
[6/214] Compiling ntlm.c
BUILD FAILURE 6.2 wasm