Typo in jit/moz.build causing build fail for riscv64 when JIT is enabled
Categories
(Core :: JavaScript Engine: JIT, defect)
Tracking
()
People
(Reporter: junyuan.tan, Assigned: junyuan.tan)
Details
Attachments
(1 obsolete file)
Steps to reproduce:
This error will occur during mach build, when JIT for riscv64 is enabled (--enable-jit). This is due to the file in UNIFIED_SOURCES in js/src/jit/moz.build to be AssemblerMatInt.cpp.cpp, instead of AssemblerMatInt.cpp.
I can reproduce by following these steps:
- Setup a native riscv64 machine/chroot (I am using chroot).
- Clone the firefox-111 source code.
- Add the following into the mozconfig file:
Build only the JS shell
ac_add_options --enable-application=js
Enable optimization for speed
ac_add_options --enable-optimize
Disable debug checks to better match a release build of Firefox.
ac_add_options --disable-debug
Use a separate objdir for optimized builds to allow easy
switching between optimized and debug builds while developing.
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-opt-@CONFIG_GUESS@
ac_add_options --target=riscv64-unknown-linux-gnu
ac_add_options --disable-bootstrap
ac_add_options --disable-rust-simd
ac_add_options --enable-jit
./mach buildand it will prompt the error during configure stage.- To fix it, change
riscv64/AssemblerMatInt.cpp.cpptoriscv64/AssemblerMatInt.cppin thejs/src/jit/moz.buildfile. Then mach can proceed with the configure and build stage.
Actual results:
0:38.37 mozbuild.frontend.reader.SandboxValidationError:
0:38.37 ==============================
0:38.37 FATAL ERROR PROCESSING MOZBUILD FILE
0:38.37 ==============================
0:38.37 The error occurred while processing the following file or one of the files it includes:
0:38.37 /root/gecko-dev/js/src/jit/moz.build
0:38.38 The error occurred when validating the result of the execution. The reported error is:
0:38.38 File listed in UNIFIED_SOURCES does not exist: '/root/gecko-dev/js/src/jit/riscv64/AssemblerMatInt.cpp.cpp'
Expected results:
It should complete the configure process (Configure complete!) and continues to the build phase.
| Assignee | ||
Comment 1•2 years ago
|
||
Apologize for the formatting on the above comment, unable to edit it so let me edit the comment here:
Steps to reproduce:
This error will occur during mach build, when JIT for riscv64 is enabled (--enable-jit). This is due to the file in UNIFIED_SOURCES in js/src/jit/moz.build to be AssemblerMatInt.cpp.cpp, instead of AssemblerMatInt.cpp.
I can reproduce by following these steps:
-
Setup a native riscv64 machine/chroot (I am using chroot).
-
Clone the firefox-111 source code.
-
Add the following into the mozconfig file:
'''
ac_add_options --enable-application=js
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --target=riscv64-unknown-linux-gnu
ac_add_options --disable-bootstrap
ac_add_options --disable-rust-simd
ac_add_options --enable-jit
''' -
./mach buildand it will prompt the error during configure stage. -
To fix it, change
riscv64/AssemblerMatInt.cpp.cpptoriscv64/AssemblerMatInt.cppin thejs/src/jit/moz.buildfile. Then mach can proceed with the configure and build stage.
Actual results:
0:38.37 mozbuild.frontend.reader.SandboxValidationError:
0:38.37 ==============================
0:38.37 FATAL ERROR PROCESSING MOZBUILD FILE
0:38.37 ==============================
0:38.37 The error occurred while processing the following file or one of the files it includes:
0:38.37 /root/gecko-dev/js/src/jit/moz.build
0:38.38 The error occurred when validating the result of the execution. The reported error is:
0:38.38 File listed in UNIFIED_SOURCES does not exist: '/root/gecko-dev/js/src/jit/riscv64/AssemblerMatInt.cpp.cpp'
Expected results:
It should complete the configure process (Configure complete!) and continues to the build phase.
| Assignee | ||
Comment 2•2 years ago
|
||
Updated•2 years ago
|
| Assignee | ||
Comment 3•2 years ago
|
||
Closing this as this is similar to bug 1822747
Updated•2 years ago
|
Updated•2 years ago
|
Description
•