[Numpy-discussion] build problem: numpy with cygwin mingw

Sebastian Haase haase at msg.ucsf.edu
Sun Jul 9 01:16:55 EDT 2006


Hi,
I just tried my first build  from a svn checkout on windows using 
cygwin. I want to use the non cygwin python - i.e. the non-cygwin 
(mingw) compiler more.
I get a presumably very basic error:
Even though I follow the simple instructions on
http://www.scipy.org/Installing_SciPy/Windows
calling
python.exe setup.py config --compiler=mingw32 build --compiler=mingw32 
bdist_wininst

I noticed that gcc gets called without the "-mno-cygwin".
 From this follows that  _WIN32 is not defined and than I get:
<copy-paste from cygwin>
Could not locate executable gfortran
Could not locate executable f95
customize GnuFCompiler
customize GnuFCompiler
customize GnuFCompiler using config
C compiler: gcc -O2 -Wall -Wstrict-prototypes

compile options: '-Ic:\python24\include -Inumpy\core\src 
-Inumpy\core\include -I
c:\python24\include -Ic:\python24\PC -c'
gcc -O2 -Wall -Wstrict-prototypes -Ic:\python24\include -Inumpy\core\src 
-Inumpy\core\include -Ic:\python24\include -Ic:\python24\PC -c 
_configtest.c -o _config
test.o
In file included from c:/python24/include/Python.h:82,
                  from _configtest.c:2:
c:/python24/include/intobject.h:41: error: parse error before 
"PyInt_AsUnsignedLongLongMask"
</copy-paste from cygwin>

The error in the last line I traced back to this line:
#define PY_LONG_LONG __int64
in pyconfig.h  which is used because
#if defined(__GNUC__) && defined(_WIN32)
is not true if gcc is called without "-mno-cygwin"

I don't have cygwin's python installed. I neither have cygwin's
non-mingw gcc installed....


According to http://www.python.org/doc/current/inst/tweak-flags.html
the --compiler=mingw32  should tell distutils to use the "Cygwin in 
no-cygwin mode"  !?!?

What's wrong here ?

Thanks
Sebastian Haase

PS: I don't even care about ATLAS... at this point
PPS:  Is there maybe a precompiled version later than 0.9.8 avaible !?




More information about the NumPy-Discussion mailing list