Build Information
Failed to build swift-package-api-diff, reference 0.0.1 (d9947b
), with Swift 6.1 for Wasm on 28 May 2025 06:15:38 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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/eugenebokhan/swift-package-api-diff.git
Reference: 0.0.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/eugenebokhan/swift-package-api-diff
* tag 0.0.1 -> FETCH_HEAD
HEAD is now at d9947b5 update tests
Cloned https://github.com/eugenebokhan/swift-package-api-diff.git
Revision (git rev-parse @):
d9947b59c1e736c2f0e32cd4a6cca3ffc5f70eb9
SUCCESS checkout https://github.com/eugenebokhan/swift-package-api-diff.git at 0.0.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/eugenebokhan/swift-package-api-diff.git
https://github.com/eugenebokhan/swift-package-api-diff.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"exact" : [
"0.3.2"
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser.git"
},
{
"identity" : "swift-package-manager",
"requirement" : {
"revision" : [
"swift-5.4.2-RELEASE"
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-package-manager.git"
},
{
"identity" : "files",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.2",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/JohnSundell/Files"
}
],
"manifest_display_name" : "swift-package-api-diff",
"name" : "swift-package-api-diff",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "swift-package-api-diff",
"targets" : [
"swift-package-api-diff"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "swift_package_api_diff_tests",
"module_type" : "SwiftTarget",
"name" : "swift-package-api-diff-tests",
"path" : "Tests/swift-package-api-diff-tests",
"product_dependencies" : [
"Files",
"SwiftPM-auto"
],
"sources" : [
"Tests.swift"
],
"target_dependencies" : [
"swift-package-api-diff"
],
"type" : "test"
},
{
"c99name" : "swift_package_api_diff",
"module_type" : "SwiftTarget",
"name" : "swift-package-api-diff",
"path" : "Sources/swift-package-api-diff",
"product_dependencies" : [
"ArgumentParser",
"Files",
"SwiftPM-auto"
],
"product_memberships" : [
"swift-package-api-diff"
],
"sources" : [
"CLI Commands/APIChangesDescription.swift",
"CLI Commands/APIChangesType.swift",
"CLI Commands/SwiftPackageAPIDiff.swift",
"Extensions/String+Extensions.swift",
"main.swift"
],
"type" : "executable"
}
],
"tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/apple/swift-package-manager.git
[1/154430] Fetching swift-package-manager
Fetched https://github.com/apple/swift-package-manager.git from cache (16.77s)
Fetching https://github.com/apple/swift-llbuild.git
[1/28989] Fetching swift-llbuild
Fetched https://github.com/apple/swift-llbuild.git from cache (3.11s)
Fetching https://github.com/apple/swift-tools-support-core.git
[1/6763] Fetching swift-tools-support-core
Fetched https://github.com/apple/swift-tools-support-core.git from cache (2.37s)
Fetching https://github.com/apple/swift-driver.git
[1/34582] Fetching swift-driver
Fetched https://github.com/apple/swift-driver.git from cache (1.91s)
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/JohnSundell/Files
[1/1236] Fetching files
[1237/11893] Fetching files, yams
[7632/27244] Fetching files, yams, swift-argument-parser
Fetched https://github.com/JohnSundell/Files from cache (1.25s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.26s)
Fetched https://github.com/jpsim/Yams.git from cache (1.29s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 0.3.2 (1.93s)
Computing version for https://github.com/JohnSundell/Files
Computed https://github.com/JohnSundell/Files at 4.2.0 (0.52s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 4.0.6 (0.51s)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 4.0.6
Creating working copy for https://github.com/apple/swift-package-manager.git
Working copy of https://github.com/apple/swift-package-manager.git resolved at swift-5.4.2-RELEASE (374cdb4)
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 0.3.2
Creating working copy for https://github.com/apple/swift-tools-support-core.git
Working copy of https://github.com/apple/swift-tools-support-core.git resolved at release/5.4 (d7bd437)
Creating working copy for https://github.com/JohnSundell/Files
Working copy of https://github.com/JohnSundell/Files resolved at 4.2.0
Creating working copy for https://github.com/apple/swift-llbuild.git
Working copy of https://github.com/apple/swift-llbuild.git resolved at release/5.4 (eb56a00)
Creating working copy for https://github.com/apple/swift-driver.git
Working copy of https://github.com/apple/swift-driver.git resolved at release/5.4 (93e8b92)
Building for debugging...
[0/140] Compiling writer.c
[0/140] Write sources
[2/140] Compiling reader.c
[3/140] Compiling parser.c
[4/140] Compiling api.c
[5/140] Compiling emitter.c
[6/140] Compiling llvmSupport Valgrind.cpp
[7/140] Write swift-version-24593BA9C3E375BF.txt
[8/140] Compiling llvmSupport UnicodeCaseFold.cpp
[9/140] Compiling scanner.c
[10/140] Compiling llvmSupport circular_raw_ostream.cpp
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/ExecutionQueue.cpp:13:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/ExecutionQueue.h:18:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/Subprocess.h:17:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/CrossPlatformCompatibility.h:25:
/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/resource.h:2:2: error: WASI lacks process-associated clocks; to enable emulation of the `getrusage` function using the wall clock, which isn't sensitive to whether the program is running or suspended, compile with -D_WASI_EMULATED_PROCESS_CLOCKS and link with -lwasi-emulated-process-clocks
2 | #error WASI lacks process-associated clocks; to enable emulation of the `getrusage` function using \
| ^
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/ExecutionQueue.cpp:13:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/ExecutionQueue.h:18:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/Subprocess.h:17:
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/CrossPlatformCompatibility.h:42:9: error: unknown type name 'rlim_t'
42 | typedef rlim_t llbuild_rlim_t;
| ^
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/ExecutionQueue.cpp:13:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/ExecutionQueue.h:18:
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/Subprocess.h:78:12: error: no type named 'condition_variable' in namespace 'std'
78 | std::condition_variable processesCondition;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/Subprocess.h:85:12: error: no type named 'mutex' in namespace 'std'
85 | std::mutex mutex;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/Subprocess.h:90:37: error: no member named 'mutex' in namespace 'std'
90 | void add(std::lock_guard<std::mutex>&& lock, llbuild_pid_t pid,
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/Subprocess.h:97:32: error: no member named 'mutex' in namespace 'std'
97 | std::lock_guard<std::mutex> lock(mutex);
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/ExecutionQueue.cpp:42:8: error: no member named 'promise' in namespace 'std'
42 | std::promise<ProcessStatus> p;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/ExecutionQueue.cpp:42:16: error: 'ProcessStatus' does not refer to a value
42 | std::promise<ProcessStatus> p;
| ^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/Subprocess.h:110:16: note: declared here
110 | enum class ProcessStatus {
| ^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/ExecutionQueue.cpp:42:31: error: use of undeclared identifier 'p'
42 | std::promise<ProcessStatus> p;
| ^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/ExecutionQueue.cpp:43:17: error: use of undeclared identifier 'p'
43 | auto result = p.get_future();
| ^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/ExecutionQueue.cpp:45:21: error: use of undeclared identifier 'p'
45 | {[&p](ProcessResult result) mutable {
| ^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/ExecutionQueue.cpp:46:5: error: use of undeclared identifier 'p'
46 | p.set_value(result.status);
| ^
12 errors generated.
[11/140] Compiling llbuildBasic ExecutionQueue.cpp
[11/140] Compiling llvmSupport Threading.cpp
[11/140] Compiling llvmSupport YAMLParser.cpp
[11/140] Compiling llvmSupport Unicode.cpp
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/products/libllbuild/BuildDB-C-API.cpp:15:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/BuildSystem/include/llbuild/BuildSystem/BuildKey.h:20:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Core/include/llbuild/Core/BuildEngine.h:18:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/ExecutionQueue.h:18:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/Subprocess.h:17:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/CrossPlatformCompatibility.h:25:
/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/resource.h:2:2: error: WASI lacks process-associated clocks; to enable emulation of the `getrusage` function using the wall clock, which isn't sensitive to whether the program is running or suspended, compile with -D_WASI_EMULATED_PROCESS_CLOCKS and link with -lwasi-emulated-process-clocks
2 | #error WASI lacks process-associated clocks; to enable emulation of the `getrusage` function using \
| ^
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/products/libllbuild/BuildDB-C-API.cpp:15:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/BuildSystem/include/llbuild/BuildSystem/BuildKey.h:20:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Core/include/llbuild/Core/BuildEngine.h:18:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/ExecutionQueue.h:18:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/Subprocess.h:17:
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/CrossPlatformCompatibility.h:42:9: error: unknown type name 'rlim_t'
42 | typedef rlim_t llbuild_rlim_t;
| ^
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/products/libllbuild/BuildDB-C-API.cpp:15:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/BuildSystem/include/llbuild/BuildSystem/BuildKey.h:20:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Core/include/llbuild/Core/BuildEngine.h:18:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/ExecutionQueue.h:18:
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/Subprocess.h:78:12: error: no type named 'condition_variable' in namespace 'std'
78 | std::condition_variable processesCondition;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/Subprocess.h:85:12: error: no type named 'mutex' in namespace 'std'
85 | std::mutex mutex;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/Subprocess.h:90:37: error: no member named 'mutex' in namespace 'std'
90 | void add(std::lock_guard<std::mutex>&& lock, llbuild_pid_t pid,
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Basic/include/llbuild/Basic/Subprocess.h:97:32: error: no member named 'mutex' in namespace 'std'
97 | std::lock_guard<std::mutex> lock(mutex);
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/products/libllbuild/BuildDB-C-API.cpp:34:8: error: no type named 'mutex' in namespace 'std'
34 | std::mutex keyTableMutex;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/products/libllbuild/BuildDB-C-API.cpp:39:8: error: no type named 'mutex' in namespace 'std'
39 | std::mutex keyCacheMutex;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/products/libllbuild/BuildDB-C-API.cpp:100:47: error: cannot initialize a parameter of type 'BuildDBDelegate *' with an lvalue of type 'CAPIBuildDB *'
100 | databaseObject->_db.get()->attachDelegate(databaseObject);
| ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/Core/include/llbuild/Core/BuildDB.h:61:48: note: passing argument to parameter 'delegate' here
61 | virtual void attachDelegate(BuildDBDelegate* delegate) = 0;
| ^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/products/libllbuild/BuildDB-C-API.cpp:106:26: error: no member named 'mutex' in namespace 'std'
106 | std::lock_guard<std::mutex> guard(keyCacheMutex);
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/products/libllbuild/BuildDB-C-API.cpp:115:26: error: no member named 'mutex' in namespace 'std'
115 | std::lock_guard<std::mutex> guard(keyCacheMutex);
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/products/libllbuild/BuildDB-C-API.cpp:124:26: error: no member named 'mutex' in namespace 'std'
124 | std::lock_guard<std::mutex> guard(keyTableMutex);
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/products/libllbuild/BuildDB-C-API.cpp:154:26: error: no member named 'mutex' in namespace 'std'
154 | std::lock_guard<std::mutex> guard(keyCacheMutex);
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/products/libllbuild/BuildDB-C-API.cpp:161:26: error: no member named 'mutex' in namespace 'std'
161 | std::lock_guard<std::mutex> guard(keyCacheMutex);
| ~~~~~^
[11/140] Compiling libllbuild BuildDB-C-API.cpp
[11/140] Compiling llvmSupport Triple.cpp
[11/140] Compiling llvmSupport Twine.cpp
[11/140] Compiling llvmSupport raw_ostream.cpp
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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
[0/1] Planning build
Building for debugging...
[0/129] Write sources
[6/130] Compiling llvmSupport Twine.cpp
[7/130] Compiling llvmSupport StringSaver.cpp
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/Threading.cpp:72:17: error: no member named 'thread' in namespace 'std'
72 | return std::thread::hardware_concurrency();
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/Threading.cpp:83:27: error: no member named 'thread' in namespace 'std'
83 | if (unsigned Val = std::thread::hardware_concurrency())
| ~~~~~^
In file included from /host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/Threading.cpp:90:
/host/spi-builder-workspace/.build/checkouts/swift-llbuild/lib/llvm/Support/Unix/Threading.inc:22:10: fatal error: 'pthread.h' file not found
22 | #include <pthread.h>
| ^~~~~~~~~~~
3 errors generated.
[8/130] Compiling llvmSupport Threading.cpp
[8/130] Compiling llvmSupport StringRef.cpp
[8/130] Compiling llvmSupport Unicode.cpp
[8/130] Compiling llvmSupport Triple.cpp
[8/130] Compiling llvmSupport YAMLParser.cpp
[8/130] Compiling llvmSupport TargetParser.cpp
[8/130] Compiling llvmSupport raw_ostream.cpp
[8/130] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm