I tried the bootstrap on OS X (after a fresh pull from mozilla-central this morning), and I also have failures. I’ve added the following lines to my .profile: export PATH="$HOME/.cargo/bin:$PATH" source /Users/mfroman/.cargo/env
I continue to get errors from the bootstrap process: The details of the failure are as follows: CalledProcessError: Command '[u'/Users/mfroman/.cargo/bin/rustc', u'--version']' returned non-zero exit status 1 File "/Users/mfroman/mozilla/moz-central/python/mozboot/mozboot/mach_commands.py", line 26, in bootstrap bootstrapper.bootstrap() File "/Users/mfroman/mozilla/moz-central/python/mozboot/mozboot/bootstrap.py", line 232, in bootstrap self.instance.ensure_rust_modern() File "/Users/mfroman/mozilla/moz-central/python/mozboot/mozboot/base.py", line 525, in ensure_rust_modern modern, version = self.is_rust_modern() File "/Users/mfroman/mozilla/moz-central/python/mozboot/mozboot/base.py", line 512, in is_rust_modern our = self._parse_version(rustc) File "/Users/mfroman/mozilla/moz-central/python/mozboot/mozboot/base.py", line 391, in _parse_version stderr=subprocess.STDOUT) File "/Users/mfroman/mozilla/moz-central/python/mozboot/mozboot/base.py", line 320, in check_output return fn(*args, **kwargs) File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 574, in check_output raise CalledProcessError(retcode, cmd, output=output) Any thoughts? Further info: mfroman-23602:moz-central mfroman$ which rustc /Users/mfroman/.cargo/bin/rustc mfroman-23602:moz-central mfroman$ rustc --version error: no default toolchain configured Thanks, Michael. > On Nov 25, 2016, at 9:48 AM, Andrew Halberstadt <ahalberst...@mozilla.com> > wrote: > > When first installing rust with ./mach bootstrap the install is > successful, but there is a message about not being able to find the > compiler immediately afterwards. > > For anyone confused by this, the binaries are downloaded to ~/.cargo/bin > and adding this directory to your $PATH should fix the issue. The > bootstrapper explains this if you run it a second time, but makes no > mention of it the first time through for some reason. > > -Andrew > > On 24/11/16 05:49 PM, Ralph Giles wrote: >> tl;dr This is a heads-up that all gecko developers should install rust. >> >> Next week I plan to switch our default build config to require Rust >> when building Firefox.[1] If you compile Firefox from the C++ source, >> please install the Rust language environment now. >> >> You can install Rust by running `./mach bootstrap` which will download >> and run the rustup installer for you.[2] >> >> We recommend the installer at https://rustup.rs/ (despite being beta) >> because it makes staying up to date and cross-compilation easy. If you >> want more control, or to experiment with rust, you can install >> directly from that website. >> >> The main thing is to have up-to-date versions of the `rustc` and >> `cargo` executables in the path of your build shell. Rust releases >> every six weeks, just like Firefox, and we generally require the >> latest stable release to compile mozilla-central. You can stay current >> by running `rustup update`. >> >> You'll still be able to build without a rust compiler by adding: >> >> ac_add_options --disable-rust >> >> to your mozconfig. This is a temporary work-around; we expect to >> remove that option and require Rust unconditionally early next year as >> non-optional features start to depend on it. >> >> Rust language in Gecko is an important part of Project Quantum. I'm >> excited to be taking this next step toward that future. We first >> shipped Rust code to users in Firefox 48, so it's long past time this >> aspect of our default builds matched what we release.[3] >> >> Thanks for your attention, >> -r >> >> [1] Enabling rust is https://bugzil.la/1283898 >> [2] bootstrap support landed Tuesday in https://bugzil.la/1286799 >> [3] If you have issues with the installer or build, please file issues >> blocking our tracking bug at https://bugzil.la/oxidation >> > > _______________________________________________ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform