[SciPy-user] Problems compiling SciPy in Cygwin

Crider, Joseph A joseph.a.crider at Boeing.com
Fri Jan 6 15:55:39 CST 2006


After some more digging through documentation on Python.org and
experimentation, I think I may have come up with a satisfactory answer
for my needs at least.  I had been just using the command
	python setup.py build
to build SciPy.  Changing the command to
	python setup.py build --compiler=cygwin
resulted in an error similar to that below in the xplt module.  Since I
don't plan to use xplt, I placed that in the list ignore_packages in
setup.py and got a successful build.


J. Allen Crider
(256)461-2699

-----Original Message-----
From: Crider, Joseph A 
Sent: Friday, January 06, 2006 11:53 AM
To: scipy-user at scipy.net
Subject: [SciPy-user] Problems compiling SciPy in Cygwin

I have unsuccessfully been attempting to compile SciPy under Cygwin on a
Windows XP system, with the latest versions of all available programs
installed on Cygwin.

I have tried both SciPy 0.3.2 and the current version from subversion
and encounter similar problems although in different locations.  The
last messages when compiling SciPy 0.3.2 are as follows:

building 'scipy.stats.rand' extension
compiling C sources
gcc options: '-fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes'
compile options: '-I/usr/include/python2.4 -c'
gcc -shared -Wl,--enable-auto-image-base
build/temp.cygwin-1.5.18-i686-2.4/Lib/stats/randmodule.o
build/temp.cygwin-1.5.18-i686-2.4/Lib/stats/ranlib_all.o
-L/usr/lib/python2.4/config -Lbuild/temp.cygwin-1.5.18-i686-2.4
-lpython2.4 -o build/lib.cygwin-1.5.18-i686-2.4/scipy/stats/rand.dll
build/temp.cygwin-1.5.18-i686-2.4/Lib/stats/ranlib_all.o: In function
`ignpoi':
/cygdrive/c/Temp/Python/SciPy_complete-0.3.2/Lib/stats/ranlib_all.c:1254
: undefined reference to `_inrgcm'
collect2: ld returned 1 exit status
build/temp.cygwin-1.5.18-i686-2.4/Lib/stats/ranlib_all.o: In function
`ignpoi':
/cygdrive/c/Temp/Python/SciPy_complete-0.3.2/Lib/stats/ranlib_all.c:1254
: undefined reference to `_inrgcm'
collect2: ld returned 1 exit status

With the version from subversion I get a similar error while building
numpy.core.umath.  I did some testing that seemed to suggest that the
problem is the -O3 in the gcc options, but I was unable to figure out
how to change it.  Any suggestions?

J. Allen Crider
(256)461-2699


J. Allen Crider
(256)461-2699

_______________________________________________
SciPy-user mailing list
SciPy-user at scipy.net
http://www.scipy.net/mailman/listinfo/scipy-user



More information about the SciPy-user mailing list