Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #35502

regarding compiling the Python 2.7 and 3.3 with mingw

Path csiph.com!usenet.pasdenom.info!aioe.org!rt.uk.eu.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.nosignal.org!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ginzzer@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'skip:[ 20': 0.03; 'subject:Python': 0.05; 'error:': 0.05; 'reason,': 0.07; 'python': 0.09; '(first': 0.09; 'identifier': 0.09; 'level:': 0.09; 'patches': 0.09; 'skip:[ 30': 0.09; 'subject:2.7': 0.09; "skip:' 30": 0.15; "'pipe'": 0.16; 'declaration': 0.16; 'presented,': 0.16; 'subject:3.3': 0.16; 'appears': 0.18; 'all,': 0.21; 'implicit': 0.22; 'defined': 0.22; 'errors': 0.23; 'posts': 0.23; 'installed': 0.23; 'seems': 0.23; 'patch': 0.24; 'skip:[ 10': 0.26; 'compiled': 0.27; "doesn't": 0.28; 'source': 0.29; 'install': 0.29; 'related': 0.30; "skip:' 10": 0.30; 'function': 0.30; 'error': 0.30; 'problem.': 0.32; "skip:' 20": 0.32; 'could': 0.32; 'subject:regarding': 0.33; 'problem': 0.33; 'to:addr:python- list': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'skip:. 20': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'message-id:@gmail.com': 0.36; "didn't": 0.36; 'subject:with': 0.36; 'charset:us-ascii': 0.36; 'reported': 0.37; 'received:209': 0.37; 'skip:o 20': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'google': 0.39; 'first': 0.61; 'header:Message-Id:1': 0.62; 'solve': 0.62; 'different': 0.63; 'information': 0.63; 'show': 0.63; 'note:': 0.64; 'here': 0.65; 'hints': 0.65; "'make'": 0.84; '--->': 0.84; './configure': 0.84; 'mingw': 0.84; 'succeed.': 0.84; '***': 0.93; 'online,': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:subject:message-id:mime-version :content-type:content-transfer-encoding:x-mailer; bh=4bI+ysRjeNsq1/E9UO9XgkP2v3S0KkTZUcQBz82NKeA=; b=XoYLgqDD2mP8mGHbD99FyaApV+KvECyI7F+ZZrK4mTaPfPQIeL3+3Zup23bzwhmcRj t0XavZYhSQqRjvAGZXR2WXmsvuowLNw1/KWoTAcaw9hSYiQkUIALsFFcbQRATB0LvoKK gK8jsc+F6lqbQ3Pqx3DIrDujG5jgYvuYT+f7y13is7LsxPkum+eBhfdius5MPY8FqKzb 6KTEwIHMgVhZaQoAd2q2mCGHXwHJu3u1ko2UgMrQFGnCkovsfzrRd3VdfGLFoLBhCXy3 9tWh3y/f36T4qZd45yEvIFR340WXgLRPC2XJ33SC4y8mSryVOHLirERW5qF4uK1eDc5D FIcQ==
X-Received by 10.50.57.200 with SMTP id k8mr23536565igq.29.1356480982425; Tue, 25 Dec 2012 16:16:22 -0800 (PST)
Date Tue, 25 Dec 2012 18:16:00 -0600
From ginzzer <ginzzer@gmail.com>
To python-list@python.org
Subject regarding compiling the Python 2.7 and 3.3 with mingw
MIME-Version 1.0
Content-Type text/plain; charset="US-ASCII"
Content-Transfer-Encoding 7bit
X-Mailer Becky! ver. 2.56.03 [tw]
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1276.1356480990.29569.python-list@python.org> (permalink)
Lines 34
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1356480990 news.xs4all.nl 6920 [2001:888:2000:d::a6]:40969
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:35502

Show key headers only | View raw


Hi all, 
  For some reason, I have to develop my software with mingw under windows. First of all, I need python installed in the msys but I try all my ways to install 2.6.x, 2.7.x, 3.2.x and 3.3.0, no one succeed. I search all issues and google the related information online, it seems that it doesn't support python on mingw? But what stranger is there are a few posts here with the patch presented, so is there any way to make the source compiled in mingw? I try all the available patches but again, it didn't solve the problem. Here are the error messages when I try to compile the 3.3.0 in mingw, 

  ./configure              ---> no problem
  make                     ---> errors shown below
  Objects/exceptions.c:2527:5: error: 'EALREADY' undeclared (first use in this function)
  Objects/exceptions.c:2527:5: note: each undeclared identifier is reported only once for each function it appears in
  Objects/exceptions.c:2528:5: error: 'EINPROGRESS' undeclared (first use in this function)
  Objects/exceptions.c:2529:5: error: 'EWOULDBLOCK' undeclared (first use in this function)
  Objects/exceptions.c:2532:5: error: 'ESHUTDOWN' undeclared (first use in this function)
  Objects/exceptions.c:2536:5: error: 'ECONNABORTED' undeclared (first use in this function)
  Objects/exceptions.c:2538:5: error: 'ECONNREFUSED' undeclared (first use in this function)
  Objects/exceptions.c:2540:5: error: 'ECONNRESET' undeclared (first use in this function)
  Objects/exceptions.c:2557:5: error: 'ETIMEDOUT' undeclared (first use in this function)
  make: *** [Objects/exceptions.o] Error 1

I then try compiling the version 2.7.3, different errors were shown while 'make'

  ./Modules/posixmodule.c:6151:5: warning: implicit declaration of function 'wait'[-Wimplicit-function-declaration]
  ./Modules/posixmodule.c: In function 'posix_fdopen':
  ./Modules/posixmodule.c:6751:9: warning: implicit declaration of function 'fcntl' [-Wimplicit-function-declaration]
  ./Modules/posixmodule.c:6751:27: error: 'F_GETFL' undeclared (first use in this function)
  ./Modules/posixmodule.c:6751:27: note: each undeclared identifier is reported only once for each function it appears in
  ./Modules/posixmodule.c:6753:23: error: 'F_SETFL' undeclared (first use in this function)
  ./Modules/posixmodule.c: In function 'posix_pipe':
  ./Modules/posixmodule.c:6816:5: warning: implicit declaration of function 'pipe' [-Wimplicit-function-declaration]
  ./Modules/posixmodule.c: At top level:
  ./Modules/posixmodule.c:671:1: warning: 'posix_fildes' defined but not used [-Wunused-function]
  ./Modules/posixmodule.c:7480:1: warning: 'conv_confname' defined but not used [-Wunused-function]
  ./Modules/posixmodule.c:8387:1: warning: 'setup_confname_table' defined but not used [-Wunused-function]
  make: *** [Modules/posixmodule.o] Error 1

I highly appreciate it if you could show me any hints in compiling the
python in mingw.

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

regarding compiling the Python 2.7 and 3.3 with mingw ginzzer <ginzzer@gmail.com> - 2012-12-25 18:16 -0600
  Re: regarding compiling the Python 2.7 and 3.3 with mingw erikj <tw55413@gmail.com> - 2012-12-27 12:08 -0800
  Re: regarding compiling the Python 2.7 and 3.3 with mingw erikj <tw55413@gmail.com> - 2012-12-27 12:08 -0800

csiph-web