Public bug reported:
This concerns clang-22 version 1:22.1.2-1ubuntu1 in Ubuntu resolute.
In configuring a Firefox build using this compiler, I got the following
error:
DEBUG: Executing: `/usr/bin/clang-22 --target=wasm32-wasi
/tmp/conftesti06p4gt_.c -Werror -D_WASI_EMULATED_PROCESS_CLOCKS
-lwasi-emulated-process-clocks`
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | clang-22: error: argument '--target=wasm32-wasi' is deprecated, use
--target=wasm32-wasip1 instead [-Werror,-Wdeprecated]
ERROR: Can't find clock() in wasi sysroot.
make[3]: *** [debian/rules:232: stamps/configure-browser] Error 1
Okay, so wasm32-wasi is a deprecated target, I'll make the build use
wasm32-wasip1. But then:
DEBUG: Executing: `/usr/bin/clang-22 --target=wasm32-wasip1
/tmp/conftestdc13dov3.c`
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | wasm-ld-22: error: cannot open
/usr/lib/llvm-22/lib/clang/22/lib/wasm32-unknown-wasip1/libclang_rt.builtins.a:
No such file or directory
DEBUG: | clang-22: error: linker command failed with exit code 1 (use -v to
see invocation)
ERROR: Cannot find wasi libraries or problem with the wasm linker. Please fix
the problem. Or build with --without-wasm-sandboxed-libraries.
make[3]: *** [debian/rules:232: stamps/configure-browser] Error 1
Hmm. I see that there is a
/usr/lib/llvm-22/lib/clang/22/lib/wasi/libclang_rt.builtins-wasm32.a
library, but not a
/usr/lib/llvm-22/lib/clang/22/lib/wasm32-unknown-
wasip1/libclang_rt.builtins.a
one. The linker should probably be looking for the former.
** Affects: llvm-toolchain-22 (Ubuntu)
Importance: Undecided
Status: New
** Tags: resolute
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2152147
Title:
Broken wasm32-wasi(p1) support
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-22/+bug/2152147/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs