[SciPy-user] Install failed for SciPy

Pearu Peterson pearu at cens.ioc.ee
Mon Oct 14 08:42:49 EDT 2002


On Sun, 13 Oct 2002, Jeffrey B. Layton wrote:

> Good evening,
> 
>    I've started to install SciPy and I received an error:
> 
> ifc -shared build/temp.linux-i686-2.2/cephesmodule.o 
> build/temp.linux-i686-2.2/amos_wrappers.o 
> build/temp.linux-i686-2.2/specfun_wrappers.o 
> build/temp.linux-i686-2.2/toms_wrappers.o 
> build/temp.linux-i686-2.2/cdf_wrappers.o 
> build/temp.linux-i686-2.2/ufunc_extras.o -Lbuild/temp.linux-i686-2.2 
> -Lbuild/temp.linux-i686-2.2 -lamos -ltoms -lc_misc -lcephes -lmach -lcdf 
> -lspecfun -o build/lib.linux-i686-2.2/scipy/special/cephes.so
> /opt/intel/compiler60/ia32/lib/libF90.a(int8.o): In function `isnan':
> int8.o(.text+0x4c40): multiple definition of `isnan'
> build/temp.linux-i686-2.2/libcephes.a(isnan.o):/home/laytonj/RESEARCH/PYTHON/SCIPY/SciPy-0.2.0_alpha_142.4307/special/cephes/isnan.c:125: 
> first defined here
> ld: Warning: size of symbol `isnan' changed from 51 to 80 in 
> /opt/intel/compiler60/ia32/lib/libF90.a(int8.o)
> error: command 'ifc' failed with exit status 1

Because the symbol `isnan' has different sizes in libcephes.a and
libF90.a, I am not sure that we can skip using isnan() function from
cephes library in favor of the one in libF90.a -- they probably have
different signatures and would crash python if we'd do that (though, 
I have not tested this statement).

Currently, I don't have any better suggestion than use g77 compiler for
building/installing scipy:
  setup.py build build_flib --fcompiler=Gnu
or
  setup.py build build_flib --fcompiler=Gnu install

Suggestions how to solve the problem of supporting Intel compiler are
welcome. 
One solution would be renaming isnan to cephes_isnan in cephes library.
Other ideas?

Pearu





More information about the SciPy-User mailing list