Build Information
Failed to build SwiftGitX, reference main (fcfb71), with Swift 6.3 for Wasm on 17 Apr 2026 16:37:37 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ibrahimcetin/SwiftGitX.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/ibrahimcetin/SwiftGitX
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at fcfb71e Refactor initialization in SwiftGitXTest and SignatureRawTests to remove async requirement to fix github action
Cloned https://github.com/ibrahimcetin/SwiftGitX.git
Revision (git rev-parse @):
fcfb71e3dcbbaa70d120b98b7477ce173074aec3
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ibrahimcetin/SwiftGitX.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/ibrahimcetin/SwiftGitX.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/ibrahimcetin/libgit2.git
[1/107153] Fetching libgit2
Fetched https://github.com/ibrahimcetin/libgit2.git from cache (5.21s)
Computing version for https://github.com/ibrahimcetin/libgit2.git
Computed https://github.com/ibrahimcetin/libgit2.git at 1.9.2 (7.49s)
Creating working copy for https://github.com/ibrahimcetin/libgit2.git
Working copy of https://github.com/ibrahimcetin/libgit2.git resolved at 1.9.2
Building for debugging...
[0/216] Compiling http.c
[1/216] Compiling api.c
[2/216] Compiling util.c
[3/216] Compiling unicode_builtin.c
[4/216] Compiling zstream.c
[5/216] Compiling varint.c
[6/216] Compiling crypt_openssl.c
[7/216] Compiling wildmatch.c
[8/216] Compiling vector.c
[9/216] Write swift-version-24593BA9C3E375BF.txt
[10/216] Compiling util.c
[11/216] Compiling ntlm.c
[12/216] Compiling thread.c
In file included from /host/spi-builder-workspace/.build/checkouts/libgit2/src/util/unix/map.c:13:
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
| ^
/host/spi-builder-workspace/.build/checkouts/libgit2/src/util/unix/map.c:35:14: error: use of undeclared identifier 'PROT_READ'
35 | int mprot = PROT_READ;
| ^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/libgit2/src/util/unix/map.c:44:12: error: use of undeclared identifier 'PROT_WRITE'
44 | mprot |= PROT_WRITE;
| ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/libgit2/src/util/unix/map.c:47:11: error: use of undeclared identifier 'MAP_SHARED'
47 | mflag = MAP_SHARED;
| ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/libgit2/src/util/unix/map.c:49:11: error: use of undeclared identifier 'MAP_PRIVATE'
49 | mflag = MAP_PRIVATE;
| ^~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/libgit2/src/util/unix/map.c:51:11: error: use of undeclared identifier 'MAP_SHARED'
51 | mflag = MAP_SHARED;
| ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/libgit2/src/util/unix/map.c:53:14: error: call to undeclared function 'mmap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
53 | out->data = mmap(NULL, len, mprot, mflag, fd, offset);
| ^
/host/spi-builder-workspace/.build/checkouts/libgit2/src/util/unix/map.c:53:12: error: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion]
53 | out->data = mmap(NULL, len, mprot, mflag, fd, offset);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/libgit2/src/util/unix/map.c:55:33: error: use of undeclared identifier 'MAP_FAILED'
55 | if (!out->data || out->data == MAP_FAILED) {
| ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/libgit2/src/util/unix/map.c:68:2: error: call to undeclared function 'munmap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
68 | munmap(map->data, map->len);
| ^
/host/spi-builder-workspace/.build/checkouts/libgit2/src/util/unix/map.c:68:2: note: did you mean 'p_munmap'?
/host/spi-builder-workspace/.build/checkouts/libgit2/src/util/unix/map.c:65:5: note: 'p_munmap' declared here
65 | int p_munmap(git_map *map)
| ^
66 | {
67 | GIT_ASSERT_ARG(map);
68 | munmap(map->data, map->len);
| ~~~~~~
| p_munmap
10 errors generated.
[13/216] Compiling map.c
[13/216] Compiling realpath.c
/host/spi-builder-workspace/.build/checkouts/libgit2/src/util/unix/process.c:11:10: fatal error: 'sys/wait.h' file not found
11 | #include <sys/wait.h>
| ^~~~~~~~~~~~
[13/216] Compiling process.c
[13/216] Compiling strlist.c
[13/216] Compiling str.c
[13/216] Compiling llhttp.c
[13/216] Compiling utf8.c
[13/216] Compiling tsort.c
BUILD FAILURE 6.3 wasm