Cyclic dependencies while building llvm shared libraries using CMake

Hello, I’m facing some problems while building LLVM 2.8 shared libraries from source using CMake:

cmake -DBUILD_SHARED_LIBS=true …

This is the output error:

CMake Error: The inter-target dependency graph contains the following strongly connected component (cycle):
“LLVMARMCodeGen” of type SHARED_LIBRARY
depends on “LLVMARMAsmPrinter”
“LLVMARMAsmPrinter” of type SHARED_LIBRARY
depends on “LLVMARMCodeGen”
At least one of these targets is not a STATIC_LIBRARY. Cyclic dependencies are allowed only among static libraries.

Does anyone else had the same problem ?

Thank you !

"Christian S. Perone" <christian.perone@gmail.com> writes:

Hello, I'm facing some problems while building LLVM 2.8 shared libraries
from source using CMake:

cmake -DBUILD_SHARED_LIBS=true ..

This is the output error:

[snip]

Does anyone else had the same problem ?

Building LLVM as shared libraries is not a widely used configuration and
at the time there was an strange flip-flop of dependencies among
asmprinters and codegens, so it is no surprise that 2.8 is broken. I've
just checked that the 2.9 branch builds fine, though.