Build Information
Failed to build llbuild, reference main (783aec), with Swift 6.2 for Wasm on 21 Jun 2025 05:23:49 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/art-divin/swift-llbuild.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/art-divin/swift-llbuild
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 783aec2 Fix a few comment typos in the codebase (#906)
Cloned https://github.com/art-divin/swift-llbuild.git
Revision (git rev-parse @):
783aec21649a6c47d1a8314db4144bdceb11df30
SUCCESS checkout https://github.com/art-divin/swift-llbuild.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/art-divin/swift-llbuild.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Building for debugging...
In file included from /host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:10:
In file included from /host/spi-builder-workspace/lib/Basic/include/llbuild/Basic/PlatformUtility.h:21:
In file included from /host/spi-builder-workspace/lib/Basic/include/llbuild/Basic/CrossPlatformCompatibility.h:29:
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/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/lib/Basic/PlatformUtility.cpp:10:
In file included from /host/spi-builder-workspace/lib/Basic/include/llbuild/Basic/PlatformUtility.h:21:
/host/spi-builder-workspace/lib/Basic/include/llbuild/Basic/CrossPlatformCompatibility.h:46:9: error: unknown type name 'rlim_t'
46 | typedef rlim_t llbuild_rlim_t;
| ^
In file included from /host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:10:
In file included from /host/spi-builder-workspace/lib/Basic/include/llbuild/Basic/PlatformUtility.h:29:
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/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 \
| ^
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:136:10: error: no member named 'pclose' in the global namespace; did you mean simply 'pclose'?
136 | return ::pclose(stream);
| ^~~~~~~~
| pclose
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:132:10: note: 'pclose' declared here
132 | int sys::pclose(FILE *stream) {
| ^
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:144:10: error: no member named 'pipe' in the global namespace; did you mean simply 'pipe'?
144 | return ::pipe(ptHandles);
| ^~~~~~
| pipe
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:140:10: note: 'pipe' declared here
140 | int sys::pipe(int ptHandles[2]) {
| ^
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:152:10: error: no member named 'popen' in the global namespace; did you mean simply 'popen'?
152 | return ::popen(command, mode);
| ^~~~~~~
| popen
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:148:12: note: 'popen' declared here
148 | FILE *sys::popen(const char *command, const char *mode) {
| ^
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:226:17: error: variable has incomplete type 'struct rlimit'
226 | struct rlimit rl;
| ^
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:226:10: note: forward declaration of 'rlimit'
226 | struct rlimit rl;
| ^
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:227:23: error: use of undeclared identifier 'RLIMIT_NOFILE'
227 | int ret = getrlimit(RLIMIT_NOFILE, &rl);
| ^
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:248:17: error: variable has incomplete type 'struct rlimit'
248 | struct rlimit rl;
| ^
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:248:10: note: forward declaration of 'rlimit'
248 | struct rlimit rl;
| ^
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:249:19: error: use of undeclared identifier 'RLIMIT_NOFILE'
249 | ret = getrlimit(RLIMIT_NOFILE, &rl);
| ^
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:260:20: error: use of undeclared identifier 'RLIMIT_NOFILE'
260 | return setrlimit(RLIMIT_NOFILE, &rl);
| ^
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:354:37: error: use of undeclared identifier 'mkdtemp'
354 | auto tmpDirString = std::string(mkdtemp(tmpDirPath));
| ^
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:360:24: error: use of undeclared identifier 'mkdtemp'
360 | return std::string(mkdtemp(tmpDirPathBuf));
| ^
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:385:23: error: use of undeclared identifier 'RTLD_LAZY'
385 | return dlopen(path, RTLD_LAZY);
| ^
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:394:10: error: use of undeclared identifier 'dlsym'
394 | return dlsym(handle, name);
| ^
/host/spi-builder-workspace/lib/Basic/PlatformUtility.cpp:402:3: error: use of undeclared identifier 'dlclose'
402 | dlclose(handle);
| ^
16 errors generated.
[0/144] Compiling llbuildBasic PlatformUtility.cpp
In file included from /host/spi-builder-workspace/lib/Basic/LaneBasedExecutionQueue.cpp:13:
In file included from /host/spi-builder-workspace/lib/Basic/include/llbuild/Basic/ExecutionQueue.h:18:
In file included from /host/spi-builder-workspace/lib/Basic/include/llbuild/Basic/Subprocess.h:17:
In file included from /host/spi-builder-workspace/lib/Basic/include/llbuild/Basic/CrossPlatformCompatibility.h:29:
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/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/lib/Basic/LaneBasedExecutionQueue.cpp:13:
In file included from /host/spi-builder-workspace/lib/Basic/include/llbuild/Basic/ExecutionQueue.h:18:
In file included from /host/spi-builder-workspace/lib/Basic/include/llbuild/Basic/Subprocess.h:17:
/host/spi-builder-workspace/lib/Basic/include/llbuild/Basic/CrossPlatformCompatibility.h:46:9: error: unknown type name 'rlim_t'
46 | typedef rlim_t llbuild_rlim_t;
| ^
[0/144] Compiling llbuildBasic LaneBasedExecutionQueue.cpp
[0/144] Compiling llbuildBasic Hashing.cpp
[0/144] Compiling llbuildBasic SerialQueue.cpp
[0/144] Compiling llbuildBasic FileSystem.cpp
In file included from /host/spi-builder-workspace/lib/Basic/Subprocess.cpp:13:
In file included from /host/spi-builder-workspace/lib/Basic/include/llbuild/Basic/Subprocess.h:17:
In file included from /host/spi-builder-workspace/lib/Basic/include/llbuild/Basic/CrossPlatformCompatibility.h:29:
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/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/lib/Basic/Subprocess.cpp:13:
In file included from /host/spi-builder-workspace/lib/Basic/include/llbuild/Basic/Subprocess.h:17:
/host/spi-builder-workspace/lib/Basic/include/llbuild/Basic/CrossPlatformCompatibility.h:46:9: error: unknown type name 'rlim_t'
46 | typedef rlim_t llbuild_rlim_t;
| ^
[0/144] Compiling llbuildBasic Subprocess.cpp
[0/144] Compiling llbuildBasic FileInfo.cpp
[0/144] Compiling llbuildBasic ShellUtility.cpp
BUILD FAILURE 6.2 wasm