<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54957>54957</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Crash when build clickhouse On centos with 1.14
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
JimWen
</td>
</tr>
</table>
<pre>
> Error
Build clang with g++ and then build clickhouse with clang 1.14.1, but it always crash here
```
/usr/local/bin/clang -DSTD_EXCEPTION_HAS_STACK_TRACE=1 -I/home/wenzhou/clickhouse/ClickHouse/contrib/sentry-native/include -I/home/wenzhou/clickhouse/ClickHouse/contrib/aws-checksums/include -I/home/wenzhou/clickhouse/ClickHouse/base/glibc-compatibility/memcpy -isystem /home/wenzhou/clickhouse/ClickHouse/contrib/libcxx/include -isystem /home/wenzhou/clickhouse/ClickHouse/contrib/libcxxabi/include -isystem /home/wenzhou/clickhouse/ClickHouse/contrib/libunwind/include -isystem /home/wenzhou/clickhouse/ClickHouse/contrib/libc-headers/x86_64-linux-gnu -isystem /home/wenzhou/clickhouse/ClickHouse/contrib/libc-headers -fdiagnostics-color=always -gdwarf-aranges -pipe -mssse3 -msse4.1 -msse4.2 -mpclmul -mpopcnt -fasynchronous-unwind-tables -falign-functions=32 -Wall -Wno-unused-command-line-argument -fdiagnostics-absolute-paths -fexperimental-new-pass-manager -Werror -w -O2 -g -DNDEBUG -O3 -fno-pie -D OS_LINUX -g0 -std=gnu99 -MD -MT contrib/aws-s3-cmake/CMakeFiles/aws_s3_checksums.dir/__/aws-checksums/source/intel/crc32c_sse42_asm.c.o -MF contrib/aws-s3-cmake/CMakeFiles/aws_s3_checksums.dir/__/aws-checksums/source/intel/crc32c_sse42_asm.c.o.d -o contrib/aws-s3-cmake/CMakeFiles/aws_s3_checksums.dir/__/aws-checksums/source/intel/crc32c_sse42_asm.c.o -c /home/wenzhou/clickhouse/ClickHouse/contrib/aws-checksums/source/intel/crc32c_sse42_asm.c
clang: /home/wenzhou/llvm-project-llvmorg-11.1.0/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1394: void {anonymous}::TwoAddressInstructionPass::processTiedPairs(llvm::MachineInstr*, {anonymous}::TwoAddressInstructionPass::TiedPairList&, unsigned int&): Assertion `i == DstIdx || !MI->getOperand(i).isReg() || MI->getOperand(i).getReg() != RegA' failed.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
```
More info , please refer this issue https://github.com/ClickHouse/ClickHouse/issues/36347.
Do i get something wrong or it's just a bug of llvm.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzFVttu2zgQ_Rr5haBgSY4vD35wbKfNbm5oXKRvBkXSEhuJFEgqjvfr91Cyu2mQ7kMaoAAl3mcOh3OGkxtxmEfZmqytNTYarqLhov-ft6oShFdMF2SvfEmKKD1HIUwL4kupSX5cofhjaVon-2X9jiRORnESpUus8kR5wqo9OzjCLXMlKaWVL3VF4-Gx9N30onUW_8pwVqHOlca_l0xX95vVdv1tub7bXN7ebD8v7rf3m8Xy7-3my2K5jrJVQugllpemlqj2Uv8DeN3-E1J0lqHz-djhRnurcrScROtANfPqKcwozatWyN-QyPaO8lLyR9fW7jck5qyrikrlnHJTN4CYq0r5A0ZrWfPmQKhyB-dlTd4LNgh_fn6J8mMkslx9sNBW75UWH42UlpIJacM9PU_H2_GIVkq3z7TQ7ccqIHQnFCu0cV5xOIipwL5sdWQJoYXYM7ujzMLlJVY3qsERa-eczLpagl6nRopGw6u6rULDNFx7yGfuoHlpjQYQ2puLepZXQdyOVarQdNdq7pXRDqqzFGofWAUZD9pgA-CL4Gg1CB_MIIGmaGsQhLxCz3JnqtZLCp8sg3T53EirwlJWUS33mHCOQhArpIV8GYINoXtCb4E9cPpmtT7_-gn9LAiH_kZJguaK3N5vry5vvn7DuiGhzgtgxXXMZoRer_BtyM9ccxnlNXvs7uEa9YXCif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