LibreWolf Version
v150.0_p1-r1
Operating System
Gentoo
Installation Source / Package
Official Librewolf Repository (Debian/Ubuntu/Fedora/openSUSE)
Description
Compiling Librewolf from the official Gentoo repository fails with an error complaining about clock() not existing on wasi sysoot:
0:10.31 DEBUG: Creating `/var/tmp/portage/www-client/librewolf-150.0_p1-r1/temp/conftest_hwoahhl.c` with content:
0:10.31 DEBUG: | #include <time.h>
0:10.31 DEBUG: | int
0:10.31 DEBUG: | main(void)
0:10.31 DEBUG: | {
0:10.31 DEBUG: | clock();
0:10.31 DEBUG: | ;
0:10.31 DEBUG: | return 0;
0:10.31 DEBUG: | }
0:10.31 DEBUG: Executing: `/usr/lib/llvm/22/bin/x86_64-pc-linux-gnu-clang-22 --target=wasm32-wasi /var/tmp/portage/www-client/librewolf-150.0_p1-r1/temp/conftest_hwoahhl.c -Werror -D_WASI_EMULATED_PROCESS_CLOCKS -lwasi-emulated-process-clocks --sysroot=/var/tmp/portage/www-client/librewolf-150.0_p1-r1/work/wasi-sdk-32.0-x86_64-linux/share/wasi-sysroot/ -nodefaultlibs -lc -lwasi-emulated-process-clocks -lc++ -lc++abi /var/tmp/portage/www-client/librewolf-150.0_p1-r1/work/wasi-sdk-32.0-x86_64-linux/lib/clang/22/lib/wasm32-unknown-wasi/libclang_rt.builtins.a`
0:10.31 DEBUG: The command returned non-zero exit status 1.
0:10.31 DEBUG: Its error output was:
0:10.31 DEBUG: | x86_64-pc-linux-gnu-clang-22: error: argument '--target=wasm32-wasi' is deprecated, use --target=wasm32-wasip1 instead [-Werror,-Wdeprecated]
0:10.31 ERROR: Can't find clock() in wasi sysroot.
0:10.44 E *** Fix above errors and then restart with "./mach build"
This is on a Gentoo no-multilib profile with the following USE flags for Librewolf: www-client/librewolf eme-free hwaccel jpegxl openh264 system-pipewire system-png wasm-sandbox.
Logs / Screenshots
Attached build log.
Checklist
- I have searched existing issues to ensure this hasn't been reported yet.
- I have read the FAQ and confirmed my problem isn't addressed there.