Build Error Windows branch 3440

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Build Error Windows branch 3440

Postby wanghongliang » Tue Aug 14, 2018 4:07 am

I follow https://bitbucket.org/chromiumembedded/ ... QuickStart Guide
and update.bat
Code: Select all
set GIT_SSL_NO_VERIFY=true
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
set GN_DEFINES=use_jumbo_build=true
set GN_ARGUMENTS=--ide=vs2017 --sln=cef --filters=//cef/*
python ..\automate\automate-git.py --download-dir=C:\code\chromium_git --depot-tools-dir=c:\depot_tools --no-distrib --no-build --branch=3440 --no-depot-tools-update


then,create.bat
Code: Select all
set CEF_USE_GN=1
set GN_DEFINES=use_jumbo_build=true
set GN_ARGUMENTS=--ide=vs2017 --sln=cef --filters=//cef/*
call cef_create_projects.bat


but I'm eventually running into the following errors::
Code: Select all
Generating CEF project files...
________ running 'gn gen out\Debug_GN_x86 --ide=vs2017 --sln=cef --filters=//cef
/*' in 'C:\code\chromium_git\chromium\src'
ERROR Unresolved dependencies.
//content/renderer:renderer(//build/toolchain/win:win_clang_x86)
  needs //third_party/webrtc/api:optional(//build/toolchain/win:win_clang_x86)
//third_party/blink/public:blink_headers(//build/toolchain/win:win_clang_x86)
  needs //third_party/webrtc/api:optional(//build/toolchain/win:win_clang_x86)

Traceback (most recent call last):
  File "tools\gclient_hook.py", line 133, in <module>
    RunAction(src_dir, cmd)
  File "C:\code\chromium_git\chromium\src\cef\tools\gclient_util.py", line 39, i
n RunAction
    gclient_utils.CheckCallAndFilterAndHeader(command, cwd=dir, always=True)
  File "C:\depot_tools\gclient_utils.py", line 314, in CheckCallAndFilterAndHead
er
    return CheckCallAndFilter(args, **kwargs)
  File "C:\depot_tools\gclient_utils.py", line 578, in CheckCallAndFilter
    rv, args, kwargs.get('cwd', None), None, None)
subprocess2.CalledProcessError: Command 'gn gen out\\Debug_GN_x86 --ide=vs2017 -
-sln=cef --filters=//cef/*' returned non-zero exit status 1 in C:\code\chromium_
git\chromium\src
C:\code\chromium_git\chromium\src\cef>


I check the python file,and discover the error is c:\depot_tools\gclient_utils.py, funtion CheckCallAndFilter, line 557
Code: Select all
kid = subprocess2.Popen(
        args, bufsize=0, stdout=subprocess2.PIPE, stderr=subprocess2.STDOUT,
        **kwargs)
rv = kid.wait()

rv=1 means "Abnormal exit of child process"
Any thoughts about why it might be wrong?

Thanks
wanghongliang
Techie
 
Posts: 11
Joined: Tue Aug 14, 2018 3:46 am

Re: Build Error Windows branch 3440

Postby magreenblatt » Tue Aug 14, 2018 10:58 am

wanghongliang wrote:I follow https://bitbucket.org/chromiumembedded/ ... QuickStart Guide
and update.bat
Code: Select all
set GIT_SSL_NO_VERIFY=true
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
set GN_DEFINES=use_jumbo_build=true
set GN_ARGUMENTS=--ide=vs2017 --sln=cef --filters=//cef/*
python ..\automate\automate-git.py --download-dir=C:\code\chromium_git --depot-tools-dir=c:\depot_tools --no-distrib --no-build --branch=3440 --no-depot-tools-update

These commands do not follow the instructions in the MasterBuildQuickStart Guide. Is something failing during this step?
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Build Error Windows branch 3440

Postby cwbraaksma » Fri Feb 15, 2019 10:11 am

Dear forum-members,

I have the same error:

subprocess2.CalledProcessError: Command 'gn gen out\\Debug_GN_x86 --ide=vs2017 --sln=cef --filters=//cef/*' returned non-zero exit status 1 in C:\code\chromium_git\chromium\src

Have anybody a solution?

Wbr,

Kees
cwbraaksma
Newbie
 
Posts: 2
Joined: Fri Feb 15, 2019 9:55 am

Re: Build Error Windows branch 3440

Postby magreenblatt » Fri Feb 15, 2019 1:31 pm

cwbraaksma wrote:Dear forum-members,

I have the same error:

subprocess2.CalledProcessError: Command 'gn gen out\\Debug_GN_x86 --ide=vs2017 --sln=cef --filters=//cef/*' returned non-zero exit status 1 in C:\code\chromium_git\chromium\src

Have anybody a solution?

Wbr,

Kees

What branch are you building? What error do you get if you execute the command directly?
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Build Error Windows branch 3440

Postby cwbraaksma » Mon Feb 18, 2019 2:26 am

Dear magreenblatt,

Maybe I had last friday my "almost weekend blackout" but I didnt see the problem.

The solution was given 10/15 lines above the error:

Exception: dbghelp.dll not found in "C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\dbghelp.dll"
You must install the "Debugging Tools for WIndows" feature from the Windows 10 SDK.
ERROR at //build/toolchain/win/BUILD.gn:50:3: Script returned non-zero exit code.

I installed this SDK and now is working fine!

Thx for trying to help me.

With best regards,

Kees
cwbraaksma
Newbie
 
Posts: 2
Joined: Fri Feb 15, 2019 9:55 am

Re: Build Error Windows branch 3440

Postby akhudairy » Sun Nov 01, 2020 4:00 am

I had similar issure for missing cl.exe, also the error was a little up and I didn't see it at first.

Solved it by installing c++ features in visual studio and I added the cl.exe to the path (C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\bin\Hostx86\x64)
akhudairy
Techie
 
Posts: 24
Joined: Wed Oct 21, 2020 7:35 am


Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 78 guests

cron