Closed
Bug 1897022
Opened 2 years ago
Closed 2 years ago
Error when "checking the wasm C linker can find wasi libraries"
Categories
(Firefox Build System :: MozillaBuild, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: nrishel, Unassigned)
Details
It looks like mach is running this check with the system clang under Program Files instead of ~/.mozbuild.
0:24.02 checking the wasm C linker can find wasi libraries...
0:24.02 DEBUG: Creating `C:\mozilla-build\msys2\tmp\conftest.9b5ittev.c` with content:
0:24.02 DEBUG: | int
0:24.02 DEBUG: | main(void)
0:24.02 DEBUG: | {
0:24.02 DEBUG: |
0:24.02 DEBUG: | ;
0:24.02 DEBUG: | return 0;
0:24.03 DEBUG: | }
0:24.03 DEBUG: Executing: `C:/Users/nrishel/.mozbuild/sccache/sccache.exe C:/PROGRA~1/LLVM/bin/clang.exe -std=gnu99 --target=wasm32-wasi 'C:\mozilla-build\msys2\tmp\conftest.9b5ittev.c' --sysroot=C:/Users/nrishel/.mozbuild/sysroot-wasm32-wasi`
0:24.03 DEBUG: The command returned non-zero exit status 1.
0:24.03 DEBUG: Its error output was:
0:24.03 DEBUG: | wasm-ld: error: cannot open C:\PROGRA~1\LLVM\lib\clang\17\lib\wasi\libclang_rt.builtins-wasm32.a: no such file or directory
0:24.03 DEBUG: | clang: error: linker command failed with exit code 1 (use -v to see invocation)
0:24.03 ERROR: Cannot find wasi libraries or problem with the wasm linker. Please fix the problem. Or build with --without-wasm-sandboxed-libraries.
mozconfig for reference:
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../builds/obj-ff-debug-full
mk_add_options AUTOCLOBBER=1
ac_add_options --with-ccache=sccache
ac_add_options --enable-unverified-updates
#ac_add_options --enable-warnings-as-errors
ac_add_options --enable-debug
ac_add_options --enable-debug-symbols
ac_add_options --disable-optimize
| Reporter | ||
Updated•2 years ago
|
Summary: Error when checking the wasm C linker can find wasi libraries → Error when "checking the wasm C linker can find wasi libraries"
| Reporter | ||
Updated•2 years ago
|
OS: Unspecified → Windows
Comment 1•2 years ago
|
||
What branch are you building?
Updated•2 years ago
|
Flags: needinfo?(nrishel)
| Reporter | ||
Comment 2•2 years ago
•
|
||
This was central, but went away after update to and older revision and back. For some reason clobber, deleting the build directory, and mach bootstrap previously didn't fix the issue so this might have been fixed by re-downloading artifacts.
| Reporter | ||
Updated•2 years ago
|
Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(nrishel)
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•