This is the mail archive of the
cygwin
mailing list for the Cygwin project.
[BUG] Wrong Python2.7 configuration
- From: Pavel Fedin <p dot fedin at samsung dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 30 Jul 2013 18:00:52 +0400
- Subject: [BUG] Wrong Python2.7 configuration
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:
https://bugzilla.redhat.com/show_bug.cgi?id=927358
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple