Skip to content

call to non-'constexpr' function 'long int sysconf(int)' #29797

@matwey

Description

@matwey

Operating system

openSUSE Tumbleweed

Cmake version

cmake-3.21.3

Ninja version

ninja-1.10.2

Compiler name and version

gcc 11

Full cmake and/or ninja output

[  452s] -- The C compiler identification is GNU 11.2.1
[  452s] -- The CXX compiler identification is GNU 11.2.1
[  452s] -- Detecting C compiler ABI info
[  452s] -- Detecting C compiler ABI info - done
[  452s] -- Check for working C compiler: /var/lib/build/ccache/bin/cc - skipped
[  452s] -- Detecting C compile features
[  452s] -- Detecting C compile features - done
[  452s] -- Detecting CXX compiler ABI info
[  452s] -- Detecting CXX compiler ABI info - done
[  452s] -- Check for working CXX compiler: /var/lib/build/ccache/bin/c++ - skipped
[  452s] -- Detecting CXX compile features
[  452s] -- Detecting CXX compile features - done
[  452s] -- The ASM compiler identification is GNU
[  452s] -- Found assembler: /var/lib/build/ccache/bin/cc
[  452s] CMake Warning at cmake/tools.cmake:16 (message):
[  452s]   GCC compiler is not officially supported for ClickHouse.  You should
[  452s]   migrate to clang.
[  452s] Call Stack (most recent call first):
[  452s]   CMakeLists.txt:46 (include)
[  452s] 
[  452s] 
[  452s] -- Using custom linker by name: gold
[  452s] -- CMAKE_BUILD_TYPE: RelWithDebInfo
[  452s] -- Using objcopy: /usr/bin/llvm-objcopy
[  452s] -- Disabling compiler -pipe option (have only 30851 mb of memory)
[  452s] -- Performing Test HAVE_SSE41
[  452s] -- Performing Test HAVE_SSE41 - Success
[  452s] -- Performing Test HAVE_SSE42
[  453s] -- Performing Test HAVE_SSE42 - Success
[  453s] -- Performing Test HAVE_SSSE3
[  453s] -- Performing Test HAVE_SSSE3 - Success
[  453s] -- Performing Test HAVE_AVX
[  454s] -- Performing Test HAVE_AVX - Success
[  454s] -- Performing Test HAVE_AVX2
[  455s] -- Performing Test HAVE_AVX2 - Success
[  455s] -- Performing Test HAVE_PCLMULQDQ
[  455s] -- Performing Test HAVE_PCLMULQDQ - Success
[  455s] -- Performing Test HAVE_POPCNT
[  455s] -- Performing Test HAVE_POPCNT - Success
[  455s] -- Default libraries: -nodefaultlibs -lgcc  -lc -lm -lrt -lpthread -ldl
[  455s] -- Looking for pthread.h
[  455s] -- Looking for pthread.h - found
[  455s] -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
[  456s] -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
[  456s] -- Found Threads: TRUE  
[  456s] -- Performing Test HAVE_WARNING_UNUSED_BUT_SET_VARIABLE
[  456s] -- Performing Test HAVE_WARNING_UNUSED_BUT_SET_VARIABLE - Success
[  456s] -- Performing Test HAVE_WARNING_MISSING_ATTRIBUTES
[  456s] -- Performing Test HAVE_WARNING_MISSING_ATTRIBUTES - Success
[  456s] -- Performing Test HAVE_WARNING_MAYBE_UNINITIALIZED
[  456s] -- Performing Test HAVE_WARNING_MAYBE_UNINITIALIZED - Success
[  456s] -- Performing Test HAVE_WARNING_REGISTER
[  456s] -- Performing Test HAVE_WARNING_REGISTER - Success
[  456s] -- Using libunwind: unwind
[  456s] -- Using exception handler: unwind
[  456s] -- Unit tests are disabled
[  456s] -- Building for: Linux-5.14.6-2-default x86_64  ;
[  456s]     USE_STATIC_LIBRARIES=ON
[  456s]     MAKE_STATIC_LIBRARIES=ON
[  456s]     SPLIT_SHARED=
[  456s]     UNBUNDLED=ON
[  456s]     CCACHE= 
[  456s] CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
[  456s]   The package name passed to `find_package_handle_standard_args`
[  456s]   (double_conversion) does not match the name of the calling package
[  456s]   (double-conversion).  This can lead to problems in calling code that
[  456s]   expects `find_package` result variables (e.g., `_FOUND`) to follow a
[  456s]   certain pattern.
[  456s] Call Stack (most recent call first):
[  456s]   cmake/Modules/Finddouble-conversion.cmake:35 (find_package_handle_standard_args)
[  456s]   cmake/contrib_finder.cmake:10 (find_package)
[  456s]   CMakeLists.txt:501 (find_contrib_lib)
[  456s] This warning is for project developers.  Use -Wno-dev to suppress it.
[  456s] 
[  456s] -- Found double_conversion: /usr/lib64/libdouble-conversion.so  
[  456s] -- Using double-conversion: /usr/include : /usr/lib64/libdouble-conversion.so
[  456s] -- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found version "1.1.1l")
[  456s] -- Using ssl=1: /usr/include : /usr/lib64/libssl.so;/usr/lib64/libcrypto.so
[  456s] -- Found the following ICU libraries:
[  456s] --   i18n (required)
[  456s] --   uc (required)
[  456s] --   data (required)
[  456s] -- Found ICU: /usr/include (found version "69.1") 
[  456s] -- Using icu=1: /usr/include : /usr/lib64/libicui18n.so;/usr/lib64/libicuuc.so;/usr/lib64/libicudata.so
[  456s] -- Using xz (lzma): /usr/include : /usr/lib64/liblzma.so
[  456s] -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") 
[  456s] -- Using libz: /usr/include : /usr/lib64/libz.so
[  456s] -- Using zstd: /usr/include : /usr/lib64/libzstd.so
[  456s] -- Using sparsehash: /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/sparsehash-c11
[  456s] -- Using re2: /usr/include : /usr/lib64/libre2.so;  : /usr/lib64/libre2.so
[  456s] -- Using krb5=1: /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/krb5/src/include;/home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/build/contrib/krb5-cmake/include : krb5
[  456s] -- Using libgsasl=1: /usr/include : /usr/lib64/libgsasl.so
[  456s] -- Using cyrus-sasl: krb5=1: /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/cyrus-sasl/include : sasl2
[  456s] -- Using librdkafka=1: /usr/include : rdkafka_imp;/usr/lib64/libssl.so;/usr/lib64/libcrypto.so;/usr/lib64/libsasl2.so cppkafka
[  456s] -- Using libuv: /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/libuv : uv_a
[  456s] -- Using AMQP-CPP=1: /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/AMQP-CPP/include;/home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/libuv/include;/home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/AMQP-CPP : amqp-cpp;uv_a
[  456s] -- Using capnp=1: /usr/lib64/libcapnpc.so;/usr/lib64/libcapnp.so;/usr/lib64/libkj.so
[  456s] -- Using h3=1: /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/h3/src/h3lib/include : h3
[  457s] -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.12") 
[  457s] -- Looking for lzma_auto_decoder in /usr/lib64/liblzma.so
[  457s] -- Looking for lzma_auto_decoder in /usr/lib64/liblzma.so - found
[  457s] -- Looking for lzma_easy_encoder in /usr/lib64/liblzma.so
[  457s] -- Looking for lzma_easy_encoder in /usr/lib64/liblzma.so - found
[  457s] -- Looking for lzma_lzma_preset in /usr/lib64/liblzma.so
[  457s] -- Looking for lzma_lzma_preset in /usr/lib64/liblzma.so - found
[  457s] -- Found LibLZMA: /usr/lib64/liblzma.so (found version "5.2.5") 
[  457s] -- Using libxml2: /usr/include/libxml2 : /usr/lib64/libxml2.so;/usr/lib64/liblzma.so
[  457s] -- Using brotli=1: /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/brotli/c/include : brotli
[  457s] -- Found Protobuf: /usr/lib64/libprotobuf.so (found version "3.17.3") 
[  457s] -- Using protobuf=1: /usr/include : /usr/lib64/libprotobuf.so : /usr/bin/protoc : /usr/lib64/libprotoc.so
[  457s] -- Using pdqsort: /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/pdqsort
[  457s] -- Using miniselect: /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/miniselect/include
[  457s] -- Using hdfs3=1: /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/libhdfs3/include : hdfs3
[  457s] -- Found CURL: /usr/lib64/libcurl.so (found version "7.79.1")  
[  457s] -- Using curl: /usr/include : /usr/lib64/libcurl.so
[  457s] -- Building without Parquet support
[  457s] -- Using simdjson=OFF
[  457s] -- Using rapidjson=1: /usr/include
[  457s] -- Found odbc: /usr/lib64/libodbc.so
[  457s] -- Using unixodbc
[  457s] -- Using nanodbc: /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/nanodbc/nanodbc : nanodbc
[  457s] -- Using NuRaft=1: /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/NuRaft/include : nuraft
[  457s] -- Using msgpack=1: /usr/include
[  457s] -- Using cassandra=1: /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/cassandra/include/ : cassandra_static
[  457s] -- Using stats=1 : /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/stats/include
[  457s] -- Using gcem=1: /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/gcem/include
[  457s] -- Using datasketches=: DATASKETCHES_INCLUDE_DIR-NOTFOUND : DATASKETCHES_LIBRARY-NOTFOUND
[  457s] -- Using cityhash:  : cityhash
[  457s] -- Using farmhash:  : farmhash
[  457s] -- Using mysqlclient=1: /usr/include/mysql : ; staticlib=/usr/lib64/libmysqlclient.so
[  457s] -- compiler C   = /var/lib/build/ccache/bin/cc -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type  -g -DNDEBUG -fdiagnostics-color=always  -msse4.1 -msse4.2 -mpopcnt -fasynchronous-unwind-tables -falign-functions=32  -Wall  -O2 -g -DNDEBUG -O3  -fno-pie
[  457s] -- compiler CXX = /var/lib/build/ccache/bin/c++ -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type  -g -DNDEBUG -fdiagnostics-color=always -fsized-deallocation  -msse4.1 -msse4.2 -mpopcnt -fasynchronous-unwind-tables -falign-functions=32   -Wall  -O2 -g -DNDEBUG -O3  -fno-pie
[  457s] -- LINKER_FLAGS =  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now -fuse-ld=gold -rdynamic -Wl,--no-undefined -Wl,-no-pie 
[  457s] -- Found Boost: /usr/lib64/cmake/Boost-1.77.0/BoostConfig.cmake (found suitable version "1.77.0", minimum required is "1.71") found components: system filesystem iostreams program_options regex context coroutine 
[  457s] -- Packaging with tzdata version: 2020e
[  458s] -- Using cctz
[  458s] -- Using hyperscan
[  458s] -- jemalloc malloc_conf: percpu_arena:percpu,oversize_threshold:0,muzzy_decay_ms:5000,dirty_decay_ms:5000
[  458s] -- Using jemalloc
[  458s] -- Using cpuid
[  458s] -- Using replxx
[  458s] -- Using Poco::Crypto
[  458s] -- Using Poco::Data::ODBC
[  458s] -- checking compiler: GCC (11.2.)
[  458s] -- Looking for dladdr
[  458s] -- Looking for dladdr - found
[  458s] -- Looking for nanosleep
[  458s] -- Looking for nanosleep - found
[  458s] -- Checking whether strerror_r returns an int
[  458s] -- Checking whether strerror_r returns an int -- no
[  459s] -- libuv version: v1.34.1
[  459s] -- Found Libuv: uv_a (found suitable version "1.34.1", minimum required is "1.0.0") 
[  459s] -- Found OpenSSL: /usr/lib64/libssl.so (found version "1.1.1l") 
[  459s] -- OpenSSL version: v1.1.1l
[  459s] -- Could NOT find CLANG_FORMAT (missing: CLANG_FORMAT_EXE) 
[  459s] -- Unable to find clang-format. Not creating format targets.
[  459s] -- Driver version: 2.15.3
[  459s] -- Using std::atomic implementation for atomic operations
[  459s] -- Checking to see if CXX compiler accepts flag -std=c++11
[  459s] -- Checking to see if CXX compiler accepts flag -std=c++11 - yes
[  461s] -- Using hash header <functional> and namespace "std"
[  461s] -- Looking for inttypes.h
[  461s] -- Looking for inttypes.h - found
[  461s] -- Looking for stdint.h
[  461s] -- Looking for stdint.h - found
[  461s] -- Looking for sys/types.h
[  461s] -- Looking for sys/types.h - found
[  461s] -- Looking for memcpy
[  461s] -- Looking for memcpy - found
[  461s] -- Looking for stddef.h
[  461s] -- Looking for stddef.h - found
[  461s] -- Check size of long long
[  461s] -- Check size of long long - done
[  461s] -- Check size of uint16_t
[  462s] -- Check size of uint16_t - done
[  462s] -- Check size of u_int16_t
[  462s] -- Check size of u_int16_t - done
[  462s] -- Check size of __uint16_t
[  462s] -- Check size of __uint16_t - done
[  462s] -- Looking for GRND_NONBLOCK
[  462s] -- Looking for GRND_NONBLOCK - found
[  462s] -- Looking for SO_NOSIGPIPE
[  462s] -- Looking for SO_NOSIGPIPE - not found
[  462s] -- Looking for sigtimedwait
[  462s] -- Looking for sigtimedwait - found
[  462s] -- Performing Test HAVE_BUILTIN_BSWAP32
[  463s] -- Performing Test HAVE_BUILTIN_BSWAP32 - Success
[  463s] -- Performing Test HAVE_BUILTIN_BSWAP64
[  463s] -- Performing Test HAVE_BUILTIN_BSWAP64 - Success
[  463s] -- GCE-Math version 1.13.0
[  463s] -- Performing Test SUPPORTS_CXXFLAG_frame_larger_than=65536
[  463s] -- Performing Test SUPPORTS_CXXFLAG_frame_larger_than=65536 - Success
[  463s] -- Performing Test SUPPORTS_CFLAG_frame_larger_than=65536
[  463s] -- Performing Test SUPPORTS_CFLAG_frame_larger_than=65536 - Success
[  463s] -- Performing Test HAS_SUGGEST_DESTRUCTOR_OVERRIDE
[  463s] -- Performing Test HAS_SUGGEST_DESTRUCTOR_OVERRIDE - Failed
[  463s] -- Performing Test HAS_SHADOW
[  463s] -- Performing Test HAS_SHADOW - Success
[  463s] -- Performing Test HAS_SUGGEST_OVERRIDE
[  464s] -- Performing Test HAS_SUGGEST_OVERRIDE - Success
[  464s] CMake Warning at base/mysqlxx/CMakeLists.txt:53 (message):
[  464s]   Statically linking with system mysql/mariadb only works if mysql client
[  464s]   libraries are built with same openssl version as we are going to use now.
[  464s]   It wouldn't work if GnuTLS is used.  Try -D"USE_INTERNAL_MYSQL_LIBRARY"=ON
[  464s]   or -D"ENABLE_MYSQL"=OFF or -D"USE_STATIC_LIBRARIES"=OFF
[  464s] 
[  464s] 
[  464s] -- /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/src: Have 30822 megabytes of memory.
[  464s]         Limiting concurrent linkers jobs to 1 and compiler jobs to 6
[  464s] -- Will build ClickHouse 21.8.5.1 revision 54453 
[  464s] CMake Warning at src/Functions/CMakeLists.txt:54 (message):
[  464s]   Not generating debugger info for ClickHouse functions
[  464s] 
[  464s] 
[  464s] -- ClickHouse modes:
[  464s] -- Server mode: ON
[  464s] -- Client mode: ON
[  464s] -- Local mode: ON
[  464s] -- Benchmark mode: ON
[  464s] -- Extract from config mode: ON
[  464s] -- Compressor mode: ON
[  464s] -- Copier mode: ON
[  464s] -- Format mode: ON
[  464s] -- Obfuscator mode: ON
[  464s] -- ODBC bridge mode: ON
[  464s] -- Library bridge mode: ON
[  464s] -- ClickHouse install: ON
[  464s] -- ClickHouse git-import: ON
[  464s] -- ClickHouse keeper mode: ON
[  464s] -- ClickHouse keeper-converter mode: ON
[  464s] -- bash_completion will be written to /usr/share/bash-completion/completions
[  464s] -- Target check already exists
[  464s] -- /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/utils: Have 30814 megabytes of memory.
[  464s]         Limiting concurrent linkers jobs to 1 and compiler jobs to 6
[  464s] -- Configuring done
[  466s] -- Generating done
[  466s] CMake Warning:
[  466s]   Manually-specified variables were not used by the project:
[  466s] 
[  466s]     BUILD_STATIC_LIBS
[  466s]     CMAKE_COLOR_MAKEFILE
[  466s]     CMAKE_Fortran_FLAGS
[  466s]     CMAKE_INSTALL_DO_STRIP
[  466s]     CMAKE_MODULES_INSTALL_DIR
[  466s]     CMAKE_VERBOSE_MAKEFILE
[  466s]     DISABLE_CPU_OPTIMIZE
[  466s]     INCLUDE_INSTALL_DIR
[  466s]     LIB_INSTALL_DIR
[  466s]     LIB_SUFFIX
[  466s]     SHARE_INSTALL_PREFIX
[  466s]     SYSCONF_INSTALL_DIR
[  466s]     USE_INTERNAL_JEMALLOC_LIBRARY
[  466s] 
[  466s] 
[  466s] -- Build files have been written to: /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/build

skipped

[ 3673s] FAILED: src/CMakeFiles/clickhouse_common_io.dir/Common/ThreadStatus.cpp.o 
[ 3673s] /var/lib/build/ccache/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DPOCO_ENABLE_CPP11 -DPOCO_HAVE_FD_EPOLL -DPOCO_OS_FAMILY_UNIX -DUSE_CPUID=1 -DUSE_REPLXX=1 -DWITH_COVERAGE=0 -I/home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/build/includes/configs -I/home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/src -I/home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/build/src -I/home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/build/src/Core/include -I/home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/base/widechar_width -I/home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/base/common/.. -I/home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/build/base/common/.. -I/home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/cityhash102/include -I/home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/cctz/include -I/home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/base/pcg-random/. -isystem /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/fast_float/include -isystem /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/brotli/c/include -isystem /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/libunwind/include -isystem /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/poco/Net/include -isystem /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/poco/Foundation/include -isystem /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/poco/NetSSL_OpenSSL/include -isystem /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/poco/Crypto/include -isystem /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/poco/Util/include -isystem /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/poco/JSON/include -isystem /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/poco/XML/include -isystem /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/replxx/include -isystem /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/fmtlib-cmake/../fmtlib/include -isystem /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/dragonbox/include -isystem /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/libcpuid -isystem /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/croaring/cpp -isystem /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/contrib/croaring/include -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type  -g -DNDEBUG -fdiagnostics-color=always -fsized-deallocation  -msse4.1 -msse4.2 -mpopcnt -fasynchronous-unwind-tables -falign-functions=32   -Wall  -Wextra -Wframe-larger-than=65536 -O2 -g -DNDEBUG -O3  -fno-pie   -D OS_LINUX -fno-tree-loop-distribute-patterns -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 -Wundef -Wvector-operation-performance -Wno-sequence-point -Wno-stringop-overflow -std=gnu++20 -MD -MT src/CMakeFiles/clickhouse_common_io.dir/Common/ThreadStatus.cpp.o -MF src/CMakeFiles/clickhouse_common_io.dir/Common/ThreadStatus.cpp.o.d -o src/CMakeFiles/clickhouse_common_io.dir/Common/ThreadStatus.cpp.o -c /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/src/Common/ThreadStatus.cpp
[ 3673s] In file included from /usr/include/signal.h:328,
[ 3673s]                  from /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/src/Common/StackTrace.h:10,
[ 3673s]                  from /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/src/Common/Exception.h:10,
[ 3673s]                  from /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/src/Common/ThreadStatus.cpp:1:
[ 3673s] /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/src/Common/ThreadStatus.cpp:64:63: error: call to non-'constexpr' function 'long int sysconf(int)'
[ 3673s]    64 |     static constexpr size_t size = std::max<size_t>(16 << 10, MINSIGSTKSZ);
[ 3673s]       |                                                               ^~~~~~~~~~~
[ 3673s] In file included from /usr/include/c++/11/bits/atomic_wait.h:44,
[ 3673s]                  from /usr/include/c++/11/bits/atomic_base.h:41,
[ 3673s]                  from /usr/include/c++/11/bits/shared_ptr_atomic.h:33,
[ 3673s]                  from /usr/include/c++/11/memory:78,
[ 3673s]                  from /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/src/Common/Exception.h:5,
[ 3673s]                  from /home/abuild/rpmbuild/BUILD/clickhouse-21.8.4.51/src/Common/ThreadStatus.cpp:1:
[ 3673s] /usr/include/unistd.h:641:17: note: 'long int sysconf(int)' declared here
[ 3673s]   641 | extern long int sysconf (int __name) __THROW;
[ 3673s]       |                 ^~~~~~~

Please note, that 3c76986 breaks build with very recent glibc on Linux (both x86_64 and aarch64). This is probably related to https://sourceware.org/git/?p=glibc.git;a=commit;h=6c57d320484988e87e446e2e60ce42816bf51d53

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions