<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 - Warning on CMake "cant' specify libc++ with '-stdlib='""
href="https://bugs.llvm.org/show_bug.cgi?id=35912">35912</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Warning on CMake "cant' specify libc++ with '-stdlib='"
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>macdo226@msu.edu
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>When trying to run CMake on the trunk version of llvm, I get the error
Performing Test CXX_SUPPORTS_STDLIB
-- Performing Test CXX_SUPPORTS_STDLIB - Failed
CMake Warning at cmake/modules/HandleLLVMStdlib.cmake:24 (message):
Can't specify libc++ with '-stdlib='
Call Stack (most recent call first):
cmake/config-ix.cmake:16 (include)
CMakeLists.txt:578 (include)
I am using rhel and am following the instructions on this page
<a href="http://clang.llvm.org/get_started.html">http://clang.llvm.org/get_started.html</a>
The previous install had an issue with trying to compile a c++ file that was
using libc++ <atomic> header. so trying to reinstall llvm and clang and adding
in the options in llvm/CMakelists.txt
option(LLVM_ENABLE_CXX1Y "Compile with C++1y enabled." ON)
option(LLVM_ENABLE_CXX1Z "Compile with C++1z enabled." ON)
option(LLVM_ENABLE_LIBCXX "Use libc++ if available." ON)
the warning only appears if the LLVM_ENABLE_LIBCX is turned on.
let me know if i can supply any more information to help</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>