Build Information
Failed to build SwiftGit2, reference develop (e810ca), with Swift 6.1 for Wasm on 29 May 2025 14:57:47 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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mbernson/SwiftGit2.git
Reference: develop
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/SwiftGit2
* branch develop -> FETCH_HEAD
* [new branch] develop -> origin/develop
HEAD is now at e810ca5 Sync with fork
Cloned https://github.com/mbernson/SwiftGit2.git
Revision (git rev-parse @):
e810ca5890f6b608b653226a4cdde59affb9392c
SUCCESS checkout https://github.com/mbernson/SwiftGit2.git at develop
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/mbernson/SwiftGit2.git
https://github.com/mbernson/SwiftGit2.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "libgit2",
"requirement" : {
"branch" : [
"spm"
]
},
"type" : "sourceControl",
"url" : "https://github.com/mbernson/libgit2.git"
},
{
"identity" : "quick",
"requirement" : {
"range" : [
{
"lower_bound" : "7.0.0",
"upper_bound" : "8.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Quick/Quick.git"
},
{
"identity" : "nimble",
"requirement" : {
"range" : [
{
"lower_bound" : "13.0.0",
"upper_bound" : "14.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Quick/Nimble.git"
},
{
"identity" : "ziparchive",
"requirement" : {
"range" : [
{
"lower_bound" : "2.5.5",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ZipArchive/ZipArchive.git"
}
],
"manifest_display_name" : "SwiftGit2",
"name" : "SwiftGit2",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "15.5"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "SwiftGit2",
"targets" : [
"SwiftGit2"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftGit2Tests",
"module_type" : "SwiftTarget",
"name" : "SwiftGit2Tests",
"path" : "Tests/SwiftGit2Tests",
"product_dependencies" : [
"libgit2",
"Quick",
"Nimble",
"ZipArchive"
],
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/SwiftGit2Tests/Fixtures",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Fixtures.swift",
"FixturesSpec.swift",
"OIDSpec.swift",
"ObjectsSpec.swift",
"ReferencesSpec.swift",
"RemotesSpec.swift",
"RepositorySpec.swift",
"ResultShims.swift"
],
"target_dependencies" : [
"SwiftGit2"
],
"type" : "test"
},
{
"c99name" : "SwiftGit2",
"module_type" : "SwiftTarget",
"name" : "SwiftGit2",
"path" : "Sources/SwiftGit2",
"product_dependencies" : [
"libgit2"
],
"product_memberships" : [
"SwiftGit2"
],
"sources" : [
"CheckoutStrategy.swift",
"CommitIterator.swift",
"Credentials.swift",
"Diffs.swift",
"Errors.swift",
"OID.swift",
"Objects.swift",
"Pointers.swift",
"References.swift",
"Remotes.swift",
"Repository.swift",
"StatusOptions.swift",
"SwiftGit2.swift",
"git_strarray+Extensions.swift"
],
"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
Fetching https://github.com/mbernson/libgit2.git
[1/127016] Fetching libgit2
Fetched https://github.com/mbernson/libgit2.git from cache (8.35s)
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/ZipArchive/ZipArchive.git
[1/14755] Fetching quick
[2067/20237] Fetching quick, ziparchive
[2068/39821] Fetching quick, ziparchive, nimble
Fetched https://github.com/ZipArchive/ZipArchive.git from cache (1.13s)
[30227/34339] Fetching quick, nimble
Fetched https://github.com/Quick/Quick.git from cache (1.33s)
[16533/19584] Fetching nimble
Fetched https://github.com/Quick/Nimble.git from cache (3.08s)
Computing version for https://github.com/ZipArchive/ZipArchive.git
Computed https://github.com/ZipArchive/ZipArchive.git at 2.6.0 (3.77s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 7.6.2 (0.57s)
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/apple/swift-algorithms.git
[1/5959] Fetching swift-algorithms
[5960/21338] Fetching swift-algorithms, swift-argument-parser
Fetched https://github.com/apple/swift-algorithms.git from cache (1.11s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.12s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (4.72s)
Fetching https://github.com/apple/swift-numerics.git
[1/5706] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.57s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.1 (1.24s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (0.67s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 13.7.1 (0.69s)
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
[1/1257] Fetching cwlpreconditiontesting
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (0.31s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 2.2.2 (1.16s)
Fetching https://github.com/mattgallagher/CwlCatchException.git
[1/455] Fetching cwlcatchexception
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (0.31s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.2.1 (1.07s)
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/ZipArchive/ZipArchive.git
Working copy of https://github.com/ZipArchive/ZipArchive.git resolved at 2.6.0
Creating working copy for https://github.com/mbernson/libgit2.git
Working copy of https://github.com/mbernson/libgit2.git resolved at spm (160ab4b)
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting.git
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting.git resolved at 2.2.2
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.3
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 13.7.1
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 7.6.2
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.2.1
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.5.1
warning: 'nimble': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/Nimble/Sources/Nimble/PrivacyInfo.xcprivacy
warning: 'quick': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/Quick/Sources/Quick/PrivacyInfo.xcprivacy
[1/1] Compiling plugin LintCommandPlugin
[2/2] Compiling plugin LintWarning
[3/3] Compiling plugin LintError
[4/4] Compiling plugin DefocusCommandPlugin
[5/5] Compiling plugin GenerateManual
Building for debugging...
[5/220] Compiling zstream.c
[6/220] Compiling vector.c
[7/220] Compiling varint.c
/host/spi-builder-workspace/.build/checkouts/libgit2/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/.build/checkouts/libgit2/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.
[8/220] Compiling util.c
[8/220] Compiling pcre_exec.c
[8/220] Compiling realpath.c
[8/220] Compiling process.c
[8/220] Compiling wildmatch.c
[8/220] Compiling utf8.c
[8/220] Compiling pcre_fullinfo.c
[8/220] Write swift-version-24593BA9C3E375BF.txt
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
warning: 'nimble': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/Nimble/Sources/Nimble/PrivacyInfo.xcprivacy
warning: 'quick': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/Quick/Sources/Quick/PrivacyInfo.xcprivacy
[0/1] Planning build
[1/1] Compiling plugin LintCommandPlugin
[2/2] Compiling plugin LintWarning
[3/3] Compiling plugin LintError
[4/4] Compiling plugin DefocusCommandPlugin
[5/5] Compiling plugin GenerateManual
Building for debugging...
[5/217] Compiling utf8.c
[6/217] Compiling wildmatch.c
[7/217] Compiling realpath.c
/host/spi-builder-workspace/.build/checkouts/libgit2/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/.build/checkouts/libgit2/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.
[8/217] Compiling util.c
[8/217] Compiling thread.c
[8/217] Compiling tsort.c
[8/217] Compiling strlist.c
/host/spi-builder-workspace/.build/checkouts/libgit2/src/util/unix/process.c:9:10: fatal error: 'sys/wait.h' file not found
9 | #include <sys/wait.h>
| ^~~~~~~~~~~~
[8/217] Compiling process.c
In file included from /host/spi-builder-workspace/.build/checkouts/libgit2/src/util/unix/map.c:13:
/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/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.
[8/217] Compiling map.c
[8/217] Compiling strmap.c
[8/217] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm