| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:mime-version:in-reply-to:references:date | |
| :message-id:subject:from:to:content-type; q=dns; s=default; b=R/ | |
| 959xWwqRbIwtC00UmSMp+gwmTwpDgYUcmHC/u/n2VI6pojqr8tvN7Cs+nOt+atQk | |
| dhBGRZ5naaOTdEfSkcREvYFhfZ4QhgQ4UzMx2fFZ5KNo+AYEyIC/gtdIOtGPnhJW | |
| WQMfLmmFIPqEpm3lBZslEIVjzAem+EMZQnchaToL8= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:mime-version:in-reply-to:references:date | |
| :message-id:subject:from:to:content-type; s=default; bh=SCpHfeRC | |
| PNhOH2PU2h9H972yGRc=; b=Uo9Z4CU3iI6Y2YG1XHPtvjXBHBALaMtCFQMgOkhS | |
| F0DstRCwvgvPpc2rECb+6POUEOC17QZinoZ0irFMPH8UkTKf0cnGDnyXDzpdZEUF | |
| mJXYw6xMWMAx+JbyatZDIKyEwr5vcEdWlZyGVsUePf5bPP6/Q6Q+aHMhdjIMfHnr | |
| UUI= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| X-Spam-SWARE-Status: | No, score=-1.3 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RDNS_NONE,SPF_PASS autolearn=ham version=3.3.1 |
| MIME-Version: | 1.0 |
| X-Received: | by 10.194.78.42 with SMTP id y10mr46000927wjw.93.1375198982304; Tue, 30 Jul 2013 08:43:02 -0700 (PDT) |
| In-Reply-To: | <20130730143011.GP4166@calimero.vinschen.de> |
| References: | <008e01ce8d2d$3403ebc0$9c0bc340$%fedin AT samsung DOT com> <20130730143011 DOT GP4166 AT calimero DOT vinschen DOT de> |
| Date: | Tue, 30 Jul 2013 19:43:02 +0400 |
| Message-ID: | <CABEPuQ+HdWpzx30BrFiHaOf_Ak7RG=D9mVr4b7qdTDqL+zRjqg@mail.gmail.com> |
| Subject: | Re: [BUG] Wrong Python2.7 configuration |
| From: | Alexey Pavlov <alexpux AT gmail DOT com> |
| To: | cygwin AT cygwin DOT com |
2013/7/30 Corinna Vinschen:
> 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:
>> https://bugzilla.redhat.com/show_bug.cgi?id=927358
>
> 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.
>
>
This problem is resolved by next patch:
diff -Naur Python-3.2.5-cygwin/configure.ac Python-3.2.5/configure.ac
--- Python-3.2.5-cygwin/configure.ac 2013-07-22 13:54:55.758789100 +0400
+++ Python-3.2.5/configure.ac 2013-07-22 15:41:55.582031300 +0400
@@ -1177,7 +1182,7 @@
then
AC_MSG_CHECKING(whether gcc supports ParseTuple __format__)
save_CFLAGS=$CFLAGS
- CFLAGS="$CFLAGS -Werror"
+ CFLAGS="$CFLAGS -Werror -Wformat"
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[void
f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));]], [[]])
],[
The same patch for python2.x
Regards,
Alexey.
> Corinna
>
>
> (*) http://cygwin.com/ml/cygwin-apps/2013-07/msg00214.html
>
> --
> Corinna Vinschen Please, send mails regarding Cygwin to
> Cygwin Maintainer cygwin AT cygwin DOT com
> Red Hat
>
> --
> 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
>
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |