Closed Bug 854545 Opened 11 years ago Closed 11 years ago

mach Exception: Binary expected at objdir-android/dist/bin/fennec does not exist

Categories

(Firefox Build System :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(firefox21 unaffected, firefox22 fixed)

RESOLVED FIXED
mozilla22
Tracking Status
firefox21 --- unaffected
firefox22 --- fixed

People

(Reporter: cpeterson, Assigned: gps)

References

Details

Attachments

(1 file)

I get the following mach error when I make a clobber build of Firefox for Android from mozilla-central:


Exception: Binary expected at /Users/cpeterson/Code/mozilla/central/objdir-android/dist/bin/fennec does not exist.

  File "/Users/cpeterson/Code/mozilla/central/python/mozbuild/mozbuild/mach_commands.py", line 131, in build
    app_path = self.get_binary_path('app')
  File "/Users/cpeterson/Code/mozilla/central/python/mozbuild/mozbuild/base.py", line 159, in get_binary_path
    raise Exception('Binary expected at %s does not exist.' % path)
I know very little about the Android developer workflow. Is there an expected output of |mach build| for mobile/android that is executable? I /think/ the answer is "no" and that |mach package| is required to obtain anything useful for Android. If so, my first reaction is that we should expose a single command that does useful things. My second is that we could not check for a binary if the xul app is mobile/android.
There is no desktop-runnable output binary for Fennec. If there were, it probably wouldn't be called `fennec`!

The usual useful output is the APK, which is created by packaging.
I think this should do it.
Assignee: nobody → gps
Status: NEW → ASSIGNED
Attachment #729941 - Flags: review?(ted)
Pretend I uploaded that patch with self.substs['MOZ_BUILD_APP'] not MOZ_APP_NAME...
Comment on attachment 729941 [details] [diff] [review]
Don't print binary info for mobile/android builds, v1

Review of attachment 729941 [details] [diff] [review]:
-----------------------------------------------------------------

r=me with your noted fix
Attachment #729941 - Flags: review?(ted) → review+
This is a fine work-around.  See Bug 854534 for tracking folding some of `make package` into `make libs`.  If we pursue that ticket, we could point the user at an APK.
See Also: → 854534
https://hg.mozilla.org/mozilla-central/rev/6c7f9d160488
Status: ASSIGNED → RESOLVED
Closed: 11 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: