<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 15, 2017 at 12:51 AM, Kirit Sælensminde <span dir="ltr"><<a href="mailto:kirit.saelensminde@gmail.com" target="_blank">kirit.saelensminde@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On 15/06/17 13:37, Eric Fiselier wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Have you seen this documentation: <a href="http://libcxx.llvm.org/docs/BuildingLibcxx.html#id3" rel="noreferrer" target="_blank">http://libcxx.llvm.org/docs/Bu<wbr>ildingLibcxx.html#id3</a> ?<br>
</blockquote>
<br></span>
I hadn't, but I don't see that it's telling me anything I'm not doing:<br>
<br>
mkdir svn<br>
cd svn<br>
svn co <a href="http://llvm.org/svn/llvm-project/llvm/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/llvm/trunk</a> llvm<br>
svn co <a href="http://llvm.org/svn/llvm-project/cfe/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/cfe/trunk</a> clang<br>
svn co <a href="http://llvm.org/svn/llvm-project/libcxx/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/libcxx/trunk</a> libcxx<br>
svn co <a href="http://llvm.org/svn/llvm-project/libcxxabi/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/libcxxabi/trunk</a> libcxxabi<br></blockquote><div><br></div><div>You're not putting the repositories in the right place. Please look carefully at <a href="http://libcxx.llvm.org/docs/BuildingLibcxx.html#id3">http://libcxx.llvm.org/docs/BuildingLibcxx.html#id3</a>.</div><div>libcxx and libcxxabi go into llvm/projects and clang goes into llvm/tools.</div><div><br></div><div>/Eric</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
mkdir ../build<br>
cd ../build<br>
cmake ../svn/llvm -DCMAKE_BUILD_TYPE=Release \<br>
     -DLLVM_ENABLE_PROJECTS="llvm;<wbr>clang;libcxx;libcxxabi"<br>
make cxxabi # works<br>
make cxx # Fails<br>
<br>
I just ran those exact steps on another machine than the one I normally use, and get the same errors, which end with this:<br>
<br>
vector.cpp:(.text._ZNKSt3__120<wbr>__vector_base_commonILb1EE20__<wbr>throw_out_of_rangeEv[_ZNKSt3__<wbr>120__vector_base_<wbr>commonILb1EE20__throw_out_of_<wbr>rangeEv]+0xc): undefined reference to `__cxa_allocate_exception'<br>
vector.cpp:(.text._ZNKSt3__120<wbr>__vector_base_commonILb1EE20__<wbr>throw_out_of_rangeEv[_ZNKSt3__<wbr>120__vector_base_<wbr>commonILb1EE20__throw_out_of_<wbr>rangeEv]+0x42): undefined reference to `__cxa_throw'<br>
vector.cpp:(.text._ZNKSt3__120<wbr>__vector_base_commonILb1EE20__<wbr>throw_out_of_rangeEv[_ZNKSt3__<wbr>120__vector_base_<wbr>commonILb1EE20__throw_out_of_<wbr>rangeEv]+0x4d): undefined reference to `__cxa_free_exception'<br>
collect2: error: ld returned 1 exit status<br>
make[3]: *** [lib/libc++.so.1.0] Error 1<br>
make[2]: *** [projects/libcxx/lib/CMakeFile<wbr>s/cxx_shared.dir/all] Error 2<br>
make[1]: *** [projects/libcxx/lib/CMakeFile<wbr>s/cxx.dir/rule] Error 2<br>
make: *** [cxx] Error 2<br>
<br>
<br>
I see that there is an extra bit under 5 about how to specify where libcxxabi is, so next I'm going to try to see if I build it and install it then I can work out what the right incantation is to get it to use that.<span class="gmail-HOEnZb"><font color="#888888"><br>
<br>
<br>
Kirit<br>
<br>
<br>
</font></span></blockquote></div><br></div></div>