Cannot compile net_unittests on Ubuntu 14.04 due to __warn_memset_zero_len warning with BigInt
Reported by
toms...@gmail.com,
Aug 30
|
||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15
Steps to reproduce the problem:
1. gn gen out/tests --args=is_clang=false use_sysroot=false
2. ninja -C out/tests net_unittests
3.
What is the expected behavior?
Successful completion
What went wrong?
In function ‘void* memset(void*, int, size_t)’,
inlined from ‘void v8::internal::MutableBigInt::InitializeDigits(int, v8::internal::byte)’ at ../../v8/src/objects/bigint.cc:302:9,
inlined from ‘static v8::internal::MaybeHandle<v8::internal::MutableBigInt> v8::internal::MutableBigInt::New(v8::internal::Isolate*, int, v8::internal::PretenureFlag)’ at ../../v8/src/objects/bigint.cc:200:27,
inlined from ‘static v8::internal::Handle<v8::internal::BigInt> v8::internal::MutableBigInt::Zero(v8::internal::Isolate*)’ at ../../v8/src/objects/bigint.cc:51:41,
inlined from ‘static v8::internal::Handle<v8::internal::BigInt> v8::internal::MutableBigInt::NewFromInt(v8::internal::Isolate*, int)’ at ../../v8/src/objects/bigint.cc:206:38,
inlined from ‘static v8::internal::MaybeHandle<v8::internal::BigInt> v8::internal::BigInt::FromNumber(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>)’ at ../../v8/src/objects/bigint.cc:911:66:
/usr/include/x86_64-linux-gnu/bits/string3.h:81:30: error: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [-Werror]
__warn_memset_zero_len ();
~~~~~~~~~~~~~~~~~~~~~~~^~
cc1plus: all warnings being treated as errors
[4078/4326] CXX obj/v8/v8_base/managed.o
[4079/4326] CXX obj/v8/v8_base/js-locale.o
[4080/4326] CXX obj/v8/v8_base/literal-objects.o
[4081/4326] CXX obj/v8/v8_base/module.o
[4082/4326] CXX obj/v8/v8_base/objects.o
ninja: build stopped: subcommand failed.
Did this work before? N/A
Chrome version: 68.0.3440.106 Channel: stable
OS Version: Ubuntu 14.04
Flash Version:
,
Aug 31
Looks like that's in V8 code, which net's test depend on, rather than in net/ itself. That having been said, I don't believe we support non-Clang builds any more, though still accept third party patches to fix them.
,
Sep 4
Thanks for filing the issue! From comment#0, the issue seems to be out of scope for us to triage this further from our end. Hence adding label "TE-NeedsTriageHelp" and requesting someone from Network team to have a look into this and help in further triaging it. Thanks...!
,
Sep 13
Yang, what is the current stance on building without Clang? |
||||
►
Sign in to add a comment |
||||
Comment 1 by viswa.karala@chromium.org
, Aug 30