Closed Bug 1684914 Opened 3 years ago Closed 3 years ago

Don't attempt to use thin LTO with gcc

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(firefox-esr78 unaffected, firefox84 wontfix, firefox85 fixed, firefox86 fixed)

RESOLVED FIXED
86 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox84 --- wontfix
firefox85 --- fixed
firefox86 --- fixed

People

(Reporter: mhentges, Assigned: sheehan)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

-flto=thin doesn't work with GCC 10+ (though It didn't work on GCC <10 either, but GCC would just ignore the thin part).

This is forcing GCC users to provide --enable-lto=full in their mozconfigs.

Regressed by: 1644409
Summary: GCC doesn't support thin LTO → Don't attempt to use thin LTO with gcc
Has Regression Range: --- → yes
Assignee: nobody → mhentges
Status: NEW → ASSIGNED
Assignee: mhentges → sheehan

This is essentially just a backout of D84773. Passing -flto=thin worked
previously but the value passed was just ignored and full lto was performed.
On newer versions of gcc passing an unknown value causes failure. So just
revert to the old behaviour.

Pushed by cosheehan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/129bc6a92cbb
stop passing `-flto=thin` to gcc since it doesn't actually work r=glandium,mhentges
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch

can this possibly be uplifted to beta-85, or is it too late for that?

Flags: needinfo?(sheehan)

Comment on attachment 9195724 [details]
Bug 1684914: stop passing -flto=thin to gcc since it doesn't actually work r?#build

Beta/Release Uplift Approval Request

  • User impact if declined: Downstream consumers attempting to build with thin LTO and gcc will hit failures during the build. gcc only supports full LTO.
  • 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): Only impacts building Firefox using gcc and requesting thin LTO
  • String changes made/needed:
Flags: needinfo?(sheehan)
Attachment #9195724 - Flags: approval-mozilla-beta?

Comment on attachment 9195724 [details]
Bug 1684914: stop passing -flto=thin to gcc since it doesn't actually work r?#build

Approved for 85.0rc1.

Attachment #9195724 - 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

Created:
Updated:
Size: