473,385 Members | 1,392 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

MinGW building with Python 2.4

Ok, I know there are already a million posts on this group about
getting Python to build with MinGW. I've been through many of them, and
have still not found a good comprehensive way to accomplish this.

I've got Cygwin 5.1 with GCC 3.3.3 on it. I'm using Python 2.4.

Note: You invoke the mingwin compiler *indirectly*, by running gcc with
the -mno-cygwin option.

So first of all, I tried exporting CC='gcc -mno-cygwin', configuring,
and making. You end up getting file-not-found errors, because some of
the include files aren't present for mingw.

Next: I tried pymingw: didn't work :(

Any ideas?

Thanks in advance,
--Steve (mr************@hotmail.com)

Jul 18 '05 #1
2 2138
mrstephengross wrote:
Ok, I know there are already a million posts on this group about
getting Python to build with MinGW. I've been through many of them, and
have still not found a good comprehensive way to accomplish this.

I've got Cygwin 5.1 with GCC 3.3.3 on it. I'm using Python 2.4.

Note: You invoke the mingwin compiler *indirectly*, by running gcc with
the -mno-cygwin option.

So first of all, I tried exporting CC='gcc -mno-cygwin', configuring,
and making. You end up getting file-not-found errors, because some of
the include files aren't present for mingw.

Next: I tried pymingw: didn't work :(

Any ideas?


Since the only official way to do this is pymingw, you should at least
give feedback of the steps you followed, and what didn't work

David
Jul 18 '05 #2
> Since the only official way to do this is pymingw, you should at
least
give feedback of the steps you followed, and what didn't work


(1) I have Cygwin 5.1 with GCC 3.3.1 on it.
(2) I unzipped Python 2.4.
(3) I unzipped pyMinGW-24-0064.zip into that directory, overwriting the
appropriate files.
(4) I went into the [Python]/MinGW directory and ran 'make -f
python24.mak all'.
(5) Here are the results:

make -f pythoncore.mak
make[1]: Entering directory
`/home/Administrator/sgross/Python-2.4/MinGW'
gcc.exe -c ../Modules/_bisectmodule.c -o ../Modules/_bisectmodule.o
-I"../Include" -I"../PC" -I"../Python" -Wall -s -DNDEBUG
-DPy_BUILD_CORE -DPy_ENABLE_SHARED -O2
In file included from ../Include/Python.h:82,
from ../Modules/_bisectmodule.c:6:
.../Include/intobject.h:41: error: parse error before
"PyInt_AsUnsignedLongLongMask"
.../Include/intobject.h:41: warning: type defaults to `int' in
declaration of `PyInt_AsUnsignedLongLongMask'
.../Include/intobject.h:41: warning: data definition has no type or
storage class
In file included from ../Include/Python.h:84,
from ../Modules/_bisectmodule.c:6:
.../Include/longobject.h:37: warning: parameter names (without types) in
function declaration
.../Include/longobject.h:39: error: parse error before
"PyLong_AsLongLong"
.../Include/longobject.h:39: warning: type defaults to `int' in
declaration of `PyLong_AsLongLong'
.../Include/longobject.h:39: warning: data definition has no type or
storage class
.../Include/longobject.h:40: error: parse error before
"PyLong_AsUnsignedLongLong"
.../Include/longobject.h:40: warning: type defaults to `int' in
declaration of `PyLong_AsUnsignedLongLong'
.../Include/longobject.h:40: warning: data definition has no type or
storage class
.../Include/longobject.h:41: error: parse error before
"PyLong_AsUnsignedLongLongMask"
.../Include/longobject.h:41: warning: type defaults to `int' in
declaration of `PyLong_AsUnsignedLongLongMask'
.../Include/longobject.h:41: warning: data definition has no type or
storage class
make[1]: *** [../Modules/_bisectmodule.o] Error 1
make[1]: Leaving directory
`/home/Administrator/sgross/Python-2.4/MinGW'
make: *** [pythoncore] Error 2

Any ideas?

Thanks in advance,
--Steve

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joonas Paalasmaa | last post by:
Hi, When compiling Sketch's streamfilter C extension the errors below are raised during linking. What could cause the errors? (Python 2.3, MinGw 1.1 with GCC 2.95.3-6, Windows 98) Here are...
0
by: Phil Schmidt | last post by:
I'm attempting to follow the instructions at http://sebsauvage.net/python/mingw.html, without luck. I have Python 2.3, MinGW 3.2.3, ans SWIG 1.3.19. I get an export error on "initexample" when...
2
by: Uwe Schmitt | last post by:
Hi, I tried to build python 2.3 on a windows 2k machine using mingw. configure works fine, but when compiling Module/posixmodule.c I get lots of warnings, one is 'SIGCHLD undeclared' (first...
1
by: A. B., Khalid | last post by:
Hello all. After a search on Google it would seem that the users of Mingw have not had good results in compiling the python sources natively. See at least: ...
0
by: A. B., Khalid | last post by:
Hello all. After the effort of getting most of Python 2.3.4 Final compiled in MinGW (see: http://mail.python.org/pipermail/python-list/2004-June/225967.html, and get the patch and read more...
4
by: A. B., Khalid | last post by:
Hello all. This is to inform those interested in getting Python to compile in MinGW that the pyMinGW patch is now able to help compile both Python 2.3.4 Final and Python 2.4a3 and the resulting...
188
by: Ilias Lazaridis | last post by:
I'm a newcomer to python: - E01: The Java Failure - May Python Helps? http://groups-beta.google.com/group/comp.lang.python/msg/75f0c5c35374f553 - I've download (as suggested) the python...
66
by: Srijit Kumar Bhadra | last post by:
Is there any specific reason for not using MinGW to build the official distribution of Python for Win32? A quick Google search did not reveal the answer to my question. If a link is available,...
2
by: eliben | last post by:
On Jun 27, 3:10 pm, eliben <eli...@gmail.comwrote: Problem solved: http://eli.thegreenplace.net/2008/06/28/compiling-python-extensions-with-distutils-and-mingw/
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.