<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);">
Hello lldb devs,</div>
<div>
<div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt; background-color:rgb(255,255,255)">
<br>
</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt; background-color:rgb(255,255,255)">
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 <a id="LPNoLP717461" href="https://github.com/alpinelinux/aports/blob/103d4bfc6f383033e14c2069b9daf35083309572/main/clang/APKBUILD#L55">https://github.com/alpinelinux/aports/blob/103d4bfc6f383033e14c2069b9daf35083309572/main/clang/APKBUILD</a>
 and the corresponding llvm: <a id="LPNoLP717461" href="https://github.com/alpinelinux/aports/blob/103d4bfc6f383033e14c2069b9daf35083309572/main/clang/APKBUILD#L55">https://github.com/alpinelinux/aports/blob/103d4bfc6f383033e14c2069b9daf35083309572/main/llvm6/APKBUILD</a>.
 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.</div>
<br>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt; background-color:rgb(255,255,255)">
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 <a id="LPNoLP153187" href="https://github.com/am11/aports/blob/d43b2a51a33c5b2a88d129043bf6d0c5e703305b/main/lldb/APKBUILD">https://github.com/am11/aports/blob/d43b2a51a33c5b2a88d129043bf6d0c5e703305b/main/lldb/APKBUILD</a>
 (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:</div>
<blockquote style="margin-top:0px; margin-right:0px; margin-bottom:0px" dir="ltr">
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt; background-color:rgb(255,255,255)">
<br>
CMake Error at cmake/modules/AddLLDB.cmake:79 (add_dependencies):<br>
  The dependency target <span class="pl-s"><span class="pl-pds">"</span>clang-tablegen-targets<span class="pl-pds">"</span></span> of target
<span class="pl-s"><span class="pl-pds">"</span>lldbBase<span class="pl-pds">"</span></span> does<br>
  not exist.<br>
Call Stack (most recent call first):<br>
  source/CMakeLists.txt:69 (add_lldb_library)<br>
<br>
CMake Error at cmake/modules/AddLLDB.cmake:79 (add_dependencies):<br>
  The dependency target <span class="pl-s"><span class="pl-pds">"</span>clang-tablegen-targets<span class="pl-pds">"</span></span> of target
<span class="pl-s"><span class="pl-pds">"</span>lldbBreakpoint<span class="pl-pds">"</span></span><br>
  does not exist.<br>
Call Stack (most recent call first):<br>
  source/Breakpoint/CMakeLists.txt:1 (add_lldb_library)<br>
<br>
CMake Error at cmake/modules/AddLLDB.cmake:79 (add_dependencies):<br>
  The dependency target <span class="pl-s"><span class="pl-pds">"</span>clang-tablegen-targets<span class="pl-pds">"</span></span> of target
<span class="pl-s"><span class="pl-pds">"</span>lldbCommands<span class="pl-pds">"</span></span><br>
  does not exist.<br>
Call Stack (most recent call first):<br>
  source/Commands/CMakeLists.txt:1 (add_lldb_library)<br>
<br>
(continues)</div>
</blockquote>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt; background-color:rgb(255,255,255)">
<br>
</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt; background-color:rgb(255,255,255)">
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:
<a id="LPNoLP911716" href="https://github.com/xentec/aports/blob/103d4bfc6f383033e14c2069b9daf35083309572/main/clang/APKBUILD#L55">
https://github.com/xentec/aports/blob/103d4bfc6f383033e14c2069b9daf35083309572/main/clang/APKBUILD#L55</a> but after rebuilding clang, CMake throws same errors upon building lldb.</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt; background-color:rgb(255,255,255)">
<br>
</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt; background-color:rgb(255,255,255)">
I compared our lldb and clang build scripts with those of other distros, and tried adding / modifying different configs and targets; but no dice.</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt; background-color:rgb(255,255,255)">
<br>
</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt; background-color:rgb(255,255,255)">
Are we missing something salient to build lldb release_60 branch in lldb or clang build script?</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt; background-color:rgb(255,255,255)">
<br>
</div>
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt; background-color:rgb(255,255,255)">
Best Regards</div>
</div>
</div>
</body>
</html>