Compilation issues for CEF 89 under Windows 10 x64

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.

Compilation issues for CEF 89 under Windows 10 x64

Postby undeclared » Thu Jun 10, 2021 10:35 am

Hi,

If anyone can help me get this to compile, that would be greatly appreciated..

My build machine:
Code: Select all
i5 9600k
64GB ddr4-3200
2TB Samsung 970 Evo Plus
Windows 10 x64 20H2


My modes:
Code: Select all
SET GN_DEFINES=ffmpeg_branding=Chrome use_jumbo_build=true proprietary_codecs=true
set GN_ARGUMENTS=--ide=vs2019 --sln=cef --filters=//cef/*
python automate-git.py --download-dir=. --branch=4389 --force-build --x64-build


The error:
Code: Select all
-------- Running "ninja -C out\Debug_GN_x64 cefclient" in "C:\dev\cef89\chromium\src"...
ninja: Entering directory `out\Debug_GN_x64'
[2/3] LINK(DLL) libcef.dll libcef.dll.lib libcef.dll.pdb
FAILED: libcef.dll libcef.dll.lib libcef.dll.pdb
ninja -t msvc -e environment.x64 -- ..\..\third_party\llvm-build\Release+Asserts\bin\lld-link.exe /nologo -libpath:..\..\third_party\llvm-build\Release+Asserts\lib\clang\12.0.0\lib\windows "-libpath:..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29910\ATLMFC\lib\x64" "-libpath:..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29910\lib\x64" "-libpath:..\..\..\..\..\..\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "-libpath:..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "-libpath:..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" /IMPLIB:./libcef.dll.lib /DLL /OUT:./libcef.dll /PDB:./libcef.dll.pdb @./libcef.dll.rsp
lld-link: error: could not open '/call-graph-profile-sort:no': no such file or directory


Thanks for reading... any help is greatly appreciated.
undeclared
Newbie
 
Posts: 6
Joined: Wed Apr 28, 2021 3:20 pm

Re: Compilation issues for CEF 89 under Windows 10 x64

Postby undeclared » Thu Jun 10, 2021 6:11 pm

Update:

New error now is:
Code: Select all
[48107/48108] LINK(DLL) libcef.dll libcef.dll.lib libcef.dll.pdb
FAILED: libcef.dll libcef.dll.lib libcef.dll.pdb
ninja -t msvc -e environment.x64 -- ..\..\third_party\llvm-build\Release+Asserts\bin\lld-link.exe /nologo -libpath:..\..\third_party\llvm-build\Release+Asserts\lib\clang\12.0.0\lib\windows "-libpath:..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29910\ATLMFC\lib\x64" "-libpath:..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29910\lib\x64" "-libpath:..\..\..\..\..\..\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "-libpath:..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "-libpath:..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" /IMPLIB:./libcef.dll.lib /DLL /OUT:./libcef.dll /PDB:./libcef.dll.pdb @./libcef.dll.rsp
LLVM ERROR: out of memory
Allocation failed
PLEASE submit a bug report to https://crbug.com and run tools/clang/scripts/process_crashreports.py (only works inside Google) which will upload a report and include the crash backtrace.
Stack dump:
0.      Program arguments: ..\\..\\third_party\\llvm-build\\Release+Asserts\\bin\\lld-link.exe /nologo -libpath:..\\..\\third_party\\llvm-build\\Release+Asserts\\lib\\clang\\12.0.0\\lib\\windows "-libpath:..\\..\\..\\..\\..\\..\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.28.29910\\ATLMFC\\lib\\x64" "-libpath:..\\..\\..\\..\\..\\..\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.28.29910\\lib\\x64" "-libpath:..\\..\\..\\..\\..\\..\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\lib\\um\\x64" "-libpath:..\\..\\..\\..\\..\\..\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.19041.0\\ucrt\\x64" "-libpath:..\\..\\..\\..\\..\\..\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.19041.0\\um\\x64" /IMPLIB:./libcef.dll.lib /DLL /OUT:./libcef.dll /PDB:./libcef.dll.pdb @./libcef.dll.rsp
LLVM ERROR: out of memory
Allocation failed
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "..\automate-git.py", line 1485, in <module>
    if options.buildlogfile else None)
  File "..\automate-git.py", line 70, in run
    args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
  File "C:\Python27\lib\subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', 'out\\Debug_GN_x64', 'cefclient']' returned non-zero exit status 1
undeclared
Newbie
 
Posts: 6
Joined: Wed Apr 28, 2021 3:20 pm

Re: Compilation issues for CEF 89 under Windows 10 x64

Postby ndesktop » Fri Jun 11, 2021 8:45 am

Debug build goes out of memory on linking phase for some time now (at least for me).
I believe the linker will consume all available memory (I don't remember where I read and if was accurate, but it tries to build some 400 GB pdb in memory and it fails).
Some similar details: [1], [2].

Also, jumbo_build is not recommented for automated builders.
ndesktop
Master
 
Posts: 750
Joined: Thu Dec 03, 2015 10:10 am

Re: Compilation issues for CEF 89 under Windows 10 x64

Postby magreenblatt » Fri Jun 11, 2021 10:23 am

SET GN_DEFINES=ffmpeg_branding=Chrome use_jumbo_build=true proprietary_codecs=true

You should follow the MasterBuildQuickStart instructions (is_component_build=true) or the AutomatedBuildSetup instructions (is_official_build=true use_thin_lto=false).
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Compilation issues for CEF 89 under Windows 10 x64

Postby magreenblatt » Fri Jun 11, 2021 10:56 am

We will start forbidding non-component Debug builds to make the problem more obvious. See https://bitbucket.org/chromiumembedded/cef/issues/2679.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Compilation issues for CEF 89 under Windows 10 x64

Postby undeclared » Fri Jun 11, 2021 12:19 pm

ndesktop wrote:Debug build goes out of memory on linking phase for some time now (at least for me).
I believe the linker will consume all available memory (I don't remember where I read and if was accurate, but it tries to build some 400 GB pdb in memory and it fails).
Some similar details: [1], [2].

Also, jumbo_build is not recommented for automated builders.


I misread the wiki (https://bitbucket.org/chromiumembedded/ ... ndBuilding) and didn't read that it said "non-official debug" build time performance... So I set it to that.

That might be my problem.
undeclared
Newbie
 
Posts: 6
Joined: Wed Apr 28, 2021 3:20 pm

Re: Compilation issues for CEF 89 under Windows 10 x64

Postby undeclared » Mon Jun 14, 2021 12:33 am

Hey everyone, thanks for the great response previously.

I've got a new problem now, if I do a component build, I am missing a lot of DLLs, but if I don't do a component build, I can't successfully link the dll.
I don't know where to find these dlls, and I assume they are for developing cef itself?

My goal is simple: latest build (debug and release) with proprietary codecs enabled. I am aware of the potential licensing costs. I need debug for development though.
undeclared
Newbie
 
Posts: 6
Joined: Wed Apr 28, 2021 3:20 pm

Re: Compilation issues for CEF 89 under Windows 10 x64

Postby magreenblatt » Mon Jun 14, 2021 10:36 am

Development of CEF, or development of your application using CEF? If you are developing CEF then create a component build. If you are developing a separate application then create an "official" build, which also includes a "Debug" configuration.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Compilation issues for CEF 89 under Windows 10 x64

Postby undeclared » Mon Jun 14, 2021 10:56 am

magreenblatt wrote:Development of CEF, or development of your application using CEF? If you are developing CEF then create a component build. If you are developing a separate application then create an "official" build, which also includes a "Debug" configuration.


Okay, I will create an official build, thank you.
undeclared
Newbie
 
Posts: 6
Joined: Wed Apr 28, 2021 3:20 pm

Re: Compilation issues for CEF 89 under Windows 10 x64

Postby undeclared » Sat Jun 26, 2021 12:38 pm

An official build worked 100%, just an update for anyone having issues compiling...
undeclared
Newbie
 
Posts: 6
Joined: Wed Apr 28, 2021 3:20 pm

Next

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 55 guests