[LLVMdev] Cyclic dependencies while building llvm shared libraries using CMake

201 views
Skip to first unread message

Christian S. Perone

unread,
Mar 19, 2011, 10:08:09 AM3/19/11
to llv...@cs.uiuc.edu
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 !

--
"Forgive, O Lord, my little jokes on Thee, and I'll forgive Thy great big joke on me."
http://pyevolve.sourceforge.net/wordpress/

Óscar Fuentes

unread,
Mar 19, 2011, 11:10:33 AM3/19/11
to llv...@cs.uiuc.edu
"Christian S. Perone" <christia...@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.

_______________________________________________
LLVM Developers mailing list
LLV...@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

Reply all
Reply to author
Forward
0 new messages