Bug: firefox-esr68 bootstrap failed
Status: RESOLVED
Priority: --
Resolution: WORKSFORME
Created: 2020-06-15 15:20:52+00:00
Resolved: 2020-06-17 17:02:42+00:00

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

Steps to reproduce:

I see an error when bootstrap for mozilla-esr68 on windows. linux is also the same. mozilla-build with the latest version.


Actual results:

MozillaBuild Install Directory: C:\mozilla-build\

Baris@Baris-PC ~
$ cd /c/mozilla-source/mozilla-esr68

Baris@Baris-PC /c/mozilla-source/mozilla-esr68
$ ./mach bootstrap
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: 2
Running pip to ensure Mercurial is up-to-date...
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Ple
ase upgrade your Python as Python 2.7 won't be maintained after that date. A fut
ure version of pip will drop support for Python 2.7. More details about Python 2
 support in pip, can be found at https://pip.pypa.io/en/latest/development/relea
se-process/#python-2-support
Collecting Mercurial
  Using cached https://files.pythonhosted.org/packages/83/54/d81317f98f31f05026d
d4255828e04a1c4a2e1c4e8d7291e0b5b51d99b07/mercurial-5.4.1.tar.gz
    ERROR: Command errored out with exit status 1:
     command: 'c:\mozilla-build\python\python.exe' -c 'import sys, setuptools, t
okenize; sys.argv[0] = '"'"'c:\\users\\baris\\appdata\\local\\temp\\pip-install-i
x0ttg\\Mercurial\\setup.py'"'"'; __file__='"'"'c:\\users\\baris\\appdata\\local\\
temp\\pip-install-ix0ttg\\Mercurial\\setup.py'"'"';f=getattr(tokenize, '"'"'open
'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.clo
se();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'c:\user
s\baris\appdata\local\temp\pip-install-ix0ttg\Mercurial\pip-egg-info'
         cwd: c:\users\baris\appdata\local\temp\pip-install-ix0ttg\Mercurial\
    Complete output (17 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\baris\appdata\local\temp\pip-install-ix0ttg\Mercurial\setup.
py", line 1533, in <module>
        name='mercurial.zstd', root=os.path.abspath(os.path.dirname(__file__))
      File "contrib/python-zstandard\setup_zstd.py", line 163, in get_c_extensio
n
        compiler.initialize()
      File "c:\mozilla-build\python\lib\distutils\msvc9compiler.py", line 383, i
n initialize
        vc_env = query_vcvarsall(VERSION, plat_spec)
      File "c:\mozilla-build\python\lib\site-packages\setuptools\msvc.py", line
147, in msvc9_query_vcvarsall
        return EnvironmentInfo(arch, ver).return_env()
      File "c:\mozilla-build\python\lib\site-packages\setuptools\msvc.py", line
1227, in return_env
        [self.VCIncludes,
      File "c:\mozilla-build\python\lib\site-packages\setuptools\msvc.py", line
876, in VCIncludes
        return [os.path.join(self.si.VCInstallDir, 'Include'),
      File "c:\mozilla-build\python\lib\site-packages\setuptools\msvc.py", line
555, in VCInstallDir
        raise distutils.errors.DistutilsPlatformError(msg)
    distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 9.0 is require
d. Get it from http://aka.ms/vcpython27
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check th
e logs for full command output.
WARNING: You are using pip version 19.3; however, version 20.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.
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| 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:

CalledProcessError: Command '['c:\\mozilla-build\\python\\Scripts\\pip.exe', 'in
stall', '--upgrade', 'Mercurial']' returned non-zero exit status 1

  File "c:\mozilla-source\mozilla-esr68\python/mozboot/mozboot/mach_commands.py", line 43, in bootstrap

    bootstrapper.bootstrap()
  File "c:\mozilla-source\mozilla-esr68\python/mozboot\mozboot\bootstrap.py", line 432, in bootstrap
    hg_installed, hg_modern = self.instance.ensure_mercurial_modern()
  File "c:\mozilla-source\mozilla-esr68\python/mozboot\mozboot\mozillabuild.py", line 57, in ensure_mer
curial_modern
    self.run([self.which('pip'), 'install', '--upgrade', 'Mercurial'])
  File "c:\mozilla-source\mozilla-esr68\python/mozboot\mozboot\mozillabuild.py", line 108, in run
    subprocess.check_call(command, stdin=sys.stdin)
  File "c:\mozilla-build\python\lib\subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)

Baris@Baris-PC /c/mozilla-source/mozilla-esr68
$