Closed Bug 1838584 Opened 2 years ago Closed 2 years ago

Busted build on ppc64le due to undefined reference to `mozilla::ProfilerParent::~ProfilerParent()'

Categories

(Core :: Gecko Profiler, defect, P1)

Other
Linux
defect

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox114 --- wontfix
firefox115 --- fixed
firefox116 --- fixed

People

(Reporter: msirringhaus, Assigned: msirringhaus)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

When trying to build FF115, I encountered the following problem, though the same issue seems to still be present in trunk:
Gecko Profiler is not enabled for ppc64, but it still implements a stub of ProfilerParent, which declares a destructor, but only has an implementation behind #ifdef MOZ_GECKO_PROFILER.

Thus leading to undefined reference to mozilla::ProfilerParent::~ProfilerParent(), when trying to build.

We had this problem at SUSE, but Fedora currently disabled ppc64 because of the same problem.

I'll be submitting a potential fix shortly.

On platforms such as ppc64, MOZ_GECKO_PROFILER is not defined, leading to a busted build.
The destructor-implementation was hidden behind an MOZ_GECKO_PROFILER-ifdef.

Assignee: nobody → msirringhaus
Status: NEW → ASSIGNED

This seems like a regression from bug 1824465, did it not happen in 114?

Flags: needinfo?(msirringhaus)

The RedHat-bugreport is filed for 114.
I'm not sure on our side, but I guess it did also happen.

There are two problems on ppc64.
I had a busted build on 114, but that was Bug 1775202, which is also still present on 115.
Using that, plus this patch here, I get a building version (but in the meantime, I updated to 115 beta, so I don't know for certain regarding 114).

Flags: needinfo?(msirringhaus)
Keywords: regression
Regressed by: 1824465

Set release status flags based on info from the regressing bug 1824465

Severity: -- → S3
Priority: -- → P1

Since you approved the patch, could you land it (I'm not able to)?
And is it possible to uplift to 115 beta as well? Would be nice to have this in before the release.

Flags: needinfo?(mstange.moz)
Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/caf02cdd3199 Implement stripped down destructor for ProfilerParent, if MOZ_GECKO_PROFILER is undefined. r=mstange

+1, I came up with the same fix :-)

Comment on attachment 9339232 [details]
Bug 1838584 - Implement stripped down destructor for ProfilerParent, if MOZ_GECKO_PROFILER is undefined. r=mstange

Beta/Release Uplift Approval Request

  • User impact if declined: Tier 3 platforms won't be able to build Firefox.
  • Is this code covered by automated tests?: No
  • 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): It's an ifdef change that only affects our tier 3 platforms where MOZ_GECKO_PROFILER is not defined. Tier 1-2 platforms are not affected.
  • String changes made/needed: -
  • Is Android affected?: No
Attachment #9339232 - Flags: approval-mozilla-beta?
Flags: needinfo?(mstange.moz)
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch

Comment on attachment 9339232 [details]
Bug 1838584 - Implement stripped down destructor for ProfilerParent, if MOZ_GECKO_PROFILER is undefined. r=mstange

Approved for 115.0b8.

Attachment #9339232 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: