<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - SWIG always runs even in ninja lldb, generation fails with 2.0.10"
   href="https://bugs.llvm.org/show_bug.cgi?id=45587">45587</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>SWIG always runs even in ninja lldb, generation fails with 2.0.10
          </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@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>erich.keane@intel.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This page claims SWIG version 2 or newer is supported:
<a href="https://lldb.llvm.org/resources/build.html">https://lldb.llvm.org/resources/build.html</a> and mentions that it is only
necessary to run the tests.

However, even when running "ninja lldb" it seems to try to generate the LLDB
Python wrapper.

I have SWIG 2.0.10: 
bash-4.2$ swig -copyright

SWIG Version 2.0.10
Copyright (c) 1995-1998
University of Utah and the Regents of the University of California
Copyright (c) 1998-2005
University of Chicago
Copyright (c) 2005-2006
Arizona Board of Regents (University of Arizona)


This is the error I get:

FAILED: tools/lldb/bindings/LLDBWrapPython.cpp tools/lldb/bindings/lldb.py
cd /workspaces/llvm-project/build/tools/lldb/bindings && /usr/bin/swig -c++
-features autodoc -I/workspaces/llvm-project/lldb/include
-I/ekeane1/workspaces/llvm-project/lldb/bindings -D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS -outdir
/workspaces/llvm-project/build/tools/lldb/bindings -c++ -shadow -python
-threads -o
/workspaces/llvm-project/build/tools/lldb/bindings/LLDBWrapPython.cpp
/workspaces/llvm-project/lldb/bindings/python.swig
/workspaces/llvm-project/lldb/bindings/./python/python-typemaps.swig:496:
Error: Syntax error in input(3).

That file number is:
496   Py_buffer &operator=(const Py_buffer_RAII &) = delete;


If this is a SWIG bug, we should change the documentation to match the versions
that actually build.  Additionally, either we need to make SWIG only necessary
when running the tests, or alter this line: "If you want to run the test suite,
you’ll need to build LLDB with Python scripting support.".</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>