<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Ioannis,</div><div class=""><br class=""></div><div class="">Just delete the projects/libcxx directory, then rebuild from scratch.  You should only need to checkout llvm (in the top level directory) and cfe (into the tools/clang subdirectory).</div><div class=""><br class=""></div><div class="">-Dimitry</div><br class=""><div><blockquote type="cite" class=""><div class="">On 29 Mar 2016, at 00:08, Ioannis Koukoulis <<a href="mailto:i.g.koukoulis@gmail.com" class="">i.g.koukoulis@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class="">Hi Dimitry,<br class=""><br class=""></div>I do not particularly need to build libc++ from the package. Is the name of the package's libc++, libcxx, because this is where the installation starts finding undefined references, during linking CXX shared library ../../../lib/libc++.so. Please check below the first part of the log when the first error appear, I omited repeating results. Furthermore, the undefined references are thousands!<br class=""></div></div>If you say that libc++ is not need it how can I skip it's interference. Shall I check out the package again without the particular libc++, of invoke cmake with a particular parameter?<br class=""><br class=""><br class=""><div class=""><div class=""><div class=""><div class="">.<br class="">.<br class="">[ 52%] Built target gtest<br class="">[ 52%] Built target gtest_main<br class="">Linking CXX shared library ../../../lib/libc++.so<br class="">CMakeFiles/cxx.dir/__/src/ios.cpp.o: In function `std::__1::iostream_category()':<br class="">/opt/llvm/llvm/projects/libcxx/src/ios.cpp:71: undefined reference to `__cxa_guard_acquire'<br class="">/opt/llvm/llvm/projects/libcxx/src/ios.cpp:71: undefined reference to `__cxa_guard_release'<br class="">CMakeFiles/cxx.dir/__/src/ios.cpp.o: In function `std::__1::ios_base::clear(unsigned int)':<br class="">CMakeFiles/cxx.dir/__/src/ios.cpp.o: In function `std::__1::basic_istream<char, std::__1::char_traits<char> >::operator>>(std::__1::basic_streambuf<char, std::__1::char_traits<char> >*)':<br class="">/opt/llvm/llvm/projects/libcxx/include/istream:900: undefined reference to `__cxa_begin_catch'<br class="">/opt/llvm/llvm/projects/libcxx/include/istream:900: undefined reference to `__cxa_end_catch'<br class="">.<br class="">.<br class="">.<br class=""><br class=""></div><div class="">Best<br class=""></div><div class=""><br class=""></div></div></div></div></div><div class="gmail_extra"><br clear="all" class=""><div class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""><br class=""></div><span style="color:rgb(255,255,255)" class="">Ioannis Koukoulis</span><br class=""></div></div></div></div></div></div></div>
<br class=""><div class="gmail_quote">On 27 March 2016 at 00:22, Dimitry Andric <span dir="ltr" class=""><<a href="mailto:dimitry@andric.com" target="_blank" class="">dimitry@andric.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ioannis,<br class="">
<br class="">
If you only want the clang static analyzer, there is no need to check out and build libc++ as part of the process.  The rest of the build can just use the system C++ library, which will be libstdc++ on Xubuntu.<br class="">
<br class="">
That said, without the full build log, it is hard to say what went wrong.  Specifically, which references were undefined?<br class="">
<br class="">
-Dimitry<br class="">
<div class=""><div class="h5"><br class="">
> On 26 Mar 2016, at 16:04, Ioannis Koukoulis via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:<br class="">
><br class="">
> Hello everybody,<br class="">
><br class="">
> I am very new to llvm and I am struggling to install it on my 15.10 Xubuntu with kernel 4.2.0-34-generic #39-Ubuntu SMP x86_64 GNU/Linux.<br class="">
><br class="">
> I essentially intend to use the clang static analyzer, but it seems that I have to build it on top of llvm and clang.<br class="">
><br class="">
> Unfortunately I run into the following problem.<br class="">
> CXX shared library ../../../lib/libc++.so<br class="">
> at around 52% of the procedure (while building target gtest_main)<br class="">
> followed by a handful of undefined references<br class="">
><br class="">
> the last lines consist of the following messages:<br class="">
> collect2: error: ld returned 1 exit status<br class="">
> projects/libcxx/lib/CMakeFiles/cxx.dir/build.make:735: recipe for target 'lib/libc++.so.1.0' failed<br class="">
> make[2]: *** [lib/libc++.so.1.0] Error 1<br class="">
> CMakeFiles/Makefile2:11552: recipe for target 'projects/libcxx/lib/CMakeFiles/cxx.dir/all' failed<br class="">
> make[1]: *** [projects/libcxx/lib/CMakeFiles/cxx.dir/all] Error 2<br class="">
> Makefile:136: recipe for target 'all' failed<br class="">
> make: *** [all] Error 2<br class="">
><br class="">
> Can someone please help me go further?<br class="">
><br class="">
><br class="">
</div></div>> _______________________________________________<br class="">
> LLVM Developers mailing list<br class="">
> <a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="">
<br class="">
</blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></body></html>