<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++, cmake] install-libcxx-headers target fails if using __config_site"
href="https://llvm.org/bugs/show_bug.cgi?id=27751">27751</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[libc++, cmake] install-libcxx-headers target fails if using __config_site
</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>asiri.rathnayake@arm.com
</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>Created <span class=""><a href="attachment.cgi?id=16371" name="attach_16371" title="Fix.">attachment 16371</a> <a href="attachment.cgi?id=16371&action=edit" title="Fix.">[details]</a></span>
Fix.
To reproduce, configure libc++ such that it requires the __config_site
mechanism, for example:
<span class="quote">> cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \</span >
-DLIBCXX_ENABLE_THREADS=OFF \
-DCMAKE_INSTALL_PREFIX=/path/to/install/
/path/to/llvm
Here the LIBCXX_ENABLE_THREADS=OFF requires the wiring of cmake configuration
options into the final __config header through the __config_site (cmake
generated) header.
Now, attempting to install the libc++ headers with:
<span class="quote">> make install-libcxx-headers</span >
Fails because it cannot find the __generated_config header (an intermediate
file generated to glue __config and __config_site).
The attached patch fixes this issue. I'm not too familiar with cmake, please
check and apply as appropriate.</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>