gcc verson : gcc (GCC) 9.3.0
ninja version: 1.9.0
error msg:
[0/2] Re-checking globbed directories...
[2/35] Building CXX object utils/test-data-generator/CMakeFiles/ProtobufDelimitedMessagesSerializer.dir/00825_protobuf_format.pb.cc.o
FAILED: utils/test-data-generator/CMakeFiles/ProtobufDelimitedMessagesSerializer.dir/00825_protobuf_format.pb.cc.o
/usr/bin/c++ -DOUTPUT_DIR=\"/home/kangxiang/ClickHouse/tests/queries/0_stateless\" -DSTD_EXCEPTION_HAS_STACK_TRACE=1 -I../contrib/sentry-native/include -Iincludes/configs -isystem ../contrib/protobuf/src -isystem utils/test-data-generator -isystem ../contrib/libcxx/include -isystem ../contrib/libcxxabi/include -isystem ../contrib/libunwind/include -isystem ../contrib/boost -isystem ../contrib/libc-headers/x86_64-linux-gnu -isystem ../contrib/libc-headers -fdiagnostics-color=always -std=c++2a -fsized-deallocation -pipe -msse4.1 -msse4.2 -mpopcnt -Wall -Werror -Wextra -Wframe-larger-than=32768 -O2 -g -DNDEBUG -O3 -fno-pie -D OS_LINUX -Wbool-compare -Wcast-align -Wcast-qual -Wdelete-incomplete -Wdisabled-optimization -Wduplicated-cond -Wenum-compare -Winit-self -Wlogical-not-parentheses -Wlogical-op -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-include-dirs -Wnon-virtual-dtor -Wno-return-local-addr -Wodr -Wold-style-cast -Wplacement-new=2 -Wpointer-arith -Wredundant-decls -Wreorder -Wshadow -Wshift-negative-value -Wsized-deallocation -Wsizeof-array-argument -Wsizeof-pointer-memaccess -Wsuggest-override -Wswitch-bool -Wtautological-compare -Wtrampolines -Wunused -Wvector-operation-performance -Wzero-as-null-pointer-constant -Wno-suggest-destructor-override -nostdinc++ -MD -MT utils/test-data-generator/CMakeFiles/ProtobufDelimitedMessagesSerializer.dir/00825_protobuf_format.pb.cc.o -MF utils/test-data-generator/CMakeFiles/ProtobufDelimitedMessagesSerializer.dir/00825_protobuf_format.pb.cc.o.d -o utils/test-data-generator/CMakeFiles/ProtobufDelimitedMessagesSerializer.dir/00825_protobuf_format.pb.cc.o -c utils/test-data-generator/00825_protobuf_format.pb.cc
In member function ‘void Person::SharedCtor()’,
inlined from ‘Person::Person(google::protobuf::Arena*)’ at utils/test-data-generator/00825_protobuf_format.pb.cc:1740:13,
inlined from ‘Person::Person()’ at utils/test-data-generator/00825_protobuf_format.pb.h:988:35,
inlined from ‘void InitDefaultsscc_info_Person_00825_5fprotobuf_5fformat_2eproto()’ at utils/test-data-generator/00825_protobuf_format.pb.h:988:10:
utils/test-data-generator/00825_protobuf_format.pb.cc:1800:11: error: ‘void* memset(void*, int, size_t)’ offset [169, 224] from the object at ‘_Person_default_instance_’ is out of the bounds of referenced subobject ‘Person::nestiness_’ with type ‘Nestiness*’ at offset 160 [-Werror=array-bounds]
1800 | ::memset(&nestiness_, 0, static_cast<size_t>(
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1801 | reinterpret_cast<char*>(&randombignumber_) -
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1802 | reinterpret_cast<char*>(&nestiness_)) + sizeof(randombignumber_));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At global scope:
cc1plus: error: unrecognized command line option ‘-Wno-suggest-destructor-override’ [-Werror]
cc1plus: all warnings being treated as errors
^Cninja: build stopped: interrupted by user.
I follow this link and confuse about the Linker: lld or gold (the classic GNU ld won’t work) in components, is that something I forget to install?
You can install lld and create symlink, for example sudo ln -s /usr/bin/lld-10 /usr/bin/ld.lld.
Or simply try not to build tests if you don't need them (try ninja clickhouse-bundle).
gcc 9 is not supported.
The only supported build configurations listed here: https://clickhouse-builds.s3.yandex.net/15937/db4db42b65bed60512379e9ebc4dc009b7fc3666/clickhouse_build_check/report.html
The minimal version of gcc is 10.
gcc 9 is not supported.
The only supported build configurations listed here: https://clickhouse-builds.s3.yandex.net/15937/db4db42b65bed60512379e9ebc4dc009b7fc3666/clickhouse_build_check/report.html
The minimal version of gcc is 10.
It works fine after I switched to gcc 10.2.0. Thanks :)
Most helpful comment
It works fine after I switched to gcc 10.2.0. Thanks :)