I followed the "Automated Method".
However, the build fails with an error.
The following is a part of the log at the time of failure.
- Code: Select all
Apply runhooks.patch in f:\code\chromium_git\chromium\src
9 5 build/toolchain/win/setup_toolchain.py
11 0 build/vs_toolchain.py
... successfully applied (with warnings):
warning: build/vs_toolchain.py has type 100644, expected 100755
-------- Running "gclient runhooks --jobs 16" in "f:\code\chromium_git\chromium"...
Running hooks: 100% (168/168), done.
--> Removing directory f:\code\chromium_git\chromium\src\out
--> Copying directory f:\code\chromium_git\cef to f:\code\chromium_git\chromium\src\cef
--> Creating directory f:\code\chromium_git\chromium\src\out
--> Writing f:\code\chromium_git\chromium\src\out\cef.branch
--> DEPOT_TOOLS_UPDATE=0
--> GN_DEFINES=proprietary_codecs=true ffmpeg_branding=Chrome is_official_build=true
--> DEPOT_TOOLS_WIN_TOOLCHAIN=0
-------- Running "f:\code\chromium_git\depot_tools\python.bat f:\code\chromium_git\chromium\src\cef\tools\gclient_hook.py" in "f:\code\chromium_git\chromium\src\cef"...
Traceback (most recent call last):
File "f:\code\chromium_git\chromium\src\cef\tools\gclient_hook.py", line 9, in <module>
from gclient_util import *
File "f:\code\chromium_git\chromium\src\cef\tools\gclient_util.py", line 28, in <module>
import gclient_utils
File "f:\code\chromium_git\depot_tools\gclient_utils.py", line 74
print('\n\nWarnings:', file=sys.stderr)
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "automate\automate-git.py", line 1336, in <module>
run('%s %s' % (python_exe, tool), cef_src_dir, depot_tools_dir)
File "automate\automate-git.py", line 67, in run
args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
File "F:\code\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['f:\\code\\chromium_git\\depot_tools\\python.bat', 'f:\\code\\chromium_git\\chromium\\src\\cef\\tools\\gclient_hook.py']' returned non-zero exit status 1
I ran the build as follows:
set GN_DEFINES=proprietary_codecs=true ffmpeg_branding=Chrome is_official_build=true
python automate\automate-git.py --download-dir=f:\code\chromium_git --branch=5993 --with-pgo-profiles
The following is the build environment.
Windows 11 Pro 22H2 (Japanese)
Visual Studio 2022 Version 17.7.5
Win SDK 10.0.22621.1778
I have successfully built branch 5938 on October 6.
The changes are
Changed to branch 5993.
Changed automate-git.py script to the latest version.
Do I need to do anything extra to build the 5993 branch?