Could not find a suitable make implementation
Categories
(Firefox Build System :: General, task)
Tracking
(Not tracked)
People
(Reporter: zhang_xianfa, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36
Steps to reproduce:
according the manual
1.install vs2019
2.install MozillaBuild latest
3.hg clone https://hg.mozilla.org/mozilla-central
4../mach bootstrap ./mach build
Actual results:
$ ./mach build
Config object not found by mach.
0:00.79 Clobber not needed.
0:00.79 Adding make options from d:\OpenSource\mozilla-source\mozilla-central.mozconfig
MOZ_CO_PROJECT=browser
MOZ_MAKE_FLAGS=-j1
MOZ_OBJDIR=d:/OpenSource/mozilla-source/mozilla-central/obj-x86_64-pc-mingw32
OBJDIR=d:/OpenSource/mozilla-source/mozilla-central/obj-x86_64-pc-mingw32
FOUND_MOZCONFIG=d:/OpenSource/mozilla-source/mozilla-central/.mozconfig
export FOUND_MOZCONFIG
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 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: Could not find a suitable make implementation.
Please use MozillaBuild 1.9 or newer
File "d:\OpenSource\mozilla-source\mozilla-central\python/mozbuild\mozbuild\build_commands.py", line 138, in build
append_env=append_env)
File "d:\OpenSource\mozilla-source\mozilla-central\python/mozbuild\mozbuild\controller\building.py", line 1070, in build
append_env=append_env)
File "d:\OpenSource\mozilla-source\mozilla-central\python/mozbuild\mozbuild\controller\building.py", line 1367, in configure
append_env=append_env)
File "d:\OpenSource\mozilla-source\mozilla-central\python/mozbuild\mozbuild\controller\building.py", line 1517, in _run_client_mk
append_env=append_env)
File "d:\OpenSource\mozilla-source\mozilla-central\python/mozbuild\mozbuild\base.py", line 663, in _run_make
args = self._make_path()
File "d:\OpenSource\mozilla-source\mozilla-central\python/mozbuild\mozbuild\base.py", line 791, in _make_path
raise Exception('Could not find a suitable make implementation.\n'
Expected results:
compile no problem
D:\OpenSource\mozilla-source\mozilla-central\python\mozbuild\mozbuild\base.py
line 776 make = which(test) always return None
I am not familiar with python, and didn't know why.
This is just my environment variable problem.
Comment 2•6 years ago
|
||
Could you explain how you fixed the issue? (for people who might have the same issue)
thanks
btw, we have a new doc: https://firefox-source-docs.mozilla.org/tools/docs/contribute/how_to_contribute_firefox.html
The error on my machine is UnicodeDecodeError: 'ascii' codec can't decode byte 0xa3 in position 4: ordinal not in range(128) at first。
I search it and change use reload(sys), sys.setDefaultEncode('utf-8');
then this error occour. I watch the mach script and find make=which(test) always is None, But know nothing about it, so put this bug for help.
The reason is the PATHEXT environment variable is not correct. Like this :.MSC;.PY; change to::.MSC;.PY;
Description
•