Ninja build error on Chromium 3163

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.

Ninja build error on Chromium 3163

Postby pinocolada » Tue Apr 07, 2020 6:26 am

After start building in manual mode i got
c:\code\chromium_git\chromium\src>ninja -C out\Release_GN_x86 cef
ninja: Entering directory `out\Release_GN_x86'
[4/10366] CXX obj/cc/blink/blink/web_display_item_list_impl.obj
FAILED: obj/cc/blink/blink/web_display_item_list_impl.obj
ninja -t msvc -e environment.x86 -- "c:\program files (x86)\microsoft visual studio 14.0\vc\bin\amd64_x86/cl.exe" /nologo /showIncludes @obj/cc/blink/blink/web_display_item_list_impl.obj.rsp /c ../../cc/blink/web_display_item_list_impl.cc /Foobj/cc/blink/blink/web_display_item_list_impl.obj /Fd"obj/cc/blink/blink_cc.pdb"
cl : Command line warning D9025 : overriding '/MT' with '/MD'
c:\code\chromium_git\chromium\src\cc/blink/web_display_item_list_impl.h(36): error C2220: warning treated as error - no 'object' file generated
c:\code\chromium_git\chromium\src\cc/blink/web_display_item_list_impl.h(36): warning C4275: non dll-interface class 'blink::WebDisplayItemList' used as base for dll-interface class 'cc_blink::WebDisplayItemListImpl'
c:\code\chromium_git\chromium\src\third_party/WebKit/public/platform/WebDisplayItemList.h(35): note: see declaration of 'blink::WebDisplayItemList'
c:\code\chromium_git\chromium\src\cc/blink/web_display_item_list_impl.h(36): note: see declaration of 'cc_blink::WebDisplayItemListImpl'
[6/10366] CXX obj/cc/blink/blink/web_content_layer_impl.obj
FAILED: obj/cc/blink/blink/web_content_layer_impl.obj
ninja -t msvc -e environment.x86 -- "c:\program files (x86)\microsoft visual studio 14.0\vc\bin\amd64_x86/cl.exe" /nologo /showIncludes @obj/cc/blink/blink/web_content_layer_impl.obj.rsp /c ../../cc/blink/web_content_layer_impl.cc /Foobj/cc/blink/blink/web_content_layer_impl.obj /Fd"obj/cc/blink/blink_cc.pdb"
cl : Command line warning D9025 : overriding '/MT' with '/MD'
c:\code\chromium_git\chromium\src\cc/blink/web_display_item_list_impl.h(36): error C2220: warning treated as error - no 'object' file generated
c:\code\chromium_git\chromium\src\cc/blink/web_display_item_list_impl.h(36): warning C4275: non dll-interface class 'blink::WebDisplayItemList' used as base for dll-interface class 'cc_blink::WebDisplayItemListImpl'
c:\code\chromium_git\chromium\src\third_party/WebKit/public/platform/WebDisplayItemList.h(35): note: see declaration of 'blink::WebDisplayItemList'
c:\code\chromium_git\chromium\src\cc/blink/web_display_item_list_impl.h(36): note: see declaration of 'cc_blink::WebDisplayItemListImpl'
[8/10366] CXX obj/cc/blink/blink/web_compositor_support_impl.obj
FAILED: obj/cc/blink/blink/web_compositor_support_impl.obj
ninja -t msvc -e environment.x86 -- "c:\program files (x86)\microsoft visual studio 14.0\vc\bin\amd64_x86/cl.exe" /nologo /showIncludes @obj/cc/blink/blink/web_compositor_support_impl.obj.rsp /c ../../cc/blink/web_compositor_support_impl.cc /Foobj/cc/blink/blink/web_compositor_support_impl.obj /Fd"obj/cc/blink/blink_cc.pdb"
cl : Command line warning D9025 : overriding '/MT' with '/MD'
c:\code\chromium_git\chromium\src\cc/blink/web_display_item_list_impl.h(36): error C2220: warning treated as error - no 'object' file generated
c:\code\chromium_git\chromium\src\cc/blink/web_display_item_list_impl.h(36): warning C4275: non dll-interface class 'blink::WebDisplayItemList' used as base for dll-interface class 'cc_blink::WebDisplayItemListImpl'
c:\code\chromium_git\chromium\src\third_party/WebKit/public/platform/WebDisplayItemList.h(35): note: see declaration of 'blink::WebDisplayItemList'
c:\code\chromium_git\chromium\src\cc/blink/web_display_item_list_impl.h(36): note: see declaration of 'cc_blink::WebDisplayItemListImpl'
[17/10366] CXX obj/content/browser/browser/indexed_db_backing_store.obj
ninja: build stopped: subcommand failed.


What could be the mistake?
pinocolada
Newbie
 
Posts: 4
Joined: Tue Apr 07, 2020 6:22 am

Re: Ninja build error on Chromium 3163

Postby magreenblatt » Tue Apr 07, 2020 11:42 am

3163 branch is old and unsupported. See here for more information.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Ninja build error on Chromium 3163

Postby pinocolada » Tue Apr 07, 2020 2:39 pm

magreenblatt wrote:3163 branch is old and unsupported. See here for more information.


Okay, why my latest branch building without GetHandleVerifier function?
pinocolada
Newbie
 
Posts: 4
Joined: Tue Apr 07, 2020 6:22 am

Re: Ninja build error on Chromium 3163

Postby magreenblatt » Tue Apr 07, 2020 2:43 pm

pinocolada wrote:
magreenblatt wrote:3163 branch is old and unsupported. See here for more information.


Okay, why my latest branch building without GetHandleVerifier function?

I don’t understand your question.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Ninja build error on Chromium 3163

Postby pinocolada » Tue Apr 07, 2020 3:35 pm

magreenblatt wrote:
pinocolada wrote:
magreenblatt wrote:3163 branch is old and unsupported. See here for more information.


Okay, why my latest branch building without GetHandleVerifier function?

I don’t understand your question.



For some reasons GetHandleVerifier in libcef.dll missing and test programs exit with stack trace
pinocolada
Newbie
 
Posts: 4
Joined: Tue Apr 07, 2020 6:22 am

Re: Ninja build error on Chromium 3163

Postby magreenblatt » Tue Apr 07, 2020 3:49 pm

I don’t know what GetHandleVerifier is.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Ninja build error on Chromium 3163

Postby ndesktop » Wed Apr 08, 2020 12:53 am

Most likely he got a crash showing GetHandleVerifier in callstack, such as this:
Code: Select all
0:000> kb;!analyze -v;
RetAddr           : Args to Child                                                           : Call Site
00007ffe`c7501118 : 00007ad1`08b82265 00007ffe`9b6df99f 00000000`00000000 00007ffe`9ac53430 : ntdll!NtWaitForSingleObject+0xa
00007ffe`c3925e42 : 00000000`00000000 0000d7cd`4047af6c 00000000`00000000 00000000`000005a0 : KERNELBASE!WaitForSingleObjectEx+0x94
*** WARNING: Unable to verify checksum for libcef.dll
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for libcef.dll -
...
...
00007ffe`9ac52e4d : 0000004a`d18ba2c0 0000004a`d18ba218 0000004a`d18ba220 0000004a`d18bb300 : ntdll!KiUserExceptionDispatch+0x3a
00007ffe`9ac65cf0 : 0000004a`d18ba2a0 00007ffe`9f5d4010 00000000`00000001 00007ffe`9f5d4010 : libcef!cef_string_utf16_to_upper+0x2051c
00007ffe`9b6f7b84 : 00007ffe`9f5d4d60 00000000`00000000 00007ffe`9f540c9a 00007ffe`c7d70000 : libcef!cef_string_utf16_to_upper+0x333bf
00007ffe`9ace022e : 00000000`00020000 00007ffe`ca300bc0 00000000`00000834 0000004a`d18bb680 : libcef!GetHandleVerifier+0x2a4
00007ffe`9ac704ed : 0000004a`d1a20000 0000004a`00000000 00000000`00000040 00000000`00000000 : libcef!cef_string_utf16_to_upper+0xad8fd
00007ffe`9ac6ed7b : 0000004a`d18bbf90 0000004a`d18bbf88 0000004a`d18bb8b0 0000004a`d4ef33b0 : libcef!cef_string_utf16_to_upper+0x3dbbc
00007ffe`9ac6ec3b : 0000004a`d355bfb0 00007ffe`9e5c6453 00000000`00000088 00007ffe`9acdd8fb : libcef!cef_string_utf16_to_upper+0x3c44a
00007ffe`9b41f4fd : 0000004a`d18bb910 00000000`00000008 0000004a`d18bb910 00000000`00000008 : libcef!cef_string_utf16_to_upper+0x3c30a
00007ffe`9aa3145d : 0000004a`d18bbdc0 00000000`00000000 0000d7cd`00000001 0000004a`d18bbdc0 : libcef!IsSandboxedProcess+0x29f728
00007ffe`9b38e524 : 0000004a`d18bbf90 0000004a`d18bbf88 0000d7cd`4047905c 0000004a`d3558dc0 : libcef!CrashForExceptionInNonABICompliantCodeRange+0x6173bd
00007ffe`9b38eb60 : 00007ffe`9ec2480e 00007ffe`c8170000 00007ffe`9b17f875 00007ffe`c7504250 : libcef!IsSandboxedProcess+0x20e74f
...
00007ff7`177a4f60 : 0000004a`d18bc038 0000004a`d1b502b0 0000004a`d18bc3a8 00007ff7`1764b46e : libcef!cef_execute_process+0x57
...
00007ff7`177a3222 : 00000000`00000001 00000000`00000000 00007ff7`168e7000 00000000`00000000 : obk!wWinMain+0x127
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for kernel32.dll -
...

This appears on the vast majority of the callstacks I deal with, and after loading symbols I'm discovering things such as CloseHandleWrapper doing a CHECK.
This is producing most of the crashes - for example, like issue 976210 (CloseHandle called on a handle already closed or invalid).

BTW, this thing was also hitting hard Mozilla as well.
ndesktop
Master
 
Posts: 750
Joined: Thu Dec 03, 2015 10:10 am

Re: Ninja build error on Chromium 3163

Postby ndesktop » Wed Apr 08, 2020 1:02 am

@pinocolada: although you are using an old branch, if you still need to build it for legacy or whatever reasons:
- check the similar 2017 Chromium issue 752837
- make sure you are using VS2015u3
- the 603773 patch might be what you are looking for in this particular situation (/wd4275).

Anyways, these are only ideas to continue, you are on your own to experiment and pick what's working for you.
ndesktop
Master
 
Posts: 750
Joined: Thu Dec 03, 2015 10:10 am

Re: Ninja build error on Chromium 3163

Postby pinocolada » Wed Apr 08, 2020 7:14 am

ndesktop wrote:@pinocolada: although you are using an old branch, if you still need to build it for legacy or whatever reasons:
- check the similar 2017 Chromium issue 752837
- make sure you are using VS2015u3
- the 603773 patch might be what you are looking for in this particular situation (/wd4275).

Anyways, these are only ideas to continue, you are on your own to experiment and pick what's working for you.



Thanks, it helped me but now i have another problem: why my own build via ninja not equal with Spotify automated builds? Size of files(libcef.dll, chrome_elf.dll) is different, and im sure that a CEF checkout and Chromium checkout are same
pinocolada
Newbie
 
Posts: 4
Joined: Tue Apr 07, 2020 6:22 am

Re: Ninja build error on Chromium 3163

Postby magreenblatt » Wed Apr 08, 2020 10:35 am

Spotify builders use the configuration from here.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 34 guests