Alexey Serbin has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/20407


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]>
(cherry picked from commit 75c38d227c687f69935a638946c6408dff876c79)
---
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(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/07/20407/1
--
To view, visit http://gerrit.cloudera.org:8080/20407
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: branch-1.17.x
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib9493a9f7212c26a9cfc1e6a6015340cc5fbfdc5
Gerrit-Change-Number: 20407
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Zoltan Martonka <[email protected]>

Reply via email to