This is the mail archive of the cygwin 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]

Re: [BUG] Wrong Python2.7 configuration

On Jul 30 18:00, Pavel Fedin wrote:
>  Hello!
>  During building Insight for Cygwin i hit this error:
> --- cut ---
> gcc -g -O2    -I. -I. -I./common -I./config
> -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H
> -I./../include/opcode -I./../opcodes/.. -I./../readline/..  -I../bfd
> -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber
> -I./gnulib/import -Ibuild-gnulib/import   -DTUI=1  -DGDBTK
> -I/usr/include/python2.7 -I/usr/include/python2.7 -Wall
> -Wdeclaration-after-statement -Wpointer-arith -Wpointer-sign -Wno-unused
> -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts
> -Wmissing-prototypes -Wdeclaration-after-statement -Wempty-body
> -Wmissing-parameter-type -Wold-style-declaration -Wold-style-definition
> -Wformat-nonliteral -Werror -c -o mi-main.o -MT mi-main.o -MMD -MP  -MF
> .deps/mi-main.Tpo ./mi/mi-main.c
> In file included from /usr/include/python2.7/Python.h:126:0,
>                  from ./python/python-internal.h:95,
>                  from ./mi/mi-main.c:56:
> /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
> --- cut ---
>  The problem obviously happens because of incorrect
> HAVE_ATTRIBUTE_FORMAT_PARSETUPLE setting in python27/pyconfig.h. Likely
> python's configure test is broken. The relevant discussion is here:

This only occurs in 64 bit Cygwin, afaics.  I reported this problem two
weeks ago on cygwin-apps(*) already.

Jason?  Yaakov?  Ping?

As a local workaround, I disabled the definition of
HAVE_ATTRIBUTE_FORMAT_PARSETUPLE in /usr/include/python2.7/pyconfig.h.



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

Problem reports:
Unsubscribe info:

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