mingw-w64-clang builds are broken with --enable-strip and not setting it increases .exe size by about 66%
Categories
(Firefox Build System :: General: Unsupported Platforms, defect)
Tracking
(firefox-esr68 unaffected, firefox-esr7880+ fixed, firefox78 wontfix, firefox79 wontfix, firefox80 wontfix, firefox81 fixed)
People
(Reporter: gk, Assigned: glandium)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: in-triage, regression)
Attachments
(2 files)
(deleted),
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-esr78+
|
Details |
(deleted),
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-esr78+
|
Details |
While preparing our toolchain updates for Firefox 78 ESR. I realized that --enable-strip
is gone for Windows and the build now breaks with that configure option set. However, we used it to cut down the size of our Tor Browser .exe files that way. Not setting that option anymore seems to increase the size by about 66%, which is excessive for bundles we want to ship, while e.g. on Linux just an 8% increase compared to Firefox 68 ESR-based bundles can be seen (the 8% are kind of not unusual).
Reporter | ||
Comment 1•4 years ago
|
||
The actual failure with --enable-strip
looks like:
0:08.12 File "/var/tmp/build/firefox-e2c9144979c2/configure.py", line 181, in <module>
0:08.12 sys.exit(main(sys.argv))
0:08.12 File "/var/tmp/build/firefox-e2c9144979c2/configure.py", line 52, in main
0:08.12 sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
0:08.12 File "/var/tmp/build/firefox-e2c9144979c2/python/mozbuild/mozbuild/configure/__init__.py", line 455, in run
0:08.12 self._value_for(option)
0:08.12 File "/var/tmp/build/firefox-e2c9144979c2/python/mozbuild/mozbuild/configure/__init__.py", line 545, in _value_for
0:08.12 return self._value_for_option(obj)
0:08.12 File "/var/tmp/build/firefox-e2c9144979c2/python/mozbuild/mozbuild/util.py", line 1018, in method_call
0:08.12 cache[args] = self.func(instance, *args)
0:08.12 File "/var/tmp/build/firefox-e2c9144979c2/python/mozbuild/mozbuild/configure/__init__.py", line 613, in _value_for_option
0:08.12 % option_string.split('=', 1)[0])
0:08.12 mozbuild.configure.options.InvalidOptionError: --enable-strip is not available in this configuration
0:08.19 *** Fix above errors and then restart with\
0:08.19 "./mach build"
0:08.19 make: *** [client.mk:115: configure] Error 1
Updated•4 years ago
|
Comment 2•4 years ago
|
||
This is due to bug 1639815, and I assume, this line in particular.
glandium, is the exclusion of Windows intentional here? Is there a significant amount of work required to allow Windows to set --enable-strip
?
Comment 3•4 years ago
|
||
Set release status flags based on info from the regressing bug 1639815
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 4•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 5•4 years ago
|
||
The component has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 6•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Comment 7•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Comment 9•4 years ago
|
||
Backed out for build bustages.
Log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=312683690&repo=autoland&lineNumber=990
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=312684018&repo=autoland&lineNumber=561
Backout: https://hg.mozilla.org/integration/autoland/rev/eb557787e80df69548cc34cc052a6f0e785f1bc6
Assignee | ||
Updated•4 years ago
|
Comment 10•4 years ago
|
||
Comment 11•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/aafba1319774
https://hg.mozilla.org/mozilla-central/rev/0ecdc8f7b354
Reporter | ||
Comment 12•4 years ago
|
||
Thanks glandium! Do you feel that's okay to have this backported to ESR78? If so, could you file the respective request? That would help us by having to ship two patches less in our pile of already existing patches. Thanks!
Assignee | ||
Comment 13•4 years ago
|
||
Comment on attachment 9169320 [details]
Bug 1651680 - Replace PKG_SKIP_STRIP with PKG_STRIP.
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: Fixes a build regression on TOR builds on esr78.
- User impact if declined:
- Fix Landed on Version:
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Practically speaking, this is a no-op for builds other than mingw.
- String or UUID changes made by this patch:
Assignee | ||
Updated•4 years ago
|
Comment 14•4 years ago
|
||
Comment on attachment 9169320 [details]
Bug 1651680 - Replace PKG_SKIP_STRIP with PKG_STRIP.
Makes life better for our Tor friends. Approved for 78.2esr.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 15•4 years ago
|
||
bugherder uplift |
Updated•4 years ago
|
Description
•