Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fixes #6958

Merged
merged 67 commits into from
Sep 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
2cf5659
Fix build
proller Aug 12, 2019
dc0b313
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 13, 2019
c03f0c4
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 13, 2019
8d3446e
cmake: fix cpuinfo
proller Aug 13, 2019
eb32050
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 13, 2019
1dea953
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 14, 2019
4bbfb81
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 14, 2019
4f364ce
Fix includes after processors merge
proller Aug 14, 2019
bc572a3
Fix build in gcc8
proller Aug 14, 2019
0bfee3a
fix test link
proller Aug 14, 2019
aac41f3
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 14, 2019
38adbdb
fix test link
proller Aug 14, 2019
0106720
Fix test link
proller Aug 14, 2019
c11300b
link fix
proller Aug 15, 2019
4b8564e
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 15, 2019
c2bb96f
Fix includes after processors merge 2
proller Aug 14, 2019
dae5dc6
Fix includes after processors merge 3
proller Aug 15, 2019
0f85ef6
link fix
proller Aug 15, 2019
b1fc89c
Fix likely/unlikely conflict with cython
proller Aug 15, 2019
791096f
Fix conflict with protobuf/stubs/atomicops.h
proller Aug 15, 2019
b345627
remove unlikely.h
proller Aug 15, 2019
2ac6fef
Fix macos build (do not use timer_t)
proller Aug 16, 2019
077ecdc
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 16, 2019
33205cf
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 19, 2019
5f221c3
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 19, 2019
78e7beb
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 20, 2019
7c3da27
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 21, 2019
8fd0575
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 23, 2019
8288a62
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 26, 2019
c2035bd
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 26, 2019
de9d36d
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 26, 2019
ed55111
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 27, 2019
7d579ba
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 27, 2019
8d884bc
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 28, 2019
286f364
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 29, 2019
200e221
Merge remote-tracking branch 'upstream/master' into fix25
proller Aug 29, 2019
13fb59e
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 1, 2019
bcee0dd
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 2, 2019
d812228
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 2, 2019
9672f5c
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 3, 2019
c2fac5f
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 4, 2019
cb6d81a
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 5, 2019
be5c099
wip
proller Sep 5, 2019
781304e
Fix build (orc, ...)
proller Sep 5, 2019
f4f46c3
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 5, 2019
e69673d
Missing files
proller Sep 6, 2019
f8b1847
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 6, 2019
9b72252
Try fix
proller Sep 6, 2019
ca32782
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 6, 2019
26331fe
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 9, 2019
6f35d69
fix hdfs
proller Sep 9, 2019
cec1cf0
Fix llvm 7.1 find
proller Sep 9, 2019
6d50a2e
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 10, 2019
0ba5ca5
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 10, 2019
80af97a
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 10, 2019
9271155
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 11, 2019
e9756db
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 12, 2019
6065468
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 13, 2019
204c68d
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 14, 2019
25fdaef
remove gcc-7
proller Sep 14, 2019
bcffa17
better
proller Sep 14, 2019
d669b81
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 14, 2019
0151952
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 15, 2019
5d08a7b
Remove gcc-7 from build scripts
proller Sep 17, 2019
1b7eeec
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 17, 2019
8bf0841
Merge remote-tracking branch 'upstream/master' into fix25
proller Sep 17, 2019
e7f069c
fixes
proller Sep 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion dbms/programs/client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ set(CLICKHOUSE_CLIENT_SOURCES
)

set(CLICKHOUSE_CLIENT_LINK PRIVATE clickhouse_common_config clickhouse_functions clickhouse_aggregate_functions clickhouse_common_io clickhouse_parsers string_utils ${LINE_EDITING_LIBS} ${Boost_PROGRAM_OPTIONS_LIBRARY})
set(CLICKHOUSE_CLIENT_INCLUDE SYSTEM PRIVATE ${READLINE_INCLUDE_DIR} PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/include)
set(CLICKHOUSE_CLIENT_INCLUDE PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/include)

if (READLINE_INCLUDE_DIR)
set(CLICKHOUSE_CLIENT_INCLUDE ${CLICKHOUSE_CLIENT_INCLUDE} SYSTEM PRIVATE ${READLINE_INCLUDE_DIR})
endif ()

include(CheckSymbolExists)
check_symbol_exists(readpassphrase readpassphrase.h HAVE_READPASSPHRASE)
Expand Down
7 changes: 3 additions & 4 deletions debian/.pbuilderrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@
# sudo ln -s gutsy /usr/share/debootstrap/scripts/bionic
# sudo ln -s sid /usr/share/debootstrap/scripts/buster
# build ubuntu:
# sudo DIST=trusty pbuilder create --configfile debian/.pbuilderrc && DIST=trusty pdebuild --configfile debian/.pbuilderrc
# sudo DIST=xenial pbuilder create --configfile debian/.pbuilderrc && DIST=xenial pdebuild --configfile debian/.pbuilderrc
# sudo DIST=zesty pbuilder create --configfile debian/.pbuilderrc && DIST=zesty pdebuild --configfile debian/.pbuilderrc
# sudo DIST=artful pbuilder create --configfile debian/.pbuilderrc && DIST=artful pdebuild --configfile debian/.pbuilderrc
# sudo DIST=bionic pbuilder create --configfile debian/.pbuilderrc && DIST=bionic pdebuild --configfile debian/.pbuilderrc
# sudo DIST=cosmic pbuilder create --configfile debian/.pbuilderrc && DIST=cosmic pdebuild --configfile debian/.pbuilderrc
# sudo DIST=disco pbuilder create --configfile debian/.pbuilderrc && DIST=disco pdebuild --configfile debian/.pbuilderrc
# sudo DIST=eoan pbuilder create --configfile debian/.pbuilderrc && DIST=eoan pdebuild --configfile debian/.pbuilderrc
# sudo DIST=devel pbuilder create --configfile debian/.pbuilderrc && DIST=devel pdebuild --configfile debian/.pbuilderrc
# build debian:
# sudo DIST=stable pbuilder create --configfile debian/.pbuilderrc && DIST=stable pdebuild --configfile debian/.pbuilderrc
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Maintainer: Alexey Milovidov <milovidov@yandex-team.ru>
Build-Depends: debhelper (>= 9),
cmake | cmake3,
ninja-build,
gcc-7 [amd64 i386] | gcc-8 [amd64 i386] | gcc-9 [amd64 i386], g++-7 [amd64 i386] | g++-8 [amd64 i386] | g++-9 [amd64 i386],
gcc-9 [amd64 i386] | gcc-8 [amd64 i386], g++-9 [amd64 i386] | g++-8 [amd64 i386],
clang-8 [arm64 armhf] | clang-7 [arm64 armhf] | clang-6.0 [arm64 armhf],
libc6-dev,
libicu-dev,
Expand Down
2 changes: 1 addition & 1 deletion debian/pbuilder-hooks/C99kill-make
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

# Try stop parallel build after timeout

killall make gcc gcc-7 g++-7 gcc-8 g++-8 clang clang-5.0 clang++-5.0 clang-6.0 clang++-6.0 clang-7 clang++-7 ||:
killall make gcc gcc-8 g++-8 gcc-9 g++-9 clang clang-6.0 clang++-6.0 clang-7 clang++-7 ||:
3 changes: 3 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ endif

CMAKE_FLAGS += -DENABLE_UTILS=0

DEB_CC ?= $(shell which gcc-9 gcc-8 gcc | head -n1)
DEB_CXX ?= $(shell which g++-9 g++-8 g++ | head -n1)

ifdef DEB_CXX
DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
Expand Down
4 changes: 2 additions & 2 deletions libs/libglibc-compatibility/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ if (GLIBC_COMPATIBILITY)

target_include_directories(glibc-compatibility PRIVATE libcxxabi)

if (USE_STATIC_LIBRARIES=0 AND MAKE_STATIC_LIBRARIES=OFF)
target_compile_options(PRIVATE -fPIC)
if (NOT USE_STATIC_LIBRARIES AND NOT MAKE_STATIC_LIBRARIES)
target_compile_options(glibc-compatibility PRIVATE -fPIC)
endif ()

target_link_libraries(global-libs INTERFACE glibc-compatibility)
Expand Down
6 changes: 3 additions & 3 deletions release
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ do
shift
elif [[ $1 == '--fast' ]]; then
# Wrong but fast pbuilder mode: create base package with all depends
EXTRAPACKAGES="$EXTRAPACKAGES debhelper cmake ninja-build gcc-7 g++-7 libc6-dev libicu-dev libreadline-dev psmisc bash expect python python-lxml python-termcolor python-requests curl perl sudo openssl netcat-openbsd"
EXTRAPACKAGES="$EXTRAPACKAGES debhelper cmake ninja-build gcc-8 g++-8 libc6-dev libicu-dev libreadline-dev psmisc bash expect python python-lxml python-termcolor python-requests curl perl sudo openssl netcat-openbsd"
shift
elif [[ $1 == '--rpm' ]]; then
MAKE_RPM=1
Expand Down Expand Up @@ -116,8 +116,8 @@ echo -e "\nCurrent version is $VERSION_STRING"
if [ -z "$NO_BUILD" ] ; then
gen_changelog "$VERSION_STRING" "" "$AUTHOR" ""
if [ -z "$USE_PBUILDER" ] ; then
DEB_CC=${DEB_CC:=`which gcc-7 gcc-8 gcc | head -n1`}
DEB_CXX=${DEB_CXX:=`which g++-7 g++-8 g++ | head -n1`}
DEB_CC=${DEB_CC:=`which gcc-9 gcc-8 gcc | head -n1`}
DEB_CXX=${DEB_CXX:=`which g++-9 g++-8 g++ | head -n1`}
# Build (only binary packages).
debuild --preserve-env -e PATH \
-e DEB_CC=$DEB_CC -e DEB_CXX=$DEB_CXX -e CMAKE_FLAGS="$CMAKE_FLAGS" \
Expand Down
4 changes: 2 additions & 2 deletions utils/build/build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# curl https://raw.githubusercontent.com/yandex/ClickHouse/master/utils/build/build_debian.sh | sh

# install compiler and libs
sudo apt install -y git bash cmake ninja-build gcc-7 g++-7 libicu-dev libreadline-dev gperf
sudo apt install -y git bash cmake ninja-build gcc-8 g++-8 libicu-dev libreadline-dev gperf
# for -DUNBUNDLED=1 mode:
#sudo apt install -y libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libboost-thread-dev zlib1g-dev liblz4-dev libdouble-conversion-dev libzstd-dev libre2-dev libsparsehash-dev librdkafka-dev libcapnp-dev libpoco-dev libsparsehash-dev libgoogle-perftools-dev libunwind-dev googletest libcctz-dev

Expand All @@ -24,7 +24,7 @@ fi
# Build!
mkdir -p build
cd build
cmake .. -DCMAKE_CXX_COMPILER=`which g++-7 g++-8 | head -n1` -DCMAKE_C_COMPILER=`which gcc-7 gcc-8 | head -n1`
cmake .. -DCMAKE_CXX_COMPILER=`which g++-9 g++-8 | head -n1` -DCMAKE_C_COMPILER=`which gcc-9 gcc-8 | head -n1`
cmake --build .
cd ..

Expand Down
2 changes: 1 addition & 1 deletion utils/build/build_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fi

mkdir build
cd build
cmake .. -DCMAKE_CXX_COMPILER=`which g++-9 g++-8 g++-7` -DCMAKE_C_COMPILER=`which gcc-9 gcc-8 gcc-7`
cmake .. -DCMAKE_CXX_COMPILER=`which g++-9 g++-8` -DCMAKE_C_COMPILER=`which gcc-9 gcc-8`
cmake --build .

cd ..
Expand Down