<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - scudo_tsd_exclusive: non-local variable '__scudo::TSD' declared '__thread' needs dynamic initialization"
href="https://bugs.llvm.org/show_bug.cgi?id=51151">51151</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>scudo_tsd_exclusive: non-local variable '__scudo::TSD' declared '__thread' needs dynamic initialization
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sylvestre@debian.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>cd
"/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/build-llvm/projects/compiler-rt/lib/scudo"
&& /usr/lib/ccache/g++-7 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Dclang_rt_scudo_minimal_dynamic_i386_EXPORTS
-I"/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/build-llvm/projects/compiler-rt/lib/scudo"
-I"/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/compiler-rt/lib/scudo"
-I"/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/build-llvm/include"
-I"/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/llvm/include"
-I"/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/compiler-rt/lib/scudo/.."
-g -O2
-fdebug-prefix-map=/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0=.
-fstack-protector-strong -Wformat -Werror=format-security -fPIC
-fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall
-Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough
-Wno-maybe-uninitialized -Wno-noexcept-type -Wdelete-non-virtual-dtor
-Wno-comment -Wmisleading-indentation -ffunction-sections -fdata-sections -Wall
-std=c++14 -Wno-unused-parameter -O2 -DNDEBUG -g1 -fPIC -m32 -fno-lto -fPIC
-fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables
-fno-stack-protector -fvisibility=hidden -fno-lto -O3 -g -Wno-variadic-macros
-nostdinc++ -fbuiltin -fno-rtti -fno-omit-frame-pointer -DGWP_ASAN_HOOKS
-std=c++14 -o
CMakeFiles/clang_rt.scudo_minimal-dynamic-i386.dir/scudo_allocator.cpp.o -c
"/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/compiler-rt/lib/scudo/scudo_allocator.cpp"
/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/compiler-rt/lib/scudo/scudo_tsd_exclusive.cpp:25:22:
error: non-local variable '__scudo::TSD' declared '__thread' needs dynamic
initialization
THREADLOCAL ScudoTSD TSD;
^~~
/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/compiler-rt/lib/scudo/scudo_tsd_exclusive.cpp:25:22:
note: C++11 'thread_local' allows dynamic initialization and destruction
projects/compiler-rt/lib/scudo/CMakeFiles/clang_rt.scudo_minimal-x86_64.dir/build.make:162:
recipe for target
'projects/compiler-rt/lib/scudo/CMakeFiles/clang_rt.scudo_minimal-x86_64.dir/scudo_tsd_exclusive.cpp.o'
failed</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>