[clang-trunk] Perma DEBUG: | wasm-ld: error: cannot open crt1.o: No such file or directory
Categories
(Firefox Build System :: Toolchains, defect, P5)
Tracking
(firefox154 fixed)
| Tracking | Status | |
|---|---|---|
| firefox154 | --- | fixed |
People
(Reporter: intermittent-bug-filer, Assigned: glandium)
References
Details
Attachments
(1 external file)
Filed by: mh [at] glandium.org
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=566696339&repo=autoland&task=TRU3Amo1SRq3b5exvpMgSg.0
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/TRU3Amo1SRq3b5exvpMgSg/runs/0/artifacts/public/logs/live_backing.log
[task 2026-05-15T09:01:32.356+00:00] 09:01:32 INFO - checking the wasm C linker can find wasi libraries...
[task 2026-05-15T09:01:32.356+00:00] 09:01:32 INFO - DEBUG: Creating `/tmp/conftestjyt_i_yi.c` with content:
[task 2026-05-15T09:01:32.356+00:00] 09:01:32 INFO - DEBUG: | int
[task 2026-05-15T09:01:32.356+00:00] 09:01:32 INFO - DEBUG: | main(void)
[task 2026-05-15T09:01:32.356+00:00] 09:01:32 INFO - DEBUG: | {
[task 2026-05-15T09:01:32.356+00:00] 09:01:32 INFO - DEBUG: |
[task 2026-05-15T09:01:32.356+00:00] 09:01:32 INFO - DEBUG: | ;
[task 2026-05-15T09:01:32.356+00:00] 09:01:32 INFO - DEBUG: | return 0;
[task 2026-05-15T09:01:32.356+00:00] 09:01:32 INFO - DEBUG: | }
[task 2026-05-15T09:01:32.357+00:00] 09:01:32 INFO - DEBUG: Executing: `/builds/worker/fetches/clang/bin/clang --target=wasm32-wasip1 /tmp/conftestjyt_i_yi.c --sysroot=/builds/worker/fetches/sysroot-wasm32-wasi`
[task 2026-05-15T09:01:32.357+00:00] 09:01:32 INFO - DEBUG: The command returned non-zero exit status 1.
[task 2026-05-15T09:01:32.357+00:00] 09:01:32 INFO - DEBUG: Its error output was:
[task 2026-05-15T09:01:32.357+00:00] 09:01:32 ERROR - DEBUG: | wasm-ld: error: cannot open crt1.o: No such file or directory
[task 2026-05-15T09:01:32.357+00:00] 09:01:32 ERROR - DEBUG: | wasm-ld: error: unable to find library -lc
[task 2026-05-15T09:01:32.357+00:00] 09:01:32 ERROR - DEBUG: | wasm-ld: error: cannot open /builds/worker/fetches/clang/lib/clang/23/lib/wasm32-unknown-wasip1/libclang_rt.builtins.a: No such file or directory
[task 2026-05-15T09:01:32.357+00:00] 09:01:32 ERROR - DEBUG: | clang: error: linker command failed with exit code 1 (use -v to see invocation)
[task 2026-05-15T09:01:32.358+00:00] 09:01:32 INFO - ERROR: Cannot find wasi libraries or problem with the wasm linker. Please fix the problem. Or build with --without-wasm-sandboxed-libraries.
[task 2026-05-15T09:01:32.459+00:00] 09:01:32 INFO - *** Fix above errors and then restart with "./mach build"
| Assignee | ||
Updated•6 months ago
|
| Comment hidden (Intermittent Failures Robot) |
Comment 2•5 months ago
|
||
FYI, the wasi-sdk v33 update patch I've been sitting on for awhile fixes this. Are you up for reviewing it if I submit it?
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 4•5 months ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #2)
FYI, the wasi-sdk v33 update patch I've been sitting on for awhile fixes this. Are you up for reviewing it if I submit it?
I would appreciate the wasip1-related changes being separated out, because they're only really the only thing that need to be addressed here. (and I'm not sure I would address them the way Claude did in your WIP)
| Comment hidden (Intermittent Failures Robot) |
Comment 6•5 months ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #2)
FYI, the wasi-sdk v33 update patch I've been sitting on for awhile fixes this. Are you up for reviewing it if I submit it?
Could you attach it here? I can't review, but I can test whether it works, and would appreciate a fix since I'm currently hitting this.
Comment 7•5 months ago
|
||
(In reply to Joonas Niilola from comment #6)
Could you attach it here? I can't review, but I can test whether it works, and would appreciate a fix since I'm currently hitting this.
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Updated•4 months ago
|
| Assignee | ||
Comment 11•4 months ago
|
||
This prepares for the transition from wasm32-wasi to wasm32-wasip1 which
starts with clang 22, while preserving compatibility with older
versions of clang.
Updated•4 months ago
|
| Comment hidden (Intermittent Failures Robot) |
Comment 13•4 months ago
|
||
Comment 14•4 months ago
|
||
| bugherder | ||
| Comment hidden (Intermittent Failures Robot) |
Description
•