I think the correct fix is to make lldbCore not depend on lldbTarget. The next best fix would be to make core and target not build as shared libs<br><div class="gmail_quote">On Mon, Feb 23, 2015 at 4:20 AM Azat Khuzhin <<a href="mailto:a3at.mail@gmail.com">a3at.mail@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I've just trying to build the latest lldb/llvm with<br>
BUILD_SHARED_LIBS/DEBUG On linux:<br>
- llvm: 1f22900<br>
- lldb: 942b4a2<br>
- ld: 2.24.51 (binutils for debian)<br>
<br>
And got some errors about undefined references, for most of additional<br>
libraries, that exist in lldbCore mostly.<br>
And then I came with the patch [ADD_LLDB_LIBRARY.PATCH], but even after<br>
this patch lldb didn't built successfully for me, and the reason was in<br>
inter-libs dependencies, and here is the cmake error message after I add<br>
tried to resolve them:<br>
CMake Error: The inter-target dependency graph contains the following strongly connected component (cycle):<br>
"lldbTarget" of type SHARED_LIBRARY<br>
depends on "lldbCore" (weak)<br>
"lldbCore" of type SHARED_LIBRARY<br>
depends on "lldbTarget" (weak)<br>
At least one of these targets is not a STATIC_LIBRARY. Cyclic dependencies are allowed only among static libraries.<br>
<br>
Indeed:<br>
- lldbCore depends from lldbTarget<br>
- lldbTarget depends from lldbCore<br>
<br>
So after this I came with another patch, that just allows undefined<br>
references in object files [CMAKE_SHARED_LINKER_FLAGS.<u></u>PATCH].<br>
But it is a bit hackish, and so if somebody have ideas/existing solution<br>
for this problem please post here.<br>
<br>
Cheers,<br>
Azat.<br>
______________________________<u></u>_________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/lldb-dev</a><br>
</blockquote></div>