Building android on OS X fails due to missing readelf

RESOLVED FIXED in mozilla16

Status

()

Core
Build Config
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: kats, Assigned: glandium)

Tracking

Trunk
mozilla16
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

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.
(Assignee)

Comment 1

5 years ago
Created attachment 635414 [details] [diff] [review]
Allow dependentlibs.py to work when cross-compiling for Android on OSX
Attachment #635414 - Flags: review?(ted.mielczarek)
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+
(Assignee)

Comment 4

5 years ago
(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)

Comment 5

5 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/03f1fdde2137
Target Milestone: --- → mozilla16

Updated

5 years ago
Assignee: nobody → mh+mozilla
https://hg.mozilla.org/mozilla-central/rev/03f1fdde2137
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.