[lldb-dev] [Bug 48685] New: Minimum lldb Python wrapper SWIG requirement should be 3 not 2

2021-01-07 Thread via lldb-dev
https://bugs.llvm.org/show_bug.cgi?id=48685

Bug ID: 48685
   Summary: Minimum lldb Python wrapper SWIG requirement should be
3 not 2
   Product: lldb
   Version: 11.0
  Hardware: PC
OS: Linux
Status: NEW
  Severity: enhancement
  Priority: P
 Component: All Bugs
  Assignee: lldb-dev@lists.llvm.org
  Reporter: peter.klot...@gmail.com
CC: jdevliegh...@apple.com, llvm-b...@lists.llvm.org

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


[lldb-dev] [Bug 48685] Minimum lldb Python wrapper SWIG requirement should be 3 not 2

2021-01-07 Thread via lldb-dev
https://bugs.llvm.org/show_bug.cgi?id=48685

Jonas Devlieghere  changed:

   What|Removed |Added

   Assignee|lldb-dev@lists.llvm.org |jdevliegh...@apple.com

-- 
You are receiving this mail because:
You are the assignee for the bug.___
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev