[SciPy-dev] Strange error on cygwin - building cluster

Nick Arnett narnett at mccmedia.com
Fri Nov 12 20:08:18 EST 2004


I've hit a problem building Scipy on an Athlon system with W2K and
Python 2.3.4, using Cygwin.  It's quite similar to one that Travis O.
posted to this list a while back
(http://www.scipy.org/documentation/mailman?fn=scipy-dev/2004-January/002012.html)

This the the command that's failing:

g++ -O2 -Wall -Wstrict-prototypes -DNUMERIC_VERSION="\"23.6\""
-DNO_ATLAS_INFO=2 -IC:\Python23\include -Ibuild\src
-IC:\Python23\include -IC:\Python23\PC -c Lib\cluster\src/vq_wrap.cpp -o
build\temp.win32-2.3\Release\lib\cluster\src\vq_wrap.o

... And as I look at that, I'm wondering why it says NO_ATLAS_INFO -- I 
did build Atlas and have the environment variable set.  It also seems to 
be ignoring my FFTW environment variable.  Grr.

Here's the output for the command above:

> running build_ext
> customize Mingw32CCompiler
> customize Mingw32CCompiler using build_ext
> customize GnuFCompiler
> customize GnuFCompiler
> customize GnuFCompiler using build_ext
> building 'scipy.cluster._vq' extension
> compiling C++ sources
> g++ options: '-O2 -Wall -Wstrict-prototypes'
> creating build\temp.win32-2.3\Release\lib
> creating build\temp.win32-2.3\Release\lib\cluster
> creating build\temp.win32-2.3\Release\lib\cluster\src
> compile options: '-DNUMERIC_VERSION="\"23.6\"" -DNO_ATLAS_INFO=2 -IC:\Python23\include -Ibuild\src -IC:\Python23\include -IC:\Python23\PC -c'
> g++ -O2 -Wall -Wstrict-prototypes -DNUMERIC_VERSION="\"23.6\"" -DNO_ATLAS_INFO=2 -IC:\Python23\include -Ibuild\src -IC:\Python23\include -IC:\Python23
> \PC -c Lib\cluster\src/vq_wrap.cpp -o build\temp.win32-2.3\Release\lib\cluster\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: parse 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
> In file included from Lib/cluster/src/vq_wrap.cpp:499:
> Lib/cluster/src/vq.h:57:7: warning: no newline at end of file
> Lib/cluster/src/vq_wrap.cpp:147: warning: `void* SWIG_TypeQuery(const char*)'
>    defined but not used
> Lib/cluster/src/vq_wrap.cpp:301: warning: `void SWIG_addvarlink(PyObject*,
>    char*, PyObject*(*)(), int (*)(PyObject*))' defined but not used
> Lib/cluster/src/vq_wrap.cpp:315: warning: `int SWIG_ConvertPtr(PyObject*,
>    void**, swig_type_info*, int)' defined but not used
> Lib/cluster/src/vq_wrap.cpp:516: warning: `PyObject* l_output_helper(PyObject*,
>    PyObject*)' defined but not used
> error: Command "g++ -O2 -Wall -Wstrict-prototypes -DNUMERIC_VERSION="\"23.6\"" -DNO_ATLAS_INFO=2 -IC:\Python23\include -Ibuild\src -IC:\Python23\inclu
> de -IC:\Python23\PC -c Lib\cluster\src/vq_wrap.cpp -o build\temp.win32-2.3\Release\lib\cluster\src\vq_wrap.o" failed with exit status 1

I don't *need* cluster, though I'm sure I'll want it at some point.  In
addition to not being able to figure out the fix for this, I'm wondering
how I can simply skip this module for now.

I'll be happy to post more info if that'll help.

Nick Arnett





More information about the SciPy-Dev mailing list