[lldb-dev] [Bug 45587] New: SWIG always runs even in ninja lldb, generation fails with 2.0.10
via lldb-dev
lldb-dev at lists.llvm.org
Fri Apr 17 11:25:47 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45587
Bug ID: 45587
Summary: SWIG always runs even in ninja lldb, generation fails
with 2.0.10
Product: lldb
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: lldb-dev at lists.llvm.org
Reporter: erich.keane at intel.com
CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org
This page claims SWIG version 2 or newer is supported:
https://lldb.llvm.org/resources/build.html 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.".
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20200417/a3dbd7b3/attachment.html>
More information about the lldb-dev
mailing list