[WIP] Improve support for build with clang-13#28046
[WIP] Improve support for build with clang-13#28046nikitamikhaylov merged 35 commits intoClickHouse:masterfrom
Conversation
|
unfortunately, some errors remains, at least this: At the current moment I don't understand what does this means and how to fix this in right way. |
|
@syominsergey BTW, you can try to switch CI build to clang-13, if you want. Look at #20495 to see what files are needed to change. |
Declaring a "do nothing" destructor prevents auto-creation of a copy constructor in the |
75b6888 to
39d99d8
Compare
|
@nikitamikhaylov, thank you for #28046 (comment) |
|
most of build problems were solved I started to work with
that solved problem with but problem with I don't understand now the source of I solved this problem with commit fb374fa |
|
Now local build with clang-13 works in this branch |
fb374fa to
01e3afb
Compare
|
Local build with clang-13 after rebasing onto master was successful. |
b787673 to
fbff8c3
Compare
|
It looks like undefined symbols when linking contrib/llvm/llvm/bin/llvm-tblgen like _Unwind_Resume, _Unwind_SetGR etc were fixed. |
|
but new strange errors occured locally on my notebook I have same problems when trying to do And tests from testflows failed, see here. |
|
@Mergifyio update |
|
Command
|
|
I investigated problem with test We can visually see the cause of problem using this test query: select number, exp(number), round(exp(number), 6), toUInt64(round(exp(number), 6)) from system.numbers limit 10 offset 40;when running on clickhouse build with sources from this PR: when running on stable clickhouse from official deb repository: as we can see, the result of function I have not seen definition of desired behaviour of So I need help with question - is it really important to keep behaviour of |
|
Transforming out of range Float to Int is unspecified behaviour. Both zero and int max (and any other number) are correct results. The test can be adapted to not depend on this result. |
|
@Mergifyio update |
|
Command
|
|
@alexey-milovidov Alexey, thank you for your advice! |
|
see some errors in special builds here |
|
@Mergifyio update |
|
Command
|
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Improve support for build with clang-13.
Detailed description / Documentation draft:
This PR continues #27777 and #27714. Some errors with clang-13 are solved here.