<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Problem loading plugin via Python API when LLDB is compiled with clang, but the plugin with GCC"
   href="https://llvm.org/bugs/show_bug.cgi?id=23221">23221</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Problem loading plugin via Python API when LLDB is compiled with clang, but the plugin with GCC
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>lldb-dev@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sivachandra@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Loading a plugin fails if all of:

1. LLDB is compiled with clang
2. Plugin is compiled with GCC
3. Load the plugin via Python API

This can seen with TestPluginCommands. If we build LLDB with clang and run the
test with:

./dotest.py -C gcc -executable=<path_to_llvm_build>/bin/lldb -t -p
TestPluginCommands

it fails with this error:

python: symbol lookup error:
<path_to_lldb_src>/test/functionalities/plugins/commands/libplugin.so:
undefined symbol: _ZN4lldb10SBDebugger21GetCommandInterpreterEv

If we replace #3 with "plugin load" command, it works. In other words, if we
manually run all the steps in TestPluginCommands, everything works.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>