Skip to content

Instantly share code, notes, and snippets.

@punamdahiya
Created February 11, 2019 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save punamdahiya/db3c0ad171276553b4be19d720539a40 to your computer and use it in GitHub Desktop.
Save punamdahiya/db3c0ad171276553b4be19d720539a40 to your computer and use it in GitHub Desktop.
git-cinnabar mach build failure
pdahiya-23604:mozilla-central pdahiya$ ./mach bootstrap
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
Looks like you have Homebrew installed. We will install all required packages via Homebrew.
Your version of Mercurial (4.9) is sufficiently modern.
Your version of Python (2.7.15) is new enough.
Your version of Rust (1.32.0) is new enough.
Rust supports x86_64-apple-darwin targets.
Mozilla recommends using git-cinnabar to work with mozilla-central.
Would you like to run a few configuration steps to ensure Git is
optimally configured?
1. Yes
2. No
Please enter your reply: 1
================================================================================
Ensuring https://github.com/glandium/git-cinnabar.git is up to date at /Users/pdahiya/.mozbuild/git-cinnabar
Already up to date.
Your branch is up to date with 'origin/master'.
================================================================================
Downloading from https://github.com/glandium/git-cinnabar/releases/download/0.5.0/git-cinnabar.macos.x86_64.zip...
100%
Extracting git-cinnabar-helper...
100%
To add git-cinnabar to the PATH, edit your shell initialization script, which
may be called ~/.bashrc or ~/.bash_profile or ~/.profile, and add the following
lines:
export PATH="/Users/pdahiya/.mozbuild/git-cinnabar:$PATH"
Then restart your shell.
0:04.81 Downloading node.tar.xz
0:04.81 Downloading to temporary location /Users/pdahiya/.mozbuild/toolchains/6f724eab6ef9335a-node.tar.xz
0:04.81 Downloaded artifact to /Users/pdahiya/.mozbuild/toolchains/6f724eab6ef9335a-node.tar.xz
0:04.85 rm tree: /Users/pdahiya/.mozbuild/node
0:05.66 untarring "/Users/pdahiya/.mozbuild/node.tar.xz"
0:04.42 Downloading cbindgen.tar.xz
0:04.42 Downloading to temporary location /Users/pdahiya/.mozbuild/toolchains/d9bac13a591069d1-cbindgen.tar.xz
0:04.42 Downloaded artifact to /Users/pdahiya/.mozbuild/toolchains/d9bac13a591069d1-cbindgen.tar.xz
0:04.43 rm tree: /Users/pdahiya/.mozbuild/cbindgen
0:04.43 untarring "/Users/pdahiya/.mozbuild/cbindgen.tar.xz"
Looks like configure has not run yet, running it now...
0:00.51 Clobber not needed.
0:00.51 Adding make options from /Users/pdahiya/src/mozilla-central/.mozconfig
MOZ_OBJDIR=/Users/pdahiya/src/mozilla-central/objdir-frontend
OBJDIR=/Users/pdahiya/src/mozilla-central/objdir-frontend
FOUND_MOZCONFIG=/Users/pdahiya/src/mozilla-central/.mozconfig
export FOUND_MOZCONFIG
0:00.53 /usr/bin/make -f client.mk -s configure
0:00.55 cd /Users/pdahiya/src/mozilla-central/objdir-frontend
0:00.55 /Users/pdahiya/src/mozilla-central/configure
Configure complete!
Be sure to run |mach build| to pick up any changes
Error running mach:
['static-analysis', 'install', '--force', '--minimal-install']
The error occurred in the implementation of the invoked mach command.
This should never occur and is likely a bug in the implementation of that
command. 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:
AttributeError: 'NoneType' object has no attribute 'substs'
File "/Users/pdahiya/src/mozilla-central/python/mozbuild/mozbuild/mach_commands.py", line 2289, in install
source=source, verbose=verbose)
File "/Users/pdahiya/src/mozilla-central/python/mozbuild/mozbuild/mach_commands.py", line 2612, in _get_clang_tools
rc = self._set_clang_tools_paths()
File "/Users/pdahiya/src/mozilla-central/python/mozbuild/mozbuild/mach_commands.py", line 2589, in _set_clang_tools_paths
"clang-tidy" + config.substs.get('BIN_SUFFIX', ''))
None
Your system should be ready to build Firefox for Desktop!
pdahiya-23604:mozilla-central pdahiya$ ./mach build
Config object not found by mach.
0:00.53 Clobber not needed.
0:00.54 Adding make options from /Users/pdahiya/src/mozilla-central/.mozconfig
MOZ_OBJDIR=/Users/pdahiya/src/mozilla-central/objdir-frontend
OBJDIR=/Users/pdahiya/src/mozilla-central/objdir-frontend
FOUND_MOZCONFIG=/Users/pdahiya/src/mozilla-central/.mozconfig
export FOUND_MOZCONFIG
0:00.55 /usr/bin/make -f client.mk -s configure
0:00.56 cd /Users/pdahiya/src/mozilla-central/objdir-frontend
0:00.56 /Users/pdahiya/src/mozilla-central/configure
Configure complete!
Be sure to run |mach build| to pick up any changes
Error running mach:
['build']
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:
BuildEnvironmentNotFoundException: config.status not available. Run configure.
File "/Users/pdahiya/src/mozilla-central/python/mozbuild/mozbuild/mach_commands.py", line 176, in build
mach_context=self._mach_context)
File "/Users/pdahiya/src/mozilla-central/python/mozbuild/mozbuild/controller/building.py", line 1075, in build
config = self.reload_config_environment()
File "/Users/pdahiya/src/mozilla-central/python/mozbuild/mozbuild/base.py", line 370, in reload_config_environment
return self.config_environment
File "/Users/pdahiya/src/mozilla-central/python/mozbuild/mozbuild/base.py", line 285, in config_environment
raise BuildEnvironmentNotFoundException('config.status not available. Run configure.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment