[llvm-bugs] [Bug 44182] New: 'The dependency target "cxx" of target "check-cxxabi" does not exist.'

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Nov 29 08:12:17 PST 2019


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

            Bug ID: 44182
           Summary: 'The dependency target "cxx" of target "check-cxxabi"
                    does not exist.'
           Product: Build scripts
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: arthur.j.odwyer at gmail.com
                CC: llvm-bugs at lists.llvm.org

While trying to solve another problem (related to build failures in the "cxx"
target), I tried making a build that enabled *only* the "clang" and "libcxxabi"
projects (but not the "libcxx" project).
This fails with a CMake error.
Ideally, it would either Just Work (by auto-enabling all dependencies of every
enabled project), or give a customized and helpful error message (e.g. "you
can't build libcxxabi alone; please add 'libcxx' to LLVM_ENABLE_PROJECTS and
try again").

====

Here's the current output:

$ cmake -G 'Ninja' -DLLVM_ENABLE_PROJECTS="clang;libcxxabi"
-DCMAKE_BUILD_TYPE=RelWithDebInfo ../llvm
[...]

-- Configuring done
CMake Error at cmake/modules/AddLLVM.cmake:1456 (add_dependencies):
  The dependency target "cxx" of target "check-all" does not exist.
Call Stack (most recent call first):
  CMakeLists.txt:991 (add_lit_target)


CMake Error at /tmp/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456
(add_dependencies):
  The dependency target "cxx" of target "check-cxxabi" does not exist.
Call Stack (most recent call first):
  /tmp/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477 (add_lit_target)
  /tmp/llvm-project/libcxxabi/test/CMakeLists.txt:52 (add_lit_testsuite)


-- Generating done
-- Build files have been written to: /tmp/llvm-project/build

====

This is on OS X High Sierra 10.13.6, with a native toolchain of
$ clang --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ cmake --version
cmake version 3.12.0

CMake suite maintained and supported by Kitware (kitware.com/cmake).

-- 
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/20191129/3cb93c98/attachment-0001.html>


More information about the llvm-bugs mailing list