diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d5ce1996f3..e3eff050015 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -153,6 +153,8 @@ if (COMPILER_CLANG) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Xclang -fuse-ctor-homing") endif() endif() + + no_warning(enum-constexpr-conversion) # breaks Protobuf in clang-16 endif () # If compiler has support for -Wreserved-identifier. It is difficult to detect by clang version, @@ -606,4 +608,3 @@ if (NATIVE_BUILD_TARGETS COMMAND ${CMAKE_COMMAND} --build "${NATIVE_BUILD_DIR}" --target ${NATIVE_BUILD_TARGETS} COMMAND_ECHO STDOUT) endif () - diff --git a/README.md b/README.md index 20340883853..b173add94e3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![ClickHouse — open source distributed column-oriented DBMS](https://github.com/ClickHouse/ClickHouse/raw/master/website/images/logo-400x240.png)](https://clickhouse.com) +[![ClickHouse — open source distributed column-oriented DBMS](https://github.com/ClickHouse/clickhouse-presentations/raw/master/images/logo-400x240.png)](https://clickhouse.com) ClickHouse® is an open-source column-oriented database management system that allows generating analytical data reports in real-time. diff --git a/cmake/limit_jobs.cmake b/cmake/limit_jobs.cmake index 96c6b75bc43..a8f105b8987 100644 --- a/cmake/limit_jobs.cmake +++ b/cmake/limit_jobs.cmake @@ -3,7 +3,7 @@ # set (MAX_LINKER_MEMORY 3500 CACHE INTERNAL "") # include (cmake/limit_jobs.cmake) -cmake_host_system_information(RESULT AVAILABLE_PHYSICAL_MEMORY QUERY AVAILABLE_PHYSICAL_MEMORY) # Not available under freebsd +cmake_host_system_information(RESULT TOTAL_PHYSICAL_MEMORY QUERY TOTAL_PHYSICAL_MEMORY) # Not available under freebsd cmake_host_system_information(RESULT NUMBER_OF_LOGICAL_CORES QUERY NUMBER_OF_LOGICAL_CORES) # 1 if not set @@ -12,8 +12,8 @@ option(PARALLEL_COMPILE_JOBS "Maximum number of concurrent compilation jobs" "") # 1 if not set option(PARALLEL_LINK_JOBS "Maximum number of concurrent link jobs" "") -if (NOT PARALLEL_COMPILE_JOBS AND AVAILABLE_PHYSICAL_MEMORY AND MAX_COMPILER_MEMORY) - math(EXPR PARALLEL_COMPILE_JOBS ${AVAILABLE_PHYSICAL_MEMORY}/${MAX_COMPILER_MEMORY}) +if (NOT PARALLEL_COMPILE_JOBS AND TOTAL_PHYSICAL_MEMORY AND MAX_COMPILER_MEMORY) + math(EXPR PARALLEL_COMPILE_JOBS ${TOTAL_PHYSICAL_MEMORY}/${MAX_COMPILER_MEMORY}) if (NOT PARALLEL_COMPILE_JOBS) set (PARALLEL_COMPILE_JOBS 1) @@ -27,8 +27,8 @@ if (PARALLEL_COMPILE_JOBS AND (NOT NUMBER_OF_LOGICAL_CORES OR PARALLEL_COMPILE_J endif () -if (NOT PARALLEL_LINK_JOBS AND AVAILABLE_PHYSICAL_MEMORY AND MAX_LINKER_MEMORY) - math(EXPR PARALLEL_LINK_JOBS ${AVAILABLE_PHYSICAL_MEMORY}/${MAX_LINKER_MEMORY}) +if (NOT PARALLEL_LINK_JOBS AND TOTAL_PHYSICAL_MEMORY AND MAX_LINKER_MEMORY) + math(EXPR PARALLEL_LINK_JOBS ${TOTAL_PHYSICAL_MEMORY}/${MAX_LINKER_MEMORY}) if (NOT PARALLEL_LINK_JOBS) set (PARALLEL_LINK_JOBS 1) @@ -54,6 +54,6 @@ endif () if (PARALLEL_COMPILE_JOBS OR PARALLEL_LINK_JOBS) message(STATUS - "${CMAKE_CURRENT_SOURCE_DIR}: Have ${AVAILABLE_PHYSICAL_MEMORY} megabytes of memory. + "${CMAKE_CURRENT_SOURCE_DIR}: Have ${TOTAL_PHYSICAL_MEMORY} megabytes of memory. Limiting concurrent linkers jobs to ${PARALLEL_LINK_JOBS} and compiler jobs to ${PARALLEL_COMPILE_JOBS} (system has ${NUMBER_OF_LOGICAL_CORES} logical cores)") endif () diff --git a/cmake/linux/toolchain-riscv64.cmake b/cmake/linux/toolchain-riscv64.cmake index cb0a9482a72..02c3d0c97fc 100644 --- a/cmake/linux/toolchain-riscv64.cmake +++ b/cmake/linux/toolchain-riscv64.cmake @@ -21,6 +21,11 @@ set (CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} --gcc-toolchain=${TOOLCHAIN_PATH}") set (CMAKE_EXE_LINKER_FLAGS_INIT "-fuse-ld=bfd") set (CMAKE_SHARED_LINKER_FLAGS_INIT "-fuse-ld=bfd") +# Currently, lld does not work with the error: +# ld.lld: error: section size decrease is too large +# But GNU BinUtils work. +set (LINKER_NAME "riscv64-linux-gnu-ld.bfd" CACHE STRING "Linker name" FORCE) + set (HAS_PRE_1970_EXITCODE "0" CACHE STRING "Result from TRY_RUN" FORCE) set (HAS_PRE_1970_EXITCODE__TRYRUN_OUTPUT "" CACHE STRING "Output from TRY_RUN" FORCE) diff --git a/cmake/warnings.cmake b/cmake/warnings.cmake index 994f14c6149..042935a835f 100644 --- a/cmake/warnings.cmake +++ b/cmake/warnings.cmake @@ -23,6 +23,7 @@ if (COMPILER_CLANG) no_warning(zero-length-array) no_warning(c++98-compat-pedantic) no_warning(c++98-compat) + no_warning(c++20-compat) # Use constinit in C++20 without warnings no_warning(conversion) no_warning(ctad-maybe-unsupported) # clang 9+, linux-only no_warning(disabled-macro-expansion) @@ -41,6 +42,7 @@ if (COMPILER_CLANG) no_warning(weak-template-vtables) no_warning(weak-vtables) no_warning(thread-safety-negative) # experimental flag, too many false positives + no_warning(enum-constexpr-conversion) # breaks magic-enum library in clang-16 # TODO Enable conversion, sign-conversion, double-promotion warnings. elseif (COMPILER_GCC) # Add compiler options only to c++ compiler diff --git a/contrib/arrow b/contrib/arrow index efdcd015cfd..450a5638704 160000 --- a/contrib/arrow +++ b/contrib/arrow @@ -1 +1 @@ -Subproject commit efdcd015cfdee1b6aa349c9ca227ca12c3d697f5 +Subproject commit 450a5638704386356f8e520080468fc9bc8bcaf8 diff --git a/contrib/boost b/contrib/boost index c0807e83f28..03d9ec9cd15 160000 --- a/contrib/boost +++ b/contrib/boost @@ -1 +1 @@ -Subproject commit c0807e83f2824e8dd67a15b355496a9b784cdcd5 +Subproject commit 03d9ec9cd159d14bd0b17c05138098451a1ea606 diff --git a/contrib/librdkafka b/contrib/librdkafka index 6062e711a91..ff32b4e9eea 160000 --- a/contrib/librdkafka +++ b/contrib/librdkafka @@ -1 +1 @@ -Subproject commit 6062e711a919fb3b669b243b7dceabd045d0e4a2 +Subproject commit ff32b4e9eeafd0b276f010ee969179e4e9e6d0b2 diff --git a/docker/packager/binary/Dockerfile b/docker/packager/binary/Dockerfile index 8809d469b46..74919bb2100 100644 --- a/docker/packager/binary/Dockerfile +++ b/docker/packager/binary/Dockerfile @@ -41,6 +41,9 @@ RUN add-apt-repository ppa:ubuntu-toolchain-r/test --yes \ && apt-get install gcc-11 g++-11 --yes \ && apt-get clean +# A cross-linker for RISC-V 64 (we need it, because LLVM's LLD does not work): +RUN apt-get install binutils-riscv64-linux-gnu + # Architecture of the image when BuildKit/buildx is used ARG TARGETARCH ARG NFPM_VERSION=2.16.0 diff --git a/docker/test/fasttest/Dockerfile b/docker/test/fasttest/Dockerfile index d74f99cf54b..7f7a8008d4e 100644 --- a/docker/test/fasttest/Dockerfile +++ b/docker/test/fasttest/Dockerfile @@ -16,7 +16,8 @@ RUN apt-get update \ python3-requests \ python3-termcolor \ unixodbc \ - --yes --no-install-recommends + pv \ + --yes --no-install-recommends RUN pip3 install numpy scipy pandas Jinja2 diff --git a/docker/test/performance-comparison/compare.sh b/docker/test/performance-comparison/compare.sh index c5f68f166b5..3b0b7a4d95a 100755 --- a/docker/test/performance-comparison/compare.sh +++ b/docker/test/performance-comparison/compare.sh @@ -1338,8 +1338,6 @@ EOF set -x } -# clickhouse may be compressed - run once to decompress -/workspace/right/clickhouse ||: # Check that local and client are in PATH clickhouse-local --version > /dev/null clickhouse-client --version > /dev/null diff --git a/docker/test/performance-comparison/report.py b/docker/test/performance-comparison/report.py index 4c1b6e1dd57..960f23be95c 100755 --- a/docker/test/performance-comparison/report.py +++ b/docker/test/performance-comparison/report.py @@ -41,24 +41,9 @@ color_good = "#b0d050" header_template = """ - ClickHouse \ No newline at end of file diff --git a/website/images/clickhouse-logomark.png b/website/images/clickhouse-logomark.png deleted file mode 100644 index d521c8147f7..00000000000 Binary files a/website/images/clickhouse-logomark.png and /dev/null differ diff --git a/website/images/clickhouse-white.svg b/website/images/clickhouse-white.svg deleted file mode 100644 index 2d4c795abe8..00000000000 --- a/website/images/clickhouse-white.svg +++ /dev/null @@ -1 +0,0 @@ -ClickHouse white \ No newline at end of file diff --git a/website/images/logo-180x180.png b/website/images/logo-180x180.png deleted file mode 100644 index d89c259e27c..00000000000 Binary files a/website/images/logo-180x180.png and /dev/null differ diff --git a/website/images/logo-200x120.png b/website/images/logo-200x120.png deleted file mode 100644 index 01d205bfdba..00000000000 Binary files a/website/images/logo-200x120.png and /dev/null differ diff --git a/website/images/logo-400x240.png b/website/images/logo-400x240.png deleted file mode 100644 index 9c39da97a87..00000000000 Binary files a/website/images/logo-400x240.png and /dev/null differ diff --git a/website/images/logo-clickhouse.svg b/website/images/logo-clickhouse.svg deleted file mode 100644 index b6bb0cd2d07..00000000000 --- a/website/images/logo-clickhouse.svg +++ /dev/null @@ -1 +0,0 @@ -ClickHouse Logo \ No newline at end of file diff --git a/website/images/logo.png b/website/images/logo.png deleted file mode 100644 index 552637796d6..00000000000 Binary files a/website/images/logo.png and /dev/null differ diff --git a/website/images/logo.svg b/website/images/logo.svg deleted file mode 100644 index 865b96d98c7..00000000000 --- a/website/images/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file