classification
Title: fail to compile python in msys with mingw
Type: Stage: resolved
Components: Build, Windows Versions: Python 3.3, Python 2.7
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: mwtree, r.david.murray
Priority: normal Keywords:

Created on 2012-12-25 21:54 by mwtree, last changed 2012-12-25 23:58 by r.david.murray. This issue is now closed.

Messages (3)
msg178165 - (view) Author: Lee Long (mwtree) Date: 2012-12-25 21:54
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've been working on these for two days, really has no idea what's wrong with these.

BTW, I saw in some similar posts, there are more then one patch uploaded in different time, I patch each at a time from old to new, is that the right order to do so or I only have to patch the latest one? 

Thanks.
msg178175 - (view) Author: Lee Long (mwtree) Date: 2012-12-25 23:44
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
msg178176 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012-12-25 23:58
The bug tracker is not a place to get help, but is rather for reporting bugs and proposing patches.

We do not currently support msys/mingw.  As you have observed, various patches have been proposed; however, in order for any of them to get committed, we need the modifications to be broken down into easily reviewable pieces.  If you are interested in tackling this project, please post individually motivated and reviewable patches as separate issues.

Since you are seeking help in this issue rather than proposing a patch, I recommend you post to the python-list mailing list, and see if there is anyone with answers to your questions, or interested in working on this with you.
History
Date User Action Args
2012-12-25 23:58:40r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg178176

stage: resolved
2012-12-25 23:44:27mwtreesetmessages: + msg178175
versions: + Python 2.7
2012-12-25 21:54:11mwtreecreate