Closed Bug 767024 Opened 13 years ago Closed 13 years ago

Building android on OS X fails due to missing readelf

Categories

(Firefox Build System :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla16

People

(Reporter: kats, Assigned: glandium)

References

Details

Attachments

(1 file)

Trying to build android results in the following failure: Traceback (most recent call last): File "/Users/kats/zspace/mozilla-git/xpcom/stub/dependentlibs.py", line 102, in <module> main() File "/Users/kats/zspace/mozilla-git/xpcom/stub/dependentlibs.py", line 99, in main print '\n'.join(dependentlibs(lib, options.libpaths, func)) File "/Users/kats/zspace/mozilla-git/xpcom/stub/dependentlibs.py", line 72, in dependentlibs for dep in func(lib): File "/Users/kats/zspace/mozilla-git/xpcom/stub/dependentlibs.py", line 29, in dependentlibs_readelf proc = subprocess.Popen(['readelf', '-d', lib], stdout = subprocess.PIPE) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 679, in __init__ errread, errwrite) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1228, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory make[5]: *** [../../dist/bin/dependentlibs.list] Error 1 make[5]: *** Deleting file `../../dist/bin/dependentlibs.list' make[4]: *** [libs_tier_platform] Error 2 make[3]: *** [tier_platform] Error 2 make[2]: *** [default] Error 2 make[1]: *** [realbuild] Error 2 make: *** [build] Error 2 I don't have readelf on my $PATH, which this seems to rely on.
This patch works for me. Thanks!
Comment on attachment 635414 [details] [diff] [review] Allow dependentlibs.py to work when cross-compiling for Android on OSX Review of attachment 635414 [details] [diff] [review]: ----------------------------------------------------------------- Should you change js/src/config/autoconf.mk.in too?
Attachment #635414 - Flags: review?(ted.mielczarek) → review+
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #3) > Comment on attachment 635414 [details] [diff] [review] > Allow dependentlibs.py to work when cross-compiling for Android on OSX > > Review of attachment 635414 [details] [diff] [review]: > ----------------------------------------------------------------- > > Should you change js/src/config/autoconf.mk.in too? It's not used in js/src.
Assignee: nobody → mh+mozilla
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: