Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/20336 )
Change subject: [thirdparty] fix TSAN build on Ubuntu 22.04 ...................................................................... [thirdparty] fix TSAN build on Ubuntu 22.04 There are 2 things missing from llvm 11: 1. SIGSTKSZ is no longer a constant in the newer glibc, so caching it in a static variable can result in a crash. This causes the libunwind build to fail at configure: "configure: error: cannot run C compiled programs." The problem is that the conftest.c compile crashes. Although the problem occurs at libunwind build first, it is an llvm issue. More info: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100114 + "/usr/bin/krb5-config --libs gssapi" brings the config "-flto=auto", which is ignored by newer clangs (starting from 14.0), but clang 11 still gives an error. The problem occurs while building curl: "configure: error: one or more libs available at link-time are not available run-time" But the error message is misleading: clang just dies with unknown option. See: https://reviews.llvm.org/D99501 Change-Id: Ib9493a9f7212c26a9cfc1e6a6015340cc5fbfdc5 Reviewed-on: http://gerrit.cloudera.org:8080/20336 Reviewed-by: Alexey Serbin <[email protected]> Tested-by: Alexey Serbin <[email protected]> --- M thirdparty/download-thirdparty.sh A thirdparty/patches/llvm-Sanitizer-built-against-glibc-2_34-doesnt-work.patch A thirdparty/patches/llvm-ignore-flto-values.diff 3 files changed, 54 insertions(+), 2 deletions(-) Approvals: Alexey Serbin: Looks good to me, approved; Verified -- To view, visit http://gerrit.cloudera.org:8080/20336 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: Ib9493a9f7212c26a9cfc1e6a6015340cc5fbfdc5 Gerrit-Change-Number: 20336 Gerrit-PatchSet: 6 Gerrit-Owner: Zoltan Martonka <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Ashwani Raina <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Zoltan Martonka <[email protected]>
