Build Error Windows branch 3029

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 3029

Postby JasonLP » Wed Mar 15, 2017 9:59 am

I am trying to build branch 3029 on Windows using:
Code: Select all
python automate-git.py --download-dir=./ --branch=3029


Building on Windows 10, Visual Studio Professional 2015 (14.0.25421.0 Update 3) with Windows 10.0.26624 SDK installed.

I'm eventually running into the following errors:

Code: Select all
________ running 'gn gen out\Release_GN_x64 --ide=vs2015 --sln=cef --filters=//cef/*' in 'C:\cefbuilds\chromium\src'
Traceback (most recent call last):
  File "C:/cefbuilds/chromium/src/build/vs_toolchain.py", line 456, in <module>
    sys.exit(main())
  File "C:/cefbuilds/chromium/src/build/vs_toolchain.py", line 452, in main
    return commands[sys.argv[1]](*sys.argv[2:])
  File "C:/cefbuilds/chromium/src/build/vs_toolchain.py", line 324, in CopyDlls
    _CopyDebugger(target_dir, target_cpu)
  File "C:/cefbuilds/chromium/src/build/vs_toolchain.py", line 344, in _CopyDebugger
    _CopyRuntimeImpl(target_path, full_path)
  File "C:/cefbuilds/chromium/src/build/vs_toolchain.py", line 204, in _CopyRuntimeImpl
    shutil.copy2(source, target)
  File "C:\cefbuilds\depot_tools\python276_bin\lib\shutil.py", line 130, in copy2
    copyfile(src, dst)
  File "C:\cefbuilds\depot_tools\python276_bin\lib\shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 'C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x64\\dbgcore.dll'
ERROR at //build/toolchain/win/BUILD.gn:38:3: Script returned non-zero exit code.
  exec_script("../../vs_toolchain.py",
  ^----------
Current dir: C:/cefbuilds/chromium/src/out/Release_GN_x64/
Command: C:/cefbuilds/depot_tools/python276_bin/python.exe -- C:/cefbuilds/chromium/src/build/vs_toolchain.py copy_dlls C:/cefbuilds/chromium/src/out/Release_GN_x64 Release x64
Returned 1 and printed out:

Copying C:\Windows\Sysnative\msvcp140.dll to C:/cefbuilds/chromium/src/out/Release_GN_x64\msvcp140.dll...
Copying C:\Windows\Sysnative\vccorlib140.dll to C:/cefbuilds/chromium/src/out/Release_GN_x64\vccorlib140.dll...
Copying C:\Windows\Sysnative\vcruntime140.dll to C:/cefbuilds/chromium/src/out/Release_GN_x64\vcruntime140.dll...
Copying C:\Windows\Sysnative\ucrtbase.dll to C:/cefbuilds/chromium/src/out/Release_GN_x64\ucrtbase.dll...
Copying C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\pgort140.dll to C:/cefbuilds/chromium/src/out/Release_GN_x64\pgort140.dll...
Copying C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe to C:/cefbuilds/chromium/src/out/Release_GN_x64\cdb.exe...
Copying C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbgeng.dll to C:/cefbuilds/chromium/src/out/Release_GN_x64\dbgeng.dll...
Copying C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbghelp.dll to C:/cefbuilds/chromium/src/out/Release_GN_x64\dbghelp.dll...
Copying C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbgmodel.dll to C:/cefbuilds/chromium/src/out/Release_GN_x64\dbgmodel.dll...
Copying C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbgcore.dll to C:/cefbuilds/chromium/src/out/Release_GN_x64\dbgcore.dll...

See //BUILD.gn:73:1: which caused the file to be included.
group("gn_all") {
^----------------
Traceback (most recent call last):
  File "tools\gclient_hook.py", line 135, in <module>
    RunAction(src_dir, cmd)
  File "C:\cefbuilds\chromium\src\cef\tools\gclient_util.py", line 39, in RunAction
    command, cwd=dir, always=True)
  File "C:\cefbuilds\depot_tools\gclient_utils.py", line 303, in CheckCallAndFilterAndHeader
    return CheckCallAndFilter(args, **kwargs)
  File "C:\cefbuilds\depot_tools\gclient_utils.py", line 549, in CheckCallAndFilter
    rv, args, kwargs.get('cwd', None), None, None)
subprocess2.CalledProcessError: Command 'gn gen out\\Release_GN_x64 --ide=vs2015 --sln=cef --filters=//cef/*' returned non-zero exit status 1 in C:\cefbuilds\chromium\src
Traceback (most recent call last):
  File "automate-git.py", line 943, in <module>
    run(path, cef_src_dir, depot_tools_dir)
  File "automate-git.py", line 56, in run
    shell=(sys.platform == 'win32'))
  File "c:\depot_tools\python276_bin\lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\cefbuilds\\chromium\\src\\cef\\cef_create_projects.bat']' returned non-zero exit status 1


Any thoughts about why it might be trying to pick up this file, which does not exist at that location?

Thanks,
-Jason-
JasonLP
Mentor
 
Posts: 98
Joined: Fri Jul 25, 2014 10:10 am

Re: Build Error Windows branch 3029

Postby JasonLP » Wed Mar 15, 2017 10:46 am

...And now that I am looking at it again, why is it trying to package a 64-bit build at all?
JasonLP
Mentor
 
Posts: 98
Joined: Fri Jul 25, 2014 10:10 am

Re: Build Error Windows branch 3029

Postby magreenblatt » Wed Mar 15, 2017 1:27 pm

CEF 3029 branch requires the 10.0.14393 SDK as listed at https://bitbucket.org/chromiumembedded/ ... uilding.md. The automate-git.py script will generate both x86 and x64 configurations but only build the x86 configuration by default. Also, use an absolute path for --download-dir.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Build Error Windows branch 3029

Postby JasonLP » Wed Mar 15, 2017 4:00 pm

So I have to *downgrade* the SDK to get this to work?
JasonLP
Mentor
 
Posts: 98
Joined: Fri Jul 25, 2014 10:10 am

Re: Build Error Windows branch 3029

Postby magreenblatt » Wed Mar 15, 2017 4:12 pm

You need to install the required SDK version. You do not need to uninstall other currently installed versions.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Build Error Windows branch 3029

Postby magreenblatt » Fri Mar 17, 2017 12:59 pm

You can also get a similar error if you don't install the correct Visual Studio components. See https://bugs.chromium.org/p/chromium/is ... ?id=702697
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Build Error Windows branch 3029

Postby JasonLP » Fri Mar 17, 2017 1:26 pm

In my case it was the Win 10 SDK version. I had incorrectly assumed that the required version was a minimum, not an *exact* version number.

Once I installed that, the build proceeded as expected.

Thanks,
-Jason-
JasonLP
Mentor
 
Posts: 98
Joined: Fri Jul 25, 2014 10:10 am

Re: Build Error Windows branch 3029

Postby JasonLP » Wed Mar 22, 2017 9:13 am

Sorry to have to re-open this, but the build does not complete as expected. I am running into the following fatal errors:

Code: Select all
[33107/45402] CXX obj/content/test/content_unittests/mime_sniffing_resource_handler_unittest.obj
FAILED: ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64_x86/cl.exe" /nologo /showIncludes /FC @obj/content/test/content_unittests/mime_sniffing_resource_handler_unittest.obj.rsp /c ../../content/browser/loader/mime_sniffing_resource_handler_unittest.cc /Foobj/content/test/content_unittests/mime_sniffing_resource_handler_unittest.obj /Fd"obj/content/test/content_unittests_cc.pdb"
c:\cefbuilds\chromium\src\content\test\fake_plugin_service.h(29): error C3668: 'content::FakePluginService::GetPluginInfo': method with override specifier 'override' did not override any base class methods
c:\cefbuilds\chromium\src\content\browser\loader\mime_sniffing_resource_handler_unittest.cc(277): error C2259: 'content::`anonymous-namespace'::TestFakePluginService': cannot instantiate abstract class
c:\cefbuilds\chromium\src\content\browser\loader\mime_sniffing_resource_handler_unittest.cc(277): note: due to following members:
c:\cefbuilds\chromium\src\content\browser\loader\mime_sniffing_resource_handler_unittest.cc(277): note: 'bool content::PluginService::GetPluginInfo(int,int,content::ResourceContext *,const GURL &,bool,const url::Origin &,const std::string &,bool,bool *,content::WebPluginInfo *,std::string *)': is abstract
c:\cefbuilds\chromium\src\content\public\browser\plugin_service.h(73): note: see declaration of 'content::PluginService::GetPluginInfo'
c:\cefbuilds\chromium\src\content\browser\loader\mime_sniffing_resource_handler_unittest.cc(336): error C2259: 'content::`anonymous-namespace'::TestFakePluginService': cannot instantiate abstract class
c:\cefbuilds\chromium\src\content\browser\loader\mime_sniffing_resource_handler_unittest.cc(336): note: due to following members:
c:\cefbuilds\chromium\src\content\browser\loader\mime_sniffing_resource_handler_unittest.cc(336): note: 'bool content::PluginService::GetPluginInfo(int,int,content::ResourceContext *,const GURL &,bool,const url::Origin &,const std::string &,bool,bool *,content::WebPluginInfo *,std::string *)': is abstract
c:\cefbuilds\chromium\src\content\public\browser\plugin_service.h(73): note: see declaration of 'content::PluginService::GetPluginInfo'
c:\cefbuilds\chromium\src\content\browser\loader\mime_sniffing_resource_handler_unittest.cc(486): error C2259: 'content::`anonymous-namespace'::TestFakePluginService': cannot instantiate abstract class
c:\cefbuilds\chromium\src\content\browser\loader\mime_sniffing_resource_handler_unittest.cc(486): note: due to following members:
c:\cefbuilds\chromium\src\content\browser\loader\mime_sniffing_resource_handler_unittest.cc(486): note: 'bool content::PluginService::GetPluginInfo(int,int,content::ResourceContext *,const GURL &,bool,const url::Origin &,const std::string &,bool,bool *,content::WebPluginInfo *,std::string *)': is abstract
c:\cefbuilds\chromium\src\content\public\browser\plugin_service.h(73): note: see declaration of 'content::PluginService::GetPluginInfo'
c:\cefbuilds\chromium\src\content\browser\loader\mime_sniffing_resource_handler_unittest.cc(880): error C2259: 'content::`anonymous-namespace'::TestFakePluginService': cannot instantiate abstract class
c:\cefbuilds\chromium\src\content\browser\loader\mime_sniffing_resource_handler_unittest.cc(880): note: due to following members:
c:\cefbuilds\chromium\src\content\browser\loader\mime_sniffing_resource_handler_unittest.cc(880): note: 'bool content::PluginService::GetPluginInfo(int,int,content::ResourceContext *,const GURL &,bool,const url::Origin &,const std::string &,bool,bool *,content::WebPluginInfo *,std::string *)': is abstract
c:\cefbuilds\chromium\src\content\public\browser\plugin_service.h(73): note: see declaration of 'content::PluginService::GetPluginInfo'
c:\cefbuilds\chromium\src\content\browser\loader\mime_sniffing_resource_handler_unittest.cc(929): error C2259: 'content::`anonymous-namespace'::TestFakePluginService': cannot instantiate abstract class
c:\cefbuilds\chromium\src\content\browser\loader\mime_sniffing_resource_handler_unittest.cc(929): note: due to following members:
c:\cefbuilds\chromium\src\content\browser\loader\mime_sniffing_resource_handler_unittest.cc(929): note: 'bool content::PluginService::GetPluginInfo(int,int,content::ResourceContext *,const GURL &,bool,const url::Origin &,const std::string &,bool,bool *,content::WebPluginInfo *,std::string *)': is abstract
c:\cefbuilds\chromium\src\content\public\browser\plugin_service.h(73): note: see declaration of 'content::PluginService::GetPluginInfo'
[33107/45402] CXX obj/content/test/content_unittests/intercepting_resource_handler_unittest.obj
ninja: build stopped: subcommand failed.


Any ideas?

Thanks,
-Jason-
JasonLP
Mentor
 
Posts: 98
Joined: Fri Jul 25, 2014 10:10 am

Re: Build Error Windows branch 3029

Postby magreenblatt » Wed Mar 22, 2017 10:32 am

What ninja command did you use? Are you intentionally building content unittest targets?
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Build Error Windows branch 3029

Postby JasonLP » Wed Mar 22, 2017 11:46 am

My mistake. I neglected to specify 'cefclient' in my ninja command. Was building way more than I expected then.
JasonLP
Mentor
 
Posts: 98
Joined: Fri Jul 25, 2014 10:10 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 54 guests