<div dir="ltr"><ol style="padding:0px;margin:0px 0px 0px 55px;color:rgb(46,52,54);font-family:monospace;font-size:13px;line-height:22.3999996185303px;background-color:rgb(253,253,253)"><li id="line-3" style="line-height:1.6em;vertical-align:top"><div style="font-stretch:normal;font-size:1em;line-height:1.2em;margin:0px;padding:0px;vertical-align:middle;background:none">-- Found LLVM_CONFIG as /home/milian/projects/compiled/other/bin/llvm-config</div></li></ol><div><br></div>This makes me believe your clang build is not using the llvm you just built? Do you have installed version of LLVM on your distro?<div><br></div><div>I used to build Clang out of source on Windows and you had to provide path to LLVM but I can't see that in CMake gui anymore (on Linux). The only thing I can suggest is to move clang inside llvm/tools and build in-tree. That will work 100%</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 27, 2015 at 8:29 AM, Milian Wolff <span dir="ltr"><<a href="mailto:mail@milianw.de" target="_blank">mail@milianw.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Monday, July 27, 2015 08:25:37 AM Nikola Smiljanic wrote:<br>
> How did you configure? I'm a bit surprised by bulid/clang path. It looks<br>
> like you're building Clang but not LLVM?<br>
<br>
</span>Yes, I'm building Clang.<br>
<br>
I have:<br>
<br>
~/projects/src/llvm<br>
~/projects/src/clang<br>
~/projects/build/llvm<br>
~/projects/build/clang<br>
<br>
The former two are checkouts of the release_37 branches of the corresponding<br>
git@github.com:llvm-mirror/*.git repositories. I configured them basically<br>
with<br>
<br>
build/llvm$ cmake ../../src/llvm -DCMAKE_BUILD_TYPE=RelWithDebInfo -<br>
DCMAKE_INSTALL_TYPE=$HOME/projects/compiled/llvm<br>
<br>
and then same for clang. Everything compiles and works just fine, except for<br>
the unit tests. And those are only compiled for me when I run `make clang-<br>
test` manually, i.e. they are not included in the "normal" make call - is this<br>
intended?<br>
<br>
Or does clang not support out of source builds?<br>
<span class=""><br>
> On Sun, Jul 26, 2015 at 10:27 PM, Milian Wolff <<a href="mailto:mail@milianw.de">mail@milianw.de</a>> wrote:<br>
> > Hey all,<br>
> ><br>
> > in preparation of working on clang, I want to compile and run the unit<br>
> > tests,<br>
> > specifically those for the clang-c part.<br>
> ><br>
</span>> > I read <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__clang.llvm.org_hacking.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=CI34R88etyIqp6cXZ59A8AemhBOcoPnmPsA-0ExpMf8&s=j7J2nXUskdUStLNtd0y2AfAF25mF1FhgCO6ZalmdRuc&e=" rel="noreferrer" target="_blank">http://clang.llvm.org/hacking.html</a> and tried to run `make<br>
<span class="im HOEnZb">> > clang-test`<br>
> > in my external build folder, but that fails at link time:<br>
> ><br>
> > <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__paste.kde.org_ptylyjsa7&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=CI34R88etyIqp6cXZ59A8AemhBOcoPnmPsA-0ExpMf8&s=vLdYNOQbZxgcNUYpuugyirJ3SqN7xYMIdwwTUqpLV-s&e=" rel="noreferrer" target="_blank">https://paste.kde.org/ptylyjsa7</a><br>
> ><br>
</span><span class="im HOEnZb">> > This is using the latest versions of the release_37 branches in both, LLVM<br>
> > and<br>
> > clang. Could someone tell me what's going wrong here?<br>
<br>
</span><div class="HOEnZb"><div class="h5">--<br>
Milian Wolff<br>
<a href="mailto:mail@milianw.de">mail@milianw.de</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__milianw.de&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=CI34R88etyIqp6cXZ59A8AemhBOcoPnmPsA-0ExpMf8&s=r_dVBErkq6vUYcm5mwK4aZd3qypaGWy0zo3iFiTnDZ4&e=" rel="noreferrer" target="_blank">http://milianw.de</a></div></div></blockquote></div><br></div>