Commit Graph

1544 Commits

Author SHA1 Message Date
Robert Schulze
b9b7a1091b
(Re)-enable libcxx debug mode
- We previously compiled libcxx with _LIBCPP_DEBUG=0. In old libcxx
  versions, this (surprisingly) enabled the basic debug mode [1].

- In libcxx 15 (the version we are currently using), _LIBCPP_DEBUG=0
  does nothing [2], the replacement is _LIBCPP_ENABLE_DEBUG_MODE=1.

- The debug mode is only enabled in Debug builds. Their docs say the
  extra check change complexity guarantees + the asserts crash which we
  don't want in Release builds. The debug mode detects issues like in
  [3]. Crashes look like this (for example)

  ```
  /data/ch/contrib/llvm-project/libcxx/include/__iterator/wrap_iter.h:99: assertion ::std::__libcpp_is_constant_evaluated() || (__get_const_db()->__dereferenceable(this)) failed: Attempted to increment a non-incrementable iteratorAborted (core dumped)
  ```

- I had to mute some new clang-tidy warnings in places that deal with
  container iterators. They got heavier and copy-by-value now yields a
  warning, e.g.

     for (auto it : iterators) /// <-- warning
         [...]

[1] https://releases.llvm.org/12.0.0/projects/libcxx/docs/DesignDocs/DebugMode.html
[2] https://releases.llvm.org/15.0.0/projects/libcxx/docs/DesignDocs/DebugMode.html
[3] https://github.com/llvm/llvm-project/blob/main/libcxx/test/support/container_debug_tests.h
2024-10-15 13:46:07 +00:00
Robert Schulze
36fbc4ac32
Docs: Follow-up for #70585 2024-10-14 19:02:09 +00:00
Daniil Gentili
a1f715ecf4 Fix ARCH_NATIVE CMake flag 2024-10-11 11:36:44 +00:00
Alexey Milovidov
38fb032594 Make it better 2024-10-06 02:09:30 +08:00
Raúl Marín
a90790ce5b Remove dbms dependency on clickhouse_functions 2024-09-24 19:48:23 +02:00
vdimir
4c9c9015f8
Revert "Revert "Merge pull request #63279 from allmazz/mongodb_refactoring""
This reverts commit 2ae9c9ac16.
2024-09-23 07:06:58 +00:00
Alexey Milovidov
4d2259407a
Merge pull request #69850 from ClickHouse/revert-mongodb
Revert #69790 and #63279
2024-09-22 22:29:32 +02:00
Alexey Milovidov
2ae9c9ac16 Revert "Merge pull request #63279 from allmazz/mongodb_refactoring"
This reverts commit 14cb02a18c, reversing
changes made to a940a9ebbc.
2024-09-22 22:28:24 +02:00
Raúl Marín
e3c2d10bc8 Merge remote-tracking branch 'blessed/master' into bump_version_24.10.1.1 2024-09-22 17:30:47 +02:00
robot-clickhouse
512d5e4bec Update autogenerated version to 24.10.1.1 and contributors 2024-09-20 10:27:17 +00:00
Kirill Nikiforov
4ecb5c0442
fix builds 2024-09-19 04:17:11 +04:00
Kirill Nikiforov
2c360e86be
Merge remote-tracking branch 'origin' into mongodb_refactoring 2024-09-18 16:14:02 +04:00
Nikita Mikhaylov
385c8127cf Fix FreeBSD build 2024-08-24 16:01:03 +02:00
Kirill Nikiforov
40462bc716
Merge remote-tracking branch 'origin' into mongodb_refactoring 2024-08-23 22:10:06 +04:00
János Benjamin Antal
860bd66d7a
Merge pull request #68267 from azat/build/COMMAND_ERROR_IS_FATAL
Avoid ignoring errors of execute_process() (set COMMAND_ERROR_IS_FATAL=ANY)
2024-08-20 11:55:20 +00:00
Max Kainov
7432400fd0 revert hacks made to prevent OOM in aarch64 2024-08-17 18:53:43 +02:00
robot-clickhouse
6af5fedf42 Update autogenerated version to 24.9.1.1 and contributors 2024-08-13 19:26:35 +00:00
Azat Khuzhin
4c043301e6 Avoid ignoring errors of execute_process() (set COMMAND_ERROR_IS_FATAL=ANY)
This will fix with issues like this [1]:

    Aug 12 09:58:44 '/usr/bin/cmake' '--build' '/build/build_docker/native' '--target' 'pre_compressor'
    Aug 12 09:58:44 sccache: error: Server startup failed: cache storage failed to read: Unexpected (temporary) at stat
    Aug 12 09:58:45 ninja: build stopped: subcommand failed.
    Aug 12 09:58:45 -- Configuring done (77.7s)
    Aug 12 09:58:47 -- Generating done (1.8s)
    Aug 12 09:58:47 -- Build files have been written to: /build/build_docker

So as you can see even if ninja fails it still wrote build files, while
it should fail.

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/64955/0af41e32a5822d25ac3760f1ebb2313557474701/builds/report.html
  [2]: 0af41e32a5/binary_darwin_aarch64/build_log.log

Note, COMMAND_ERROR_IS_FATAL is 3.19+, and the requirement for now is
3.20

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-08-13 10:35:54 +02:00
Kirill Nikiforov
9fa2773586
fix build 2024-08-09 20:32:54 +03:00
Yakov Olkhovskiy
b246f7c17c merge master 2024-08-07 16:25:31 +00:00
Nikita Taranov
f557686774 cherry on top of this cake 2024-07-27 21:24:13 +01:00
Nikita Taranov
109bd52296 impl 2024-07-26 23:05:56 +01:00
Raúl Marín
53c7bf680b Update autogenerated version to 24.8.1.1 and contributors 2024-07-23 11:46:48 +00:00
Yakov Olkhovskiy
698b5ce7fa Merge branch 'master' into ci-fuzzer-enable 2024-07-14 05:31:56 +00:00
Nikita Taranov
8d07c522f1 reduce amount of parallel linker jobs further 2024-07-12 18:44:12 +01:00
Nikita Taranov
851db16e30
Merge branch 'master' into limit_linker_jobs_on_aarch 2024-07-12 14:18:25 +02:00
Nikita Taranov
c7180e67bd impl 2024-07-12 13:08:53 +01:00
Yakov Olkhovskiy
a9aaa2ab78 Merge remote-tracking branch 'origin/master' into ci-fuzzer-enable 2024-07-06 00:48:09 +00:00
alesapin
964047bf8c Yarrrr 2024-07-05 16:31:00 +02:00
Raúl Marín
0df48b9abf Update autogenerated version to 24.7.1.1 and contributors 2024-06-20 08:16:36 +00:00
tomershafir
3e8929f5f0 xray: rename cmake file and build only on amd64 linux 2024-06-05 12:40:18 +03:00
Alexey Milovidov
5a5bdd87cb
Merge pull request #64592 from tomershafir/xray
xray: add global xray instrumentation support
2024-06-05 01:25:25 +02:00
tomershafir
6397f26998 xray: add global xray instrumentation support 2024-05-29 17:33:21 +03:00
Raúl Marín
00bbffa6f0 Update autogenerated version to 24.6.1.1 and contributors 2024-05-23 11:04:29 +00:00
Alexey Milovidov
921e44a616
Merge pull request #64051 from azat/build/freebsd-fix
Fix searching for libclang_rt.builtins.*.a on FreeBSD
2024-05-20 05:11:25 +02:00
alesapin
3878155b19
Merge pull request #64072 from ClickHouse/try_to_fix_cross_compilation_for_grpc
Try to fix grpc for aarch64 crosscompilation
2024-05-18 18:28:21 +00:00
alesapin
24892b151a Try to fix grpc for aarch64 crosscompilation
(cherry picked from commit f3fbf532e0d4d7616f51a9c3d5087cf7b2e6d7d5)
2024-05-17 22:55:12 +02:00
Azat Khuzhin
85aa8b71a4 Fix searching for libclang_rt.builtins.*.a on FreeBSD
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-05-17 16:15:33 +02:00
qiangxuhui
13508de9a4 Fix code according to review suggestions 2024-05-14 10:49:09 +00:00
qiangxuhui
97a5de9653 Initial support for loongarch64
Make ClickHouse compilable and runnable on loongarch64

So far only basic functionality was tested (on real hw),
clickhouse server runs, exceptions works, client works,
simple tests works.
2024-05-14 07:45:26 +00:00
Alexey Milovidov
773654c46e Merge branch 'master' of github.com:ClickHouse/ClickHouse into clang-18-ci 2024-05-08 21:24:04 +02:00
Azat Khuzhin
95b76bf6a4 Remove leftovers of GCC support in cmake rules
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-05-07 21:07:02 +02:00
Alexey Milovidov
46bd25128c
Merge branch 'master' into clang-18-ci 2024-05-06 02:51:58 +02:00
Alexey Milovidov
9470095e65 Merge branch 'master' into ubsan-clang-19 2024-05-02 20:19:36 +02:00
Alexey Milovidov
c6ab7bd995 Update autogenerated version to 24.5.1.1 and contributors 2024-05-01 03:52:34 +02:00
Alexey Milovidov
c2297f6118 Add a comment 2024-04-30 01:52:39 +02:00
Alexey Milovidov
aef0644b69 Merge branch 'master' into ubsan-clang-19 2024-04-30 01:49:59 +02:00
Azat Khuzhin
3ecfcdfe7b Remove outdated comment about broken -fsanitize-ignorelist
See: https://github.com/ClickHouse/ClickHouse/pull/49829#issuecomment-1546704055
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-04-26 15:45:44 +03:00
Alexey Milovidov
164a8d6097
Merge branch 'master' into clang-18-ci 2024-04-12 03:49:10 +02:00
Alexey Milovidov
8418efe06d Support UBSan on Clang-19 (master) 2024-04-10 02:12:02 +02:00