<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 --- - libc++ puts libc++abi headers in wrong place in build area"
href="https://llvm.org/bugs/show_bug.cgi?id=31540">31540</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>libc++ puts libc++abi headers in wrong place in build area
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>richard-llvm@metafoo.co.uk
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>libc++'s cmake/Modules/HandleLibCXXABI.cmake copies the libc++abi <cxxabi.h>
into the build area. However, instead of copying it to $BUILD/include/c++/v1,
it copies it to $BUILD/include. That seems broken -- a clang binary in
$BUILD/bin doesn't look there, so running the compiler from the build area
results in our being unable to find <cxxabi.h>, which means that header is not
available in stage2 of a simple bootstrap (with no explicit install step).
The cxxabi.h headers should be put next to the libc++ headers in the build
area, just like they are in the install area. However, this appears to cause
the libc++ build itself to fail, because it /does/ have an include path of
$BUILD/include and /does not/ have an include path of $BUILD/include/c++/v1
(which seems reasonable -- we don't want it including headers from some stale
build of the same library). So either we should put these headers in both
places in the build area, or when building libc++ it should pick up cxxabi.h
directly from $SRC/projects/libcxxabi/include.</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>