Commit Graph

565 Commits

Author SHA1 Message Date
proller
1a8e22c37f Allow compile on 32bit systems (#1175)
* Trying compile under 32bit..

* PerformanceTest: use getMultiple*FromConfig, fix debug helpers

* Missing file

* clnag-format of Split ComplexKeyCacheDictionary

* wip

* Requested changes

* wip

* wip

* Fix boost 1.64 and gcc7+ compile errors

* More fixes

* wip

* Fix arm build

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* clean

* fix

* wip

* wip

* clean

* clean

* wip

* wip

* Update MergeTreeSettings.h

* Requested changes

* Requested changes

* Requested changes

* Requested changes
2017-09-01 20:21:03 +03:00
proller
47705e21a5 Cmake: ccache detect fix 2017-08-23 18:42:15 +03:00
proller
ac178bde1f Cmake: link ltdl with pocoodbc static only. rename ARM -> ARCH_ARM (#1083)
* Cmake: link ltdl with pocoodbc static only. rename ARM -> ARCH_ARM

* Fix lib find order

* Allow define non-contrib cityhash farmhash metrohash

* Fix message

* Cmake: fixes

* clean

* Update CMakeLists.txt
2017-08-09 23:52:55 +03:00
proller
465d305479 gcc7 and arm fixes (#1041)
* PerformanceTest: use getMultiple*FromConfig, fix debug helpers

* Missing file

* gcc7 fixes

* clnag-format of Split ComplexKeyCacheDictionary

* Requested changes

* Fix boost 1.64 and gcc7+ compile errors

* More fixes

* Fix arm build

* Fix nothrow

* Better arm detection
2017-07-29 22:58:10 +03:00
proller
76c19c2d4d Do not use ccache if ccache defined in CMAKE_CXX_COMPILER_LAUNCHER 2017-07-27 17:16:24 +03:00
proller
5f39c82e92 Use ccache if found 2017-07-26 22:31:49 +03:00
proller
6692fd453f Allow compile with clang 3.8 with warning (#1021)
* Fix missing includes

* clean

* Allow compile with clang 3.8 with warning

* Add message
2017-07-24 20:18:23 +03:00
alexey-milovidov
095261c579 Update CMakeLists.txt 2017-07-22 01:45:05 +03:00
proller
4db8d09de9 Reorganize includes. part 1 (#921)
* Make libunwind optional. Allow use custom libcctz

* fix

* Fix

* fix

* Update BaseDaemon.cpp

* Update CMakeLists.txt

* Reorganize includes. part 1

* Update dbms_include.cmake

* Reorganize includes. part 2

* Reorganize includes. part 3

* dbms/src/Common/ThreadPool -> libs/libcommon

* Reorganize includes. part 4

* Fix print_include_directories

* Update thread_creation_latency.cpp

* Update StringRef.h
2017-06-23 23:22:35 +03:00
proller
2d359fee54 Make libunwind optional. Allow use custom libcctz (#920)
* Make libunwind optional. Allow use custom libcctz

* fix

* Fix

* fix

* Update BaseDaemon.cpp

* Update CMakeLists.txt
2017-06-23 17:41:07 +03:00
alexey-milovidov
c9c8c8ec50 Better option to disable mysqlclient (#710)
* Better support for disabling libmysqlclient [#CLICKHOUSE-2].

* Addition to prev. revision [#CLICKHOUSE-2].

* Addition to prev. revision [#CLICKHOUSE-2].
2017-04-19 03:25:57 +03:00
proller
ab5e6c4840 Fix build without installd unixodbc (#708)
* Fix build without installd unixodbc

* clean

* no openssl error

* fix

* fix
2017-04-19 03:21:16 +03:00
proller
85b4007286 Freebsd: Cmake: fix etc path 2017-04-12 21:59:31 +03:00
proller
72ccc69212 Debian: simpler package (#662)
* Allow use external re2 with re2_st=re2

* fix

* remove dupe

* use re2_st in FunctionsStringSearch.h

* fix

* move files from tools/etc to debian

* dont generate control

* version

* ok.

* wip

* Cmake: dont touch CMAKE_INSTALL_PREFIX

* wip

* works!

* clean

* okay

* like old

* wip

* wip

* okay

* clickhouse-server-base-dbg

* clean

* clickhouse-server-dbg

* Debian: Remove daemons

* Update rules

* add source/format

* control clean

* add watch

* clean

* clean

* temp fix build

* clean

* docs

* fake make_control

* fix

* testme

* testme

* add metrika package

* fake metrika files
2017-04-10 20:43:30 +03:00
proller
13e9b5c949 Cmake: dont touch CMAKE_INSTALL_PREFIX 2017-04-06 15:57:15 +03:00
Alexey Milovidov
34b51f61a6 Enabled C++17 [#CLICKHOUSE-2]. 2017-04-01 11:51:30 +03:00
Alexey Milovidov
137ad95929 Changed tabs to spaces in code [#CLICKHOUSE-3]. 2017-04-01 11:35:09 +03:00
proller
37f3ccb1ab cmake: split USE_STATIC_LIBRARIES to USE_STATIC_LIBRARIES + MAKE_STATIC_LIBRARIES
fix freebsd install path
fix TEST_COVERAGE flags
2017-03-28 20:50:58 +03:00
Vitaliy Lyudvichenko
2ab25099cd Move boost::tests to Google Tests. [#CLICKHOUSE-2] 2017-03-28 20:46:16 +03:00
Vitaliy Lyudvichenko
0901f90625 CMake minimum required version is updated up to 2.8 . [#CLICKHOUSE-2] 2017-03-28 20:46:16 +03:00
Vitaliy Lyudvichenko
f19b82e4ea CMAKE_INSTALL_PREFIX is /usr. [CLICKHOUSE-2] 2017-03-24 12:42:08 +03:00
proller
9cf97911db fix USE_INTERNAL_ZLIB_LIBRARY=0 with poco (#608)
* Try fix double version up during release

* fix moveing cmake files

* fix USE_INTERNAL_ZLIB_LIBRARY=0 with poco
2017-03-17 16:04:17 +03:00
proller
5b8ed657f9 fix build (#602)
* fix build

* fix freebsd
2017-03-16 18:04:05 +03:00
proller
28ed324702 add cmake option USE_VECTORIZED_MATH_FUNCTIONS, reorganize auto configs 2017-03-16 13:51:41 +04:00
proller
0e91c47066 Allow build with external double-conversion lz4 zstd re2 zookeeper (#531)
* Allow build with external double-conversion lz4 zstd re2 zookeeper

* fix

* fix

* freebsd fixes

* spaces

* fix

* fix

* fix

* wip

* move

* fix
2017-03-01 03:49:04 +04:00
Jean Baptiste Favre
26ddf808b5 Fix bad USE_INTERNAL_GPERFTOOLS_LIBRARY not using UNBUNDLED
UNBUNDLED is supposed to set every USE_INTERNAL_* variables to 0.
This is not the case with USE_INTERNAL_GPERFTOOLS_LIBRARY which only depends on wether we're running FreeBSD.
This patch aims to:
- set USE_INTERNAL_GPERFTOOLS_LIBRARY to 0 when running FreeBSD
- set USE_INTERNAL_GPERFTOOLS_LIBRARY to NOT_UNBUNDLED for other systems
2017-02-14 21:37:46 +01:00
proller
f8d2f19280 Fix odbc include, clang-format fixes, misc (#484)
* Cmake: fix fallback to internal libs if no external found

* wip

* style

* fix
2017-02-13 17:59:34 +04:00
alexey-milovidov
cee5ab01fb Merge branch 'master' into merge_with_metrika 2017-02-11 00:27:15 +04:00
Pavel Kartavyy
eceb688c7f skip adding add_check command if parent project already has one 2017-02-09 18:35:58 +03:00
proller
9bbe8fe5c4 Dynamic library mode (#471)
* Cmake: UNBUNDLED option

* Dynamic library mode
2017-02-08 22:53:00 +04:00
proller
f87ae6808f cmake: USE_INTERNAL_ZLIB_LIBRARY (#463)
* Correct fix of building with external poco with disabled sending progress

    Revert "Removed wrong code [#CLICKHOUSE-2]."

    This reverts commit 33f9917f53.

* fix

* fix

* cmake: USE_INTERNAL_ZLIB_LIBRARY
2017-02-08 01:28:13 +04:00
proller
b2b16b407f More include fixes (#462)
* More include fixes

* fix
2017-02-08 01:26:32 +04:00
proller
716633120e Cmake: UNBUNDLED option 2017-02-07 09:34:26 +04:00
Pavel Kartavyy
224ba16dcb use project source and binary dirs instead of global dirs 2017-02-06 18:15:19 +03:00
proller
9409419258 --no-pie flag have no effect in ubuntu, using -no-pie with test (#422)
* Cmake: fix apple build

* --no=pie flag have no effect in ubuntu, using -no-pie with test

* better
2017-01-31 00:09:11 +03:00
proller
f3526cb592 Cmake: fix apple build (#420) 2017-01-30 20:11:43 +03:00
proller
33347ad9c3 Cmake: some fixes 2017-01-30 16:40:04 +03:00
Konstantin Podshumok
2c488b7cbc CMakeLists.txt: "-no-pie" should be "---no-pie" 2017-01-30 09:15:11 +04:00
proller
46037bb670 Allow link with jemalloc (#404)
* Allow link with jemalloc

* wip

* fix

* fix
2017-01-28 00:00:02 +04:00
proller
8b4b1534e3 Cmake: Test on having sse (#405)
* Cmake: Test on having sse

* fix

* wip

* wip

* wip

* wip

* wip

* wip

* fix

* fix

* fix

* fix

* fix

* fix
2017-01-27 23:55:33 +04:00
proller
e715ddd72a SELECT * FROM system.build_options [#METR-24175] (#398)
* start [#METR-24175]

* missing

* wip

* add spaces

* wip

* wip

* fix

* fix

* missing

* style fix
2017-01-26 02:24:36 +04:00
proller
f890af1f8d Remove code and includes from Collator.h, fix including <unicode/...> in dbms (#395) 2017-01-25 22:19:15 +04:00
proller
38040f5323 Сmake: more info in message about libreadline (#376)
* Cmake: more info in message about libreadline

* icu cmake

* cmake: glib message
2017-01-20 23:57:30 +04:00
Alexey Milovidov
fd0f387276 Added comment [#CLICKHOUSE-3]. 2017-01-19 22:32:40 +03:00
proller
04d2149e8a enable -Werror only for 'libs' and 'dbms' ; add 'cmake .. -DNO_WERROR… (#372)
* enable -Werror only for 'libs' and 'dbms' ; add 'cmake .. -DNO_WERROR=1'  option

* add -Werror for utils
2017-01-19 23:30:58 +04:00
proller
b2eb3787ab Fix package build 2017-01-18 17:10:04 +03:00
proller
7e21f1dd14 Fix build with -D NO_TCMALLOC, better sanitizers calls (#355)
* Fix generate includes for clang

* Fix build with -D NO_TCMALLOC, better sanitizers calls
2017-01-18 16:41:47 +04:00
proller
853d538dce Add -pipe flag to compilers 2017-01-17 17:03:37 +03:00
proller
29475c94c0 Reorganize includes, less depends in .h files 2017-01-16 22:47:11 +03:00
proller
718b765742 Fix no-pie with clang 2017-01-16 19:29:11 +03:00
proller
e2bc0c7471 Add -no-pie flag to linker in static mode 2017-01-13 23:11:21 +03:00
proller
ee3882f251 Allow link with external libs: poco, tcmalloc 2017-01-13 14:25:44 +03:00
proller
ecb7642c4f Freebsd: preparing port, misc build/install chandes 2017-01-12 13:51:30 +00:00
proller
4bfa697656 Add more search paths to find_mysqlclient.cmake, rename find_libmysqlclient.cmake -> find_mysqlclient.cmake 2017-01-12 15:20:43 +03:00
Alexey Zatelepin
c1e8b674e0 add missing zlib include dir [#METR-23582] 2017-01-09 16:07:42 +03:00
Alexey Zatelepin
1b61f2a9d3 use zlib-ng from contrib everywhere [#METR-23582] 2017-01-08 22:24:38 +03:00
proller
4bc003c4c1 Porting to freebsd: initial, compile ok, most tests ok. 2016-12-24 01:03:10 +00:00
artpaul
ee9cd22656 define BOOST_SYSTEM_NO_DEPRECATED to fix build some binaries 2016-12-18 02:54:30 +05:00
Vitaliy Lyudvichenko
876ad28dd8 Merge remote-tracking branch 'origin/master' into metrics_refinement 2016-12-12 19:17:23 +03:00
Vitaliy Lyudvichenko
80cd00542c Improved benchmark and CMakeLists. 2016-12-12 18:23:21 +03:00
Alexey Milovidov
fbc0eac83a Enabled CXX11_ABI [#METR-2944]. 2016-12-12 08:42:18 +03:00
Alexey Milovidov
58a8cff3ae Using internal boost library [#METR-2944]. 2016-12-12 07:17:16 +03:00
Alexey Milovidov
599308aef0 Get rid of obsolete mongodb client library [#METR-23791]. 2016-12-11 12:43:16 +03:00
Vitaliy Lyudvichenko
decf424dfc Prefer CMake option() instead of set(...CAHE BOOL...). 2016-12-09 18:39:50 +03:00
Alexey Milovidov
050fc63694 More fine setting of CXX11_ABI [#METR-23646]. 2016-12-08 09:34:16 +03:00
Vladimir Chebotarev
eb552f2943 cmake: Improved copy_headers.sh script, minor fixes. [#METR-21516] 2016-12-06 21:04:10 +03:00
Vladimir Chebotarev
ca5c1dc31b cmake: Improved build. [#METR-21516] 2016-12-06 19:51:34 +03:00
Vladimir Chebotarev
cdd08c21ec cmake: add_check to cmake/. [#METR-21516] 2016-12-06 16:46:21 +03:00
Vladimir Chebotarev
58b2b6b6a6 cmake: Minor improvement. [#METR-23701] 2016-12-06 16:42:53 +03:00
Vladimir Chebotarev
0380927f28 cmake: Build fix. [#METR-23701] 2016-12-06 16:35:28 +03:00
Vladimir Chebotarev
8e1a6aaf3e cmake: Boost, OpenSSL into find_package(). [#METR-23701] 2016-12-06 16:20:32 +03:00
Vladimir Chebotarev
b8c6d475f1 : CXX11_ABI was disabled. [#METR-21516] 2016-12-05 20:24:34 +03:00
Vladimir Chebotarev
bcc5500f91 cmake: More options. [#METR-23701] 2016-12-05 15:43:14 +03:00
Vitaliy Lyudvichenko
4df22acea9 Try to fix LIBTCMALLOC linking. 2016-11-30 15:10:39 +03:00
Vladimir Chebotarev
cdaece7dfa : More specific usage of static libraries. [#METR-21516] 2016-11-09 21:49:01 +03:00
Vladimir Chebotarev
e2ceb63c54 libcommon, libre2, tools: Fixed build under OS X Sierra. [#METR-21516] 2016-11-03 15:41:13 +03:00
Vladimir Smirnov
d36f52502e Make it compilable on OS X
It's still hackish and dirty, but server and client compies.

Server starts, but throwes meaningless exception on any query.

Client seems to be working fine.

Linux compilation might (but shouldn't) be broken (not tested).
2016-11-01 17:59:21 +01:00
Pavel Kartaviy
d2167e7ff1 asan fix linkage for gcc-5.4, gcc-6.1 2016-10-25 19:46:25 +03:00
Alexey Milovidov
ff661a8492 Added tcmalloc-related metrics [#METR-23231]. 2016-10-24 08:40:00 +03:00
Yuri Dyachenko
065b02494a add -Wold-style-cast 2016-08-26 22:55:11 +03:00
Yuri Dyachenko
9f952b04d5 disable coverage build flags by default 2016-08-25 18:13:50 +03:00
Yuri Dyachenko
e880bff5b7 set -fno-omit-frame-pointer by default 2016-08-25 18:13:42 +03:00
Yuri Dyachenko
ae62be5a73 typo fix 2016-08-25 18:09:07 +03:00
Yuri Dyachenko
c3697364fd enable debug symbols for CMAKE_BUILD_TYPE=Debug 2016-08-25 17:58:01 +03:00
Yuri Dyachenko
5a673dc857 Allow to disable cxx11abi 2016-08-24 23:18:32 +03:00
Pavel Kartavyy
ca430c3ec9 cmake: remove TSan due to false positives and necessity to rebuild libstdc++ 2016-08-23 17:08:47 +03:00
Pavel Kartavyy
cd303f805a cmake: add cmake configuration types for build with sanitizers 2016-08-19 17:31:01 +03:00
Pavel Kartavyy
0ea472c426 cmake: add build types with sanitizers [#TESTIRT-9885] 2016-08-19 17:29:18 +03:00
Alexey Milovidov
9a07830dbb Removed useless code (experimental) [#METR-2944]. 2016-08-02 04:46:05 +03:00
Alexey Milovidov
4d4ab07544 Fixed error in CMakeLists [#METR-21848]. 2016-06-29 22:16:03 +03:00
Alexey Milovidov
4a8f3e6143 Addition to prev. revision [#METR-2944]. 2016-06-27 11:13:54 +03:00
Alexey Milovidov
30ce038312 Added option for compatibility with older glibc versions (experimental) [#METR-2944]. 2016-06-27 09:34:10 +03:00
Alexey Milovidov
6ba6d01491 Using in-tree zookeeper client library [#METR-21848]. 2016-06-26 11:16:13 +03:00
Alexey Milovidov
e3355d2051 Clarification [#TESTIRT-9529]. 2016-06-26 07:54:30 +03:00
Alexey Milovidov
5e853cff80 Preparing to remove private submodule [#METR-21847]. 2016-06-26 07:17:49 +03:00
Alexey Milovidov
14fd7474e4 Better message [#METR-20000]. 2016-06-10 17:21:00 +03:00
Alexey Milovidov
b246ada932 Allowed to build private utils [#METR-21501]. 2016-06-03 21:21:35 +03:00
Vladimir Chebotarev
aaf1588b7f cmake, dbms: Fixes for Xenial Xerus [#METR-20000] 2016-05-27 23:19:37 +03:00
Alexey Milovidov
7f2f9480b8 Merge 2016-05-23 03:20:53 +03:00
Alexey Milovidov
057d04d536 Removed useless directives from CMakeLists (tnx. chebotarev) [#METR-20000]. 2016-05-23 03:18:54 +03:00
Vladimir Chebotarev
3d16bccd84 Renamed paths variables according to project name [#METR-XXXXX] 2016-05-23 01:56:54 +03:00
Alexey Milovidov
7b80056398 Cleared useless CMake directives [#METR-20000]. 2016-05-23 01:49:45 +03:00
Alexey Milovidov
4057d305c5 Update CMakeLists.txt 2016-05-23 01:41:03 +03:00
Alexey Milovidov
3a7d8d8d8b Merge 2016-05-23 01:37:32 +03:00
Vladimir Chebotarev
d37437b3a8 cmake, libtcmalloc: Using of tcmalloc, build fixes [#METR-XXXXX] 2016-05-22 22:04:19 +03:00
Vladimir Chebotarev
c39c3f4bbf cmake: Main CMakeLists issues [#METR-XXXXX] 2016-05-22 16:10:36 +03:00
Alexey Milovidov
b8a4fddac4 Using in-tree tcmalloc library [#METR-20000]. 2016-05-22 03:33:15 +03:00
Alexey Milovidov
10e325574c Disabled usage of vectorclass library [#METR-20000]. 2016-03-30 23:27:32 +03:00
Dmitry Galuza
82fb47739e ███████████: Step 1: Parse tags and store in separated columns [#METR-19071] 2016-03-09 15:31:20 +03:00
Alexey Milovidov
9fde096c23 Using appropriate linkage on clang [#METR-2807]. 2016-03-07 11:07:07 +03:00
Alexey Milovidov
4df135239c Fixing build of package [#TESTIRT-8503]. 2016-03-01 20:53:26 +03:00
Alexey Milovidov
e7e87aedd6 Addition to prev. revision [#METR-20000]. 2016-02-10 05:14:39 +03:00
Alexey Milovidov
a500d0a127 Fixed build [#METR-17973]. 2016-02-08 23:15:21 +03:00
Alexey Milovidov
d4cfa04776 Fixed build [#METR-17973]. 2016-02-08 01:51:12 +03:00
Alexey Milovidov
df1d66e51a Removed sensitive data. 2016-02-08 00:58:58 +03:00