Closed Bug 1837047 Opened 2 years ago Closed 2 years ago

mach install attempts to use non-existent avd

Categories

(Firefox Build System :: General, defect, P3)

defect

Tracking

(firefox119 fixed)

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: aerickson, Assigned: Logan)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

System details:
MacBook Pro (14-inch, 2021)
Chip: m1 pro

following steps for testing a new mac hostutils
https://wiki.mozilla.org/Packaging_Android_host_utilities#macOS_2

# hg client is at 3a79e9a1c11d with my modified hostutils manifest
$ ./mach bootstrap (pick option 3, android artifact)
...
$ ./mach clobber
...
$ ./mach build
...
$ ./mach package
...
$ ./mach install
No Android devices connected. Start an emulator? (Y/n) 
WARNING: Could not find AVD at /Users/aerickson/.mozbuild/android-device/avd/mozemulator-armeabi-v7a.avd
Android AVD not found, please run |mach bootstrap|
 0:02.45 /opt/homebrew/bin/terminal-notifier -title Mozilla Build System -group mozbuild -message Install complete

$ ls /Users/aerickson/.mozbuild/android-device/avd/
mozemulator-arm64.avd/	mozemulator-arm64.ini
See Also: → 1835230

Worked around by installing and starting an AVD via Android Studio and changing mozconfig to:

# Build GeckoView/Firefox for Android Artifact Mode:
ac_add_options --enable-application=mobile/android
#ac_add_options --target=arm-linux-androideabi
ac_add_options --enable-artifact-builds
# Write build artifacts to:
mk_add_options MOZ_OBJDIR=./objdir-frontend
# For newer phones or Apple silicon
ac_add_options --target=aarch64

and then clobbering, building, packaging, and installing.

Severity: -- → S3
Priority: -- → P3

Targeting aarch64 on Apple silicon to ensure that we build an arm64 artifact that will run on an arm64 emulator, which is the only one that is supported.

Assignee: nobody → loganrosen
Status: NEW → ASSIGNED
Attachment #9350745 - Attachment description: Bug 1837047 - target aarch64 on Apple silicon r?#firefox-build-system-reviewers → Bug 1837047 - target aarch64 for Android builds on aarch64 hosts r?#firefox-build-system-reviewers
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/286cef8a7c0a target aarch64 for Android builds on aarch64 hosts r=firefox-build-system-reviewers,glandium

Whoops, sorry about that! Fixed the code on Phabricator.

Flags: needinfo?(loganrosen)
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/9cf29328d69c target aarch64 for Android builds on aarch64 hosts r=firefox-build-system-reviewers,glandium
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: