Closed Bug 1644794 Opened 5 years ago Closed 5 years ago

mach bootstrap on Windows 10 fails on GeckoView/Firefox for Android with FileNotFoundError (JDK 1.8)

Categories

(Firefox Build System :: Bootstrap Configuration, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: greenorion, Assigned: mhentges)

Details

(Keywords: in-triage)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36

Steps to reproduce:

launched C:\mozilla-build\start-shell.bat

Bliss@p2 /c/mozilla-source
$ mkdir moz-central

Bliss@p2 /c/mozilla-source
$ cd moz-central

Bliss@p2 /c/mozilla-source/moz-central
$ hg clone https://hg.mozilla.org/mozilla-central
destination directory: mozilla-central
applying clone bundle from https://hg.cdn.mozilla.net/mozilla-central/63dc5e9b1b02b0aebd6badfe5eaef7bb9aa8f430.zstd-max.hg
adding changesets
adding manifests
adding file changes
added 534453 changesets with 3588191 changes to 582390 files
finished applying clone bundle
searching for changes
adding changesets
adding manifests
adding file changes
added 158 changesets with 1115 changes to 696 files
new changesets 16a9d99adb43:7f7b98339065
534453 local changesets published
updating to branch default
289273 files updated, 0 files merged, 0 files removed, 0 files unresolved

Bliss@p2 /c/mozilla-source/moz-central/mozilla-central
$ mach bootstrap

Actual results:

mach bootstrap is not fully implemented in MozillaBuild

Note on Artifact Mode:

Artifact builds download prebuilt C++ components rather than building
them locally. Artifact builds are faster!

Artifact builds are recommended for people working on Firefox or
Firefox for Android frontends, or the GeckoView Java API. They are unsuitable
for those working on C++ code. For more information see:
https://developer.mozilla.org/en-US/docs/Artifact_builds.

Please choose the version of Firefox you want to build:

  1. Firefox for Desktop Artifact Mode
  2. Firefox for Desktop
  3. GeckoView/Firefox for Android Artifact Mode
  4. GeckoView/Firefox for Android
    Your choice: 4
    Error running mach:
['bootstrap']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file bootstrap| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

FileNotFoundError: [WinError 2] The system cannot find the file specified

File "c:\mozilla-source\moz-central\mozilla-central\python/mozboot/mozboot/mach_commands.py", line 44, in bootstrap
bootstrapper.bootstrap()
File "c:\mozilla-source\moz-central\mozilla-central\python/mozboot\mozboot\bootstrap.py", line 478, in bootstrap
getattr(self.instance, 'install_%s_packages' % application)()
File "c:\mozilla-source\moz-central\mozilla-central\python/mozboot\mozboot\mozillabuild.py", line 70, in install_mobile_android_packages
self.ensure_mobile_android_packages()
File "c:\mozilla-source\moz-central\mozilla-central\python/mozboot\mozboot\mozillabuild.py", line 83, in ensure_mobile_android_packages
r'SOFTWARE\JavaSoft\Java Development Kit\1.8')

Expected results:

mach bootstrap should have completed successfully for GeckoView/Firefox for Android.
Note: failed for both 3 and 4 options (artifact and non artifact build for GeckoView/Firefox for Android)

Keywords: in-triage
Severity: -- → S3
Priority: -- → P3
Assignee: nobody → mhentges
Summary: mach bootstrap on Windows 10 fails on GeckoView/Firefox for Android with FileNotFoundError → mach bootstrap on Windows 10 fails on GeckoView/Firefox for Android with FileNotFoundError (JDK 1.8)

(This looks related to this Sentry issue).
This error is a little cryptic, but you need to install the Java 1.8 Development Kit (JDK 1.8).
You can download it from here.

However, this error message and the documentation can be improved, so I'll leave this ticket open.
(let me know if installed JDK 1.8 doesn't solve this issue for you)

Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Installing JDK 1.8 fixed my issue. Thank you!

Pushed by mhentges@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f0d33891982a Improve "missing JDK" error message and docs r=rstewart,geckoview-reviewers,agi
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: