[Bug 30887] New: lldb fails to build because of library interdependencies

Bug ID 30887
Summary lldb fails to build because of library interdependencies
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter bero@linaro.org
CC llvm-bugs@lists.llvm.org
Classification Unclassified

Created attachment 17538 [details]
Partial fix as described in description

lldb fails to build with "undefined reference to ......" errors because its
various libraries use each other's symbols without linking to each other.

I have a patch that starts fixing it by using target_link_libraries where the
dependencies are clear -- but it ends up still not building because of circular
dependencies (lldbCore uses symbols from lldbSymbols and friends while
lldbSymbols etc. rely on lldbCore at the same time).

(This is a 4.0 snapshot from yesterday, building with a current clang 4.0
snapshot on Linux -- 4.0/master doesn't show up in the list of possible
versions)