[lldb-dev] Unable to build release_60 due to CMake errors about "clang-tablegen-targets"

Adeel Mujahid via lldb-dev lldb-dev at lists.llvm.org
Mon Apr 9 03:01:31 PDT 2018


Hello lldb devs,

Over at Alpine Linux, we are trying to update llvm toolchain from version 5.0.1 to 6.0.0. The clang recipe looks like https://github.com/alpinelinux/aports/blob/103d4bfc6f383033e14c2069b9daf35083309572/main/clang/APKBUILD<https://github.com/alpinelinux/aports/blob/103d4bfc6f383033e14c2069b9daf35083309572/main/clang/APKBUILD#L55> and the corresponding llvm: https://github.com/alpinelinux/aports/blob/103d4bfc6f383033e14c2069b9daf35083309572/main/llvm6/APKBUILD<https://github.com/alpinelinux/aports/blob/103d4bfc6f383033e14c2069b9daf35083309572/main/clang/APKBUILD#L55>. This passes the clang and llvm tests, but it hasn't been merged upstream yet as other related packages are yet to be updated/verified.

However, the lldb package is 4.0.0 and I am having trouble upgrading it to 6.0.0. The current build script looks like https://github.com/am11/aports/blob/d43b2a51a33c5b2a88d129043bf6d0c5e703305b/main/lldb/APKBUILD (locally I have line 5 changed from 5.0.1 to 6.0.0). When I try to build I get the following errors right after CMake configuration is done:

CMake Error at cmake/modules/AddLLDB.cmake:79 (add_dependencies):
  The dependency target "clang-tablegen-targets" of target "lldbBase" does
  not exist.
Call Stack (most recent call first):
  source/CMakeLists.txt:69 (add_lldb_library)

CMake Error at cmake/modules/AddLLDB.cmake:79 (add_dependencies):
  The dependency target "clang-tablegen-targets" of target "lldbBreakpoint"
  does not exist.
Call Stack (most recent call first):
  source/Breakpoint/CMakeLists.txt:1 (add_lldb_library)

CMake Error at cmake/modules/AddLLDB.cmake:79 (add_dependencies):
  The dependency target "clang-tablegen-targets" of target "lldbCommands"
  does not exist.
Call Stack (most recent call first):
  source/Commands/CMakeLists.txt:1 (add_lldb_library)

(continues)

Strangely enough, in the aforementioned clang script, we do build `clang-tblgen` target. I also tried adding 'make clang-tablegen-targets' after the line 55 in clang script: https://github.com/xentec/aports/blob/103d4bfc6f383033e14c2069b9daf35083309572/main/clang/APKBUILD#L55 but after rebuilding clang, CMake throws same errors upon building lldb.

I compared our lldb and clang build scripts with those of other distros, and tried adding / modifying different configs and targets; but no dice.

Are we missing something salient to build lldb release_60 branch in lldb or clang build script?

Best Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20180409/f80474ef/attachment.html>


More information about the lldb-dev mailing list