[SciPy-user] Build Error (Python 2.4, Scipy 0.3.2) on Windows XP

Brett G. Olivier bgoli at sun.ac.za
Wed Mar 23 13:26:00 CST 2005


Hi

I'm not an expert with compiling stuff but I did also encounter this
problem. Basically, it's a MinGW 3.4.2 issue and according to the MinGW
developers the undefined reference to `__EH_FRAME_BEGIN__' is caused by
the -lgcc option:

""" If you remove the unnecessary -lgcc from the command line, the
undefined reference should not be generated. The -lg2c is also unnecessary
since g77 will put "-lfrtbegin -lg2c" in for you
Danny """

Taking out -lgcc does allow a full SciPy compile with GCC 3.4.2, but then
I also experienced some very strange behaviour with certain Fortran
functions such as scipy.optimize.fsolve which ran and simply returned zero
arrays.

I don't know if/how the two problems are related and up until now haven't
had time to further characterise this problem. Basically, I went back to
MinGW 3.1 with GCC 3.3.3 which works fine with Win2K.

If anyone has any suggestions on how to approach this, I'll be more than
happy to help debug this problem.

Regards
Brett


> Hello,
> I attempted to build SciPy 0.3.2 with Python 2.4 on Windows XP machine.
> I followed http://www.scipy.org/documentation/buildscipywin32.txt. I am
> using MinGW-3.2.0-rc-3, Numeric-23.8.win32-py2.4,
> atlas3.6.0_WinNT_P4SSE2 and FFTW 2.1.3
> (http://claymore.engineer.gvsu.edu/~steriana/fftw213.libs.zip)
>
> I am getting the following build error (copied and pasted below).
> I look forward to support for solving this problem.
>
> With regards,
> Srijit
>
> running build_ext
> customize Mingw32CCompiler
> customize Mingw32CCompiler using build_ext
> customize GnuFCompiler
> customize GnuFCompiler
> customize GnuFCompiler using build_ext
> building 'scipy.fftpack._fftpack' extension
> compiling C sources
> gcc options: '-O2 -Wall -Wstrict-prototypes'
> compile options: '-Ibuild\src -ID:\python24\include -ID:\python24\PC
> -c'
> D:\MinGW\bin\g77.exe -shared
> build\temp.win32-2.4\Release\build\src\lib\fftpack\
> _fftpackmodule.o build\temp.win32-2.4\Release\lib\fftpack\src\zfft.o
> build\temp.
> win32-2.4\Release\lib\fftpack\src\drfft.o
> build\temp.win32-2.4\Release\lib\fftpa
> ck\src\zrfft.o build\temp.win32-2.4\Release\lib\fftpack\src\zfftnd.o
> build\temp.
> win32-2.4\Release\build\src\fortranobject.o
> -LD:/MinGW/bin/../lib/gcc/mingw32/3.
> 4.2 -LD:\python24\libs -LD:\python24\PCBuild -Lbuild\temp.win32-2.4
> -ldfftpack -
> lpython24 -lgcc -lg2c -o build\lib.win32-2.4\scipy\fftpack\_fftpack.pyd
> D:/MinGW/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(__main.o)(.text+0x4f):
> undefined
> reference to `__EH_FRAME_BEGIN__'
> D:/MinGW/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(__main.o)(.text+0x73):
> undefined
> reference to `__EH_FRAME_BEGIN__'
> collect2: ld returned 1 exit status
> error: Command "D:\MinGW\bin\g77.exe -shared
> build\temp.win32-2.4\Release\build\
> src\lib\fftpack\_fftpackmodule.o
> build\temp.win32-2.4\Release\lib\fftpack\src\zf
> ft.o build\temp.win32-2.4\Release\lib\fftpack\src\drfft.o
> build\temp.win32-2.4\R
> elease\lib\fftpack\src\zrfft.o
> build\temp.win32-2.4\Release\lib\fftpack\src\zfft
> nd.o build\temp.win32-2.4\Release\build\src\fortranobject.o
> -LD:/MinGW/bin/../li
> b/gcc/mingw32/3.4.2 -LD:\python24\libs -LD:\python24\PCBuild
> -Lbuild\temp.win32-
> 2.4 -ldfftpack -lpython24 -lgcc -lg2c -o
> build\lib.win32-2.4\scipy\fftpack\_fftp
> ack.pyd" failed with exit status 1
>
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
>


-- 

Brett G. Olivier Ph.D.
National Bioinformatics Network - Stellenbosch Node
Triple-J Group for Molecular Cell Physiology, Stellenbosch University
bgoli at sun dot ac dot za   http://glue.jjj.sun.ac.za/~bgoli
Tel +27-21-8082697  Fax +27-21-8085863  Mobile +27-82-7329306



More information about the SciPy-user mailing list