<div dir="ltr">Are you sure those cmake variables are ok? If I move clang out of source and try to configure using cmake gui I can't see any variables with CLANG_ prefix?</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 25, 2014 at 10:12 PM, Nat! <span dir="ltr"><<a href="mailto:nat@mulle-kybernetik.com" target="_blank">nat@mulle-kybernetik.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On 24 Nov 2014, at 19:57, Reid Kleckner <<a href="mailto:rnk@google.com">rnk@google.com</a>> wrote:<br>
<br>
> It looks like you are trying to use the so-called "standalone" clang build, but you checked out clang into llvm/tools/clang. You only need to put clang sources in llvm/tools/clang if you want it to be part of the LLVM build. If you move the sources out to somewhere alongside the llvm sources, the standalone build will probably work. I did this with VS a few weeks ago.<br>
<br>
</span>Thanks, that was very helpful and it got me further along the way.<br>
<br>
Unfortunately I am also a cmake newbie as well...<br>
<br>
I moved llvm/tools/clang away and built llvm again. Then I tried to build clang separately in its own build directory thusly:<br>
<br>
nat@kempe:build(^) $ cmake -DCLANG_PATH_TO_LLVM_SOURCE=../../clang-test/llvm -DCLANG_PATH_TO_LLVM_BUILD=../../clang-test/build -DCMAKE_BUILD_TYPE=Debug ../clang<br>
<span class="">-- Found LLVM_CONFIG as /Volumes/Source/srcM/clang-test/build/bin/llvm-config<br>
</span>CMake Error at /Volumes/Source/srcM/clang-test/build/share/llvm/cmake/HandleLLVMOptions.cmake:38 (message):<br>
Host Clang must be able to find libstdc++4.7 or newer!<br>
<span class="">Call Stack (most recent call first):<br>
</span> CMakeLists.txt:96 (include)<br>
<span class=""><br>
<br>
-- Configuring incomplete, errors occurred!<br>
</span>See also "/Volumes/Source/srcM/mulle-clang/build/CMakeFiles/CMakeOutput.log".<br>
See also "/Volumes/Source/srcM/mulle-clang/build/CMakeFiles/CMakeError.log".<br>
<br>
On a hunch (<a href="http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140106/200545.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140106/200545.html</a>) I edited - in the llvm build directory "./../clang-test/build/" - the "CMakeCache.txt" file for LLVM_ENABLE_LIBCXX:BOOL=ON and cmaked/build all of llvm.<br>
<br>
But the same error persists, probably because I don't understand how cmake works.<br>
<br>
Ciao<br>
<span class="HOEnZb"><font color="#888888"> Nat!<br>
------------------------------------------------------<br>
Ignorance more frequently begets confidence than does<br>
knowledge -- Darwin<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>