Fwd: GDB fails to build with Python 3.7

Chris Johns chrisj at rtems.org
Tue May 29 21:00:14 UTC 2018


On 30/5/18 12:44 am, Joel Sherrill wrote:
> Is this the Ubuntu issue reported?

This issue has been around a long time. On Windows I have this comment about Python:

https://git.rtems.org/rtems-source-builder/tree/source-builder/sb/windows.py#n136

Chris

> 
> ---------- Forwarded message ---------
> From: Phil Muldoon <pmuldoon at redhat.com <mailto:pmuldoon at redhat.com>>
> Date: Tue, May 29, 2018, 6:38 AM
> Subject: GDB fails to build with Python 3.7
> To: <gdb at sourceware.org <mailto:gdb at sourceware.org>>
> 
> 
> Currently GDB fails to build with Python 3.7
> 
> https://bugs.python.org/issue33470
> 
> This is because we use an internal Python API:
> 
> #ifdef IS_PY3K
>   gdb_module = PyModule_Create (&python_GdbModuleDef);
>   /* Add _gdb module to the list of known built-in modules.  */
>   _PyImport_FixupBuiltin (gdb_module, "_gdb");
> #else
>   gdb_module = Py_InitModule ("_gdb", python_GdbMethods);
> #endif
> 
> (the _PyImport_FixupBuiltin in python.c).
> 
> This internal API has been changed. According to the advice of the Python
> maintainers we should never have used it in the first place. I didn't
> add this (at least I don't think I did!), so I'm asking whomever
> authored that code to please change it to be 3.7 compatible. I'm not
> sure what the code achieves so I'm reluctant to touch it in case of
> breakages on platforms I don't have easily access to.
> 
> 
> Cheers
> 
> Phil
> 
> 
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
> 


More information about the devel mailing list