[SciPy-dev] random module not working on opteron

Arnd Baecker arnd.baecker at web.de
Mon Oct 24 14:29:56 EDT 2005


On Mon, 24 Oct 2005, Travis Oliphant wrote:

> The buld logs are still useful (I recently added the remaining packages
> to the build -- but they need 64-bit cleaning).
>
> Also, I'm not getting that many errors and failures.  So, the details
> would be helpful.

There are some warnings concerning pointers. A
  cat nohup.out | grep -A 5 -B 5 "incompatible pointer"
gives:


gcc options: '-pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC'
creating build/temp.linux-x86_64-2.4/Lib/io
compile options:
'-I$BUILDDIR/inst_scipy_newcore/lib/python2.4/site-packages/scipy/base/include
-I/scr/python/include/python2.4 -c'
gcc: Lib/io/numpyiomodule.c
Lib/io/numpyiomodule.c: In function `numpyio_tofile':
Lib/io/numpyiomodule.c:282: warning: passing arg 1 of pointer to function
from incompatible pointer type
Lib/io/numpyiomodule.c: In function `numpyio_convert_objects':
Lib/io/numpyiomodule.c:743: warning: passing arg 2 of pointer to function
from incompatible pointer type
gcc -pthread -shared build/temp.linux-x86_64-2.4/Lib/io/numpyiomodule.o
-Lbuild/temp.linux-x86_64-2.4 -o
build/lib.linux-x86_64-2.4/scipy/io/numpyio.so
building 'scipy.fftpack._fftpack' extension
compiling C sources
gcc options: '-pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC'
creating build/temp.linux-x86_64-2.4/build/src/Lib
--
                 from $BUILDDIR/newscipy/Lib/signal/firfilter.c:1:
/usr/include/features.h:190:1: warning: this is the location of the
previous definition
$BUILDDIR/inst_scipy_newcore/lib/python2.4/site-packages/scipy/base/include/scipy/__multiarray_api.h:699:
warning: 'import_array' defined but not used
gcc: $BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c: In function `fill_buffer':
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:1557: warning:
initialization from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:1558: warning:
initialization from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c: In function
`PyArray_OrderFilterND':
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:1674: warning: passing arg
2 of pointer to function from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:1707: warning: passing arg
3 of `compute_offsets' from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:1707: warning: passing arg
4 of `compute_offsets' from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:1707: warning: passing arg
5 of `compute_offsets' from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:1759: warning: passing arg
3 of `increment' from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c: In function
`Py_copy_info':
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:1798: warning: assignment
from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:1800: warning: assignment
from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c: In function
`sigtools_convolve2d':
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:1997: warning: passing arg
2 of `pylab_convolve_2d' from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:1997: warning: passing arg
4 of `pylab_convolve_2d' from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:1997: warning: passing arg
6 of `pylab_convolve_2d' from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:1997: warning: passing arg
7 of `pylab_convolve_2d' from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:1997: warning: passing arg
8 of `pylab_convolve_2d' from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c: In function
`sigtools_linear_filter':
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:2094: warning: passing arg
2 of pointer to function from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:2098: warning: passing arg
2 of pointer to function from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c: In function
`sigtools_median2d':
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:2307: warning: passing arg
2 of pointer to function from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:2316: warning: passing arg
4 of `b_medfilt2' from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:2319: warning: passing arg
4 of `f_medfilt2' from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.c:2322: warning: passing arg
4 of `d_medfilt2' from incompatible pointer type
gcc -pthread -shared
build/temp.linux-x86_64-2.4$BUILDDIR/newscipy/Lib/signal/sigtoolsmodule.o
build/temp.linux-x86_64-2.4$BUILDDIR/newscipy/Lib/signal/firfilter.o
build/temp.linux-x86_64-2.4$BUILDDIR/newscipy/Lib/signal/medianfilter.o
-Lbuild/temp.linux-x86_64-2.4 -o
build/lib.linux-x86_64-2.4/scipy/signal/sigtools.so
building 'scipy.signal.spline' extension
compiling C sources
gcc options: '-pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC'
compile options:
'-I$BUILDDIR/inst_scipy_newcore/lib/python2.4/site-packages/scipy/base/include
-I/scr/python/include/python2.4 -c'
gcc: $BUILDDIR/newscipy/Lib/signal/C_bspline_util.c
gcc: $BUILDDIR/newscipy/Lib/signal/splinemodule.c
$BUILDDIR/newscipy/Lib/signal/splinemodule.c: In function `cspline2d':
$BUILDDIR/newscipy/Lib/signal/splinemodule.c:84: warning: passing arg 2 of
pointer to function from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/splinemodule.c:89: warning: passing arg 1 of
`convert_strides' from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/splinemodule.c: In function `qspline2d':
$BUILDDIR/newscipy/Lib/signal/splinemodule.c:143: warning: passing arg 2
of pointer to function from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/splinemodule.c:148: warning: passing arg 1
of `convert_strides' from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/splinemodule.c: In function `FIRsepsym2d':
$BUILDDIR/newscipy/Lib/signal/splinemodule.c:200: warning: passing arg 2
of pointer to function from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/splinemodule.c:205: warning: passing arg 1
of `convert_strides' from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/splinemodule.c: In function `IIRsymorder1':
$BUILDDIR/newscipy/Lib/signal/splinemodule.c:308: warning: passing arg 2
of pointer to function from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/splinemodule.c:312: warning: passing arg 1
of `convert_strides' from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/splinemodule.c: In function `IIRsymorder2':
$BUILDDIR/newscipy/Lib/signal/splinemodule.c:428: warning: passing arg 2
of pointer to function from incompatible pointer type
$BUILDDIR/newscipy/Lib/signal/splinemodule.c:432: warning: passing arg 1
of `convert_strides' from incompatible pointer type
gcc: $BUILDDIR/newscipy/Lib/signal/S_bspline_util.c
gcc: $BUILDDIR/newscipy/Lib/signal/bspline_util.c
gcc: $BUILDDIR/newscipy/Lib/signal/D_bspline_util.c
gcc: $BUILDDIR/newscipy/Lib/signal/Z_bspline_util.c
gcc -pthread -shared
build/temp.linux-x86_64-2.4$BUILDDIR/newscipy/Lib/signal/splinemodule.o
build/temp.linux-x86_64-2.4$BUILDDIR/newscipy/Lib/signal/S_bspline_util.o
build/temp.linux-x86_64-2.4$BUILDDIR/newscipy/Lib/signal/D_bspline_util.o
build/temp.linux-x86_64-2.4$BUILDDIR/newscipy/Lib/signal/C_bspline_util.o
build/temp.linux-x86_64-2.4$BUILDDIR/newscipy/Lib/signal/Z_bspline_util.o
build/temp.linux-x86_64-2.4$BUILDDIR/newscipy/Lib/signal/bspline_util.o
-Lbuild/temp.linux-x86_64-2.4 -o
build/lib.linux-x86_64-2.4/scipy/signal/spline.so

Further warnings
================

These should be observable on any platform.

- _configtest.c: the usual warnings

- gcc: scipy/corelib/mtrand/mtrand.c
  scipy/corelib/mtrand/mtrand.c:
  In function `__pyx_tp_new_6mtrand_RandomState':
  scipy/corelib/mtrand/mtrand.c:4908: warning: unused variable `p'
- warning: callstatement is defined without callprotoargument
           y,t,istate = dvode(f,jac,y,t,tout,rtol,atol,itask,istate,
                              rwork,iwork,mf,
                              [f_extra_args,jac_extra_args,overwrite_y])
  Wrote C/API module "vode" to file "build/src/Lib/integrate/vodemodule.c"

- many "might be used uninitialized"
  (I don't like that, but OTOH it means to look into oldish
   Fortran code. Not sure if this is worth the effort ..)

  Concerns: dfftpack,quadpack,odepack,amos,toms,cdflib,
            specfun,minpack,fitpack, ...

- Lib/special/cephes/sincos.c:232: warning:
  conflicting types for built-in function 'sincos'

- SuperLU seems to be in bad shape:
  *many* implicit declarations like:
    Lib/sparase/SuperLU/SRC/clacon.c:150:
    warning: implicit declaration of function `ccopy_'
  many "suggest parentheses around assignment used as truth value"

- several warnigns in:

  build/src/Lib/linalg/iterative/BiCGREVCOM.f: In subroutine
`sbicgrevcom':
  build/src/Lib/linalg/iterative/BiCGREVCOM.f:135: warning:
            IF (RLBL .eq. 2) GOTO 2
                                  1
  build/src/Lib/linalg/iterative/BiCGREVCOM.f:239: (continued):
      2       CONTINUE
      2
  Reference to label at (1) is outside block containing definition at (2)


Best, Arnd




More information about the SciPy-Dev mailing list