Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* _PyImport_FixupBuiltin (gdb_module, "_gdb") error
@ 2018-09-21  5:23 Nilufar Ferdous
  2018-09-21 11:18 ` Simon Marchi
  0 siblings, 1 reply; 2+ messages in thread
From: Nilufar Ferdous @ 2018-09-21  5:23 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: _PyImport_FixupBuiltin (gdb_module, "_gdb") error
  2018-09-21  5:23 _PyImport_FixupBuiltin (gdb_module, "_gdb") error Nilufar Ferdous
@ 2018-09-21 11:18 ` Simon Marchi
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Marchi @ 2018-09-21 11:18 UTC (permalink / raw)
  To: Nilufar Ferdous; +Cc: gdb-patches

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-21 11:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-21  5:23 _PyImport_FixupBuiltin (gdb_module, "_gdb") error Nilufar Ferdous
2018-09-21 11:18 ` Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox