Page 1 of 1

[Solved]Build error no_check_targets

PostPosted: Thu Jul 15, 2021 6:11 am
by xuyu
I use automate-git.py script to download branch 4430 and try to build, but I got the following errors after CEF patch applied:

Code: Select all
Generating CEF project files...
Creating D:\google\cef_new\chromium\src\out\Debug_GN_x86 directory.
ERROR at //.gn:65:20: Assignment had no effect.
no_check_targets = [
                   ^
You set the variable "no_check_targets" here and it was unused before it went
out of scope.
Traceback (most recent call last):
  File "D:\google\cef_new\chromium\src\cef\tools\gclient_hook.py", line 146, in <module>
    RunAction(src_dir, cmd)
  File "D:\google\cef_new\chromium\src\cef\tools\gclient_util.py", line 35, in RunAction
    gclient_utils.CheckCallAndFilter(
  File "D:\google\cef_new\depot_tools\gclient_utils.py", line 673, in CheckCallAndFilter
    raise subprocess2.CalledProcessError(
subprocess2.CalledProcessError: Command 'gn gen out\\Debug_GN_x86 --ide=vs2019 --sln=cef --filters=//cef/*' returned non-zero exit status 1 in D:\google\cef_new\chromium\src
Traceback (most recent call last):
  File "D:\google\cef_new\automate-git.py", line 1462, in <module>
    run('%s %s' % (python_exe, tool), cef_src_dir, depot_tools_dir)
  File "D:\google\cef_new\automate-git.py", line 69, in run
    return subprocess.check_call(
  File "C:\Python39\lib\subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['D:\\google\\cef_new\\depot_tools\\python3.bat', 'D:\\google\\cef_new\\chromium\\src\\cef\\tools\\gclient_hook.py']' returned non-zero exit status 1.


My enviroment variables:
Code: Select all
set CEF_USE_GN=1
set CEF_ARCHIVE_FORMAT=tar.bz2
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
set GN_ARGUMENTS=--ide=vs2019 --sln=cef --filters=//cef/*
set GYP_MSVS_VERSION=2019


depot_tools:
Code: Select all
(HEAD detached at 9757ad58) 3/19/2021 6:31:51


Command:
Code: Select all
python automate-git.py --download-dir=D:\google\cef_new --branch=4430 --no-debug-build --client-distrib


Anyone can help me? Thanks a lot.

Re: Build error no_check_targets

PostPosted: Thu Jul 15, 2021 10:56 am
by Czarek
Try using depot_tools from March when that branch was active.

Re: Build error no_check_targets

PostPosted: Sat Jul 17, 2021 8:02 am
by xuyu
Thanks for reply! It is my mistake, I set a system variable named 'CHROMIUM_BUILDTOOLS_PATH' to Electron buildtools folder(there is a old gn file), gclient_paths.py in depot_tools will read it as gn path (function GetBuildtoolsPath), so, just delete the system variable, it works well.