<p dir="ltr">Hi Eugene,</p>
<p dir="ltr">Please take top of tree.  3.6 is an arbitrary snapshot and lldb linux was not working then.<br>
</p>
<div class="gmail_quote">On Jun 5, 2015 7:01 PM,  <<a href="mailto:bugzilla-daemon@llvm.org">bugzilla-daemon@llvm.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
    
      
    
    <div><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a title="NEW --- - Problem with linking lldb-gdbserver on RHEL 6" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23774&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=DDUMf06MYELAe1Nlv7KChiwJLLHbYha4jtK_AOiWqwQ&m=Wd6CphtlkxxIb4dqSkoxm_bt0nMIgDLPPisaCvUj9oo&s=m5gmVHe0hlC2-tQeg24pKTs5zDvJIVF5hC0dSg7iUSc&e=" target="_blank">23774</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Problem with linking lldb-gdbserver on RHEL 6
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.6
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td><a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a>
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td><a href="mailto:eugene.zelenko@gmail.com" target="_blank">eugene.zelenko@gmail.com</a>
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I had a lot of unresolved Clang libraries related links problems when linking
lldb-gdbserver (from LLDB 3.6.1) on RHEL 6.

I was able to link after extracting link command and repeat in it Clang
libraries twice (immediately after first set). I tried to remove linker related
options (like -O3), but this didn't affect outcome.

My CMake configurations is:

${CMake}                                                                \
        -DCMAKE_BUILD_TYPE="Release"                                    \
        -DCMAKE_INSTALL_PREFIX:PATH=${InstallDir}                       \
        -DCMAKE_C_COMPILER=${InstallDir}/bin/clang                      \
        -DCMAKE_C_FLAGS="-m64"                                          \
        -DCMAKE_CXX_COMPILER=${InstallDir}/bin/clang++                  \
        -DCMAKE_CXX_FLAGS="-m64 -stdlib=libc++"                         \
        -DCMAKE_EXE_LINKER_FLAGS="-lc++abi -lc++ -lutil"                \
        -DCMAKE_SHARED_LINKER_FLAGS="-lc++abi -lc++ -lutil"             \
        -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON                                \
        -DLLVM_LIBDIR_SUFFIX=64                                         \
        -DLLVM_TARGETS_TO_BUILD="X86"                                   \
        -DPYTHON_EXECUTABLE=${PythonDir}/bin/python                     \
        -DPYTHON_INCLUDE_DIR=${PythonDir}/include/python2.7             \
        -DPYTHON_LIBRARY=${PythonDir}/lib/libpython2.7.a                \
        -DLLDB_DISABLE_LIBEDIT=1                                        \
        -DLLDB_PATH_TO_CLANG_BUILD=${LLVMBuildDir}/tools/clang          \
        -DLLDB_PATH_TO_CLANG_SOURCE=${LLVMSourceDir}/tools/clang        \
        -DLLDB_PATH_TO_LLVM_BUILD=${LLVMBuildDir}                       \
        -DLLDB_PATH_TO_LLVM_SOURCE=${LLVMSourceDir}                     \
        ${LLDBSourceDir}</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </div>

<br>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br></blockquote></div>