Open Bug 1397042 Opened 7 years ago Updated 2 years ago

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

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

defect

Tracking

(firefox57 wontfix)

Tracking Status
firefox57 --- wontfix

People

(Reporter: fitzgen, Unassigned)

Details

Attachments

(1 file)

Attached image 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
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. Firefox for Android Artifact Mode
4. Firefox for Android
Your choice: 2
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 should consider filing a bug for this issue.

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:\\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
    bootstrapper.bootstrap()
  File "c:\mozilla-central\python/mozboot\mozboot\bootstrap.py", line 292, in bootstrap
    self.instance.install_system_packages()
  File "c:\mozilla-central\python/mozboot\mozboot\mozillabuild.py", line 23, in install_system_packages
    self.install_rustup()
  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.
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)
I ended up wiping and resetting my windows vm image; manually installed rustup and didn't have problems.
Flags: needinfo?(nfitzgerald)
Product: Core → Firefox Build System
Component: General → Bootstrap Configuration
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: