Build v119 fails on Windows 11

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 v119 fails on Windows 11

Postby delphirules » Sun Nov 19, 2023 6:40 am

I've been building CEF binaries without issues for the last couple of years.

But recently i had to move to a machine with Windows 11 (the prior one was 10) and yesterday when i tried to build the new branch, it's failing.

I'm pasting the error below and attaching the complete log here : https://file.io/K0r7WbfUBHqU

Any hints will be very appreciated !

Thanks

FAILED: obj/base/allocator/partition_allocator/allocator_base/cstring_builder.obj
..\..\third_party\llvm-build\Release+Asserts\bin\clang-cl.exe /c ../../base/allocator/partition_allocator/partition_alloc_base/strings/cstring_builder.cc /Foobj/base/allocator/partition_allocator/allocator_base/cstring_builder.obj /nologo /showIncludes:user "-imsvcC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include" "-imsvcC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\ATLMFC\include" "-imsvcC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-imsvcC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-imsvcC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-imsvcC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-imsvcC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" -DDCHECK_ALWAYS_ON=1 -DUSE_AURA=1 -D_HAS_NODISCARD -D_CRT_NONSTDC_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS "-DCR_CLANG_REVISION=\"llvmorg-18-init-4631-gd50b56d1-1\"" -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_NI -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -D_HAS_ITERATOR_DEBUGGING=0 -DIS_PARTITION_ALLOC_IMPL -I../.. -Igen /W4 -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-nonportable-include-path -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wshadow /WX -fno-delete-null-pointer-checks -fno-ident -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 /clang:-ffp-contract=off -fcomplete-member-pointers /Gy /FS /bigobj /utf-8 /Zc:twoPhase -ffile-reproducible /Zc:sizedDealloc- /D__WRL_ENABLE_FUNCTION_STATICS__ -fmsc-version=1934 -m32 -msse3 /Brepro -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -ftrivial-auto-var-init=pattern /Z7 -gno-codeview-command-line -gcodeview-ghash -Xclang -fuse-ctor-homing /guard:cf,nochecks /MTd -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wexit-time-destructors /O2 /Ob2 /Oy- /Zc:inline /Gw /clang:-fno-math-errno -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare /std:c++20 -Wno-trigraphs /TP /GR- /Fd"obj/base/allocator/partition_allocator/allocator_base_cc.pdb"
../../base/allocator/partition_allocator/partition_alloc_base/strings/cstring_builder.cc(64,26): error: no member named 'numeric_limits' in namespace 'std'
64 | char buffer[Log10(std::numeric_limits<T>::max()) + 3];
| ~~~~~^
../../base/allocator/partition_allocator/partition_alloc_base/strings/cstring_builder.cc(64,41): error: 'T' does not refer to a value
64 | char buffer[Log10(std::numeric_limits<T>::max()) + 3];
| ^
../../base/allocator/partition_allocator/partition_alloc_base/strings/cstring_builder.cc(58,20): note: declared here
58 | template <typename T>
| ^
../../base/allocator/partition_allocator/partition_alloc_base/strings/cstring_builder.cc(64,45): error: no member named 'max' in the global namespace
64 | char buffer[Log10(std::numeric_limits<T>::max()) + 3];
| ~~^
../../base/allocator/partition_allocator/partition_alloc_base/strings/cstring_builder.cc(162,47): error: no member named 'numeric_limits' in namespace 'std'
162 | PutNormalFloatingPoint(value > 0 ? std::numeric_limits<double>::min()
| ~~~~~^
../../base/allocator/partition_allocator/partition_alloc_base/strings/cstring_builder.cc(162,68): error: expected '(' for function-style cast or type construction
162 | PutNormalFloatingPoint(value > 0 ? std::numeric_limits<double>::min()
| ~~~~~~^
../../base/allocator/partition_allocator/partition_alloc_base/strings/cstring_builder.cc(162,71): error: no member named 'min' in the global namespace
162 | PutNormalFloatingPoint(value > 0 ? std::numeric_limits<double>::min()
| ~~^
../../base/allocator/partition_allocator/partition_alloc_base/strings/cstring_builder.cc(163,48): error: no member named 'numeric_limits' in namespace 'std'
163 | : -std::numeric_limits<double>::min(),
| ~~~~~^
../../base/allocator/partition_allocator/partition_alloc_base/strings/cstring_builder.cc(163,69): error: expected '(' for function-style cast or type construction
163 | : -std::numeric_limits<double>::min(),
| ~~~~~~^
../../base/allocator/partition_allocator/partition_alloc_base/strings/cstring_builder.cc(163,72): error: no member named 'min' in the global namespace
163 | : -std::numeric_limits<double>::min(),
| ~~^
9 errors generated.
delphirules
Techie
 
Posts: 39
Joined: Mon May 16, 2022 12:07 pm

Re: Build v119 fails on Windows 11

Postby finder2 » Sun Nov 19, 2023 7:47 am

Add
Code: Select all
#include <limits>
to \chromium\src\base\allocator\partition_allocator\partition_alloc_base\strings>git diff cstring_builder.cc on the fly.
See more info here viewtopic.php?f=6&t=19606#p54431
finder2
Mentor
 
Posts: 51
Joined: Fri Jun 13, 2014 1:33 am

Re: Build v119 fails on Windows 11

Postby delphirules » Sun Nov 19, 2023 8:11 am

finder2 wrote:Add
Code: Select all
#include <limits>
to \chromium\src\base\allocator\partition_allocator\partition_alloc_base\strings>git diff cstring_builder.cc on the fly.
See more info here viewtopic.php?f=6&t=19606#p54431


Thanks, added and started to build again now.
delphirules
Techie
 
Posts: 39
Joined: Mon May 16, 2022 12:07 pm

Re: Build v119 fails on Windows 11

Postby delphirules » Sun Nov 26, 2023 7:41 am

Yesterday i buld the binaries and with your hint it worked ! Thanks ! :D
delphirules
Techie
 
Posts: 39
Joined: Mon May 16, 2022 12:07 pm


Return to Support Forum

Who is online

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