[6832/9682] x86_64-pc-linux-gnu-clang++ -MMD -MF obj/gpu/command_buffer/client/gles2_implementation/gles2_implementation_jumbo_1.o.d -DGLES2_IMPL_IMPLEMENTATION -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"354873-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DENABLE_IPC_FUZZER -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_HAS_JPEG_LIBRARY -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DVK_NO_PROTOTYPES -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -I. -I../.. -Igen -I../../third_party/khronos -I../../gpu -Igen/shim_headers/libdrm_shim -Igen/shim_headers/libpng_shim -Igen/shim_headers/libwebp_shim -Igen/shim_headers/zlib_shim -I../../skia/config -I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/codec -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/docs -I../../third_party/skia/include/effects -I../../third_party/skia/include/encode -I../../third_party/skia/include/gpu -I../../third_party/skia/include/pathops -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../third_party/vulkan/include -I../../third_party/skia/third_party/vulkanmemoryallocator -I../../third_party/skia/src/gpu -I../../third_party/skia/src/sksl -I../../third_party/skia/modules/skottie/include -I../../third_party/vulkan/include -I../../third_party/ced/src -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/protobuf/src -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -m64 -march=x86-64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -no-canonical-prefixes -Wall -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wno-shorten-64-to-32 -std=c++14 -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -march=native -O2 -pipe -c gen/gpu/command_buffer/client/gles2_implementation_jumbo_1.cc -o obj/gpu/command_buffer/client/gles2_implementation/gles2_implementation_jumbo_1.o FAILED: obj/gpu/command_buffer/client/gles2_implementation/gles2_implementation_jumbo_1.o x86_64-pc-linux-gnu-clang++ -MMD -MF obj/gpu/command_buffer/client/gles2_implementation/gles2_implementation_jumbo_1.o.d -DGLES2_IMPL_IMPLEMENTATION -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"354873-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DENABLE_IPC_FUZZER -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_HAS_JPEG_LIBRARY -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DVK_NO_PROTOTYPES -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -I. -I../.. -Igen -I../../third_party/khronos -I../../gpu -Igen/shim_headers/libdrm_shim -Igen/shim_headers/libpng_shim -Igen/shim_headers/libwebp_shim -Igen/shim_headers/zlib_shim -I../../skia/config -I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/codec -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/docs -I../../third_party/skia/include/effects -I../../third_party/skia/include/encode -I../../third_party/skia/include/gpu -I../../third_party/skia/include/pathops -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../third_party/vulkan/include -I../../third_party/skia/third_party/vulkanmemoryallocator -I../../third_party/skia/src/gpu -I../../third_party/skia/src/sksl -I../../third_party/skia/modules/skottie/include -I../../third_party/vulkan/include -I../../third_party/ced/src -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/protobuf/src -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -m64 -march=x86-64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -no-canonical-prefixes -Wall -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wno-shorten-64-to-32 -std=c++14 -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -march=native -O2 -pipe -c gen/gpu/command_buffer/client/gles2_implementation_jumbo_1.cc -o obj/gpu/command_buffer/client/gles2_implementation/gles2_implementation_jumbo_1.o warning: unknown warning option '-Wno-ignored-pragma-optimize'; did you mean '-Wno-ignored-pragma-intrinsic'? [-Wunknown-warning-option] In file included from gen/gpu/command_buffer/client/gles2_implementation_jumbo_1.cc:8: In file included from ./../../gpu/command_buffer/client/gles2_implementation.cc:47: ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:91:37: error: constexpr variable 'checked_elements_size' must be initialized by a constant expression constexpr base::CheckedNumeric checked_elements_size = ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:116:38: note: in instantiation of function template specialization 'gpu::SizeOfPackedTypes' requested here constexpr uint32_t elements_size = SizeOfPackedTypes(); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:154:32: note: in instantiation of function template specialization 'gpu::ComputeMaxCopyCount' requested here uint32_t copy_count = gpu::ComputeMaxCopyCount(buffer->size()); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:188:20: note: in instantiation of function template specialization 'internal::TransferArraysAndExecute<(lambda at ./../../gpu/command_buffer/client/gles2_implementation.cc:2375:26), gpu::ScopedTransferBufferPtr, const signed char>' requested here return internal::TransferArraysAndExecute( ^ ./../../gpu/command_buffer/client/gles2_implementation.cc:2382:8: note: in instantiation of function template specialization 'gpu::TransferArraysAndExecute<(lambda at ./../../gpu/command_buffer/client/gles2_implementation.cc:2375:26), const signed char>' requested here if (!TransferArraysAndExecute(size, buffer, DoBufferSubData, ^ ../../base/numerics/safe_math_clang_gcc_impl.h:74:13: note: subexpression not valid in a constant expression return !__builtin_add_overflow(x, y, result); ^ ../../base/numerics/checked_math_impl.h:54:14: note: in call to 'Do(0, 1, &result)' return CheckedAddFastOp::Do(x, y, result); ^ ../../base/numerics/checked_math.h:245:21: note: in call to 'Do(0, 1, &result)' Math::Do(state_.value(), Wrapper::value(rhs), &result); ^ ../../base/numerics/checked_math.h:339:1: note: in call to '&checked_elements_size->MathOp(1)' BASE_NUMERIC_ARITHMETIC_OPERATORS(Checked, Check, Add, +, +=) ^ ../../base/numerics/safe_math_shared_impl.h:229:12: note: expanded from macro 'BASE_NUMERIC_ARITHMETIC_OPERATORS' return MathOp(rhs); \ ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:20:27: note: in call to '&checked_elements_size->operator+=(1)' checked_elements_size += s; ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:92:7: note: in call to 'CheckedSizeOfPackedTypes()' CheckedSizeOfPackedTypes(); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:93:17: error: static_assert expression is not an integral constant expression static_assert(checked_elements_size.IsValid(), ""); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../base/numerics/checked_math_impl.h:509:44: note: initializer of 'checked_elements_size' is not a constant expression constexpr bool is_valid() const { return is_valid_; } ^ ../../base/numerics/checked_math.h:56:19: note: in call to '&checked_elements_size.state_->is_valid()' return state_.is_valid() && ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:93:39: note: in call to '&checked_elements_size->IsValid()' static_assert(checked_elements_size.IsValid(), ""); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:91:37: note: declared here constexpr base::CheckedNumeric checked_elements_size = ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:116:22: error: constexpr variable 'elements_size' must be initialized by a constant expression constexpr uint32_t elements_size = SizeOfPackedTypes(); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:154:32: note: in instantiation of function template specialization 'gpu::ComputeMaxCopyCount' requested here uint32_t copy_count = gpu::ComputeMaxCopyCount(buffer->size()); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:188:20: note: in instantiation of function template specialization 'internal::TransferArraysAndExecute<(lambda at ./../../gpu/command_buffer/client/gles2_implementation.cc:2375:26), gpu::ScopedTransferBufferPtr, const signed char>' requested here return internal::TransferArraysAndExecute( ^ ./../../gpu/command_buffer/client/gles2_implementation.cc:2382:8: note: in instantiation of function template specialization 'gpu::TransferArraysAndExecute<(lambda at ./../../gpu/command_buffer/client/gles2_implementation.cc:2375:26), const signed char>' requested here if (!TransferArraysAndExecute(size, buffer, DoBufferSubData, ^ ../../base/numerics/safe_math_clang_gcc_impl.h:74:13: note: subexpression not valid in a constant expression return !__builtin_add_overflow(x, y, result); ^ ../../base/numerics/checked_math_impl.h:54:14: note: in call to 'Do(0, 1, &result)' return CheckedAddFastOp::Do(x, y, result); ^ ../../base/numerics/checked_math.h:245:21: note: in call to 'Do(0, 1, &result)' Math::Do(state_.value(), Wrapper::value(rhs), &result); ^ ../../base/numerics/checked_math.h:339:1: note: in call to '&checked_elements_size->MathOp(1)' BASE_NUMERIC_ARITHMETIC_OPERATORS(Checked, Check, Add, +, +=) ^ ../../base/numerics/safe_math_shared_impl.h:229:12: note: expanded from macro 'BASE_NUMERIC_ARITHMETIC_OPERATORS' return MathOp(rhs); \ ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:20:27: note: in call to '&checked_elements_size->operator+=(1)' checked_elements_size += s; ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:92:7: note: in call to 'CheckedSizeOfPackedTypes()' CheckedSizeOfPackedTypes(); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:116:38: note: in call to 'SizeOfPackedTypes()' constexpr uint32_t elements_size = SizeOfPackedTypes(); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:91:37: error: constexpr variable 'checked_elements_size' must be initialized by a constant expression constexpr base::CheckedNumeric checked_elements_size = ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:116:38: note: in instantiation of function template specialization 'gpu::SizeOfPackedTypes' requested here constexpr uint32_t elements_size = SizeOfPackedTypes(); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:154:32: note: in instantiation of function template specialization 'gpu::ComputeMaxCopyCount' requested here uint32_t copy_count = gpu::ComputeMaxCopyCount(buffer->size()); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:188:20: note: in instantiation of function template specialization 'internal::TransferArraysAndExecute<(lambda at ./../../gpu/command_buffer/client/gles2_implementation.cc:2411:22), gpu::ScopedTransferBufferPtr, const int, const int>' requested here return internal::TransferArraysAndExecute( ^ ./../../gpu/command_buffer/client/gles2_implementation.cc:2417:8: note: in instantiation of function template specialization 'gpu::TransferArraysAndExecute<(lambda at ./../../gpu/command_buffer/client/gles2_implementation.cc:2411:22), const int, const int>' requested here if (!TransferArraysAndExecute(drawcount, &buffer, DoMultiDraw, firsts, ^ ../../base/numerics/safe_math_clang_gcc_impl.h:74:13: note: subexpression not valid in a constant expression return !__builtin_add_overflow(x, y, result); ^ ../../base/numerics/checked_math_impl.h:54:14: note: in call to 'Do(0, 4, &result)' return CheckedAddFastOp::Do(x, y, result); ^ ../../base/numerics/checked_math.h:245:21: note: in call to 'Do(0, 4, &result)' Math::Do(state_.value(), Wrapper::value(rhs), &result); ^ ../../base/numerics/checked_math.h:339:1: note: in call to '&checked_elements_size->MathOp(4)' BASE_NUMERIC_ARITHMETIC_OPERATORS(Checked, Check, Add, +, +=) ^ ../../base/numerics/safe_math_shared_impl.h:229:12: note: expanded from macro 'BASE_NUMERIC_ARITHMETIC_OPERATORS' return MathOp(rhs); \ ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:20:27: note: in call to '&checked_elements_size->operator+=(4)' checked_elements_size += s; ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:92:7: note: in call to 'CheckedSizeOfPackedTypes()' CheckedSizeOfPackedTypes(); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:93:17: error: static_assert expression is not an integral constant expression static_assert(checked_elements_size.IsValid(), ""); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../base/numerics/checked_math_impl.h:509:44: note: initializer of 'checked_elements_size' is not a constant expression constexpr bool is_valid() const { return is_valid_; } ^ ../../base/numerics/checked_math.h:56:19: note: in call to '&checked_elements_size.state_->is_valid()' return state_.is_valid() && ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:93:39: note: in call to '&checked_elements_size->IsValid()' static_assert(checked_elements_size.IsValid(), ""); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:91:37: note: declared here constexpr base::CheckedNumeric checked_elements_size = ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:116:22: error: constexpr variable 'elements_size' must be initialized by a constant expression constexpr uint32_t elements_size = SizeOfPackedTypes(); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:154:32: note: in instantiation of function template specialization 'gpu::ComputeMaxCopyCount' requested here uint32_t copy_count = gpu::ComputeMaxCopyCount(buffer->size()); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:188:20: note: in instantiation of function template specialization 'internal::TransferArraysAndExecute<(lambda at ./../../gpu/command_buffer/client/gles2_implementation.cc:2411:22), gpu::ScopedTransferBufferPtr, const int, const int>' requested here return internal::TransferArraysAndExecute( ^ ./../../gpu/command_buffer/client/gles2_implementation.cc:2417:8: note: in instantiation of function template specialization 'gpu::TransferArraysAndExecute<(lambda at ./../../gpu/command_buffer/client/gles2_implementation.cc:2411:22), const int, const int>' requested here if (!TransferArraysAndExecute(drawcount, &buffer, DoMultiDraw, firsts, ^ ../../base/numerics/safe_math_clang_gcc_impl.h:74:13: note: subexpression not valid in a constant expression return !__builtin_add_overflow(x, y, result); ^ ../../base/numerics/checked_math_impl.h:54:14: note: in call to 'Do(0, 4, &result)' return CheckedAddFastOp::Do(x, y, result); ^ ../../base/numerics/checked_math.h:245:21: note: in call to 'Do(0, 4, &result)' Math::Do(state_.value(), Wrapper::value(rhs), &result); ^ ../../base/numerics/checked_math.h:339:1: note: in call to '&checked_elements_size->MathOp(4)' BASE_NUMERIC_ARITHMETIC_OPERATORS(Checked, Check, Add, +, +=) ^ ../../base/numerics/safe_math_shared_impl.h:229:12: note: expanded from macro 'BASE_NUMERIC_ARITHMETIC_OPERATORS' return MathOp(rhs); \ ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:20:27: note: in call to '&checked_elements_size->operator+=(4)' checked_elements_size += s; ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:92:7: note: in call to 'CheckedSizeOfPackedTypes()' CheckedSizeOfPackedTypes(); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:116:38: note: in call to 'SizeOfPackedTypes()' constexpr uint32_t elements_size = SizeOfPackedTypes(); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:91:37: error: constexpr variable 'checked_elements_size' must be initialized by a constant expression constexpr base::CheckedNumeric checked_elements_size = ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:116:38: note: in instantiation of function template specialization 'gpu::SizeOfPackedTypes' requested here constexpr uint32_t elements_size = SizeOfPackedTypes(); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:154:32: note: in instantiation of function template specialization 'gpu::ComputeMaxCopyCount' requested here uint32_t copy_count = gpu::ComputeMaxCopyCount(buffer->size()); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:188:20: note: in instantiation of function template specialization 'internal::TransferArraysAndExecute<(lambda at ./../../gpu/command_buffer/client/gles2_implementation.cc:2437:22), gpu::ScopedTransferBufferPtr, const int, const int, const int>' requested here return internal::TransferArraysAndExecute( ^ ./../../gpu/command_buffer/client/gles2_implementation.cc:2444:8: note: in instantiation of function template specialization 'gpu::TransferArraysAndExecute<(lambda at ./../../gpu/command_buffer/client/gles2_implementation.cc:2437:22), const int, const int, const int>' requested here if (!TransferArraysAndExecute(drawcount, &buffer, DoMultiDraw, firsts, counts, ^ ../../base/numerics/safe_math_clang_gcc_impl.h:74:13: note: subexpression not valid in a constant expression return !__builtin_add_overflow(x, y, result); ^ ../../base/numerics/checked_math_impl.h:54:14: note: in call to 'Do(0, 4, &result)' return CheckedAddFastOp::Do(x, y, result); ^ ../../base/numerics/checked_math.h:245:21: note: in call to 'Do(0, 4, &result)' Math::Do(state_.value(), Wrapper::value(rhs), &result); ^ ../../base/numerics/checked_math.h:339:1: note: in call to '&checked_elements_size->MathOp(4)' BASE_NUMERIC_ARITHMETIC_OPERATORS(Checked, Check, Add, +, +=) ^ ../../base/numerics/safe_math_shared_impl.h:229:12: note: expanded from macro 'BASE_NUMERIC_ARITHMETIC_OPERATORS' return MathOp(rhs); \ ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:20:27: note: in call to '&checked_elements_size->operator+=(4)' checked_elements_size += s; ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:92:7: note: in call to 'CheckedSizeOfPackedTypes()' CheckedSizeOfPackedTypes(); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:93:17: error: static_assert expression is not an integral constant expression static_assert(checked_elements_size.IsValid(), ""); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../base/numerics/checked_math_impl.h:509:44: note: initializer of 'checked_elements_size' is not a constant expression constexpr bool is_valid() const { return is_valid_; } ^ ../../base/numerics/checked_math.h:56:19: note: in call to '&checked_elements_size.state_->is_valid()' return state_.is_valid() && ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:93:39: note: in call to '&checked_elements_size->IsValid()' static_assert(checked_elements_size.IsValid(), ""); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:91:37: note: declared here constexpr base::CheckedNumeric checked_elements_size = ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:116:22: error: constexpr variable 'elements_size' must be initialized by a constant expression constexpr uint32_t elements_size = SizeOfPackedTypes(); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:154:32: note: in instantiation of function template specialization 'gpu::ComputeMaxCopyCount' requested here uint32_t copy_count = gpu::ComputeMaxCopyCount(buffer->size()); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:188:20: note: in instantiation of function template specialization 'internal::TransferArraysAndExecute<(lambda at ./../../gpu/command_buffer/client/gles2_implementation.cc:2437:22), gpu::ScopedTransferBufferPtr, const int, const int, const int>' requested here return internal::TransferArraysAndExecute( ^ ./../../gpu/command_buffer/client/gles2_implementation.cc:2444:8: note: in instantiation of function template specialization 'gpu::TransferArraysAndExecute<(lambda at ./../../gpu/command_buffer/client/gles2_implementation.cc:2437:22), const int, const int, const int>' requested here if (!TransferArraysAndExecute(drawcount, &buffer, DoMultiDraw, firsts, counts, ^ ../../base/numerics/safe_math_clang_gcc_impl.h:74:13: note: subexpression not valid in a constant expression return !__builtin_add_overflow(x, y, result); ^ ../../base/numerics/checked_math_impl.h:54:14: note: in call to 'Do(0, 4, &result)' return CheckedAddFastOp::Do(x, y, result); ^ ../../base/numerics/checked_math.h:245:21: note: in call to 'Do(0, 4, &result)' Math::Do(state_.value(), Wrapper::value(rhs), &result); ^ ../../base/numerics/checked_math.h:339:1: note: in call to '&checked_elements_size->MathOp(4)' BASE_NUMERIC_ARITHMETIC_OPERATORS(Checked, Check, Add, +, +=) ^ ../../base/numerics/safe_math_shared_impl.h:229:12: note: expanded from macro 'BASE_NUMERIC_ARITHMETIC_OPERATORS' return MathOp(rhs); \ ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:20:27: note: in call to '&checked_elements_size->operator+=(4)' checked_elements_size += s; ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:92:7: note: in call to 'CheckedSizeOfPackedTypes()' CheckedSizeOfPackedTypes(); ^ ../../gpu/command_buffer/client/transfer_buffer_cmd_copy_helpers.h:116:38: note: in call to 'SizeOfPackedTypes()' constexpr uint32_t elements_size = SizeOfPackedTypes(); ^ 1 warning and 9 errors generated. [6833/9682] x86_64-pc-linux-gnu-clang++ -MMD -MF obj/ui/gfx/ipc/color/color/gfx_param_traits.o.d -DGFX_IPC_COLOR_IMPLEMENTATION -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"354873-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DENABLE_IPC_FUZZER -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_HAS_JPEG_LIBRARY -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DVK_NO_PROTOTYPES -I../.. -Igen -Igen/shim_headers/libpng_shim -Igen/shim_headers/libwebp_shim -Igen/shim_headers/zlib_shim -I../../third_party/ced/src -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/protobuf/src -I../../skia/config -I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/codec -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/docs -I../../third_party/skia/include/effects -I../../third_party/skia/include/encode -I../../third_party/skia/include/gpu -I../../third_party/skia/include/pathops -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../third_party/vulkan/include -I../../third_party/skia/third_party/vulkanmemoryallocator -I../../third_party/skia/src/gpu -I../../third_party/skia/src/sksl -I../../third_party/skia/modules/skottie/include -I../../third_party/vulkan/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -m64 -march=x86-64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -no-canonical-prefixes -Wall -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wno-shorten-64-to-32 -std=c++14 -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -march=native -O2 -pipe -c ../../ui/gfx/ipc/color/gfx_param_traits.cc -o obj/ui/gfx/ipc/color/color/gfx_param_traits.o warning: unknown warning option '-Wno-ignored-pragma-optimize'; did you mean '-Wno-ignored-pragma-intrinsic'? [-Wunknown-warning-option] 1 warning generated. ninja: build stopped: subcommand failed. * ERROR: www-client/chromium-74.0.3729.131::x-portage failed (compile phase): * ninja -v -j2 -l0 -C out/Release v8_context_snapshot_generator failed * * Call stack: * ebuild.sh, line 124: Called src_compile * environment, line 4270: Called eninja '-C' 'out/Release' 'v8_context_snapshot_generator' * environment, line 1765: Called die * The specific snippet of code: * "$@" || die "${nonfatal_args[@]}" "${*} failed" * * If you need support, post the output of `emerge --info '=www-client/chromium-74.0.3729.131::x-portage'`, * the complete build log and the output of `emerge -pqv '=www-client/chromium-74.0.3729.131::x-portage'`. * * MemTotal: 8063748 kB * SwapTotal: 16777212 kB * * The complete build log is located at '/var/tmp/portage/www-client/chromium-74.0.3729.131/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/www-client/chromium-74.0.3729.131/temp/environment'. * Working directory: '/var/tmp/portage/www-client/chromium-74.0.3729.131/work/chromium-74.0.3729.131' * S: '/var/tmp/portage/www-client/chromium-74.0.3729.131/work/chromium-74.0.3729.131' >>> Failed to emerge www-client/chromium-74.0.3729.131, Log file: >>> '/var/tmp/portage/www-client/chromium-74.0.3729.131/temp/build.log' * Messages for package www-client/chromium-74.0.3729.131: * ERROR: www-client/chromium-74.0.3729.131::x-portage failed (compile phase): * ninja -v -j2 -l0 -C out/Release v8_context_snapshot_generator failed * * Call stack: * ebuild.sh, line 124: Called src_compile * environment, line 4270: Called eninja '-C' 'out/Release' 'v8_context_snapshot_generator' * environment, line 1765: Called die * The specific snippet of code: * "$@" || die "${nonfatal_args[@]}" "${*} failed" *