Closed Bug 1532851 Opened 6 years ago Closed 6 years ago

Fails to build on FreeBSD powerpc64

Categories

(Core :: JavaScript Engine: JIT, defect)

Other
FreeBSD
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox-esr60 --- fixed
firefox65 --- wontfix
firefox66 --- fixed
firefox67 --- fixed

People

(Reporter: jbeich, Assigned: jbeich)

References

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

As PC_sig is unconditionally defined on powerpc64 after bug 1462566 all OSes have to provide R32_sig. Looks backwards but fixing may introduce bustage, so let's just define the prerequisites.

In file included from objdir/js/src/Unified_cpp_js_src41.cpp:2:
js/src/wasm/WasmSignalHandlers.cpp: In function 'uint8_t** ContextToPC(ucontext_t*)':
js/src/wasm/WasmSignalHandlers.cpp:439:19: error: 'R32_sig' was not declared in this scope
#define PC_sig(p) R32_sig(p)
^~~~~~~
js/src/wasm/WasmSignalHandlers.cpp:450:39: note: in expansion of macro 'PC_sig'
return reinterpret_cast<uint8_t**>(&PC_sig(context));
^~~~~~
js/src/wasm/WasmSignalHandlers.cpp:439:19: note: suggested alternative: 'R12_sig'
#define PC_sig(p) R32_sig(p)
^~~~~~~
js/src/wasm/WasmSignalHandlers.cpp:450:39: note: in expansion of macro 'PC_sig'
return reinterpret_cast<uint8_t**>(&PC_sig(context));
^~~~~~
js/src/wasm/WasmSignalHandlers.cpp: In function 'uint8_t* ContextToFP(ucontext_t*)':
js/src/wasm/WasmSignalHandlers.cpp:441:19: error: 'R01_sig' was not declared in this scope
#define FP_sig(p) R01_sig(p)
^~~~~~~
js/src/wasm/WasmSignalHandlers.cpp:458:37: note: in expansion of macro 'FP_sig'
return reinterpret_cast<uint8_t*>(FP_sig(context));
^~~~~~
js/src/wasm/WasmSignalHandlers.cpp:441:19: note: suggested alternative: 'R11_sig'
#define FP_sig(p) R01_sig(p)
^~~~~~~
js/src/wasm/WasmSignalHandlers.cpp:458:37: note: in expansion of macro 'FP_sig'
return reinterpret_cast<uint8_t*>(FP_sig(context));
^~~~~~
js/src/wasm/WasmSignalHandlers.cpp: In function 'uint8_t* ContextToSP(ucontext_t*)':
js/src/wasm/WasmSignalHandlers.cpp:440:19: error: 'R01_sig' was not declared in this scope
#define SP_sig(p) R01_sig(p)
^~~~~~~
js/src/wasm/WasmSignalHandlers.cpp:466:37: note: in expansion of macro 'SP_sig'
return reinterpret_cast<uint8_t*>(SP_sig(context));
^~~~~~
js/src/wasm/WasmSignalHandlers.cpp:440:19: note: suggested alternative: 'R11_sig'
#define SP_sig(p) R01_sig(p)
^~~~~~~
js/src/wasm/WasmSignalHandlers.cpp:466:37: note: in expansion of macro 'SP_sig'
return reinterpret_cast<uint8_t*>(SP_sig(context));
^~~~~~

http://pylon.nyi.freebsd.org/data/head-powerpc64-default/p494357_s344714/logs/errors/firefox-esr-60.5.2_1,1.log
http://pylon.nyi.freebsd.org/data/head-powerpc64-default/p494357_s344714/logs/errors/thunderbird-60.5.2_1.log

OS: Unspecified → FreeBSD
Hardware: Unspecified → Other
Summary: Unbreak build on FreeBSD powerpc64 → Fails to build on FreeBSD powerpc64
Attached patch v1 (obsolete) — Splinter Review

I can't set r?, so let's go with sr?. Please, replace with r+ or r-.
(Phabricator isn't an option due to MFA requirement which is incompatible with GitHub login on Bugzilla.)

https://treeherder.mozilla.org/#/jobs?repo=try&revision=ac4cb42157702da199d04efad0d830b618954ed1

Assignee: nobody → jbeich
Attachment #9048723 - Flags: superreview?(bbouvier)
Attached patch v1Splinter Review

Oops, forgot to run clang-format. Have to be done manually due to bug 1521654.

Attachment #9048723 - Attachment is obsolete: true
Attachment #9048723 - Flags: superreview?(bbouvier)
Attachment #9048725 - Flags: superreview?(bbouvier)

(In reply to Jan Beich from comment #1)

(Phabricator isn't an option due to MFA requirement which is incompatible with GitHub login on Bugzilla.)

It's a bit unfortunate that one can't use Github login and Phabricator. That being said, you can go to your bugzilla account preferences, set a password (which means you won't be able to log in via Github anymore) and then use your account for Phabricator. It's not the best solution but it can be a workaround in the meanwhile.

Comment on attachment 9048725 [details] [diff] [review] v1 Review of attachment 9048725 [details] [diff] [review]: ----------------------------------------------------------------- rs=me, thanks for the patch!
Attachment #9048725 - Flags: superreview?(bbouvier)
Attachment #9048725 - Flags: superreview?
Attachment #9048725 - Flags: review+
Status: NEW → ASSIGNED
Keywords: checkin-needed
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67

Comment on attachment 9048725 [details] [diff] [review]
v1

Beta/Release Uplift Approval Request

  • Feature/Bug causing the regression: Bug 1462566
  • User impact if declined: Broken build on FreeBSD/NetBSD/OpenBSD on powerpc64.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): NPOTB. Can only break build due to mismerge.
  • String changes made/needed:
Attachment #9048725 - Flags: superreview? → approval-mozilla-beta?
Comment on attachment 9048725 [details] [diff] [review] v1 Fix for distro builds; OK for beta 14 uplift.
Attachment #9048725 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Regression from a previous ESR60 uplift. Noticed late due to missing (at the time) Rust package on FreeBSD powerpc64.

Help building Tor Browser and Thunderbird on more platforms.

  • User impact if declined: Broken build on FreeBSD/NetBSD/OpenBSD on powerpc64.
  • Fix Landed on Version: 67
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): NPOTB. Can only break build due to mismerge or misrebase.
  • String or UUID changes made by this patch:
Attachment #9048927 - Flags: approval-mozilla-esr60?
Comment on attachment 9048927 [details] [diff] [review] v1 (rebased for esr60) NPOTB for anything we ship. Approved for 60.6esr to make life easier for downstream distros.
Attachment #9048927 - Flags: approval-mozilla-esr60? → approval-mozilla-esr60+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: