[SciPy-user] Error while installing Scipy

Rahul Kanwar rahul.kanwar at gmail.com
Thu Apr 6 19:51:36 CDT 2006


Hello,
   I am working on 64 bit Xeon machine running Suse 10. I am using
Intel's MKL and ifort for compiling Numpy and Scipy.
   I succesfuly compiled Numpy using this combination and was able to
load it in the python interpreter. But i get errors while compiling
Scipy, here is what i am getting:

---------------------------------------------------------------
ifort: Command line warning: ignoring unknown option '-fno-second-underscore'
ifort: Command line warning: overriding '-O3' with '-O2'
ifort:f77: Lib/integrate/odepack/cfode.f
ifort: Command line warning: ignoring option '-W'; no argument required
ifort: Command line warning: ignoring unknown option '-fno-second-underscore'
ifort: Command line warning: overriding '-O3' with '-O2'
ifort:f77: Lib/integrate/odepack/iprep.f
ifort: Command line warning: ignoring option '-W'; no argument required
ifort: Command line warning: ignoring unknown option '-fno-second-underscore'
ifort: Command line warning: overriding '-O3' with '-O2'
ifort:f77: Lib/integrate/odepack/prepj.f
ifort: Command line warning: ignoring option '-W'; no argument required
ifort: Command line warning: ignoring unknown option '-fno-second-underscore'
ifort: Command line warning: overriding '-O3' with '-O2'
ar: adding 50 object files to build/temp.linux-x86_64-2.4/libodepack.a
ar: adding 9 object files to build/temp.linux-x86_64-2.4/libodepack.a
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize GnuFCompiler
customize IntelFCompiler
customize LaheyFCompiler
customize PGroupFCompiler
customize AbsoftFCompiler
customize NAGFCompiler
customize VastFCompiler
customize GnuFCompiler
customize CompaqFCompiler
customize IntelItaniumFCompiler
customize Gnu95FCompiler
customize G95FCompiler
customize GnuFCompiler
customize Gnu95FCompiler
warning: build_ext: fcompiler=gnu is not available.
building 'scipy.cluster._vq' extension
compiling C++ sources
c++ options: '-pthread -fno-strict-aliasing -DNDEBUG -O2
-fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC'
creating build/temp.linux-x86_64-2.4/Lib/cluster
creating build/temp.linux-x86_64-2.4/Lib/cluster/src
compile options:
'-I/usr/local/lib64/python2.4/site-packages/numpy/core/include
-I/usr/include/python2.4 -c'
c++: Lib/cluster/src/vq_wrap.cpp
In file included from /usr/include/python2.4/Python.h:8,
                 from Lib/cluster/src/vq_wrap.cpp:176:
/usr/include/python2.4/pyconfig.h:838:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/string.h:26,
                 from Lib/cluster/src/vq_wrap.cpp:27:
/usr/include/features.h:154:1: warning: this is the location of the
previous definition
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: In function 'int char_to_numtype(char)':
Lib/cluster/src/vq_wrap.cpp:590: warning: control reaches end of
non-void function
Lib/cluster/src/vq_wrap.cpp: In function 'int char_to_size(char)':
Lib/cluster/src/vq_wrap.cpp:582: warning: control reaches end of
non-void function
Lib/cluster/src/vq_wrap.cpp: At global scope:
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
[]
c++ -pthread -shared
build/temp.linux-x86_64-2.4/Lib/cluster/src/vq_wrap.o
-Lbuild/temp.linux-x86_64-2.4 -o
build/lib.linux-x86_64-2.4/scipy/cluster/_vq.so
building 'scipy.integrate._quadpack' extension
compiling C sources
gcc options: '-pthread -fno-strict-aliasing -DNDEBUG -O2
-fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC'
compile options:
'-I/usr/local/lib64/python2.4/site-packages/numpy/core/include
-I/usr/include/python2.4 -c'
gcc: Lib/integrate/_quadpackmodule.c
In file included from Lib/integrate/_quadpackmodule.c:6:
Lib/integrate/__quadpack.h: In function 'quad_function':
Lib/integrate/__quadpack.h:60: warning: unused variable 'nb'
Traceback (most recent call last):
  File "setup.py", line 48, in ?
    setup_package()
  File "setup.py", line 41, in setup_package
    setup( **config.todict() )
  File "/usr/local/lib64/python2.4/site-packages/numpy/distutils/core.py",
line 85, in setup
    return old_setup(**new_attr)
  File "/usr/lib64/python2.4/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/usr/lib64/python2.4/distutils/dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/usr/lib64/python2.4/distutils/command/build.py", line 112, in run
    self.run_command(cmd_name)
  File "/usr/lib64/python2.4/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/usr/local/lib64/python2.4/site-packages/numpy/distutils/command/build_ext.py",
line 109, in run
    self.build_extensions()
  File "/usr/lib64/python2.4/distutils/command/build_ext.py", line
405, in build_extensions
    self.build_extension(ext)
  File "/usr/local/lib64/python2.4/site-packages/numpy/distutils/command/build_ext.py",
line 301, in build_extension
    link = self.fcompiler.link_shared_object
AttributeError: 'NoneType' object has no attribute 'link_shared_object'
--------------------------------------------------------------------------------
     Can anyone please help me with it ? Thanks.

regard,
Rahul



More information about the SciPy-user mailing list