<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:evangelos@foutrelis.com" title="Evangelos Foutras <evangelos@foutrelis.com>"> <span class="fn">Evangelos Foutras</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - lldb-server broken when LLVM_LINK_LLVM_DYLIB=ON"
   href="https://bugs.llvm.org/show_bug.cgi?id=28127">bug 28127</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>FIXED
           </td>
           <td>---
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>evangelos@foutrelis.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - lldb-server broken when LLVM_LINK_LLVM_DYLIB=ON"
   href="https://bugs.llvm.org/show_bug.cgi?id=28127#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - lldb-server broken when LLVM_LINK_LLVM_DYLIB=ON"
   href="https://bugs.llvm.org/show_bug.cgi?id=28127">bug 28127</a>
              from <span class="vcard"><a class="email" href="mailto:evangelos@foutrelis.com" title="Evangelos Foutras <evangelos@foutrelis.com>"> <span class="fn">Evangelos Foutras</span></a>
</span></b>
        <pre>Either this issue has regressed in LLDB 6.0.0 or the LLVM package I pushed to
Arch Linux is buggy.

I'm doing an out-of-tree build of LLDB 6.0.0 with LLVM_LINK_LLVM_DYLIB=ON. The
resulting lldb-{server,test} binaries link to both libLLVMSupport.a and
libLLVM-6.0.so and result in the following runtime errors:

=========================
$ lldb-server 
: CommandLine Error: Option 'disable-symbolication' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options

$ lldb-test 
: CommandLine Error: Option 'help-list' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
=========================

I'm unable to reproduce the issue on Fedora Rawhide, but I believe that has to
do with the fact that Fedora's libLLVM-6.0.so links statically to libstdc++
(not sure why this has any effect on this problem though). If I build my LLVM
package with static libstdc++ like Fedora does
(-DCMAKE_SHARED_LINKER_FLAGS="-Wl,-Bsymbolic -static-libstdc++") then
lldb-{server,test} run fine.

I also tried to repro on Debian without any success. (Perhaps it matters that
they do an in-tree build?)

For now I've resorted to removing all references to /usr/lib/libLLVMSupport.a
from the generated build.ninja file. This seems to allow the above tools to
run.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>