Open
Bug 1415087
Opened 7 years ago
Updated 2 years ago
building firefox on windows error
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: slei.casper, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36
Steps to reproduce:
I just follow steps in this page(https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Windows_Prerequisites) and I got the following error
Actual results:
$ ./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
Running pip to ensure Mercurial is up-to-date...
Requirement already up-to-date: Mercurial in c:\mozilla-build\python\lib\site-packages
Your version of Python (2.7.13) is new enough.
Your version of Rust (1.21.0) is new enough.
Rust supports i686-pc-windows-msvc, x86_64-pc-windows-msvc targets.
Mozilla recommends a number of changes to Mercurial to enhance your
experience with it.
Would you like to run a configuration wizard to ensure Mercurial is
optimally configured?
1. Yes
2. No
Please enter your reply: 3
ERROR! Please enter a valid option!
Mozilla recommends a number of changes to Mercurial to enhance your
experience with it.
Would you like to run a configuration wizard to ensure Mercurial is
optimally configured?
1. Yes
2. No
Please enter your reply: 2
Error running mach:
['artifact', 'toolchain', '--from-build', 'win64-clang-cl']
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:
TypeError: __init__() takes exactly 5 arguments (4 given)
File "c:\mozilla-source\mozilla-central\python/mozbuild/mozbuild/mach_commands.py", line 1918, in artifact_toolchain
toolchains = tasks('toolchain')
File "c:\mozilla-source\mozilla-central\python/mozbuild/mozbuild/mach_commands.py", line 1912, in tasks
tasks = Kind(kind, kind_path, config).load_tasks(params, {})
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:\\mozilla-build\\python\\python2.7.exe', u'c:\\mozilla-source\\mozilla-central\\mach', u'artifact', u'toolchain', u'--from-build', u'win64-clang-cl']' returned non-zero exit status 1
File "c:\mozilla-source\mozilla-central\python/mozboot/mozboot/mach_commands.py", line 32, in bootstrap
bootstrapper.bootstrap()
File "c:\mozilla-source\mozilla-central\python/mozboot\mozboot\bootstrap.py", line 372, in bootstrap
self.instance.ensure_stylo_packages(state_dir, checkout_root)
File "c:\mozilla-source\mozilla-central\python/mozboot\mozboot\mozillabuild.py", line 49, in ensure_stylo_packages
self.install_toolchain_artifact(state_dir, checkout_root, stylo.WINDOWS)
File "c:\mozilla-source\mozilla-central\python/mozboot\mozboot\base.py", line 285, in install_toolchain_artifact
subprocess.check_call(cmd, cwd=state_dir)
File "c:\mozilla-build\python\lib\subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
Updated•7 years ago
|
Component: Untriaged → mach
Product: Firefox → Core
Updated•7 years ago
|
Component: mach → Build Config
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•