Closed Bug 2039812 Opened 6 months ago Closed 4 months ago

[clang-trunk] Perma DEBUG: | wasm-ld: error: cannot open crt1.o: No such file or directory

Categories

(Firefox Build System :: Toolchains, defect, P5)

defect

Tracking

(firefox154 fixed)

RESOLVED FIXED
154 Branch
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"
Blocks: clang-23
Summary: Perma DEBUG: | wasm-ld: error: cannot open crt1.o: No such file or directory → [clang-trunk] Perma DEBUG: | wasm-ld: error: cannot open crt1.o: No such file or directory

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?

Flags: needinfo?(mh+mozilla)

(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)

Flags: needinfo?(mh+mozilla)

(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.

(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.

Bug 2043477

Blocks: clang-22
No longer blocks: clang-23

This prepares for the transition from wasm32-wasi to wasm32-wasip1 which
starts with clang 22, while preserving compatibility with older
versions of clang.

Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Pushed by mh@glandium.org: https://github.com/mozilla-firefox/firefox/commit/630a929dcf8d https://hg.mozilla.org/integration/autoland/rev/dfc8b7fc5f3b Add wasip1 directories to wasi sysroot and compiler-rt. r=firefox-build-system-reviewers,sergesanspaille
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: