You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Alexey Serbin (Code Review)" <ge...@cloudera.org> on 2023/08/23 22:43:51 UTC

[kudu-CR](branch-1.17.x) [thirdparty] fix TSAN build on Ubuntu 22.04

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 <al...@apache.org>
Tested-by: Alexey Serbin <al...@apache.org>
(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 <al...@apache.org>
Gerrit-Reviewer: Zoltan Martonka <zm...@cloudera.com>

[kudu-CR](branch-1.17.x) [thirdparty] fix TSAN build on Ubuntu 22.04

Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Yingchun Lai has submitted this change and it was merged. ( 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 <al...@apache.org>
Tested-by: Alexey Serbin <al...@apache.org>
(cherry picked from commit 75c38d227c687f69935a638946c6408dff876c79)
Reviewed-on: http://gerrit.cloudera.org:8080/20407
Tested-by: Kudu Jenkins
Reviewed-by: Yingchun Lai <la...@apache.org>
---
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:
  Kudu Jenkins: Verified
  Yingchun Lai: Looks good to me, approved

-- 
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: merged
Gerrit-Change-Id: Ib9493a9f7212c26a9cfc1e6a6015340cc5fbfdc5
Gerrit-Change-Number: 20407
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Zoltan Martonka <zm...@cloudera.com>

[kudu-CR](branch-1.17.x) [thirdparty] fix TSAN build on Ubuntu 22.04

Posted by "Yingchun Lai (Code Review)" <ge...@cloudera.org>.
Yingchun Lai has posted comments on this change. ( http://gerrit.cloudera.org:8080/20407 )

Change subject: [thirdparty] fix TSAN build on Ubuntu 22.04
......................................................................


Patch Set 1: Code-Review+2


-- 
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: comment
Gerrit-Change-Id: Ib9493a9f7212c26a9cfc1e6a6015340cc5fbfdc5
Gerrit-Change-Number: 20407
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <la...@apache.org>
Gerrit-Reviewer: Zoltan Martonka <zm...@cloudera.com>
Gerrit-Comment-Date: Thu, 24 Aug 2023 03:21:32 +0000
Gerrit-HasComments: No