<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - libcxx_tsan and libcxx_msan-with-call get installed with bad prefixes" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24144&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=8t3I7C5RTeeT9Z3TIt0TR6-l9LmCIWRv3aZ71bG_wio&s=2oHphoTl6IA9EPN8CejfqpUILZcrp2NqUOyjWcBzF9A&e=">24144</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>libcxx_tsan and libcxx_msan-with-call get installed with bad prefixes
</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>normal
</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>hans@chromium.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu, samsonov@google.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>To reproduce:
In /tmp/foo:
$ svn export <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_svn_llvm-2Dproject_llvm_trunk&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=8t3I7C5RTeeT9Z3TIt0TR6-l9LmCIWRv3aZ71bG_wio&s=moKhL3SbnUSa4fSitNQbVGncJH16CUaZGZ_XDhr2t5Y&e=">http://llvm.org/svn/llvm-project/llvm/trunk</a> llvm
$ svn export <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_svn_llvm-2Dproject_compiler-2Drt_trunk&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=8t3I7C5RTeeT9Z3TIt0TR6-l9LmCIWRv3aZ71bG_wio&s=cr6AzTu0ua3RmGkLGNHkU8Y_BPDXurFwSdZgGtW6r2w&e=">http://llvm.org/svn/llvm-project/compiler-rt/trunk</a>
llvm/projects/compiler-rt
$ svn export <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_svn_llvm-2Dproject_libcxx_trunk&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=8t3I7C5RTeeT9Z3TIt0TR6-l9LmCIWRv3aZ71bG_wio&s=Jq9pbLoh59JyCf5KPL2aIz6Ewk1T1X7crlKEEGPWUIU&e=">http://llvm.org/svn/llvm-project/libcxx/trunk</a> llvm/projects/libcxx
$ svn export <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_svn_llvm-2Dproject_libcxxabi_trunk&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=8t3I7C5RTeeT9Z3TIt0TR6-l9LmCIWRv3aZ71bG_wio&s=LCuRD_Vo-Q7IyySXmvfEvYaxol8CDziTobqpYh6023Q&e=">http://llvm.org/svn/llvm-project/libcxxabi/trunk</a>
llvm/projects/libcxxabi
$ svn export <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_svn_llvm-2Dproject_cfe_trunk&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=8t3I7C5RTeeT9Z3TIt0TR6-l9LmCIWRv3aZ71bG_wio&s=oTkztK6akd4xfcg-fYKiQ3liUK-IZz9fY00Btr77_u0&e=">http://llvm.org/svn/llvm-project/cfe/trunk</a> llvm/tools/clang
$ mkdir build && cd build
$ CC=clang CXX=clang++ cmake -GNinja ../llvm
$ DESTDIR=/tmp/install ninja install
Now look in /tmp/install, it will contain files such as:
/tmp/install/tmp/foo/build/projects/compiler-rt/lib/tsan/libcxx_tsan/include/c++/v1/limits
That's not good, because the installed files are what becomes part of release
tarballs.
>From what I understand, these two special libcxx builds are only used for
testing, so not intended to be part of the overall install target. That's why
they get a prefix inside the object dir. But then DESTDIR ruins it by getting
them installed somewhere else.
I wonder if we can suppress DESTDIR somehow when installinb libcxx_tsan.</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>