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
-------- Running "ninja -C out\Debug_GN_x86 cefclient" in "f:\code\chromium_git\chromium\src"...
ninja: Entering directory `out\Debug_GN_x86'
[17882/60530] ACTION //chrome/browser/ui/webui/tab_search:mojo_bindings_ts__generator(//build/toolchain/win:win_clang_x86)
FAILED: gen/chrome/browser/ui/webui/tab_search/tab_search.mojom-webui.ts
f:/code/chromium_git/depot_tools/bootstrap-2@3_11_6_chromium_30_bin/python3/bin/python3.exe ../../mojo/public/tools/bindings/mojom_bindings_generator.py --use_bundled_pylibs -o gen generate -d ../../ -I ../../ --bytecode_path gen/mojo/public/tools/bindings --filelist=__chrome_browser_ui_webui_tab_search_mojo_bindings_ts__generator___build_toolchain_win_win_clang_x86__rule..rsp -g typescript --scrambled_message_id_salt_path ../../chrome/VERSION
Traceback (most recent call last):
File "f:\code\chromium_git\chromium\src\mojo\public\tools\bindings\mojom_bindings_generator.py", line 419, in <module>
ret = main()
^^^^^^
File "f:\code\chromium_git\chromium\src\mojo\public\tools\bindings\mojom_bindings_generator.py", line 414, in main
return args.func(args, remaining_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "f:\code\chromium_git\chromium\src\mojo\public\tools\bindings\mojom_bindings_generator.py", line 276, in _Generate
processor._GenerateModule(
File "f:\code\chromium_git\chromium\src\mojo\public\tools\bindings\mojom_bindings_generator.py", line 244, in _GenerateModule
generator.GenerateFiles(filtered_args)
File "f:\code\chromium_git\chromium\src\mojo\public\tools\bindings\generators\mojom_ts_generator.py", line 280, in GenerateFiles
self.WriteWithComment(self._GenerateWebUiModule(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "f:\code\chromium_git\chromium\src\mojo\public\tools\mojom\mojom\generate\template_expander.py", line 34, in GeneratorInternal
parameters = generator(*args, **kwargs2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "f:\code\chromium_git\chromium\src\mojo\public\tools\bindings\generators\mojom_ts_generator.py", line 266, in _GenerateWebUiModule
return self._GetParameters()
^^^^^^^^^^^^^^^^^^^^^
File "f:\code\chromium_git\chromium\src\mojo\public\tools\bindings\generators\mojom_ts_generator.py", line 228, in _GetParameters
self._GetJsModuleImports(),
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "f:\code\chromium_git\chromium\src\mojo\public\tools\bindings\generators\mojom_ts_generator.py", line 633, in _GetJsModuleImports
os.path.relpath(
File "<frozen ntpath>", line 766, in relpath
ValueError: path is on mount '\\\\tab_group_types.mojom-webui.js', start on mount 'f:'
[17889/60530] CXX obj/v8/cppgc_base/object-size-trait.obj
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "automate\automate-git.py", line 1357, in <module>
run(command + build_path + target, chromium_src_dir, depot_tools_dir,
File "automate\automate-git.py", line 66, in run
return subprocess.check_call(
File "F:\code\depot_tools\bootstrap-3_8_0_chromium_8_bin\python3\bin\lib\subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', 'out\\Debug_GN_x86', 'cefclient']' 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
python3 automate\automate-git.py --download-dir=f:\code\chromium_git --branch=6099 --with-pgo-profiles
The following is the build environment.
Windows 11 Pro 23H2 (Japanese)
Visual Studio 2022 Version 17.8.3
Win SDK 10.0.22621.2428
I have successfully built 120.2.3 on January 6.
Do I need to do anything extra to build the latest branch?