[SciPy-user] Compiling SciPy on Windows

Bill Baxter wbaxter at gmail.com
Mon Jul 10 02:50:47 EDT 2006


Hi everyone,
I'm following the instructions on building SciPy for Windows here:
   http://www.scipy.org/Installing_SciPy/Windows

I've managed to get ATLAS and Numpy built, and now I'm up to scipy.

Using the standalone MinGW compiler I get an error about unresolved symbol
__EH_FRAME_BEGIN__.

I tried using the msvc.net 2003 compiler too (despite warnings on the above
web page that it wouldn't work).
After fixing a couple of compilation errors in Lib/special/cephes, I got
this:

No module named msvccompiler in numpy.distutils, trying from distutils..
customize MSVCCompiler
Traceback (most recent call last):
  File "setup.py", line 50, in ?
    setup_package()
  File "setup.py", line 42, in setup_package
    configuration=configuration )
  File "C:\Python24\Lib\site-packages\numpy\distutils\core.py", line 174, in
setup
    return old_setup(**new_attr)
  File "C:\Python24\lib\distutils\core.py", line 149, in setup
    dist.run_commands()
  File "C:\Python24\lib\distutils\dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "C:\Python24\lib\distutils\dist.py", line 966, in run_command
    cmd_obj.run()
  File "c:\python24\lib\distutils\command\build.py", line 112, in run
    self.run_command(cmd_name)
  File "C:\Python24\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "C:\Python24\lib\distutils\dist.py", line 966, in run_command
    cmd_obj.run()
  File "C:\Python24\Lib\site-packages\numpy\distutils\command\build_ext.py",
line 89, in run
    self.compiler.customize(self.distribution,need_cxx=need_cxx_compiler)
  File "C:\Python24\Lib\site-packages\numpy\distutils\ccompiler.py", line
200, in CCompiler_customize
    self.compiler_so.remove('-Wstrict-prototypes')
AttributeError: MSVCCompiler instance has no attribute 'compiler_so'

Ok, I didn't really expect MSVC to work, just gave it a try.

But can anyone shed light on the __EH_FRAME_BEGIN__ error with MinGW?

I just installed this mingw:
C:\usr\pkg\scipysvn>gcc --version
gcc (GCC) 3.4.2 (mingw-special)

And just downloaded scipy from SVN.


Here's the full text of the error with MinGW:

compile options: '-Ibuild\src.win32-2.4-Ic:\Python24\lib\site-packages\numpy\co
re\include -Ic:\Python24\include -Ic:\Python24\PC -c'
C:\mingw\bin\g77.exe -shared build\temp.win32-
2.4\Release\build\src.win32-2.4\li
b\fftpack\_fftpackmodule.o build\temp.win32-
2.4\Release\lib\fftpack\src\zfft.o b
uild\temp.win32-2.4\Release\lib\fftpack\src\drfft.o build\temp.win32-
2.4\Release
\lib\fftpack\src\zrfft.o build\temp.win32-
2.4\Release\lib\fftpack\src\zfftnd.o b
uild\temp.win32-2.4\Release\build\src.win32-2.4\fortranobject.o-LC:/mingw/bin/.
./lib/gcc/mingw32/3.4.2 -Lc:\Python24\libs -Lc:\Python24\PCBuild
-Lbuild\temp.wi
n32-2.4 -ldfftpack -lpython24 -lgcc -lg2c -o build\lib.win32-
2.4\scipy\fftpack\_
fftpack.pyd
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/libgcc.a(__main.o)(.text+0x4f):
undefined
reference to `__EH_FRAME_BEGIN__'
C:/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 "C:\mingw\bin\g77.exe -shared build\temp.win32-
2.4\Release\build\
src.win32-2.4\lib\fftpack\_fftpackmodule.o build\temp.win32-
2.4\Release\lib\fftp
ack\src\zfft.o build\temp.win32-2.4\Release\lib\fftpack\src\drfft.obuild\temp.w
in32-2.4\Release\lib\fftpack\src\zrfft.o build\temp.win32-
2.4\Release\lib\fftpac
k\src\zfftnd.o build\temp.win32-
2.4\Release\build\src.win32-2.4\fortranobject.o
-LC:/mingw/bin/../lib/gcc/mingw32/3.4.2 -Lc:\Python24\libs
-Lc:\Python24\PCBuild
 -Lbuild\temp.win32-2.4 -ldfftpack -lpython24 -lgcc -lg2c -o
build\lib.win32-2.4
\scipy\fftpack\_fftpack.pyd" failed with exit status 1

Thanks for any help on this.

--bb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20060710/a8e93bd5/attachment.html>


More information about the SciPy-User mailing list