[SciPy-user] Problems compiling Scipy with Cygwin

Boris von Loesch boris@vonloesch...
Sat Nov 17 11:05:05 CST 2007


Hello,

I tried to compile scipy with cygwin, but the building ended in an
error. I use the latest Atlas 3.8.0, and numpy 1.0.4 compiled without
problems using

python.exe setup.py config --compiler=mingw32 build --compiler=mingw32
bdist_wininst

If I build scipy the following error occur:

...
building 'scipy.integrate.vode' extension
compiling C sources
C compiler: gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes

compile options: '-DATLAS_INFO="\"?.?.?\"" -Ic:\cygwin\usr\include -Ibuild\src.w
in32-2.5 -Ic:\programme\python2.5\lib\site-packages\numpy\core\include -Ic:\prog
ramme\python2.5\include -Ic:\programme\python2.5\PC -c'
C:\cygwin\bin\g77.exe -g -Wall -mno-cygwin -g -Wall -mno-cygwin -shared build\te
mp.win32-2.5\Release\build\src.win32-2.5\scipy\integrate\vodemodule.o build\temp
.win32-2.5\Release\build\src.win32-2.5\fortranobject.o -Lc:\cygwin\usr\lib -Lc:\
programme\python2.5\libs -Lc:\programme\python2.5\PCBuild -Lbuild\temp.win32-2.5
 -lodepack -llinpack_lite -lmach -lf77blas -lcblas -latlas -lpython25 -lg2c -o b
uild\lib.win32-2.5\scipy\integrate\vode.pyd
build\temp.win32-2.5\Release\build\src.win32-2.5\scipy\integrate\vodemodule.o:vo
demodule.c:(.text+0x367): undefined reference to `__impure_ptr'
build\temp.win32-2.5\Release\build\src.win32-2.5\scipy\integrate\vodemodule.o:vo
demodule.c:(.text+0x462): undefined reference to `__impure_ptr'
build\temp.win32-2.5\Release\build\src.win32-2.5\scipy\integrate\vodemodule.o:vo
demodule.c:(.text+0x585): undefined reference to `__impure_ptr'
build\temp.win32-2.5\Release\build\src.win32-2.5\scipy\integrate\vodemodule.o:vo
demodule.c:(.text+0x9b1): undefined reference to `__impure_ptr'
build\temp.win32-2.5\Release\build\src.win32-2.5\scipy\integrate\vodemodule.o:vo
demodule.c:(.text+0xb23): undefined reference to `__impure_ptr'
build\temp.win32-2.5\Release\build\src.win32-2.5\scipy\integrate\vodemodule.o:vo
demodule.c:(.text+0xb79): more undefined references to `__impure_ptr' follow
build\temp.win32-2.5\Release\build\src.win32-2.5\scipy\integrate\vodemodule.o:vo
demodule.c:(.text+0x18f4): undefined reference to `_setjmp'
build\temp.win32-2.5\Release\build\src.win32-2.5\scipy\integrate\vodemodule.o:vo
demodule.c:(.text+0x1ac5): undefined reference to `_setjmp'
collect2: ld returned 1 exit status
error: Command "C:\cygwin\bin\g77.exe -g -Wall -mno-cygwin -g -Wall -mno-cygwin
-shared build\temp.win32-2.5\Release\build\src.win32-2.5\scipy\integrate\vodemod
ule.o build\temp.win32-2.5\Release\build\src.win32-2.5\fortranobject.o -Lc:\cygw
in\usr\lib -Lc:\programme\python2.5\libs -Lc:\programme\python2.5\PCBuild -Lbuil
d\temp.win32-2.5 -lodepack -llinpack_lite -lmach -lf77blas -lcblas -latlas -lpyt
hon25 -lg2c -o build\lib.win32-2.5\scipy\integrate\vode.pyd" failed with exit st
atus 1

I also tried to build scipy with "-fno-second-underscore" enabled via
F77FLAGS, but that doesn't change anything.

Does anybody know how to fix this?

Best Regards,
Boris


More information about the SciPy-user mailing list