[llvm-bugs] [Bug 45571] New: Recent change broke cmake with CMake Error: The inter-target dependency graph contains the following strongly connected component (cycle):

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 16 01:43:57 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45571

            Bug ID: 45571
           Summary: Recent change broke cmake with CMake Error: The
                    inter-target dependency graph contains the following
                    strongly connected component (cycle):
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: sylvestre at debian.org
                CC: llvm-bugs at lists.llvm.org

-- Performing Test HAVE_STEADY_CLOCK -- success
-- Configuring done
CMake Error: The inter-target dependency graph contains the following strongly
connected component (cycle):
  "LLVMLTO" of type STATIC_LIBRARY
    depends on "Polly" (weak)
    depends on "LLVM" (weak)
  "LLVM" of type SHARED_LIBRARY
    depends on "LLVMLTO" (weak)
    depends on "Polly" (weak)
  "Polly" of type STATIC_LIBRARY
    depends on "LLVM" (weak)
At least one of these targets is not a STATIC_LIBRARY.  Cyclic dependencies are
allowed only among static libraries.
CMake Generate step failed.  Build files cannot be regenerated correctly.

with this (long) list:
 $CMAKE_BIN ../llvm/ \
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;libcxx;libcxxabi;compiler-rt;lld;debuginfo-tests;polly;openmp;lldb"
\
-DCMAKE_INSTALL_PREFIX=/usr/lib/llvm-11 \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-O2 -DNDEBUG -g1" \
-DLLVM_INSTALL_UTILS=ON \
-DLLVM_VERSION_SUFFIX= \
-DLLVM_ENABLE_SPHINX=ON \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_ENABLE_FFI=ON \
-DLLVM_LINK_LLVM_DYLIB=ON \
-DLLVM_BUILD_LLVM_DYLIB=ON \
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="AVR" \
-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON \
-DLIBCLANG_LIBRARY_VERSION=1 \
-DCLANG_LINK_CLANG_DYLIB=ON \
-DCLANG_VENDOR=Debian \
-DCLANG_ENABLE_BOOTSTRAP=ON \
-DCLANG_BUILD_EXAMPLES=OFF \
-DCOMPILER_RT_USE_LIBCXX=NO \
-DENABLE_LINKER_BUILD_ID=ON \
-DPOLLY_BUNDLED_JSONCPP=OFF \
-DSPHINX_WARNINGS_AS_ERRORS=OFF \
-DBOOTSTRAP_CMAKE_CXX_FLAGS=' -fuse-ld=gold -fPIC
-Wno-unused-command-line-argument -Wno-unknown-warning-option ' \
-DBOOTSTRAP_CMAKE_C_FLAGS=' -fuse-ld=gold -fPIC
-Wno-unused-command-line-argument -Wno-unknown-warning-option ' \
-DLLVM_ENABLE_Z3_SOLVER=ON \
-DPYTHON_EXECUTABLE=/usr/bin/python3 -DLLVM_BINUTILS_INCDIR=/usr/include/
-DLLVM_USE_PERF=yes -DLLVM_ENABLE_LIBPFM=ON 

This change seems to be the offender:
https://reviews.llvm.org/D76866

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200416/bc5f406a/attachment.html>


More information about the llvm-bugs mailing list