Closed Bug 1457483 Opened 7 years ago Closed 7 years ago

check_vanilla_allocations.py cannot handle an LTO build

Categories

(Firefox Build System :: General, enhancement)

3 Branch
enhancement
Not set
normal

Tracking

(firefox62 fixed)

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: tjr, Assigned: tjr)

References

Details

Attachments

(1 file)

When building with Clang LTO, check_vanilla_allocations.py runs 'nm' on libjs_static.a, which fails, because nm cannot read that object file. We need to use the NM environment variable (which will point to llvm-nm)
Comment on attachment 8971664 [details] Bug 1457483 Retrieve nm from environment for check_vanilla_allocations.py https://reviewboard.mozilla.org/r/240430/#review246616 ::: config/check_vanilla_allocations.py:80 (Diff revision 2) > > # Run |nm|. Options: > # -u: show only undefined symbols > # -C: demangle symbol names > # -A: show an object filename for each undefined symbol > - cmd = ['nm', '-u', '-C', '-A', args.file] > + nm = buildconfig.substs.get('NM') or 'nm' .get('NM', 'nm')
Attachment #8971664 - Flags: review?(mh+mozilla) → review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/23b5cf2c6824 Retrieve nm from environment for check_vanilla_allocations.py r=glandium
Keywords: checkin-needed
Flags: needinfo?(tom)
So " .get('NM', 'nm') " causes a build bust because NM is present and blank. I've changed it back to the prior version, which was " nm = buildconfig.substs.get('NM') or 'nm' "
Flags: needinfo?(tom) → needinfo?(mh+mozilla)
fair enough.
Flags: needinfo?(mh+mozilla)
Keywords: checkin-needed
Pushed by cbrindusan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f4a56903882a Retrieve nm from environment for check_vanilla_allocations.py r=glandium
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Version: Version 3 → 3 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: