This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[64bit] Python build bug


Hi,

I'm just trying to build GDB for 64 bit again, and make fails due to
this error:

In file included from /usr/include/python2.7/Python.h:126:0,
                 from [...]/gdb/python/python-internal.h:55,
		 from [...]/gdb/python/python.c:66:
/usr/include/python2.7/modsupport.h:27:1: error: â_PyArg_ParseTuple_SizeTâ is an unrecognized format function type [-Werror=format=]
 PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3);
 ^
cc1: all warnings being treated as errors

A bit of digging turns up, that /usr/include/python2.7/pyconfig.h
wrongly defines HAVE_ATTRIBUTE_FORMAT_PARSETUPLE:

  $ uname -sm
  CYGWIN_NT-6.2 x86_64
  $ grep HAVE_ATTRIBUTE_FORMAT_PARSETUPLE /usr/include/python2.7/*.h
  /usr/include/python2.7/pyconfig.h:#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
  /usr/include/python2.7/pyport.h:#ifdef HAVE_ATTRIBUTE_FORMAT_PARSETUPLE

while the 32 bit python, as well as the Fedora python both do NOT define
this macro:

  $ uname -sm
  CYGWIN_NT-6.2-WOW64 i686
  $ grep HAVE_ATTRIBUTE_FORMAT_PARSETUPLE /usr/include/python2.7/*.h
  /usr/include/python2.7/pyconfig.h:/* #undef HAVE_ATTRIBUTE_FORMAT_PARSETUPLE */
  /usr/include/python2.7/pyport.h:#ifdef HAVE_ATTRIBUTE_FORMAT_PARSETUPLE

  $ uname -sm
  Linux x86_64
  $ grep HAVE_ATTRIBUTE_FORMAT_PARSETUPLE /usr/include/python2.7/*.h
  /usr/include/python2.7/pyconfig-64.h:/* #undef HAVE_ATTRIBUTE_FORMAT_PARSETUPLE */
  /usr/include/python2.7/pyport.h:#ifdef HAVE_ATTRIBUTE_FORMAT_PARSETUPLE

Any chance to fix this ASAP?


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]