4430 Branch build fails (Win32)

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.

4430 Branch build fails (Win32)

Postby naoki5 » Thu Apr 15, 2021 12:23 am

I tried to build the 4430 branch.
I followed the "Automated Method".
However, the build fails with an error.
The following is a part of the log at the time of failure.

Code: Select all
-------- Running "ninja -C out\Debug_GN_x86_sandbox cef_sandbox" in "c:\code\chromium_git\chromium\src"...
ninja: Entering directory `out\Debug_GN_x86_sandbox'
[81/667] CXX obj/base/base/pcscan.obj
FAILED: obj/base/base/pcscan.obj
..\..\third_party\llvm-build\Release+Asserts\bin\clang-cl.exe /nologo /showIncludes:user "-imsvc..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-imsvc..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include" "-imsvc..\..\..\..\..\..\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-imsvc..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-imsvc..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-imsvc..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-imsvc..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-imsvc..\..\..\..\..\..\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" -D_ENABLE_ATOMIC_ALIGNMENT_FIX -DUSE_AURA=1 "-DCR_CLANG_REVISION=\"llvmorg-13-init-1559-g01b87444-3\"" -D_HAS_NODISCARD -D_HAS_EXCEPTIONS=0 -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_VB -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DBASE_IMPLEMENTATION -DBUILDING_CEF_SHARED -DUSING_CHROMIUM_INCLUDES -I../.. -Igen -I../../cef -I../../third_party/abseil-cpp -fno-delete-null-pointer-checks -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -Xclang -fno-experimental-new-pass-manager -fcomplete-member-pointers /Gy /FS /bigobj /utf-8 /Zc:twoPhase /Zc:sizedDealloc- /D__WRL_ENABLE_FUNCTION_STATICS__ -fmsc-version=1916 -m32 -msse3 /Brepro -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Xclang -fdebug-compilation-dir -Xclang . -no-canonical-prefixes /W4 -Wimplicit-fallthrough -Wunreachable-code -Wthread-safety -Wextra-semi /WX /wd4091 /wd4127 /wd4251 /wd4275 /wd4312 /wd4324 /wd4351 /wd4355 /wd4503 /wd4589 /wd4611 /wd4100 /wd4121 /wd4244 /wd4505 /wd4510 /wd4512 /wd4610 /wd4838 /wd4995 /wd4996 /wd4456 /wd4457 /wd4458 /wd4459 /wd4200 /wd4201 /wd4204 /wd4221 /wd4245 /wd4267 /wd4305 /wd4389 /wd4702 /wd4701 /wd4703 /wd4661 /wd4706 /wd4715 /wd4267 -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-psabi -Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion -Wno-final-dtor-non-final-class -Wno-builtin-assume-aligned-alignment -Wno-deprecated-copy -Wno-non-c-typedef-for-linkage -Wno-max-tokens /Od /Ob0 /GF /Z7 -gcodeview-ghash -Xclang -debug-info-kind=constructor -ftrivial-auto-var-init=pattern /guard:cf,nochecks /MTd -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wexit-time-destructors -Wshadow -Wglobal-constructors -Wexit-time-destructors -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -Wno-trigraphs /TP /wd4577 /GR- /c ../../base/allocator/partition_allocator/pcscan.cc /Foobj/base/base/pcscan.obj /Fd"obj/base/base_cc.pdb"
In file included from ../../base/allocator/partition_allocator/pcscan.cc:5:
In file included from ../..\base/allocator/partition_allocator/pcscan.h:13:
In file included from ../..\base/allocator/partition_allocator/partition_direct_map_extent.h:10:
In file included from ../..\base/allocator/partition_allocator/partition_page.h:11:
In file included from ../..\base/allocator/partition_allocator/address_pool_manager.h:15:
In file included from ../..\base/lazy_instance.h:54:
In file included from ../..\base/threading/thread_restrictions.h:11:
In file included from ../..\base/location.h:16:
In file included from ../..\base/hash/hash.h:16:
In file included from ../..\base/containers/span.h:21:
In file included from ../..\base/stl_util.h:17:
In file included from ..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include\map:8:
..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include\xtree(899,16): error: invalid operands to binary expression ('std::_Tree_comp_alloc<std::_Tset_traits<unsigned int, std::less<>, base::internal::(anonymous namespace)::MetadataAllocator<unsigned int>, false>>::_Alnode' (aka 'MetadataAllocator<std::_Tree_node<unsigned int, void *>>') and 'std::_Tree_comp_alloc<std::_Tset_traits<unsigned int, std::less<>, base::internal::(anonymous namespace)::MetadataAllocator<unsigned int>, false>>::_Alnode')
                        && _Getal() != _Al;
                           ~~~~~~~~ ^  ~~~
..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include\xtree(1123,10): note: in instantiation of member function 'std::_Tree_comp_alloc<std::_Tset_traits<unsigned int, std::less<>, base::internal::(anonymous namespace)::MetadataAllocator<unsigned int>, false>>::_Move_alloc' requested here
                        this->_Move_alloc(_Right._Getal());
                              ^
..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include\set(165,12): note: in instantiation of member function 'std::_Tree<std::_Tset_traits<unsigned int, std::less<>, base::internal::(anonymous namespace)::MetadataAllocator<unsigned int>, false>>::operator=' requested here
                _Mybase::operator=(_STD move(_Right));
                         ^
../../base/allocator/partition_allocator/pcscan.cc(422,16): note: in instantiation of member function 'std::set<unsigned int, std::less<>, base::internal::(anonymous namespace)::MetadataAllocator<unsigned int>>::operator=' requested here
  super_pages_ = std::move(filtered_super_pages);
               ^
..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include\exception(336,24): note: candidate function not viable: no known conversion from 'std::_Tree_comp_alloc<std::_Tset_traits<unsigned int, std::less<>, base::internal::(anonymous namespace)::MetadataAllocator<unsigned int>, false>>::_Alnode' (aka 'MetadataAllocator<std::_Tree_node<unsigned int, void *>>') to 'const std::exception_ptr' for 1st argument
_NODISCARD inline bool operator!=(const exception_ptr& _Lhs, const exception_ptr& _Rhs) noexcept
                       ^
..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include\exception(341,24): note: candidate function not viable: no known conversion from 'std::_Tree_comp_alloc<std::_Tset_traits<unsigned int, std::less<>, base::internal::(anonymous namespace)::MetadataAllocator<unsigned int>, false>>::_Alnode' (aka 'MetadataAllocator<std::_Tree_node<unsigned int, void *>>') to 'std::nullptr_t' (aka 'nullptr_t') for 1st argument
_NODISCARD inline bool operator!=(nullptr_t _Lhs, const exception_ptr& _Rhs) noexcept



I ran the build as follows:

set GN_DEFINES=proprietary_codecs=true ffmpeg_branding=Chrome is_official_build=true
python automate\automate-git.py --download-dir=c:\code\chromium_git --branch=4430

The following is the build environment.

Windows 10 Pro 64bit 20H2 (Japanese)
Visual Studio 2017 Version 15.9.35
Win SDK 10.0.19041.1

Last week I successfully built the 4389 branch.
Do I need to do anything extra to build the 4430 branch?
naoki5
Mentor
 
Posts: 52
Joined: Wed Jul 17, 2019 2:44 am

Re: 4430 Branch build fails (Win32)

Postby magreenblatt » Thu Apr 15, 2021 11:05 am

Try building with VS2019.
magreenblatt
Site Admin
 
Posts: 10937
Joined: Fri May 29, 2009 6:57 pm

Re: 4430 Branch build fails (Win32)

Postby naoki5 » Tue Apr 20, 2021 1:45 am

I installed VS2019 and successfully built it.
Thank you.

Does the 4430 branch need VS2019?
Or is there something wrong with my build environment?
naoki5
Mentor
 
Posts: 52
Joined: Wed Jul 17, 2019 2:44 am

Re: 4430 Branch build fails (Win32)

Postby ndesktop » Tue Apr 20, 2021 6:12 am

If you tried multiple times and get the same error, you might be the lucky winner of a VS 2017 bug.
However, I am building with VS2017 for some years now and I did not see this error.

(Sometimes llvm is stubborn and I saw some - very rare - cases when reruning ninja -C out\$Config succeeded).
ndesktop
Master
 
Posts: 557
Joined: Thu Dec 03, 2015 10:10 am

Re: 4430 Branch build fails (Win32)

Postby naoki5 » Tue Apr 20, 2021 9:49 pm

ndesktop wrote:If you tried multiple times and get the same error, you might be the lucky winner of a VS 2017 bug.
However, I am building with VS2017 for some years now and I did not see this error.

(Sometimes llvm is stubborn and I saw some - very rare - cases when reruning ninja -C out\$Config succeeded).


Thank you for your reply.
I tried to build twice in VS2017 and got the same error twice.
This seems to be a rare case.
naoki5
Mentor
 
Posts: 52
Joined: Wed Jul 17, 2019 2:44 am

Re: 4430 Branch build fails (Win32)

Postby ndesktop » Wed Apr 21, 2021 1:56 am

What can I say, try to update VS2017, if there is a new version - but that won't guarantee success.
Better move to VS2019 as suggested.
ndesktop
Master
 
Posts: 557
Joined: Thu Dec 03, 2015 10:10 am

Re: 4430 Branch build fails (Win32)

Postby ndesktop » Wed Apr 21, 2021 10:15 am

I can confirm, same error with VS2017 15.9.31 for me as well.
I will retry with VS2019.
ndesktop
Master
 
Posts: 557
Joined: Thu Dec 03, 2015 10:10 am

Re: 4430 Branch build fails (Win32)

Postby naoki5 » Wed Apr 21, 2021 9:07 pm

The first time I failed to build, I was using an older version of VS2017.
The next time I failed to build, I used the latest version of VS2017.
naoki5
Mentor
 
Posts: 52
Joined: Wed Jul 17, 2019 2:44 am


Return to Support Forum

Who is online

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