Closed Bug 2056501 Opened 3 months ago Closed 2 months ago

Compilation fails for risc-v with linux 6.6

Categories

(Core :: JavaScript Engine, defect, P3)

Firefox 153
defect

Tracking

()

RESOLVED FIXED
155 Branch
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)

Attached patch proposed patch — — Splinter 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.

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.

Component: Untriaged → JavaScript Engine
Product: Firefox → Core
Blocks: sm-riscv64
Severity: -- → S3
Priority: -- → P3

:anba maybe related to bug 2045021 according to the file?

Flags: needinfo?(andrebargull)
Assignee: nobody → andrebargull
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Yes, a regression from bug 2045021.

Flags: needinfo?(andrebargull)
Pushed by andre.bargull@gmail.com: https://github.com/mozilla-firefox/firefox/commit/7b67f3b90566 https://hg.mozilla.org/integration/autoland/rev/9cfe27ed79b5 Allow detecting newer riscv64 extensions on older kernels. r=spidermonkey-reviewers,jandem
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch

The patch landed in nightly and beta is affected, along with ESR.
:anba, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(andrebargull)
Flags: needinfo?(andrebargull)
Attachment #9615511 - Flags: approval-mozilla-beta?

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
Attachment #9615513 - Flags: approval-mozilla-esr153?

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
Attachment #9615511 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

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

Attachment #9615513 - Flags: approval-mozilla-esr153? → approval-mozilla-esr153+
QA Whiteboard: [qa-triage-done-c155/b154]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: