Summary: | sys-libs/compiler-rt-sanitizers-17.0.6 - /.../tsd.h: error: returning variable QuarantineCache by reference requires holding mutex Mutex exclusively [ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | LLVM support project <llvm> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | zorry |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://github.com/llvm/llvm-project/pull/67795 https://github.com/llvm/llvm-project/issues/67796 https://github.com/llvm/llvm-project/pull/68273 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.clang.tar.xz etc.portage.tar.xz qlist-info.txt sys-libs:compiler-rt-sanitizers-17.0.6:20240307-082537.log.xz temp.tar.xz |
Description
Toralf Förster
![]() Created attachment 886869 [details]
emerge-info.txt
Created attachment 886870 [details]
emerge-history.txt
Created attachment 886871 [details]
environment
Created attachment 886872 [details]
etc.clang.tar.xz
Created attachment 886873 [details]
etc.portage.tar.xz
Created attachment 886874 [details]
qlist-info.txt
Created attachment 886875 [details]
sys-libs:compiler-rt-sanitizers-17.0.6:20240307-082537.log.xz
Created attachment 886876 [details]
temp.tar.xz
Hitting it on my ci system to LLVM 18.1 added this diagnostic. This is the commit they applied to fix the resulting error there: https://github.com/llvm/llvm-project/commit/ea2036e1e56b720d7da8d46f62263ba46c126522 Maybe see if this applies cleanly to 17.0.6? $ rg -i werror /var/tmp/portage/sys-libs/compiler-rt-sanitizers-17.0.6/work/compiler-rt | grep -i thread /var/tmp/portage/sys-libs/compiler-rt-sanitizers-17.0.6/work/compiler-rt/cmake/config-ix.cmake:check_cxx_compiler_flag("-Werror -Wthread-safety" COMPILER_RT_HAS_WTHREAD_SAFETY_FLAG) /var/tmp/portage/sys-libs/compiler-rt-sanitizers-17.0.6/work/compiler-rt/cmake/config-ix.cmake:check_cxx_compiler_flag("-Werror -Wthread-safety-reference" COMPILER_RT_HAS_WTHREAD_SAFETY_REFERENCE_FLAG) /var/tmp/portage/sys-libs/compiler-rt-sanitizers-17.0.6/work/compiler-rt/cmake/config-ix.cmake:check_cxx_compiler_flag("-Werror -Wthread-safety-beta" COMPILER_RT_HAS_WTHREAD_SAFETY_BETA_FLAG) /var/tmp/portage/sys-libs/compiler-rt-sanitizers-17.0.6/work/compiler-rt/lib/scudo/standalone/CMakeLists.txt:append_list_if(COMPILER_RT_HAS_WTHREAD_SAFETY_FLAG -Werror=thread-safety Let's just sed/patch these out for this release. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5216a5babc967f8374e3fe6c6e631080977d33ce commit 5216a5babc967f8374e3fe6c6e631080977d33ce Author: Sam James <sam@gentoo.org> AuthorDate: 2024-03-12 07:54:17 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-12 07:54:17 +0000 sys-libs/compiler-rt-sanitizers: skip -Wthread-safety on older versions Too much pain to backport it, it's just that newer Clang got better at detecting these. Closes: https://bugs.gentoo.org/926330 Signed-off-by: Sam James <sam@gentoo.org> sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-15.0.7.ebuild | 3 +++ sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-16.0.6.ebuild | 3 +++ sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-17.0.6.ebuild | 3 +++ 3 files changed, 9 insertions(+) |