_PyImport_FixupBuiltin (gdb_module, "_gdb") error
Simon Marchi
simon.marchi@polymtl.ca
Fri Sep 21 11:18:00 GMT 2018
On 2018-09-21 01:23, Nilufar Ferdous wrote:
> Hi,
> I got this link
> https://sourceware.org/ml/gdb-patches/2018-05/msg00863.html
> Plese let me know how to solve this.
> I am getting error building rocket chip generator.
> gdb/gdb/python/python.c:1584:45: error: too few arguments to function
> 'int
> _PyImport_FixupBuiltin(PyObject*, const char*, PyObject*)'
> _PyImport_FixupBuiltin (gdb_module, "_gdb");
> ^
> In file included from /usr/include/python3.7m/Python.h:126,
> from
> /soe/nferdous/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/../riscv-binutils-gdb/gdb/python/python-internal.h:94,
> from
> /soe/nferdous/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/../riscv-binutils-gdb/gdb/python/python.c:94:
> /usr/include/python3.7m/import.h:115:17: note: declared here
> PyAPI_FUNC(int) _PyImport_FixupBuiltin(
> ^~~~~~~~~~~~~~~~~~~~~~
> make[3]: *** [Makefile:1947: python.o] Error 1
> make[2]: *** [Makefile:10420: all-gdb] Error 2
> make[1]: *** [Makefile:849: all] Error 2
> Thanks!
> Nilufar
This has been fixed in gdb 8.2. Here's the commit in case you want to
backport it.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=aeab512851bf6ed623d1c6c4305b6ce05e51a10c
Simon
More information about the Gdb-patches
mailing list