[SciPy-dev] more 64 Bit testing (was linspace)

Arnd Baecker arnd.baecker at web.de
Wed Dec 7 11:08:41 CST 2005


Hi,

On Tue, 6 Dec 2005, Travis Oliphant wrote:

> Arnd Baecker wrote:
>
> >For the icc situation (Intel compiler on Itanium) I get
> >(basically the same as yesterday + the new ones) those listed below.
> >
> >I don't know about the quality of the intel compilers,
> >but the amount of warnings (1438 +  3025 remarks),
> >just for the core, is discouraging.
> >At the end of this mail I also attach the result of
> >  cat build_log_scipy_new_core.txt  | grep warning
> >(only those related to arraytypes.inc and ufuncobject.c).
> >
> >For full scipy things get even more problematic with icc
> >as cephes does not compile due to the
> >  double NAN = 1.0/0.0 - 1.0/0.0;
> >definitions leading to an error (see at the end for the 3 errors of this
> >type).
> >How should one define NAN when using icc?
> >
> NAN can be defined as a bit-field.

Do you have a pointer to more information on this -
I googled around a bit, but without success.


> >Commenting out the build of special in Lib/setup.py
> >the next problem sits in
> >
> >compilation aborted for build/src/Lib/interpolate/dfitpackmodule.c (code
> >2)
> >error: Command "icc -fno-strict-aliasing -OPT:Olimit=0 -DNDEBUG -g -O3
> >-Wall -Wstrict-prototypes -fPIC -fPIC -Ibuild/src
> >-I/home/baecker/python/newscipy/lib/python2.4/site-packages/scipy/base/include
> >-I/home/baecker/python/include/python2.4 -c
> >build/src/Lib/interpolate/dfitpackmodule.c -o
> >build/temp.linux-ia64-2.4/build/src/Lib/interpolate/dfitpackmodule.o"
> >failed with exit status 2
> >
> >Here icc does not like thoses places with:
> >
> >build/src/Lib/interpolate/dfitpackmodule.c(2976): error: expected a ";"
> >         int calc_lwrk1(void) {
> >
> >In code like
> >       int calc_lwrk1(void) {
> >         int u = nxest-kx-1;
> >         int v = nyest-ky-1;
> >         int km = MAX(kx,ky)+1;
> >         int ne = MAX(nxest,nyest);
> >         int bx = kx*v+ky+1;
> >         int by = ky*u+kx+1;
> >         int b1,b2;
> >         if (bx<=by) {b1=bx;b2=bx+v-ky;}
> >         else {b1=by;b2=by+u-kx;}
> >         return u*v*(2+b1+b2)+2*(u+v+km*(m+ne)+ne-kx-ky)+b2+1;
> >       }
> >
> >Is this code f2py generated??
> >
> I don't think so.  The f2py-generated code should be clean;

I just checked again:
the file dfitpackmodule.c does not exist on check-out
and there is a fitpack.pyf and the setup.py in interpolate
has the lines
      config.add_extension('dfitpack',
                         sources=['fitpack.pyf'],
                         libraries=['fitpack'],
                        )

So I do think that it is generated by f2py.

Anyway, I can't dig into this further, because my whole
build is screwed at the moment - no idea what is going on ...


Best, Arnd




More information about the Scipy-dev mailing list