Created
May 30, 2020 14:05
-
-
Save daleharvey/0e6eb5b31ad0b6661804f4a398324f59 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./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. | |
Checking if we need to fetch /usr/local/Homebrew... | |
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask... | |
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core... | |
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services... | |
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask... | |
Fetching /usr/local/Homebrew... | |
remote: Enumerating objects: 6, done. | |
remote: Counting objects: 100% (6/6), done. | |
remote: Compressing objects: 100% (4/4), done. | |
remote: Total 4 (delta 2), reused 1 (delta 0), pack-reused 0 | |
Unpacking objects: 100% (4/4), 1.26 KiB | 161.00 KiB/s, done. | |
From https://github.com/Homebrew/homebrew-cask | |
4e7e48a37a..a950227fcb master -> origin/master | |
Updating /usr/local/Homebrew... | |
Branch 'master' set up to track remote branch 'master' from 'origin'. | |
Switched to and reset branch 'master' | |
Your branch is up to date with 'origin/master'. | |
Switched to and reset branch 'stable' | |
Current branch stable is up to date. | |
Updating /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask... | |
Successfully rebased and updated refs/heads/master. | |
Updated 1 tap (homebrew/cask). | |
No changes to formulae. | |
Your version of Mercurial (5.4) is sufficiently modern. | |
Your version of Python (2.7.10) is new enough. | |
Your version of Rust (1.42.0) is new enough. | |
Rust supports x86_64-apple-darwin targets. | |
Mozilla recommends using git-cinnabar to work with mozilla-central (or | |
mozilla-unified). | |
Would you like to run a few configuration steps to ensure Git is | |
optimally configured? (Yn): Y | |
================================================================================ | |
Ensuring https://github.com/glandium/git-cinnabar.git is up to date at /Users/dale/.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/dale/.mozbuild/git-cinnabar:$PATH" | |
Then restart your shell. | |
0:05.04 Setting up artifact node.tar.xz | |
0:05.04 Using artifact from local cache: /Users/dale/.mozbuild/toolchains/4f25b887ffd5ce5e-node.tar.xz | |
0:05.08 rm tree: /Users/dale/.mozbuild/node | |
0:05.54 untarring "/Users/dale/.mozbuild/node.tar.xz" | |
0:05.59 Setting up artifact fix-stacks.tar.xz | |
0:05.59 Using artifact from local cache: /Users/dale/.mozbuild/toolchains/bea0854c2ff18e27-fix-stacks.tar.xz | |
0:05.60 rm tree: /Users/dale/.mozbuild/fix-stacks | |
0:05.60 untarring "/Users/dale/.mozbuild/fix-stacks.tar.xz" | |
0:05.57 Setting up artifact minidump_stackwalk.tar.xz | |
0:05.57 Using artifact from local cache: /Users/dale/.mozbuild/toolchains/ecd81f3fd4d2a4e0-minidump_stackwalk.tar.xz | |
0:05.57 rm tree: /Users/dale/.mozbuild/minidump_stackwalk | |
0:05.57 untarring "/Users/dale/.mozbuild/minidump_stackwalk.tar.xz" | |
0:05.44 Setting up artifact clang.tar.zst | |
0:05.44 Using artifact from local cache: /Users/dale/.mozbuild/toolchains/991b6c4a9f0a9b72-clang.tar.zst | |
Using base prefix '/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7' | |
Traceback (most recent call last): | |
File "/Users/dale/src/gecko/third_party/python/virtualenv/virtualenv.py", line 420, in copyfile | |
os.symlink(os.path.realpath(src), dest) | |
FileExistsError: [Errno 17] File exists: '/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin' -> '/Users/dale/src/gecko/obj-x86_64-apple-darwin18.6.0/_virtualenvs/init_py3/lib/python3.7/config-3.7m-darwin' | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Users/dale/src/gecko/third_party/python/virtualenv/virtualenv.py", line 2634, in <module> | |
main() | |
File "/Users/dale/src/gecko/third_party/python/virtualenv/virtualenv.py", line 870, in main | |
symlink=options.symlink, | |
File "/Users/dale/src/gecko/third_party/python/virtualenv/virtualenv.py", line 1162, in create_environment | |
install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages=site_packages, clear=clear, symlink=symlink) | |
File "/Users/dale/src/gecko/third_party/python/virtualenv/virtualenv.py", line 1449, in install_python | |
copy_required_files(stdlib_dir, lib_dir, symlink) | |
File "/Users/dale/src/gecko/third_party/python/virtualenv/virtualenv.py", line 1356, in copy_required_files | |
copyfile(join(src_dir, fn), join(lib_dir, fn), symlink) | |
File "/Users/dale/src/gecko/third_party/python/virtualenv/virtualenv.py", line 423, in copyfile | |
copy_file_or_folder(src, dest, symlink) | |
File "/Users/dale/src/gecko/third_party/python/virtualenv/virtualenv.py", line 401, in copy_file_or_folder | |
shutil.copytree(src, dest, symlink) | |
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/shutil.py", line 324, in copytree | |
os.makedirs(dst) | |
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/os.py", line 223, in makedirs | |
mkdir(name, mode) | |
FileExistsError: [Errno 17] File exists: '/Users/dale/src/gecko/obj-x86_64-apple-darwin18.6.0/_virtualenvs/init_py3/lib/python3.7/config-3.7m-darwin' | |
Error running mach: | |
['artifact', 'toolchain', '--from-build', 'macosx64-clang'] | |
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 can invoke |./mach busted| to check if this issue is already on file. If it | |
isn't, please use |./mach busted file| to report it. If |./mach busted| is | |
misbehaving, you can also inspect the dependencies of bug 1543241. | |
If filing a bug, please include the full output of mach, including this error | |
message. | |
The details of the failure are as follows: | |
Exception: Failed to create virtualenv: /Users/dale/src/gecko/obj-x86_64-apple-darwin18.6.0/_virtualenvs/init_py3 (virtualenv.py retcode: 1) | |
File "/Users/dale/src/gecko/python/mozbuild/mozbuild/artifact_commands.py", line 452, in artifact_toolchain | |
self._ensure_zstd() | |
File "/Users/dale/src/gecko/python/mozbuild/mozbuild/base.py", line 866, in _ensure_zstd | |
self._activate_virtualenv() | |
File "/Users/dale/src/gecko/python/mozbuild/mozbuild/base.py", line 840, in _activate_virtualenv | |
self.virtualenv_manager.ensure() | |
File "/Users/dale/src/gecko/python/mozbuild/mozbuild/virtualenv.py", line 186, in ensure | |
return self.build(python) | |
File "/Users/dale/src/gecko/python/mozbuild/mozbuild/virtualenv.py", line 486, in build | |
self.create(python) | |
File "/Users/dale/src/gecko/python/mozbuild/mozbuild/virtualenv.py", line 251, in create | |
self.virtualenv_root, result)) | |
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 can invoke |./mach busted| to check if this issue is already on file. If it | |
isn't, please use |./mach busted file| to report it. If |./mach busted| is | |
misbehaving, you can also inspect the dependencies of bug 1543241. | |
If filing a bug, please include the full output of mach, including this error | |
message. | |
The details of the failure are as follows: | |
subprocess.CalledProcessError: Command '['/usr/local/opt/python/bin/python3.7', '/Users/dale/src/gecko/mach', 'artifact', 'toolchain', '--from-build', 'macosx64-clang']' returned non-zero exit status 1. | |
File "/Users/dale/src/gecko/python/mozboot/mozboot/mach_commands.py", line 44, in bootstrap | |
bootstrapper.bootstrap() | |
File "/Users/dale/src/gecko/python/mozboot/mozboot/bootstrap.py", line 544, in bootstrap | |
checkout_root) | |
File "/Users/dale/src/gecko/python/mozboot/mozboot/bootstrap.py", line 402, in maybe_install_private_packages_or_exit | |
self.instance.ensure_stylo_packages(state_dir, checkout_root) | |
File "/Users/dale/src/gecko/python/mozboot/mozboot/osx.py", line 563, in ensure_stylo_packages | |
self.install_toolchain_artifact(state_dir, checkout_root, stylo.MACOS_CLANG) | |
File "/Users/dale/src/gecko/python/mozboot/mozboot/base.py", line 358, in install_toolchain_artifact | |
subprocess.check_call(cmd, cwd=state_dir) | |
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 363, in check_call | |
raise CalledProcessError(retcode, cmd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment