Build Information
Failed to build swift-libgit2, reference main (8fb964), with Swift 6.1 for Wasm on 23 Jul 2026 16:34:12 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 333316120c8b89ed7d21f1b34865290794301d91
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Formkunft/swift-libgit2.git
Reference: main
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/Formkunft/swift-libgit2
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 8fb9645 Update to libgit2 1.9.6
Submodule path 'Sources/Clibgit2': checked out '26055f5af74ab1cf636d272e8a34315496d3f06f'
Submodule 'Sources/Clibgit2' (https://github.com/libgit2/libgit2) registered for path 'Sources/Clibgit2'
Cloning into '/host/spi-builder-workspace/Sources/Clibgit2'...
Cloned https://github.com/Formkunft/swift-libgit2.git
Revision (git rev-parse @):
8fb96456da3164f049fa267183465ef7e4ed7780
SUCCESS checkout https://github.com/Formkunft/swift-libgit2.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/Formkunft/swift-libgit2.git
https://github.com/Formkunft/swift-libgit2.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/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 saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/218] Compiling pcre2_chkdint.c
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/zstream.c:8:
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/zstream.h:10:
/host/spi-builder-workspace/Sources/Clibgit2/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
88 | # include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[1/218] Compiling zstream.c
[1/218] Compiling pcre2_match_next.c
[1/218] Compiling wildmatch.c
[1/218] Compiling pcre2_chartables.c
[1/218] Compiling pcre2_dfa_match.c
[1/218] Compiling pcre2_compile.c
[1/218] Compiling pcre2_auto_possess.c
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/libgit2/tree.c:8:
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/libgit2/tree.h:10:
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/libgit2/common.h:10:
/host/spi-builder-workspace/Sources/Clibgit2/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
88 | # include <pthread.h>
| ^~~~~~~~~~~
[1/218] Compiling tree.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/vector.c:8:
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/vector.h:10:
/host/spi-builder-workspace/Sources/Clibgit2/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
88 | # include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[0/217] Compiling vector.c
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/varint.c:8:
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/varint.h:10:
/host/spi-builder-workspace/Sources/Clibgit2/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
88 | # include <pthread.h>
| ^~~~~~~~~~~
[0/217] Compiling varint.c
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/util.c:8:
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/util.h:10:
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/str.h:10:
/host/spi-builder-workspace/Sources/Clibgit2/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
88 | # include <pthread.h>
| ^~~~~~~~~~~
[0/217] Compiling util.c
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/wildmatch.c:19:
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/wildmatch.h:11:
/host/spi-builder-workspace/Sources/Clibgit2/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
88 | # include <pthread.h>
| ^~~~~~~~~~~
[0/217] Compiling wildmatch.c
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/zstream.c:8:
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/zstream.h:10:
/host/spi-builder-workspace/Sources/Clibgit2/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
88 | # include <pthread.h>
| ^~~~~~~~~~~
[0/217] Compiling zstream.c
/host/spi-builder-workspace/Sources/Clibgit2/src/util/unix/process.c:9:10: fatal error: 'sys/wait.h' file not found
9 | #include <sys/wait.h>
| ^~~~~~~~~~~~
[0/217] Compiling process.c
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/utf8.c:8:
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/utf8.h:10:
/host/spi-builder-workspace/Sources/Clibgit2/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
88 | # include <pthread.h>
| ^~~~~~~~~~~
[0/217] Compiling utf8.c
In file included from /host/spi-builder-workspace/Sources/Clibgit2/src/util/unix/realpath.c:8:
/host/spi-builder-workspace/Sources/Clibgit2/src/util/git2_util.h:88:11: fatal error: 'pthread.h' file not found
88 | # include <pthread.h>
| ^~~~~~~~~~~
[0/217] Compiling realpath.c
BUILD FAILURE 6.1 wasm