[SciPy-dev] Strang error on cygwin
Travis Oliphant
oliphant at ee.byu.edu
Mon Jan 19 16:49:59 EST 2004
I periodically get this strange error which is probably due to the way I
am using cygwin. I'm wondering if someone with more experience on
cygwin could help me.
Say I'm using the cygwin bash shell and I set my Path to grab the
enthought Python binary first but the cygwin copy of gcc
PATH=/cygdrive/c/Python23:/usr/bin:/bin
Now, when I run
python setup.py build --compiler=mingw32 install
I get the following error:
building 'scipy.cluster._vq' extension
cygiwn_output_dir: build\temp.win32-2.3\Release
here build\temp.win32-2.3\Release\lib\cluster\src\vq_wrap.o
...: build\temp.win32-2.3\Release lib\cluster\src\vq_wrap.o
C:\cygwin\bin\gcc.exe -O2 -w -Wstrict-prototypes -Ic:\Python23\include
-Ic:\Pyth
on23\PC -c Lib\cluster\src/vq_wrap.cpp -o
build\temp.win32-2.3\Release\lib\clust
er\src\vq_wrap.o
In file included from c:/Python23/include/Python.h:75,
from Lib/cluster/src/vq_wrap.cpp:176:
c:/Python23/include/intobject.h:41: error: syntax error before `(' token
In file included from c:/Python23/include/Python.h:77,
from Lib/cluster/src/vq_wrap.cpp:176:
c:/Python23/include/longobject.h:37: error: `__int64' was not declared
in this
scope
c:/Python23/include/longobject.h:39: error: syntax error before `*' token
c:/Python23/include/longobject.h:40: error: syntax error before `(' token
c:/Python23/include/longobject.h:41: error: syntax error before `(' token
error: command 'gcc' failed with exit status 1
I'm wondering if this is somehow due to path issues, but it seems tied
up in distutils.
Am I being foolish to try and use the Enthought Python2.3 windows binary
with the cygwin gcc compiler (the -mno-cygwin option that distutils
provides ensures that the dll won't link against cygwin).?
Thanks for any insight.
-Travis O.
More information about the SciPy-Dev
mailing list