Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Error building Ceff

Post Reply
alpires2000
Posts: 48
Joined: Sat Dec 09, 2017 4:40 pm

Error building Ceff

Post by alpires2000 »

Hi Salvador, I'm trying to build ceff but an error is occurring, could you help me with this isue?

Code: Select all

Generating CEF project files...
Creating d:\code\chromium_git\chromium\src\out\Debug_GN_x64 directory.
Done. Made 19517 targets from 3566 files in 187457ms
Applying issue #1999 fix to d:\code\chromium_git\chromium\src\out\Debug_GN_x64\obj\cef\libcef.ninja
Creating d:\code\chromium_git\chromium\src\out\Release_GN_x64 directory.
Traceback (most recent call last):
  File "d:\code\chromium_git\chromium\src\tools\update_pgo_profiles.py", line 166, in <module>
    sys.exit(main())
             ^^^^^^
  File "d:\code\chromium_git\chromium\src\tools\update_pgo_profiles.py", line 162, in main
    return args.func(args)
           ^^^^^^^^^^^^^^^
  File "d:\code\chromium_git\chromium\src\tools\update_pgo_profiles.py", line 106, in _get_profile_path
    raise RuntimeError(
RuntimeError: requested profile "d:\code\chromium_git\chromium\src\chrome\build\pgo_profiles\chrome-win64-6167-1706032279-97e63d82a0938b7701d8cdf028299c39d523a3c6.profdata" doesn't exist, please make sure "checkout_pgo_profiles" is set to True in the "custom_vars" section of your .gclient file, e.g.:
solutions = [
  {
    "name": "src",
    # ...
    "custom_vars": {
      "checkout_pgo_profiles": True,
    },
  },
],
and then run "gclient runhooks" to download it. You can also simply disable the PGO optimizations by setting |chrome_pgo_phase = 0| in your GN arguments.
ERROR at //build/config/compiler/pgo/BUILD.gn:113:23: Script returned non-zero exit code.
      pgo_data_path = exec_script("//tools/update_pgo_profiles.py",
                      ^----------
Current dir: d:/code/chromium_git/chromium/src/out/Release_GN_x64/
Command: d:/code/chromium_git/depot_tools/bootstrap-2@3_11_6_chromium_30_bin/python3/bin/python3.exe d:/code/chromium_git/chromium/src/tools/update_pgo_profiles.py --target win64 get_profile_path
Returned 1.
See //build/config/BUILDCONFIG.gn:351:3: which caused the file to be included.
  "//build/config/compiler/pgo:default_pgo_flags",
  ^----------------------------------------------
Traceback (most recent call last):
  File "d:\code\chromium_git\chromium\src\cef\tools\gclient_hook.py", line 149, in <module>
    RunAction(src_dir, cmd)
  File "d:\code\chromium_git\chromium\src\cef\tools\gclient_util.py", line 35, in RunAction
    gclient_utils.CheckCallAndFilter(
  File "d:\code\chromium_git\depot_tools\gclient_utils.py", line 712, in CheckCallAndFilter
    raise subprocess2.CalledProcessError(rv, args, kwargs.get('cwd', None),
subprocess2.CalledProcessError: Command 'gn gen out\\Release_GN_x64' returned non-zero exit status 1 in d:\code\chromium_git\chromium\src
Traceback (most recent call last):
  File "d:\code\chromium_git\chromium\src\tools\update_pgo_profiles.py", line 166, in <module>
    sys.exit(main())
             ^^^^^^
  File "d:\code\chromium_git\chromium\src\tools\update_pgo_profiles.py", line 162, in main
    return args.func(args)
           ^^^^^^^^^^^^^^^
  File "d:\code\chromium_git\chromium\src\tools\update_pgo_profiles.py", line 106, in _get_profile_path
    raise RuntimeError(
RuntimeError: requested profile "d:\code\chromium_git\chromium\src\chrome\build\pgo_profiles\chrome-win64-6167-1706032279-97e63d82a0938b7701d8cdf028299c39d523a3c6.profdata" doesn't exist, please make sure "checkout_pgo_profiles" is set to True in the "custom_vars" section of your .gclient file, e.g.:
solutions = [
  {
    "name": "src",
    # ...
    "custom_vars": {
      "checkout_pgo_profiles": True,
    },
  },
],
and then run "gclient runhooks" to download it. You can also simply disable the PGO optimizations by setting |chrome_pgo_phase = 0| in your GN arguments.
ERROR at //build/config/compiler/pgo/BUILD.gn:113:23: Script returned non-zero exit code.
      pgo_data_path = exec_script("//tools/update_pgo_profiles.py",
                      ^----------
Current dir: d:/code/chromium_git/chromium/src/out/Release_GN_x64/
Command: d:/code/chromium_git/depot_tools/bootstrap-2@3_11_6_chromium_30_bin/python3/bin/python3.exe d:/code/chromium_git/chromium/src/tools/update_pgo_profiles.py --target win64 get_profile_path
Returned 1.
See //build/config/BUILDCONFIG.gn:351:3: which caused the file to be included.
  "//build/config/compiler/pgo:default_pgo_flags",
  ^----------------------------------------------

Traceback (most recent call last):
  File "D:\code\automate\automate-git.py", line 1336, in <module>
    run('%s %s' % (python_exe, tool), cef_src_dir, depot_tools_dir)
  File "D:\code\automate\automate-git.py", line 66, in run
    return subprocess.check_call(
           ^^^^^^^^^^^^^^^^^^^^^^
  File "D:\code\depot_tools\bootstrap-2@3_11_6_chromium_30_bin\python3\bin\Lib\subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['d:\\code\\chromium_git\\depot_tools\\python3.bat', 'd:\\code\\chromium_git\\chromium\\src\\cef\\tools\\gclient_hook.py']' returned non-zero exit status 1.
D:\code>
alpires2000
Posts: 48
Joined: Sat Dec 09, 2017 4:40 pm

Re: Error building Ceff

Post by alpires2000 »

Problem solved, the --with-pgo-profiles parameter was missing in the bat file.
Post Reply