Closed Bug 1364406 Opened 8 years ago Closed 8 years ago

mach bootstrap failed to install clang package

Categories

(Firefox Build System :: General, defect)

50 Branch
Unspecified
Windows
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emk, Unassigned)

References

Details

$ mach bootstrap mach bootstrap is not fully implemented in MozillaBuild 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 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. Your choice: 2 info: updating existing rustup installation info: component 'rust-std' for target 'i686-pc-windows-msvc' is up to date Your version of Mercurial (4.1.2) is sufficiently modern. Your version of Python (2.7.11) is new enough. Your version of Rust (1.15.1) is new enough. Rust supports i686-pc-windows-msvc, x86_64-pc-windows-msvc targets. Stylo is an experimental rewrite of the Gecko style system in Rust to be faster and make better use of modern computer hardware. Would you like to download packages for working on Stylo? If you're not sure, select "No". 1. Yes 2. No Your choice: 1 Downloading clang package from https://api.pub.build.mozilla.org/tooltool/sha512/cd3ed31acefd185f441632158dde73538c62bab7ebf2a8ec630985ab345938ec522983721ddb1bead1de22d5ac1571d50a958ae002364d739f2a78c6e7244222 Download complete! Unpacking c:/Users/kimu/.mozbuild\mozboot\cd3ed31acefd185f441632158dde73538c62bab7ebf2a8ec630985ab345938ec522983721ddb1bead1de22d5ac1571d50a958ae002364d739f2a78c6e7244222... tar (child): Cannot connect to c: resolve failed bzip2: Compressed file ends unexpectedly; perhaps it is corrupted? *Possible* reason follows. bzip2: error 0 Input file = (stdin), output file = (stdout) It is possible that the compressed file(s) have become corrupted. You can use the -tvv option to test integrity of such files. You can use the `bzip2recover' program to attempt to recover data from undamaged sections of corrupted files. tar: Child returned status 128 tar: Error is not recoverable: exiting now 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 '[u'tar', u'jxf', u'c:/Users/kimu/.mozbuild\\mozboot\\cd3ed31acefd185f441632158dde73538c62bab7ebf2a8ec630985ab345938ec522983721ddb1bead1de22d5ac1571d50a958ae002364d739f2a78c6e7244222']' returned non-zero exit status 2 File "f:\m\mozilla-unified\python/mozboot/mozboot/mach_commands.py", line 26, in bootstrap bootstrapper.bootstrap() File "f:\m\mozilla-unified\python/mozboot\mozboot\bootstrap.py", line 295, in bootstrap self.instance.ensure_stylo_packages(state_dir) File "f:\m\mozilla-unified\python/mozboot\mozboot\mozillabuild.py", line 91, in ensure_stylo_packages self.install_tooltool_clang_package(state_dir, **stylo.WINDOWS) File "f:\m\mozilla-unified\python/mozboot\mozboot\base.py", line 311, in install_tooltool_clang_package subprocess.check_call(cmd, stdout=stdout, cwd=state_dir) File "d:\mozilla-build\python\lib\subprocess.py", line 540, in check_call raise CalledProcessError(retcode, cmd)
Summary: mach bootstrap failed to install install clang package → mach bootstrap failed to install clang package
Blocks: 1364458
Yeah, I've seen the same problem. BTW, clang 4.0 now works. Probably we should use that directly instead of 3.9.
We should add --force-local to prevent tar from treating the Windows-style path as remote: http://stackoverflow.com/questions/12823499/windows-command-line-tar-cannot-connect-to-d-resolve-failed-with-chef-knife
Blocks: 1314355
OS: Unspecified → Windows
Presumably, this will be fixed by bug 1364588
Depends on: 1364588
Component: mach → Build Config
Fixed by bug 1364588.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.