Compilation fails for risc-v with linux 6.6
Categories
(Core :: JavaScript Engine, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr140 | --- | unaffected |
| firefox-esr153 | --- | fixed |
| firefox153 | --- | wontfix |
| firefox154 | --- | fixed |
| firefox155 | --- | fixed |
People
(Reporter: skandigraun, Assigned: anba)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(4 files)
|
2.40 KB,
patch
|
Details | Diff | Splinter Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-esr153+
|
Details | Review |
Steps to reproduce:
Cross-compile Firefox 153 to Risc-V arch using Linux kernel 6.6
Actual results:
Compilation fails, due to undefined symbols, which were first defined in Linux 6.8:
| 8:43.19 W In file included from /yocto/scarthgap/build/tmp/work/riscv64-poky-linux/firefox/153.0/firefox-153.0/firefox-build-dir/js/src/jit/Unified_cpp_js_src_jit15.cpp:38:
| 8:43.20 E /yocto/scarthgap/build/tmp/work/riscv64-poky-linux/firefox/153.0/firefox-153.0/js/src/jit/riscv64/Architecture-riscv64.cpp:319:26: error: use of undeclared identifier 'RISCV_HWPROBE_EXT_ZFHMIN'
| 8:43.20 E 319 | if (probe[0].value & RISCV_HWPROBE_EXT_ZFHMIN) {
| 8:43.20 E | ^
| 8:43.20 js/xpconnect/wrappers/XrayWrapper.o
| 8:43.20 js/xpconnect/wrappers/Unified_cpp_xpconnect_wrappers0.o
| 8:43.28 E /yocto/scarthgap/build/tmp/work/riscv64-poky-linux/firefox/153.0/firefox-153.0/js/src/jit/riscv64/Architecture-riscv64.cpp:322:26: error: use of undeclared identifier 'RISCV_HWPROBE_EXT_ZFA'
| 8:43.28 E 322 | if (probe[0].value & RISCV_HWPROBE_EXT_ZFA) {
| 8:43.28 E | ^
| 8:43.37 E /yocto/scarthgap/build/tmp/work/riscv64-poky-linux/firefox/153.0/firefox-153.0/js/src/jit/riscv64/Architecture-riscv64.cpp:325:26: error: use of undeclared identifier 'RISCV_HWPROBE_EXT_ZICOND'
| 8:43.37 E 325 | if (probe[0].value & RISCV_HWPROBE_EXT_ZICOND) {
| 8:43.37 E |
Expected results:
Successful compilation.
Comment 1•3 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::JavaScript Engine' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•3 months ago
|
Comment 2•2 months ago
|
||
:anba maybe related to bug 2045021 according to the file?
| Assignee | ||
Comment 3•2 months ago
|
||
Updated•2 months ago
|
| Assignee | ||
Comment 4•2 months ago
|
||
Yes, a regression from bug 2045021.
Updated•2 months ago
|
Comment 6•2 months ago
|
||
| bugherder | ||
Comment 7•2 months ago
|
||
| bugherder | ||
Comment 8•2 months ago
|
||
| bugherder | ||
Comment 9•2 months ago
|
||
| bugherder | ||
Comment 10•2 months ago
|
||
The patch landed in nightly and beta is affected, along with ESR.
:anba, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta and ESR approvals.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox154and the ESR status flag(s) towontfix.
For more information, please visit BugBot documentation.
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 11•2 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D313476
Updated•2 months ago
|
Comment 12•2 months ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined/Reason for urgency: Can't build Beta and ESR 153 for riscv64 on Linux kernels before version 6.8.
- Code covered by automated testing?: no
- Fix verified in Nightly?: yes
- Needs manual QE testing?: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: low
- Explanation of risk level: Low risk because it only replaces external symbols with hardcoded constants. The change also only affects riscv64, which is a tier 3 target.
- String changes made/needed?: None
- Is Android affected?: no
| Assignee | ||
Comment 13•2 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D313476
Updated•2 months ago
|
Comment 14•2 months ago
|
||
firefox-esr153 Uplift Approval Request
- User impact if declined/Reason for urgency: Can't build Beta and ESR 153 for riscv64 on Linux kernels before version 6.8.
- Code covered by automated testing?: no
- Fix verified in Nightly?: yes
- Needs manual QE testing?: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: low
- Explanation of risk level: Low risk because it only replaces external symbols with hardcoded constants. The change also only affects riscv64, which is a tier 3 target.
- String changes made/needed?: None
- Is Android affected?: no
Updated•2 months ago
|
Updated•2 months ago
|
Comment 15•2 months ago
|
||
| uplift | ||
Comment 16•2 months ago
|
||
Authored by https://github.com/anba
https://github.com/mozilla/enterprise-firefox/commit/7b67f3b9056632311ad8958d0b939796090987bf
[enterprise-main] Bug 2056501: Allow detecting newer riscv64 extensions on older kernels. r=spidermonkey-reviewers,jandem
Updated•2 months ago
|
Updated•2 months ago
|
Comment 17•2 months ago
|
||
| uplift | ||
Updated•2 months ago
|
Updated•2 months ago
|
Description
•