[Numpy-discussion] scipy 0.7.1rc2 released

Matthieu Brucher matthieu.brucher@gmail....
Mon Jun 8 03:08:22 CDT 2009


2009/6/8 Matthieu Brucher <matthieu.brucher@gmail.com>:
> I'm trying to compile it with ICC 10.1.018, and it fails :|
>
> icc: scipy/special/cephes/const.c
> scipy/special/cephes/const.c(94): error: floating-point operation
> result is out of range
>  double INFINITY = 1.0/0.0;  /* 99e999; */
>                       ^
>
> scipy/special/cephes/const.c(99): error: floating-point operation
> result is out of range
>  double NAN = 1.0/0.0 - 1.0/0.0;
>                  ^
>
> scipy/special/cephes/const.c(99): error: floating-point operation
> result is out of range
>  double NAN = 1.0/0.0 - 1.0/0.0;
>                            ^
>
> compilation aborted for scipy/special/cephes/const.c (code 2)
> scipy/special/cephes/const.c(94): error: floating-point operation
> result is out of range
>  double INFINITY = 1.0/0.0;  /* 99e999; */
>                       ^
>
> scipy/special/cephes/const.c(99): error: floating-point operation
> result is out of range
>  double NAN = 1.0/0.0 - 1.0/0.0;
>                  ^
>
> scipy/special/cephes/const.c(99): error: floating-point operation
> result is out of range
>  double NAN = 1.0/0.0 - 1.0/0.0;
>
> At least, it seems to pick up the Fortran compiler correctly (which
> 0.7.0 didn't seem to do ;))

I manually fixed the files (mconf.h as well as ync.c which uses NAN,
which can be not imported if NANS is defined, which is the case here
for ICC), but I ran into an another error (one of the reason I tried
numscons before):

/appli/intel/10.1.018/intel64/fce/bin/ifort -shared -shared
-nofor_main build/temp.linux-x86_64-2.5/build/src.linux-x86_64-2.5/scipy/fftpack/_fftpackmodule.o
build/temp.linux-x86_64-2.5/scipy/fftpack/src/zfft.o
build/temp.linux-x86_64-2.5/scipy/fftpack/src/drfft.o
build/temp.linux-x86_64-2.5/scipy/fftpack/src/zrfft.o
build/temp.linux-x86_64-2.5/scipy/fftpack/src/zfftnd.o
build/temp.linux-x86_64-2.5/build/src.linux-x86_64-2.5/fortranobject.o
-Lbuild/temp.linux-x86_64-2.5 -ldfftpack -o
build/lib.linux-x86_64-2.5/scipy/fftpack/_fftpack.so
ld: build/temp.linux-x86_64-2.5/libdfftpack.a(dffti1.o): relocation
R_X86_64_32S against `a local symbol' can not be used when making a
shared object; recompile with -fPIC
build/temp.linux-x86_64-2.5/libdfftpack.a: could not read symbols: Bad value
ld: build/temp.linux-x86_64-2.5/libdfftpack.a(dffti1.o): relocation
R_X86_64_32S against `a local symbol' can not be used when making a
shared object; recompile with -fPIC
build/temp.linux-x86_64-2.5/libdfftpack.a: could not read symbols: Bad value

It seems that the library is not compiled with fPIC (perhaps because
it is a static library?). My compiler options are:

Fortran f77 compiler: ifort -FI -w90 -w95 -xW -axP -O3 -unroll
Fortran f90 compiler: ifort -FR -xW -axP -O3 -unroll
Fortran fix compiler: ifort -FI -xW -axP -O3 -unroll

Matthieu
-- 
Information System Engineer, Ph.D.
Website: http://matthieu-brucher.developpez.com/
Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn: http://www.linkedin.com/in/matthieubrucher


More information about the Numpy-discussion mailing list