How to fix this Build error for Chromium browser in Windows?

1.3k Views Asked by At

I've built the Chromium browser on my Windows from its official source code by following this documentation.

I made some changes and executed my first build and ran into some errors.

The error are as follows:

THE ERROR ON EVERY BUILD:

[298/50478] ACTION //chrome/browser/resource_coordinator:mojo_bindings__parser(//build/toolchain/win:win_clang_x64)
FAILED: gen/chrome/browser/resource_coordinator/lifecycle_unit_state.mojom-module
C:/src/depot_tools/bootstrap-2@3_8_10_chromium_17_bin/python/bin/python.exe ../../mojo/public/tools/mojom/mojom_parser.py --input-root "C:/Users/Paras H S/chromium/src" --input-root "C:/Users/Paras H S/chromium/src/out/Default/gen" --output-root "C:/Users/Paras H S/chromium/src/out/Default/gen" --mojom-file-list=__chrome_browser_resource_coordinator_mojo_bindings__parser___build_toolchain_win_win_clang_x64__rule..rsp --check-imports "C:/Users/Paras H S/chromium/src/out/Default/gen/chrome/browser/resource_coordinator/mojo_bindings.build_metadata" --enable-feature is_win --add-module-metadata webui_module_path=/chrome/browser/resource_coordinator
Traceback (most recent call last):
  File "../../mojo/public/tools/mojom/mojom_parser.py", line 443, in <module>
    Run(sys.argv[1:])
  File "../../mojo/public/tools/mojom/mojom_parser.py", line 435, in Run
    module_metadata, allowed_imports)
  File "../../mojo/public/tools/mojom/mojom_parser.py", line 252, in _ParseMojoms
    for abs_path in mojom_files)
  File "../../mojo/public/tools/mojom/mojom_parser.py", line 252, in <genexpr>
    for abs_path in mojom_files)
  File "../../mojo/public/tools/mojom/mojom_parser.py", line 79, in _RebaseAbsolutePath
    assert os.path.isfile(path)
AssertionError
[307/50478] ACTION //chrome/browser/metrics:expired_histograms_array(//build/toolchain/win:win_clang_x64)
ninja: build stopped: subcommand failed.

I am completely a newbie at this and this is my first time working on Visual Studio(v. 2019). How can I get rid of these errors? Any help would be appreciated!!

0

There are 0 best solutions below