Commit Graph

678 Commits

Author SHA1 Message Date
Ivan Lezhankin
ac47427b76 cmake/test_cpu → cmake/cpu_features 2019-09-13 17:54:22 +03:00
Ivan Lezhankin
393bf8a804 cmake/find_* → cmake/find/* 2019-09-13 17:54:22 +03:00
Amos Bird
9152a832c4 Robust shared build 2019-09-12 04:01:46 +08:00
Amos Bird
a1310ffbe6 Split libdbms.so using object library
Now the linking time of incremental builds are around 1-2 seconds
2019-09-11 01:56:01 +08:00
proller
54a5b801b7 Build fixes (Orc, ...) (#6835)
* Fix build

* cmake: fix cpuinfo

* Fix includes after processors merge

Conflicts:
	dbms/src/Processors/Formats/Impl/CapnProtoRowInputFormat.cpp
	dbms/src/Processors/Formats/Impl/ParquetBlockOutputFormat.cpp
	dbms/src/Processors/Formats/Impl/ProtobufRowInputFormat.cpp
	dbms/src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp

* Fix build in gcc8

* fix test link

* fix test link

* Fix test link

* link fix

* Fix includes after processors merge 2

Conflicts:
	dbms/src/Processors/Formats/Impl/ParquetBlockInputFormat.cpp

* Fix includes after processors merge 3

* link fix

* Fix likely/unlikely conflict with cython

* Fix conflict with protobuf/stubs/atomicops.h

* remove unlikely.h

* Fix macos build (do not use timer_t)

* wip

* Fix build (orc, ...)

* Missing files

* Try fix

* fix hdfs

* Fix llvm 7.1 find
2019-09-10 00:40:40 +03:00
alexey-milovidov
358ad13930
Merge pull request #6715 from yandex/remove-mimalloc
Remove mimalloc
2019-08-30 00:41:33 +03:00
Ivan
b4339f266d
Make a better build scheme (#6500)
* Fix shared build
* Major default libs refactor
* Fix build with gcc_eh
* Link all libraries as a big group.
* Use global interface library as a group
* Build capnproto using our cmake
* Use only internal libunwind
2019-08-28 23:49:37 +03:00
Alexey Milovidov
39d50b5144 Remove mimalloc 2019-08-28 22:01:52 +03:00
Alexey Milovidov
75e124f390 Removed misleading flag from CMake 2019-08-23 18:05:27 +03:00
akonyaev
caf0d30a5f ADQM-34 add orc input format 2019-08-21 17:19:47 +03:00
Ivan
8b9284be24
Fix shared build (#6453)
* Fix shared build
* Enable no-undefined check only in CI
2019-08-13 17:08:28 +03:00
proller
1e8f04aaa7 Fix unbundled build 2019-08-09 20:16:07 +03:00
Alexey Milovidov
3558d8f360 Deprecate gcc-7 2019-08-04 22:58:46 +03:00
alexey-milovidov
14671d6df8
Merge pull request #6254 from yandex/fastops
Integration with "FastOps" library. Added functions sigmoid and tanh.
2019-08-04 06:28:34 +03:00
proller
77bd2624ea Build fixes (#6016)
* Fix building without submodules

* Fix more gcc9 warnings

* was wrong!
../dbms/src/IO/WriteBufferAIO.cpp:277:54: error: result of comparison 'ssize_t' (aka 'long') > 9223372036854775807 is always false [-Werror,-Wtautological-type-limit-compare]
    if ((static_cast<ssize_t>(flush_buffer.offset()) > std::numeric_limits<off_t>::max()) ||
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* mimalloc off MI_OVERRIDE

* Fix freebsd build

* Fix shared build

* Fix build in gcc9

* Fix split build

* fix

* fix

* fix

* fix

* clean

* zstd

* Update CMakeLists.txt

* Update Defines.h

* Try fix -Wsign-compare

* Freebsd fix

* Add missing libs

* Fix double-conversion include for copy-headers

* Fix zlib link

* Fix includes for arcadia

* Fix includes for arcadia

* Fix includes for arcadia

* Freebsd fix

* Arcadia fixes

* Update QueryProfiler.cpp

* Freebsd fix

* clean

* 19.11: Fixes for arcadia porting (#6223)

* fix glibc-compatibility

* M_LIBRARY fix

* wip

* Fix

* Fix arm build

* unwind fix

* Update CMakeLists.txt
2019-08-04 03:19:03 +03:00
Alexey Milovidov
0d55faf2dd Speed up stack traces for debug build 2019-08-03 23:47:57 +03:00
Alexey Milovidov
0dfca33e5b Fixed "splitted" build 2019-08-02 22:06:09 +03:00
Alexey Milovidov
fb3824f98b Merge branch 'master' into fastops 2019-08-01 01:59:59 +03:00
Alexey Milovidov
ae4ae9926d Fixed build with old gcc 2019-07-31 06:10:16 +03:00
Alexey Milovidov
372c4d89b2 Enabled line numbers in stack traces 2019-07-30 01:26:44 +03:00
Alexey Milovidov
b282c6160d Added "fastops" as submodule 2019-07-23 02:41:06 +03:00
alexey-milovidov
6706af64d7
Merge pull request #5981 from 4ertus2/some
Count new/delete memory in MemoryTracker
2019-07-18 23:07:00 +03:00
Ivan
2f68aa7207
Fix build with external libcxx (#6010)
* First attempt to fix build with external libcxx
* Fix build
2019-07-18 09:55:05 +03:00
chertus
91028e9e5d Merge branch 'master' into some 2019-07-15 13:45:48 +03:00
chertus
8c715d9b91 minor fix in cmake-files 2019-07-12 20:22:20 +03:00
Ivan Lezhankin
998aa795fc Merge remote-tracking branch 'upstream/master' into fix-filter-table 2019-07-10 18:14:15 +03:00
Ivan Lezhankin
befb3ce15b Merge branch 'master' into fix-filter-table 2019-07-10 13:27:26 +03:00
Alexey Milovidov
0690ec688f Temporarily disable libc++ for shared linking (TODO) 2019-07-10 11:24:57 +03:00
Alexey Milovidov
5debeabe3d Disable libc++ for gcc, because we still have to bundle LLVM 2019-07-10 01:23:48 +03:00
Alexey Milovidov
78366bf1f0 Merge branch 'libcxx-as-submodule' of github.com:yandex/ClickHouse into libcxx-as-submodule 2019-07-10 01:20:13 +03:00
Alexey Milovidov
a7e24e8d5a Fixed test 2019-07-10 01:19:59 +03:00
alexey-milovidov
1d14b9cc45
Merge branch 'master' into libcxx-as-submodule 2019-07-10 01:09:23 +03:00
Alexey Milovidov
d23ada9576 Fixed "unbundled" build 2019-07-10 00:16:04 +03:00
alexey-milovidov
069306591e
Update CMakeLists.txt 2019-07-09 22:55:43 +03:00
alexey-milovidov
cb05312ce0
Merge branch 'master' into libcxx-as-submodule 2019-07-09 22:35:03 +03:00
Ivan Lezhankin
9f01fa7aaa Implement getDatabaseName() and rename() for all storages 2019-07-09 18:40:21 +03:00
Alexey Milovidov
eeaf8d7430 Using libc++ even with gcc 2019-07-09 17:49:31 +03:00
Alexey Milovidov
20d7e67e6a Fixed dependencies in build 2019-07-09 16:41:51 +03:00
Alexey Milovidov
497ac88701 Merge branch 'master' into clean-cmakelists-for-libunwind 2019-07-09 16:41:26 +03:00
Alexey Milovidov
7f8eefedea Clean CMakeLists for libunwind. 2019-07-09 14:46:01 +03:00
alesapin
82e2266d88
Merge pull request #5896 from yandex/add_coverage_image_for_ci
Add coverage image for CI
2019-07-09 12:27:51 +03:00
Alexey Milovidov
ea295347a2 Fixed race condition in build 2019-07-09 03:11:17 +03:00
Alexey Milovidov
de7d5c44fc Fixed race condition in build 2019-07-09 03:08:04 +03:00
Alexey Milovidov
055ec8817b Clean CMakeLists 2019-07-09 02:58:14 +03:00
Alexey Milovidov
52bb292327 Merge branch 'master' into libcxx-as-submodule 2019-07-09 01:58:09 +03:00
alesapin
b3ebb4d784 Add coverage images for CI 2019-07-05 18:12:18 +03:00
Ivan Lezhankin
3050d4e1a9 Pass option as linker argument 2019-07-05 15:10:31 +03:00
Ivan Lezhankin
3b995bdb02 Add missing dependecies on sight to enable --no-undefined option 2019-07-04 17:05:55 +03:00
Alexey Milovidov
c0070317dd Addition to prev. revision 2019-07-03 22:36:54 +03:00
Alexey Milovidov
5ed4bb945e Addition to prev. revision 2019-07-03 22:35:50 +03:00
Alexey Milovidov
6b9df067d8 Merge branch 'master' into libcxx-as-submodule 2019-07-03 22:34:58 +03:00
Nikita Lapkov
9641d058d0 Merge remote-tracking branch 'upstream/master' into update_libunwind 2019-07-01 21:11:26 +00:00
alexey-milovidov
c108882c5f
Merge pull request #5805 from yandex/BHYCHIK-h3-integration
Merge H3 integration
2019-07-01 01:02:16 +03:00
Alexey Milovidov
7ca7d6c774 Initial support for clang-tidy (not yet useful) 2019-06-30 21:56:53 +03:00
alexey-milovidov
feafcb21bd
Merge branch 'master' into h3-integration 2019-06-30 16:19:11 +03:00
Nikita Lapkov
2a131185b0 Merge remote-tracking branch 'upstream/master' into update_libunwind 2019-06-28 18:20:23 +00:00
alexey-milovidov
6e77fc4abe
Merge pull request #5775 from yandex/lfalloc2mimalloc
Use mimalloc instead of lfallocator
2019-06-28 14:48:18 +03:00
proller
5fdc88075e Cmake: add option for coverage flags: WITH_COVERAGE 2019-06-27 20:37:24 +03:00
Danila Kutenin
e67431e455 Use mimalloc instead of lfallocator 2019-06-27 18:13:19 +03:00
Nikita Lapkov
92309eed3e Merge remote-tracking branch 'upstream/master' into update_libunwind 2019-06-27 14:07:44 +00:00
proller
f111dbd45f Do not require gperf on build (#5701)
* Build fixes

* fix

* USE_GPERF

* wip

* wip

* wip

* test -j

* Simpler

* fix

* FunctionsURL.h -> URL/FunctionsURL.h

* clean

* clean

* Always use gperf-generated file

* Generator for tldLookup.generated.cpp

* clang-format
2019-06-21 02:50:53 +03:00
Ivan Remen
6ba6ee9bcd glibc compat for h3 2019-06-20 19:27:08 +03:00
proller
fa809de91f
Move all url functions to clickhouse_functions_url lib (#5696) 2019-06-20 18:49:54 +03:00
Ivan Remen
b439769aa7 Merge remote-tracking branch 'main/master' into h3-integration-fix 2019-06-20 13:53:17 +03:00
proller
3d8c8ee83c
Build fixes. Split config.h (#5686) 2019-06-20 12:12:49 +03:00
alexey-milovidov
9bdbd84263
Merge pull request #5030 from PerformanceVision/top_level_domain
Changing how the function (cutTo)firstSignificantSubdomain detect the tld (proposal)
2019-06-19 02:08:43 +03:00
alexey-milovidov
397ec9599e
Update CMakeLists.txt 2019-06-19 01:53:32 +03:00
alexey-milovidov
de8e0780d7
Update CMakeLists.txt 2019-06-19 01:53:13 +03:00
proller
1cb0ba5854 Cmake: better USE_STATIC_LIBRARIES and SPLIT_SHARED_LIBRARIES handling 2019-06-18 20:10:25 +03:00
Danila Kutenin
7e2b3b59b8 Fix gcc9 warnings and ICE's 2019-05-31 11:55:01 +03:00
favstovol
cec08ed148 Merge branch 'master' into add-ext-dict-cassandra
# Conflicts:
#	.gitmodules
#	contrib/CMakeLists.txt
#	dbms/src/Common/config.h.in
2019-05-22 21:43:13 +03:00
Vladimir Chebotarev
81706fc500 Specified exact path for libglibc-compatibility.a. [#CLICKHOUSE-2] 2019-05-20 12:51:49 +00:00
Vitaly Baranov
8ab4e4dcfe Use rapidjson when AVX2 instructions are not available. 2019-05-16 20:40:24 +03:00
proller
51ca4cbaa4
Build fixes (#5278) 2019-05-15 20:19:39 +03:00
Nikita Lapkov
9cd108b6d6 Merge remote-tracking branch 'upstream/master' into update_libunwind 2019-05-12 13:40:17 +00:00
alexey-milovidov
4853b06f95
Merge pull request #5223 from proller/fix26
Build fixes
2019-05-09 11:38:20 +03:00
Vitaly Baranov
7ace113ac0 Use custom cmake file for simdjson and fix build 2019-05-08 16:20:25 +03:00
proller
cfb330eeb5 fix 2019-05-08 10:51:03 +03:00
proller
aeee7a00a6 wip 2019-05-08 10:45:52 +03:00
Guillaume Tassery
7c4541b127
Merge branch 'master' into top_level_domain 2019-04-26 12:30:23 +07:00
proller
ba4687e110
Cmake: dont use LINK_MODE (but use BUILD_SHARED_LIBS) (#5091) 2019-04-24 12:06:28 +03:00
alexey-milovidov
80cc6de2d0
Update CMakeLists.txt 2019-04-24 01:59:17 +03:00
alexey-milovidov
d1219f1b43
Merge branch 'master' into add-ext-dict-cassandra 2019-04-22 22:23:11 +03:00
Nikita Lapkov
954dbdc41e do not use libunwind with shared libraries 2019-04-21 16:28:54 +00:00
Nikita Lapkov
26c4df9d9c Merge remote-tracking branch 'upstream/master' into update_libunwind 2019-04-21 09:24:48 +00:00
Guillaume Tassery
4cc0ee677a Use gperf perfect hash for checking with a better accurency the tld for firstSignificantSubdomain and cutToFirstSignificantSubdomain 2019-04-17 13:21:26 +07:00
Danila Kutenin
622b2c8472 Enable LFAlloc for MarkCache and UncompressedCache 2019-04-13 15:07:43 +03:00
Danila Kutenin
7f230cc134 LFAlloc added to clickhouse 2019-04-12 17:10:42 +03:00
Alexey Milovidov
c3d2b3066f Removed old library from the list 2019-04-11 23:16:43 +03:00
Alexey Milovidov
6697061d9f Use libunwind instead of libgcc_eh 2019-04-11 22:50:58 +03:00
Alexey Milovidov
a9b47a62ba Merge branch 'update_libunwind' of https://github.com/laplab/ClickHouse into laplab-update_libunwind 2019-04-11 22:36:36 +03:00
Alexey Milovidov
3b9f3f5dbb Miscellaneous changes in CMakeLists 2019-04-11 21:58:31 +03:00
Oleg Favstov
95b812f518 Merge remote-tracking branch 'origin/master' into add-ext-dict-cassandra
# Conflicts:
#	dbms/tests/integration/image/Dockerfile
2019-04-11 11:21:12 +02:00
Oleg Favstov
60c9cc574f Merge branch 'master' into add-ext-dict-cassandra
# Conflicts:
#	.gitmodules
#	CMakeLists.txt
#	contrib/CMakeLists.txt
#	dbms/src/Common/config.h.in
2019-04-06 17:54:07 +03:00
proller
45591c9d83
Build and test fixes (#4873) 2019-04-02 12:43:53 +03:00
Nikita Lapkov
59748db2ff Merge remote-tracking branch 'upstream/master' into update_libunwind 2019-03-29 10:50:26 +00:00
Nikita Lapkov
7f65c6d743 add libunwind to glibc compat 2019-03-29 10:44:28 +00:00
proller
0ac9d5a7c3 Try use CMAKE_LINK_DEPENDS_NO_SHARED 2019-03-28 16:46:32 +03:00
Ivan Remen
2fb5addc40 H3 library integration 2019-03-26 11:59:48 +03:00
Danila Kutenin
f8001b41ba Hyperscan multi regular expressions search 2019-03-23 22:40:16 +03:00
proller
d6d83d4a5c
Allow build without ssl (#4525) (#4750) 2019-03-22 14:18:24 +03:00
Ivan
18e3dd137c
Fix build with default libs (#4722)
* Fix build with shared libs
* Fix Clang build for ubsan + int128 operations
2019-03-21 16:25:58 +03:00
Alexey Milovidov
2179cd67e7 Addition to prev. revision 2019-03-14 07:00:15 +03:00
Alexey Milovidov
e81d8e8b02 Fixed build 2019-03-12 21:35:23 +03:00
Alexey Milovidov
37b5e49508 Merge branch 'master' into libcxx-as-submodule 2019-03-12 20:05:56 +03:00
Alexey Milovidov
be57a14906 Fixed build 2019-03-11 22:51:44 +03:00
alexey-milovidov
8047b4907a Update CMakeLists.txt 2019-03-11 19:16:47 +03:00
Alexey Milovidov
3681c982f6 Link all libraries to "glibc-compatibility" 2019-03-11 19:16:35 +03:00
Alexey Milovidov
afa35d55d9 Fixed linking order of glibc-compatibility library 2019-03-11 19:16:29 +03:00
Alexey Milovidov
8f8e5a6201 Addition to prev. revision 2019-03-11 04:47:58 +03:00
Alexey Milovidov
c0adf7f658 Addition to prev. revision 2019-03-11 04:17:08 +03:00
Alexey Milovidov
9166acec56 Addition to prev. revision 2019-03-11 04:09:29 +03:00
Alexey Milovidov
880cbbb632 Merge branch 'master' into libcxx-as-submodule 2019-03-11 04:03:13 +03:00
Alexey Milovidov
b10b30ab0e Fixed debug build 2019-03-10 23:04:36 +03:00
Alexey Milovidov
c9b83feae9 Fixed debug build 2019-03-10 22:01:30 +03:00
alexey-milovidov
030a4eb3c6
Merge branch 'master' into fix-glibc-compatibility-2 2019-03-10 19:31:18 +03:00
proller
e20c77e4c6 Add parquet support. Fixes, tests, ... 2019-02-19 23:51:44 +03:00
proller
88076bb8c9 Merge commit 'bf09c2047a47b74f089d701b9b1e4fcbe8955a7f' into fix23 2019-02-19 23:46:37 +03:00
proller
263e69e861
Build fixes (FreeBSD port) (#4397) 2019-02-15 14:46:07 +03:00
Mikhail
763b3dcf73
Merge branch 'master' into brotli 2019-02-11 23:44:39 +03:00
proller
a95d2d153d Build ARM fix (#4306)
* Build ARM fix

* Fix warning: declaration shadows a local variable

* Add info about SPLIT_SHARED_LIBRARIES

* Fix cpuid on ARM

* release: better pbuilder autoinstall
2019-02-09 01:09:32 +03:00
Mike F
723d3b3a99
Merge branch 'master' into brotli 2019-02-02 20:14:29 +03:00
Evgenii Pravda
67d26f6528 Use pdqsort instead of std::sort in ORDER BY 2019-02-02 16:52:20 +03:00
alesapin
1a3cef8216 Add brotli to contrib 2019-02-02 16:33:50 +03:00
Alexey Milovidov
7224878446 Fixed build with old CMake 2019-01-31 22:52:12 +03:00
proller
834f543118 Disable GLIBC_COMPATIBILITY for old cmake 2019-01-31 20:10:58 +03:00
proller
a874945e0e Use cpuinfo if cpuid not available 2019-01-28 16:16:08 +03:00
Oleg Favstov
8e12eedbb3 Initial commit 2019-01-27 19:51:05 +03:00
proller
9230fe9917 Merge remote-tracking branch 'upstream/master' into fix10 2019-01-25 23:10:38 +03:00
proller
5328251ff1
Fix build without protobuf, gtest, cppkafka (#4152) 2019-01-25 23:02:03 +03:00
proller
d1d37cee82 DISABLE_CPU_OPTIMIZE 2019-01-25 22:36:03 +03:00
proller
dd16a012a4 IPO fixes 2019-01-25 22:18:05 +03:00
Alexander GQ Gerasiov
e1f818a1b6 Enable link time optimization (-flto).
This reduce target's size by 30%.

Signed-off-by: Alexander GQ Gerasiov <gq@cs.msu.su>
2019-01-25 22:09:31 +03:00
Vitaly Baranov
0ac0557e0f Make DBMS dependent on the protobuf library. 2019-01-23 22:19:23 +03:00
Alexey Milovidov
203de2aa02 Added comments 2019-01-20 01:08:40 +03:00
Alexey Milovidov
2996d70c97 Addition to prev. revision 2019-01-20 00:48:22 +03:00
Alexey Milovidov
37f8d20181 Fix glibc compatibility, part 2 2019-01-19 20:14:57 +03:00
Alexey Milovidov
f4ae6a4cda Removed useless install 2019-01-19 02:52:21 +03:00
alexey-milovidov
9f1837f01f
Update CMakeLists.txt 2019-01-18 21:27:46 +03:00
alexey-milovidov
d54a019456
Merge branch 'master' into fix-glibc-compatibility 2019-01-18 21:21:47 +03:00
Alexey Milovidov
ed124c955a Link all libraries to "glibc-compatibility" 2019-01-18 21:20:07 +03:00
Alexey Milovidov
112f62f49f Fixed linking order of glibc-compatibility library 2019-01-18 19:36:10 +03:00
proller
0939387514
Build fixes (#4076)
Move copy_headers.sh and formath.sh from root.
Debian: use default build dir (obj-x86_64-linux-gnu)
Debian: add test after build (GLIBC_required_version)
cmake: dont run copy headers if already copied
2019-01-18 18:19:53 +03:00
proller
497b6ec2ad
Better compile with low memory; Fix macos build, add utils/build/build_debian_unbundled_split.sh test script (#4030) 2019-01-11 15:40:19 +03:00
Alexey Milovidov
130b427ff7 Using libcxx as a submodule [#CLICKHOUSE-2] 2018-12-28 06:24:03 +03:00
Alexey Milovidov
df42e26146 Merge branch 'master' into libcxx-as-submodule 2018-12-28 03:18:50 +03:00
proller
1a0a879a51 Build fixes 2018-12-27 18:23:37 +03:00
Alexey Milovidov
6368daff63 Merge branch 'master' of github.com:yandex/ClickHouse 2018-12-23 22:25:53 +03:00
Alexey Milovidov
7b420297ed Fixed "unbundled" build #3905 2018-12-23 22:25:40 +03:00
proller
bebaf9d861 Fix includes, Faster compile (#3898)
* Fix includes

* Faster compile

* WTFix

* Limit compile and linking jobs according to available memory

* Add comment

* fix

* Remove ALL from copy-headers target

* Freebsd fix

* Better

* cmake: split use libcxx
2018-12-23 17:19:11 +03:00
proller
0828b1cf73
Fix build on arm/clang (#3848) 2018-12-17 16:57:24 +03:00
Alexey Milovidov
b9b48c646c Fixed linkage in Jenkins [#CLICKHOUSE-2] 2018-12-14 20:25:55 +03:00
Alexey Milovidov
2b9d9536ee Allow to use libcxx from submodule [#CLICKHOUSE-2] 2018-12-08 06:48:17 +03:00
alesapin
80b49e4c0a Add integration test, put dependent libs to contrib, slightly refine
code.
2018-12-07 14:41:24 +03:00
alesapin
03ce4c5bc5
Merge branch 'master' into master 2018-12-03 13:02:34 +03:00
Alexey Milovidov
a7d3724d08 Explicit specification of static linkage for standard, system and compiler libraries on clang #3706 2018-12-02 22:37:01 +03:00
proller
2221638ade Fix presence of both libc++ and -static-libstdc++ link flags (#3706)
* Fix precence of both libc++ and -static-libstdc++ link flags

* cmake: NO_WERROR for ARCH_ARM

* Try fix test link

* revert

* Update CMakeLists.txt
2018-12-01 01:30:34 +03:00
Ivan Lezhankin
0798db6c8c Add variables to limit the number of concurrent linkings. 2018-11-30 20:54:14 +03:00
proller
1ea31e0491
Fix icu link #3631 (#3671) 2018-11-27 18:34:21 +03:00
alexey-milovidov
507990d5f2
Merge branch 'master' into master 2018-11-23 23:41:38 +03:00
alexey-milovidov
af013285e9
Merge branch 'master' into base64_functions 2018-11-23 21:33:56 +03:00
chenxing.xc
86f1a18185 withdraw INSERT INFILE feature 2018-11-21 11:59:24 +08:00
chenxing.xc
76843c2dc0 hdfs read support 2018-11-19 16:17:09 +08:00
proller
160ffb2283
Build fixes (clang 7.0.0+) (#3582) 2018-11-16 15:22:51 +03:00
Alexandr Krasheninnikov
177a00f09a Merge https://github.com/yandex/ClickHouse into base64_functions 2018-11-14 12:32:42 +03:00
proller
5678d1ed98 Build fixes (#3545)
* StorageSystemContributors clean

* Fix

* ARM fixes

* Fix arm compile

* fix

* Fix macos?

* Fix includes

* fix

* fix

* Try fix apple build part 1

* Fix identation

* Fix static libc++ in clang

* fix arm build

* better

* fix

* fix

*  better check-include
2018-11-10 23:09:07 +03:00
proller
abfe675097
Build fixes (#3419) 2018-10-18 22:28:05 +03:00
Alexandr Krasheninnikov
41281ad397 Make compilation on-demand 2018-10-11 19:25:17 +03:00
luc1ph3r
bf09c2047a Parquet data format: update CMake configurations 2018-10-01 19:44:55 +03:00
Alexey Milovidov
0ece3d5a89 Attempt to fix internal compiler [#CLICKHOUSE-2] 2018-09-03 20:45:52 +03:00
Alexey Milovidov
0b2ec39f11 Miscellaneous [#CLICKHOUSE-2] 2018-09-03 03:00:56 +03:00
proller
de2b740db7 USE_INTERNAL_CONSISTENT_HASHING_LIBRARY 2018-08-30 22:07:24 +03:00
Alexey Milovidov
b262715bd8 Fixed order of CMake statements [#CLICKHOUSE-2] 2018-08-30 03:20:02 +03:00
Alexey Milovidov
cf33608e62 Enabled JEMALLOC_DEBUG in debug build [#CLICKHOUSE-2] 2018-08-29 18:54:00 +03:00
proller
e30d93a0f2 Better debug helpers (#2983)
* Better debug helpers

* fix
2018-08-29 03:03:07 +03:00
Alexey Milovidov
c2e4a6a55d Removed CLICKHOUSE_PRIVATE_DIR because it is obsolete [#CLICKHOUSE-3] 2018-08-28 21:26:50 +03:00
proller
3acce3bff9 Build fix (#2944)
* Build fix

* Better sample build scripts

* zlib apple fix

* fix

* fix

* better so version

* SPLIT_SHARED -> LINK_MODE

* clean
2018-08-27 17:39:20 +03:00
champtar
51df4222db Fix x86_64 detection on CentOS7 / Fedora (#2912)
* Fix x86_64 detection on CentOS7 / Fedora

CMAKE_LIBRARY_ARCHITECTURE is empty on CentOS7 / Fedora
CMAKE_SYSTEM_PROCESSOR is what we really want

only tested on CentOS7 / Fedora 28

Signed-off-by: Etienne Champetier <echampetier@anevia.com>

* Support freebsd
2018-08-21 20:15:18 +03:00
alexey-milovidov
89655b5f2d
Merge pull request #2482 from yandex/CLICKHOUSE-2910
Performance introspection
2018-08-19 06:37:55 +03:00
Alexey Milovidov
925ab91b66 Added clarifying comment [#CLICKHOUSE-2] 2018-08-19 06:36:35 +03:00
Amos Bird
28288b7b72
avoid cmake compatible behavior for better linking
https://cmake.org/cmake/help/v3.9/policy/CMP0060.html#policy:CMP0060

Link fails when libraries like `ICU` reside in `/usr/local/` while cmake uses old flavor of linking, which adds `-l<SONAME>` directly without the actual library paths.
2018-08-18 15:59:52 +08:00
Alexey Milovidov
419bc587c0 Mark library headers as system (this is intended to enable more warnings in application code) [#CLICKHOUSE-2] 2018-08-10 05:24:10 +03:00
Alexey Milovidov
71a093fa48 Removed obsolete variable [#CLICKHOUSE-2] 2018-08-09 21:18:29 +03:00
Alexey Milovidov
0e557b47fa Better way to enable sanitizers in CMake [#CLICKHOUSE-2] 2018-08-08 07:14:53 +03:00
Alexey Milovidov
0a245d377c Remove obsolete build flags [#CLICKHOUSE-2] 2018-08-06 02:53:19 +03:00
Alexey Milovidov
e523f9a2c8 Fixed names [#CLICKHOUSE-2] 2018-08-05 11:54:57 +03:00
Alexey Milovidov
be1a9dbac9 Using libressl #1983 2018-08-05 11:40:31 +03:00
Alexey Milovidov
0c233d668f Removed useless file; preparations #2791 2018-08-03 21:47:44 +03:00
proller
010350a088 Build fixes (#2794)
* More information in 'Cannot read all data' errors

* Build fixes

* Apple version fix

* Fix

* clean

* New libs fixes

* Freebsd fixes

* macos fix

* Fix macos build

* fix

* fix

* Update CMakeLists.txt

* freebsd fix

* fix

* Update CMakeLists.txt
2018-08-03 19:39:04 +03:00
alexey-milovidov
e6be3df322
Added unixodbc as a submodule. (#2789)
* Using unixodbc as submodule [#CLICKHOUSE-3]

* Using unixodbc as submodule [#CLICKHOUSE-3]

* Using unixodbc as submodule [#CLICKHOUSE-3]

* Using unixodbc as submodule [#CLICKHOUSE-3]

* Using unixodbc as submodule [#CLICKHOUSE-3]

* Using unixodbc as submodule [#CLICKHOUSE-3]

* Using unixodbc as submodule [#CLICKHOUSE-3]
2018-08-02 11:18:15 +03:00
ap11
68bdc4eb12 Add mumurhash2 2018-07-30 15:19:22 +03:00
proller
f477942c66 Cmake: test for liblld 2018-07-21 03:11:56 +03:00
Alexey Milovidov
fb38f8aaaa Attempt to fix an error when building on Mac [#CLICKHOUSE-2] 2018-07-10 19:34:18 +03:00
proller
a31adcfdea Allow use unbundled cpuid (#2543)
* Wait test server startup for 5s

* clean

* Allow use system libcpuid

* cpuid: move include/cpuid/ -> include/libcpuid/

* fix
2018-06-21 20:35:03 +03:00
Alexey Milovidov
cf7e72b529 Using ninja by default: turn on colored output [#CLICKHOUSE-2] 2018-06-08 19:26:03 +03:00
proller
5aa6a35161 Build fixes 2018-06-04 19:08:27 +03:00
Alexey Milovidov
440ece0ff2 Force submodules to be present (usability) [#CLICKHOUSE-3] 2018-06-03 19:57:52 +03:00
proller
68ba523b23 Compile and doc fixes (#2410)
* Try fix travis

* fix

* Fix clickhouse-local shared-split link

* fix

* fix

* fix

* Build fixes

* Fix tinfo

* fix

* tinfo -> termcap

* termcap fix

* Better llvm version detect

* fix

* Debian postinst fix
Tests: use /usr/local if exists

* Compile and doc fixes

* fix

* fix

* fix

* macos fixes

* fix

* wip

* Update demangle.h

* Update demangle.cpp
2018-05-25 21:13:48 +03:00
Ivan Zhukov
d30b98073e Link parquet and arrow libraries 2018-05-13 04:01:49 +03:00
Ivan Zhukov
dc5b074e24 Add cmake modules for libraries detection 2018-05-13 03:48:49 +03:00
proller
0b386381ac Build fixes 2018-05-11 21:00:24 +03:00
proller
efe661b620 Build fixes (#2347)
* Try fix travis

* fix

* Fix clickhouse-local shared-split link

* fix

* fix

* fix

* Build fixes

* Fix tinfo

* fix

* tinfo -> termcap
2018-05-11 17:16:16 +03:00
proller
c26b3bdef1
Fix split shared build; fix build without system odbc libs (#2191)
* Fix split shared build

* Fix build without system odbc libs

* Move dbms/src/Common/iostream_debug_helpers.h -> libs/libcommon/include/common/iostream_debug_helpers.h

* Fix build with libiodbc
2018-04-09 06:52:39 -07:00
Alexey Milovidov
c2f40e8d41 Removed libzookeeper [#CLICKHOUSE-2] 2018-03-25 06:47:56 +03:00
Alexey Milovidov
a5ddca7a9c Added CMake option to link with custom libc++ [#CLICKHOUSE-2] 2018-03-03 22:44:32 +03:00
proller
f749405bf0 libressl as submodule (#1983)
* Allow use bundled *ssl library

* fix

* Add submodule

* Fixes

* fix

* fixes

* fixes

* fix

* fix

* update poco

* fix warnings

* fix

* fix
2018-03-02 03:17:25 +03:00
proller
cf9a33d04f CLICKHOUSE-3600 Use correct lld version, cmake fixes (#1968)
* Allow build without rt library

* fix

* Cmake misc

* CLICKHOUSE-3600 Use correct lld version

* CLICKHOUSE-3600 Use correct lld version

* Use libllvm same version as clang

* fix

* Fix build with iodbc

* Fix iodbc build

* Fix gold find

* Fix empty lines
2018-02-26 21:34:22 +03:00
proller
6e4b4f1c7f Build fixes 2018-01-21 23:17:33 +03:00
proller
c430af5fb8 Freebsd fixes 2018-01-21 02:23:19 +03:00
proller
ee8272561a
More builder fixes (#1801)
* fix boost

* Fix gtest

* fix gtest

* fix

* fix gtest

* fix
2018-01-20 05:35:16 +03:00
proller
a34e78a54f Cmake: Fix odbc find 2018-01-19 16:50:46 +03:00
proller
90399b851d Cmake fixes related to #1786 2018-01-18 21:26:36 +03:00
proller
f6d8436f81 Enable travis (#1772)
* Try travis

* wip

* Try travis

* try

* try

* try

* try

* Revert "try"

This reverts commit 7ecd73c2eb.

* try unbundled

* Try unbundled2

* Try undundled3

* Try unbundled4

* Try5

* try gcc7

* try6

* Try clang

* Try min

* try ccache

* try ccache stats

* no sudo

* try clang

* try ccache

* reset changelog

* Try fix clang

* try limit time

* Faster

* try timeout

* try faster

* Try

* try

* try

* try

* try

* try

* ccache

* Fix

* try test

* try test

* Fix try_listen in some vm's

* fix

* test

* fix

* cache timeout

* packages

* fix

* fix

* fix

* try emb compiler

* Try emb compiler

* Revert "try emb compiler"

This reverts commit 471713cabe.

* try

* Revert "Try emb compiler"

This reverts commit 95e632abf6.

* Skip long

* fix

* fix

* ccache

* fix

* debug

* Fxi test

* test fix

* tes fix

* Fix

* Fix link

* Fix odbc link

* Fxi test

* fix  boost unbundled include

* fix test

* fix test

* test fix

* fix tests

* tests

* Test fail
2018-01-15 21:57:10 +03:00
Alexey Milovidov
996eafada9 Revert "Remove hard-coded paths in Interpreters/Compiler.cpp"
This reverts commit 3a97fbd0e7.
2018-01-09 20:49:25 +03:00
Roman Tsisyk
3a97fbd0e7 Remove hard-coded paths in Interpreters/Compiler.cpp
Interpreters/Compiler.cpp contained hard-coded paths for system's
includes needed for query compiler. These paths were not portable
between different Linux distros and gcc/clang versions. For example,
Debian/Ubuntu use /usr/lib/gcc/x86_64-linux-gnu/*/include,
RHEL/Fedora use /usr/lib/gcc/x86_64-redhat-linux/*/include,
others use /usr/lib/gcc/*/include (without x86_64-XXX triplet).

Patch 68850012b "Embedded compiler fixes" attempted to fix this problem
by adding CMAKE_LIBRARY_ARCHITECTURE after /usr/lib. Unfortunally,
CMAKE_LIBRARY_ARCHITECTURE is not defined on RHEL/Fedora because someone
decided to omit "-gnu" from x86_64-redhat-linux (see RHBZ#1531678).

Patch 70e35d0bc "Build fixes (#1718)" added a workaround for
undefined CMAKE_LIBRARY_ARCHITECTURE on RHEL/Fedora, but hasn't fixed
problem with missing /usr/lib/gcc/x86_64-redhat-linux/*/include/
in the list of hardcoded paths.

Remove hard-coded paths and get the list of `-isystem` includes directly
from bundled clickhouse-clang.

Other changes:

- Enable RPATH for the build directory to get working binaries
  without installing them by `make install`.
2018-01-09 20:24:25 +03:00
proller
ccf7c1f760 pbuilder: install package and make simple query (#1671)
* pbuilder: install package and make simple query

* use B92test-pkg from system

* Fix
2017-12-25 19:01:03 +03:00
Marek Vavruša
fd260c31ba CapnpProtoRowInputStream: fixed build in current master, added docs 2017-12-21 00:46:50 +03:00
Marek Vavruša
fb1aa84973 Fixed clang build on macOS
- Make sure to use dynamic linking on macOS to avoid OpenSSL static linking bug
- Use -std=c++17 in CFLAGS for files in contrib
- Avoid bad support for thread_local on macOS with clang altogether
2017-12-21 00:46:50 +03:00
proller
41591147b5 Use static link in gcc + asan 2017-12-13 22:48:57 +03:00
proller
741117a390
Fix freebsd build. Little cmake fixes. (#1634) 2017-12-13 22:07:12 +03:00
proller
cc895f4698 Allow to build several binaries 2017-12-10 22:44:24 +03:00
proller
46fb94a3e4 Internal compiler: Use libclang-5.0 (#1597)
* Fix std::numeric_limits<__uint128_t>

* clean

* Better fix of std::numeric_limits<__uint128_t>

* Use clang 5.0 (release) as internal compiler

* message

* Fix werror

* fix

* fix

* fixing..

* note

* fix

* fix

* fix

* fix

* multi version

* fix

* fix
2017-12-08 11:28:08 +03:00
Alexey Milovidov
2c1d7ad343 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-07 03:31:46 +03:00
Alexey Milovidov
3786786aeb Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-12-03 07:19:46 +03:00
Alexey Milovidov
ab022d0882 Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-12-03 05:59:59 +03:00
Alexey Milovidov
557357e8da Better [#CLICKHOUSE-2]. 2017-12-01 21:58:18 +03:00
proller
d116ee1ff9 Fix -Wno-unused-command-line-argument 2017-11-29 19:21:19 +03:00
proller
62956c4592 Disable warning unused-command-line-argument when ccache used 2017-11-29 19:00:20 +03:00
proller
7e89946ec0 Use -pthread flag for compile 2017-11-28 00:13:55 +03:00
proller
4b63d9a4c3 Cmake: fix link of some tests (missing pthread) 2017-11-27 23:39:06 +03:00
proller
269c2cea92 Cmake: clang + libc++ fixes 2017-11-27 23:14:16 +03:00
proller
3ff4d49972 Fix compiler warnings about unused options (#1542)
* Lib Parsers

* Update parseIdentifierOrStringLiteral.h

* Freebsd fix

* Try fix warnings

* fix

* libc++ test

* Core/Progress.h -> IO/Progress.h

* Core/FieldVisitors.h -> Common/FieldVisitors.h

* Fix link tests

* Fix freebsd link

* tests: sudo --non-interactive
2017-11-25 01:48:34 +03:00
proller
6ff1968196 Compile and likk optimize and fixes 2017-11-24 21:08:01 +03:00
Alexey Milovidov
087a379b7c Using libc++ as default standard library when using clang [#CLICKHOUSE-2]. 2017-11-20 08:10:04 +03:00
alexey-milovidov
02223e3962
Update CMakeLists.txt 2017-11-19 22:55:38 +03:00
proller
aa3dd03389 Split lib dbms to dbms + dbms_common_io 2017-11-17 22:19:49 +03:00
proller
fa65bdcf48 Fix realloc on freebsd and macos (#1494) 2017-11-16 22:17:09 +03:00
proller
16eb293b15 No more gcc-6 and clang 3.8 2017-11-16 20:47:54 +03:00
Alexey Milovidov
edcbf791fb Miscellaneous [#CLICKHOUSE-2]. 2017-11-16 20:40:54 +03:00
Alexey Milovidov
2029b38527 Fixed build [#CLICKHOUSE-3396]. 2017-11-12 19:45:30 +03:00
Alexey Milovidov
c69264a316 Fixed build [#CLICKHOUSE-3396]. 2017-11-12 17:32:07 +03:00
alexey-milovidov
9b18c6cb76
Embedded compiler (#1484)
* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].

* Embedded compiler: development [#CLICKHOUSE-3396].
2017-11-12 15:58:40 +03:00
proller
d940d1713c Cmake: silent poco warnings, use compiler version defenition by cmake (#1440)
Cmake: silent poco warnings, use compiler version definition by cmake
2017-11-03 00:30:27 +03:00
proller
8aafa3b042
Cmake: fix warnings (#1437)
* Cmake: fix warnings

* Tests: replace 127.0.0.1 -> localhost
2017-11-02 17:14:16 +03:00
Marek Vavruša
0d942a69c5 DataStreams: added Cap’n Proto format support
Cap'n Proto is a binary message format.
Like Protocol Buffers and Thrift (but unlike JSON or MessagePack), Cap'n Proto messages are strongly-typed and not self-describing. Due to this, it requires a schema setting to specify schema file and the root object. The schema is parsed on runtime and cached for each SQL statement.
2017-10-27 23:03:51 +03:00
alexey-milovidov
8c327e9378 Revert "Make gperftools (libtcmalloc) as submodule and update. (#1381)"
This reverts commit fa2484ea90.
2017-10-24 22:18:15 +03:00
proller
fa2484ea90 Make gperftools (libtcmalloc) as submodule and update. (#1381)
* Update tcmalloc and make submodule

* wip

* wip

* wip

* wip

* clean

* fix

* fix

* fix

* Fix tests
2017-10-24 22:11:42 +03:00
Marek Vavruša
011658bb02 contrib: include librdkafka as submodule 2017-10-10 08:33:00 -07:00
Alexey Milovidov
a726f2831c Enabled "GLIBC_COMPATIBILITY" option by default [#CLICKHOUSE-3275]. 2017-09-17 01:41:20 +03:00
Alexey Milovidov
7a85eab260 Disabled increased inline-depth for clang [#CLICKHOUSE-2]. 2017-09-17 01:33:05 +03:00
Alexey Milovidov
bf5ef11933 Properly specify inline-depth for clang [#CLICKHOUSE-2]. 2017-09-15 17:30:13 +03:00
Alexey Milovidov
9867a7007d Merge branch 'master' of github.com:yandex/ClickHouse 2017-09-15 13:12:55 +03:00
Alexey Milovidov
3523059be9 Increased inline depth for clang (it must inline as good as gcc) [#CLICKHOUSE-2]. 2017-09-15 13:12:50 +03:00
Alexey Milovidov
660926c215 Better GLIBC_COMPATIBILITY option [#CLICKHOUSE-3275]. 2017-09-15 12:51:56 +03:00
Alexey Milovidov
860c19bad3 Refined "GLIBC_COMPATIBILITY" option [#CLICKHOUSE-3275]. 2017-09-15 12:51:56 +03:00
proller
06c7d4315f Cmake fixes (#CLICKHOUSE-3303) (#1229)
* Cmake fixes (#CLICKHOUSE-3303)
2017-09-11 18:51:32 +03:00
Alexey Milovidov
fabfed6f22 Added support for "include-what-you-use" tool [#CLICKHOUSE-2]. 2017-09-10 09:51:27 +03:00
Alexey Milovidov
32d8d7d908 Fixed build with libc++ [#CLICKHOUSE-3174]. 2017-09-09 04:01:36 +03:00
Alexey Milovidov
62f760ef36 Merge branch 'master' of github.com:yandex/ClickHouse 2017-09-09 03:37:04 +03:00
Alexey Milovidov
c46c6b66d5 Fixed static linking of libc++ (ugly) [#CLICKHOUSE-3174]. 2017-09-09 03:36:53 +03:00
proller
84c0470bcb cmake: ccache detect proper version (#1222) 2017-09-09 03:32:34 +03:00
Alexey Milovidov
a0f6f406c8 Initial support for build with libc++ instead of libstdc++ (incomplete) [#CLICKHOUSE-3174]. 2017-09-09 03:06:06 +03:00
Alexey Milovidov
0dcee75180 Supporessed useless false positive errors found by cppcheck [#CLICKHOUSE-3300]. 2017-09-07 22:13:37 +03:00
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