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 "gclient revert --nohooks" in "c:\code\chromium_git\chromium"...
1>Syncing projects: 0% ( 0/ 2)
[0:01:01] Still working on:
[0:01:01] src
Syncing projects: 92% (66/71) src/third_party/dawn
src/third_party/libFuzzer/src (ERROR)
----------------------------------------
[0:01:06] Started.
----------------------------------------
Traceback (most recent call last):
File "c:\code\chromium_git\depot_tools\gclient_scm.py", line 996, in revert
deps_revision = self.GetUsableRev(deps_revision, options)
File "c:\code\chromium_git\depot_tools\gclient_scm.py", line 1056, in GetUsableRev
raise NoUsableRevError(
gclient_scm.NoUsableRevError: 62> Hash 26cc39e59b2bf5cbc20486296248a842c536878d does not appear to be a valid hash in this repo.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\code\chromium_git\depot_tools\metrics.py", line 301, in print_notice_and_exit
yield
File "c:\code\chromium_git\depot_tools\gclient.py", line 3548, in <module>
sys.exit(main(sys.argv[1:]))
File "c:\code\chromium_git\depot_tools\gclient.py", line 3534, in main
return dispatcher.execute(OptionParser(), argv)
File "c:\code\chromium_git\depot_tools\subcommand.py", line 252, in execute
return command(parser, args[1:])
File "c:\code\chromium_git\depot_tools\gclient.py", line 3168, in CMDrevert
return client.RunOnDeps('revert', args)
File "c:\code\chromium_git\depot_tools\gclient.py", line 2041, in RunOnDeps
work_queue.flush(revision_overrides,
File "c:\code\chromium_git\depot_tools\gclient_utils.py", line 1016, in flush
reraise(e[0], e[1], e[2])
File "c:\code\chromium_git\depot_tools\gclient_utils.py", line 70, in reraise
raise value
File "c:\code\chromium_git\depot_tools\gclient_utils.py", line 1093, in run
self.item.run(*self.args, **self.kwargs)
File "c:\code\chromium_git\depot_tools\gclient.py", line 1010, in run
self._got_revision = self._used_scm.RunCommand(command, options, args,
File "c:\code\chromium_git\depot_tools\gclient_scm.py", line 128, in RunCommand
return getattr(self, command)(options, args, file_list)
File "c:\code\chromium_git\depot_tools\gclient_scm.py", line 1002, in revert
e.message)
AttributeError: 'NoUsableRevError' object has no attribute 'message'
Traceback (most recent call last):
File "automate\automate-git.py", line 1232, in <module>
run("gclient revert --nohooks", chromium_dir, depot_tools_dir)
File "automate\automate-git.py", line 67, in run
args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
File "C:\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 '['gclient', 'revert', '--nohooks']' returned non-zero exit status 1
C:\code>python automate\automate-git.py --download-dir=c:\code\chromium_git --branch=5790 --with-pgo-profiles
--> Download Directory: c:\code\chromium_git
--> Depot Tools Directory: c:\code\chromium_git\depot_tools
--> Extracting https://storage.googleapis.com/chrome-infra/depot_tools.zip to c:\code\chromium_git\depot_tools.
--> Updating depot_tools
-------- Running "update_depot_tools.bat" in "c:\code\chromium_git\depot_tools"...
Updating depot_tools...
Downloading CIPD client for windows-amd64 from https://chrome-infra-packages.appspot.com/client?platform=windows-amd64&version=git_revision:6e9be28a4c4e3a804f400dc6c2ed08b866f0a38b...
--> CEF Branch: 5790
--> CEF URL: https://bitbucket.org/chromiumembedded/cef.git
--> CEF Source Directory: c:\code\chromium_git\cef
-------- Running "c:\code\chromium_git\depot_tools\git.bat clone https://bitbucket.org/chromiumembedded/cef.git c:\code\chromium_git\cef" in "c:\code\chromium_git"...
Cloning into 'c:\code\chromium_git\cef'...
Receiving objects: 100% (83930/83930), 30.48 MiB | 19.17 MiB/s, done.
Resolving deltas: 100% (72569/72569), done.
-------- Running "c:\code\chromium_git\depot_tools\git.bat rev-parse HEAD" in "c:\code\chromium_git\cef"...
-------- Running "c:\code\chromium_git\depot_tools\git.bat rev-parse origin/5790" in "c:\code\chromium_git\cef"...
--> CEF Current Checkout: 52b4d7ba5a1a1eca7b3dc7267a323ea8cd6b2d0e
--> CEF Desired Checkout: a61da9b80ccf384ac214050fe75f3923e7703d4f (origin/5790)
-------- Running "c:\code\chromium_git\depot_tools\git.bat checkout origin/5790" in "c:\code\chromium_git\cef"...
Note: switching to 'origin/5790'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at a61da9b80 Update to Chromium version 115.0.5790.114
--> Reading c:\code\chromium_git\cef\CHROMIUM_BUILD_COMPATIBILITY.txt
-------- Running "c:\code\chromium_git\depot_tools\git.bat checkout df2f11113c" in "c:\code\chromium_git\depot_tools"...
Previous HEAD position was a8946f3d Roll recipe dependencies (trivial).
HEAD is now at df2f1111 Update code-owners documentation links
--> CEF Output Directory: c:\code\chromium_git\out_5790
--> Creating directory c:\code\chromium_git\chromium
--> Writing c:\code\chromium_git\chromium\.gclient
-------- Running "gclient sync --nohooks --with_branch_heads --jobs 16" in "c:\code\chromium_git\chromium"...
WARNING: Your metrics.cfg file was invalid or nonexistent. A new one will be created.
1>________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/chromium/src.git c:\code\chromium_git\chromium\_gclient_src_q5itwt6w' in 'c:\code\chromium_git\chromium'
1>Cloning into 'c:\code\chromium_git\chromium\_gclient_src_q5itwt6w'...
1>remote: Finding sources: 100% (7540/7540) objects: 1
1>remote: Total 20888399 (delta 15282245), reused 20886459 (delta 15282245)
1>Receiving objects: 100% (20888399/20888399), 41.48 GiB | 33.72 MiB/s, done.
1>Resolving deltas: 100% (15282245/15282245), done.
1>Checking objects: 100% (67108864/67108864), done.
[1:20:04] Still working on:
[1:20:04] src
[1:20:14] Still working on:
[1:20:14] src
[1:20:24] Still working on:
[1:20:24] src
[1:20:34] Still working on:
[1:20:34] src
[1:20:44] Still working on:
[1:20:44] src
[1:20:54] Still working on:
[1:20:54] src
[1:21:04] Still working on:
[1:21:04] src
[1:21:14] Still working on:
[1:21:14] src
[1:21:24] Still working on:
[1:21:24] src
[1:21:34] Still working on:
[1:21:34] src
[1:21:44] Still working on:
[1:21:44] src
[1:21:54] Still working on:
[1:21:54] src
[1:22:04] Still working on:
[1:22:04] src
[1:22:14] Still working on:
[1:22:14] src
[1:22:24] Still working on:
[1:22:24] src
[1:22:34] Still working on:
[1:22:34] src
[1:22:44] Still working on:
[1:22:44] src
[1:22:54] Still working on:
[1:22:54] src
[1:23:04] Still working on:
[1:23:04] src
[1:23:14] Still working on:
[1:23:14] src
[1:23:24] Still working on:
[1:23:24] src
[1:23:34] Still working on:
[1:23:34] src
[1:23:44] Still working on:
[1:23:44] src
[1:23:54] Still working on:
[1:23:54] src
[1:24:04] Still working on:
[1:24:04] src
[1:24:14] Still working on:
[1:24:14] src
[1:24:24] Still working on:
[1:24:24] src
[1:24:34] Still working on:
[1:24:34] src
[1:24:44] Still working on:
[1:24:44] src
1>Syncing projects: 0% ( 0/ 2)
[1:24:51] Still working on:
[1:24:51] src
Syncing projects: 98% (96/97) src/third_party/dawn
src/third_party/openscreen/src (ERROR)
----------------------------------------
[1:26:51] Started.
[1:26:51]
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/openscreen c:\code\chromium_git\chromium\src\third_party\openscreen\_gclient_src_iafa1loi' in 'c:\code\chromium_git\chromium'
[1:26:51] Cloning into 'c:\code\chromium_git\chromium\src\third_party\openscreen\_gclient_src_iafa1loi'...
[1:26:53] remote: Sending approximately 71.43 MiB ...Counting objects: 1
[1:26:53] remote: Finding sources: 2% (1/45)
[1:26:53] remote: Finding sources: 11% (5/45)
[1:26:53] remote: Finding sources: 100% (45/45)
[1:26:53] Receiving objects: 0% (1/25626)
[1:26:53] Receiving objects: 10% (2563/25626)
[1:26:55] Receiving objects: 43% (11020/25626), 8.49 MiB | 8.38 MiB/s
[1:26:56] Receiving objects: 49% (12663/25626), 25.94 MiB | 9.44 MiB/s
[1:26:57] Receiving objects: 72% (18614/25626), 42.41 MiB | 9.89 MiB/s
[1:26:59] Receiving objects: 75% (19220/25626), 49.68 MiB | 9.45 MiB/s
[1:27:00] Receiving objects: 91% (23320/25626), 61.60 MiB | 8.85 MiB/s
[1:27:00] remote: Total 25626 (delta 12994), reused 25624 (delta 12994)
[1:27:00] Receiving objects: 100% (25626/25626), 67.17 MiB | 9.28 MiB/s
[1:27:00] Resolving deltas: 0% (0/12994)
[1:27:00] Resolving deltas: 10% (1300/12994)
[1:27:01] Resolving deltas: 100% (12994/12994)
[1:27:09] Finished running: git checkout --quiet ec5ca20a5df44a912c99ad1cd3459a40db23e020
[1:27:09] Finished running: git rev-parse --abbrev-ref=strict HEAD
[1:27:09] Checked out ec5ca20a5df44a912c99ad1cd3459a40db23e020 to a detached HEAD. Before making any commits
in this repo, you should use 'git checkout <branch>' to switch
to an existing branch or use 'git checkout origin -b <branch>' to
create a new branch for your work.
[1:27:09]
[1:27:10] Finished running: git rev-parse --verify HEAD
[1:27:10] Finished running: git rev-parse HEAD
----------------------------------------
Error: 87> Wrong keys 'git_dependencies' in {'vars': {'boringssl_git': 'https://boringssl.googlesource.com', 'chromium_git': 'https://chromium.googlesource.com', 'quiche_git': 'https://quiche.googlesource.com', 'github': 'https://github.com', 'build_with_chromium': False, 'checkout_clang_coverage_tools': True, 'gn_version': 'git_revision:5e19d2fb166fbd4f6f32147fbb2f497091a54ad8', 'clang_format_revision': 'e435ad79c17b1888b34df88d6a30a094936e3836', 'SUBMODULE_MIGRATION': 'True'}, 'use_relative_paths': True, 'git_dependencies': 'SYNC', 'deps': {'buildtools': {'url': 'https://chromium.googlesource.com/chromium/src/buildtools@3c7e3f1b8b1e4c0b6ec693430379cea682de78d6', 'condition': 'not build_with_chromium'}, 'third_party/clang-format/script': {'url': 'https://chromium.googlesource.com/external/github.com/llvm/llvm-project/clang/tools/clang-format.git@f97059df7f8b205064625cdb5f97b56668a125ef', 'condition': 'not build_with_chromium'}, 'buildtools/linux64': {'packages': [{'package': 'gn/gn/linux-amd64', 'version': 'git_revision:3fccef9033b950e8935e8debeba9fbd71617bc74'}], 'dep_type': 'cipd', 'condition': 'host_os == "linux" and not build_with_chromium'}, 'buildtools/mac': {'packages': [{'package': 'gn/gn/mac-${arch}', 'version': 'git_revision:3fccef9033b950e8935e8debeba9fbd71617bc74'}], 'dep_type': 'cipd', 'condition': 'host_os == "mac" and not build_with_chromium'}, 'third_party/ninja': {'packages': [{'package': 'infra/3pp/tools/ninja/${platform}', 'version': 'version:2@1.8.2.chromium.3'}], 'dep_type': 'cipd', 'condition': 'not build_with_chromium'}, 'third_party/protobuf/src': {'url': 'https://chromium.googlesource.com/external/github.com/protocolbuffers/protobuf.git@909a0f36a10075c4b4bc70fdee2c7e32dd612a72', 'condition': 'not build_with_chromium'}, 'third_party/libprotobuf-mutator/src': {'url': 'https://chromium.googlesource.com/external/github.com/google/libprotobuf-mutator.git@a304ec48dcf15d942607032151f7e9ee504b5dcf', 'condition': 'not build_with_chromium'}, 'third_party/zlib/src': {'url': 'https://github.com/madler/zlib.git@04f42ceca40f73e2978b50e93806c2a18c1281fc', 'condition': 'not build_with_chromium'}, 'third_party/jsoncpp/src': {'url': 'https://chromium.googlesource.com/external/github.com/open-source-parsers/jsoncpp.git@5defb4ed1a4293b8e2bf641e16b156fb9de498cc', 'condition': 'not build_with_chromium'}, 'third_party/googletest/src': {'url': 'https://chromium.googlesource.com/external/github.com/google/googletest.git@b495f72f1f096135cf9cf8c7879b5b89250de50a', 'condition': 'not build_with_chromium'}, 'third_party/boringssl/src': {'url': 'https://boringssl.googlesource.com/boringssl.git@51ed32f1971956a904ce7b3a7ff10716e76eecd4', 'condition': 'not build_with_chromium'}, 'third_party/quiche/src': {'url': 'https://quiche.googlesource.com/quiche.git@7b58beaec1f65b8e074ddb81796e34f3d6d83cf3', 'condition': 'not build_with_chromium'}, 'third_party/tinycbor/src': 'https://chromium.googlesource.com/external/github.com/intel/tinycbor.git@d393c16f3eb30d0c47e6f9d92db62272f0ec4dc7', 'third_party/abseil/src': {'url': 'https://chromium.googlesource.com/external/github.com/abseil/abseil-cpp.git@78be63686ba732b25052be15f8d6dee891c05749', 'condition': 'not build_with_chromium'}, 'third_party/libfuzzer/src': {'url': 'https://chromium.googlesource.com/chromium/llvm-project/compiler-rt/lib/fuzzer.git@debe7d2d1982e540fbd6bd78604bf001753f9e74', 'condition': 'not build_with_chromium'}, 'third_party/modp_b64': {'url': 'https://chromium.googlesource.com/chromium/src/third_party/modp_b64@3643752c065d984647f0ded68a9a01926fb3b9cd', 'condition': 'not build_with_chromium'}, 'third_party/valijson/src': {'url': 'https://github.com/tristanpenman/valijson.git@78ac8a737df56b5334354efe104ea8f99e2a2f00', 'condition': 'not build_with_chromium'}}, 'hooks': [{'name': 'clang_update_script', 'pattern': '.', 'condition': 'not build_with_chromium', 'action': ['tools/download-clang-update-script.py', '--output', 'tools/clang/scripts/update.py']}, {'name': 'update_clang', 'pattern': '.', 'condition': 'not build_with_chromium', 'action': ['python3', 'tools/clang/scripts/update.py']}, {'name': 'clang_coverage_tools', 'pattern': '.', 'condition': 'not build_with_chromium and checkout_clang_coverage_tools', 'action': ['python3', 'tools/clang/scripts/update.py', '--package=coverage_tools']}, {'name': 'clang_format_linux64', 'pattern': '.', 'action': ['download_from_google_storage.py', '--no_resume', '--no_auth', '--bucket', 'chromium-clang-format', '-s', 'buildtools/linux64/clang-format.sha1'], 'condition': 'host_os == "linux" and not build_with_chromium'}, {'name': 'clang_format_mac_x64', 'pattern': '.', 'action': ['download_from_google_storage.py', '--no_resume', '--no_auth', '--bucket', 'chromium-clang-format', '-s', 'buildtools/mac/clang-format.x64.sha1'], 'condition': 'host_os == "mac" and host_cpu == "x64" and not build_with_chromium'}, {'name': 'clang_format_mac_arm64', 'pattern': '.', 'action': ['download_from_google_storage.py', '--no_resume', '--no_auth', '--bucket', 'chromium-clang-format', '-s', 'buildtools/mac/clang-format.arm64.sha1'], 'condition': 'host_os == "mac" and host_cpu == "arm64" and not build_with_chromium'}], 'include_rules': ['+util', '+platform/api', '+platform/base', '+platform/test', '+testing/util', '+third_party', '-discovery', '+discovery/common', '+discovery/dnssd/public', '+discovery/mdns/public', '+discovery/public', '-third_party/abseil', '+absl/algorithm/container.h', '+absl/base/thread_annotations.h', '+absl/hash/hash.h', '+absl/hash/hash_testing.h', '+absl/strings/ascii.h', '+absl/strings/match.h', '+absl/strings/numbers.h', '+absl/strings/str_cat.h', '+absl/strings/str_join.h', '+absl/strings/str_replace.h', '+absl/strings/str_split.h', '+absl/strings/string_view.h', '+absl/strings/substitute.h', '+absl/types/optional.h', '+absl/types/span.h', '+absl/types/variant.h', '-third_party/boringssl', '-third_party/googletest', '+gtest', '+gmock']}
Traceback (most recent call last):
File "automate\automate-git.py", line 1161, in <module>
chromium_dir, depot_tools_dir)
File "automate\automate-git.py", line 67, in run
args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
File "C:\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 '['gclient', 'sync', '--nohooks', '--with_branch_heads', '--jobs', '16']' 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=c:\code\chromium_git --branch=5790 --with-pgo-profiles
The following is the build environment.
Windows 11 Pro 22H2 (Japanese)
Visual Studio 2022 Version 17.6.5
Win SDK 10.0.22621.1778
Do I need to do anything extra to build the 5790 branch?