<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 - Minimum lldb Python wrapper SWIG requirement should be 3 not 2"
href="https://bugs.llvm.org/show_bug.cgi?id=48685">48685</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Minimum lldb Python wrapper SWIG requirement should be 3 not 2
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>11.0
</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>enhancement
</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>peter.klotz99@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Compiling of lldb under Red Hat Enterprise Linux 7 (with SWIG 2 from the repo)
results in this error message:
Scanning dependencies of target swig_wrapper
[ 12%] Building LLDB Python wrapper
/home/build/devel/clang/11.0.0/llvm-project-11.0.0/lldb/bindings/./python/python-typemaps.swig:484:
Error: Syntax error in input(3).
make[2]: *** [tools/lldb/bindings/LLDBWrapPython.cpp] Error 1
make[1]: *** [tools/lldb/bindings/CMakeFiles/swig_wrapper.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 12%] Building CXX object
tools/clang/utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/TableGen.cpp.o
[ 12%] Built target obj.clang-tblgen
make: *** [all] Error 2
In file python-typemaps.swig, line 484 one finds the C++11 keyword "delete":
481 struct Py_buffer_RAII {
482 Py_buffer buffer = {};
483 Py_buffer_RAII() {};
484 Py_buffer &operator=(const Py_buffer_RAII &) = delete;
485 Py_buffer_RAII(const Py_buffer_RAII &) = delete;
486 ~Py_buffer_RAII() {
487 if (buffer.obj)
488 PyBuffer_Release(&buffer);
489 }
490 };
C++11 support requires at least SWIG 3. So in my opinion the minimum
requirement should be changed.
After installing SWIG 3 from the CentOS 7 repo the build works fine.</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>