`./mach bootstrap` fails to run rustup.exe




Build Config
5 months ago
3 days ago


(Reporter: fitzgen, Unassigned)



Firefox Tracking Flags

(firefox57 wontfix)



(1 attachment)

Created attachment 8904754 [details]
error prompt

I get an error prompt and then `mach` gives up:

Nick Fitzgerald@WIN-CEM0ACR40UG /C/mozilla-central
$ ./mach bootstrap
mach bootstrap is not fully implemented in MozillaBuild

Note on Artifact Mode:

Firefox for Desktop and Android supports a fast build mode called
artifact mode. Artifact mode downloads pre-built C++ components rather
than building them locally, trading bandwidth for time.

Artifact builds will be useful to many developers who are not working
with compiled code. If you want to work on look-and-feel of Firefox,
you want "Firefox for Desktop Artifact Mode".

Similarly, if you want to work on the look-and-feel of Firefox for Android,
you want "Firefox for Android Artifact Mode".

To work on the Gecko technology platform, you would need to opt to full,
non-artifact mode. Gecko is Mozilla's web rendering engine, similar to Edge,
Blink, and WebKit. Gecko is implemented in C++ and JavaScript. If you
want to work on web rendering, you want "Firefox for Desktop", or
"Firefox for Android".

If you don't know what you want, start with just Artifact Mode of the desired
platform. Your builds will be much shorter than if you build Gecko as well.
But don't worry! You can always switch configurations later.

You can learn more about Artifact mode builds at

Please choose the version of Firefox you want to build:
1. Firefox for Desktop Artifact Mode
2. Firefox for Desktop
3. Firefox for Android Artifact Mode
4. Firefox for Android
Your choice: 2
Error running mach:


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 should consider filing a bug for this issue.

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

The details of the failure are as follows:

CalledProcessError: Command '['c:\\users\\nickfi~1\\appdata\\local\\temp/rustup-init.exe', '--no-modify-path', '--default-host', 'x86_64-pc-windows-msvc', '--default-toolchain', 'stable', '-y']'
ned non-zero exit status -1073741701

  File "c:\mozilla-central\python/mozboot/mozboot/mach_commands.py", line 32, in bootstrap
  File "c:\mozilla-central\python/mozboot\mozboot\bootstrap.py", line 292, in bootstrap
  File "c:\mozilla-central\python/mozboot\mozboot\mozillabuild.py", line 23, in install_system_packages
  File "c:\mozilla-central\python/mozboot\mozboot\mozillabuild.py", line 33, in install_rustup
    'x86_64-pc-windows-msvc', '--default-toolchain', 'stable', '-y'])
  File "c:\mozilla-central\python/mozboot\mozboot\mozillabuild.py", line 84, in run
    subprocess.check_call(command, stdin=sys.stdin)
  File "c:\mozilla-build\python\lib\subprocess.py", line 186, in check_call
    raise CalledProcessError(retcode, cmd)
I don't know what the exact error is here but I bet that fixing bug 1385241 would make this go away.

Comment 2

4 months ago
I was getting this the other day as well.

I'm optimistic bug 1397279 may have resolved this. Could you please try nuking your Rust and ~/.mozbuild state and trying again with an up-to-date mozilla-central checkout? If it works, I'd mark as a dupe.
Component: mach → Build Config
Flags: needinfo?(nfitzgerald)


4 months ago
status-firefox57: --- → wontfix
I ended up wiping and resetting my windows vm image; manually installed rustup and didn't have problems.
Flags: needinfo?(nfitzgerald)
You need to log in before you can comment on or make changes to this bug.