[SciPy-dev] newscipy segfaults fixed!

Arnd Baecker arnd.baecker at web.de
Tue Oct 18 19:17:36 CDT 2005


Hi,

on the opteron I get a few warnings during the build:


gcc: scipy/corelib/blasdot/_dotblas.c
scipy/corelib/blasdot/_dotblas.c: In function `dotblas_vdot':
scipy/corelib/blasdot/_dotblas.c:691: warning: passing arg 2 of pointer to
function from incompatible pointer type
gcc -pthread -shared
build/temp.linux-x86_64-2.4/scipy/corelib/blasdot/_dotblas.o
-L/scr/python/lib64 -lptf77blas -lptcblas -latlas -o
build/lib.linux-x86_64-2.4/scipy/lib/_dotblas.so


----



/home/abaecker/BUILDS2/Build_33/inst_scipy_newcore/lib/python2.4/site-packages/scipy/base/include
-I/scr/python/include/python2.4 -c'
gcc: build/src/fortranobject.c
build/src/fortranobject.c: In function `fortran_doc':
build/src/fortranobject.c:123: warning: int format, different type arg
(arg 3)
build/src/fortranobject.c: In function `fortran_setattr':
build/src/fortranobject.c:221: warning: passing arg 2 of pointer to
function from incompatible pointer type
build/src/fortranobject.c:235: warning: passing arg 1 of pointer to
function from incompatible pointer type
build/src/fortranobject.c: In function `swap_arrays':
build/src/fortranobject.c:522: warning: assignment from incompatible
pointer type
build/src/fortranobject.c:522: warning: assignment from incompatible
pointer type
build/src/fortranobject.c:523: warning: assignment from incompatible
pointer type
build/src/fortranobject.c:523: warning: assignment from incompatible
pointer type
build/src/fortranobject.c: In function `array_from_pyobj':
build/src/fortranobject.c:623: warning: passing arg 2 of pointer to
function from incompatible pointer type
build/src/fortranobject.c: In function `check_and_fix_dimensions':
build/src/fortranobject.c:740: warning: int format, different type arg
(arg 5)
build/src/fortranobject.c:805: warning: int format, different type arg
(arg 3)
gcc: build/src/build/src/scipy/linalg/fblasmodule.c
build/src/build/src/scipy/linalg/fblasmodule.c: In function
`f2py_rout_fblas_sger':
build/src/build/src/scipy/linalg/fblasmodule.c:8045: warning: passing arg
1 of `initforcomb' from incompatible pointer type
build/src/build/src/scipy/linalg/fblasmodule.c: In function
`f2py_rout_fblas_dger':
build/src/build/src/scipy/linalg/fblasmodule.c:8237: warning: passing arg
1 of `initforcomb' from incompatible pointer type
build/src/build/src/scipy/linalg/fblasmodule.c: In function
`f2py_rout_fblas_cgeru':
build/src/build/src/scipy/linalg/fblasmodule.c:8429: warning: passing arg
1 of `initforcomb' from incompatible pointer type
build/src/build/src/scipy/linalg/fblasmodule.c: In function
`f2py_rout_fblas_zgeru':
build/src/build/src/scipy/linalg/fblasmodule.c:8621: warning: passing arg
1 of `initforcomb' from incompatible pointer type
build/src/build/src/scipy/linalg/fblasmodule.c: In function
`f2py_rout_fblas_cgerc':
build/src/build/src/scipy/linalg/fblasmodule.c:8813: warning: passing arg
1 of `initforcomb' from incompatible pointer type
build/src/build/src/scipy/linalg/fblasmodule.c: In function
`f2py_rout_fblas_zgerc':
build/src/build/src/scipy/linalg/fblasmodule.c:9005: warning: passing arg
1 of `initforcomb' from incompatible pointer type
build/src/build/src/scipy/linalg/fblasmodule.c: In function
`f2py_as_column_major_storage':
build/src/build/src/scipy/linalg/fblasmodule.c:11705: warning: passing arg
2 of `array_from_pyobj' from incompatible pointer type
compiling Fortran sources
g77(f77) options: '-Wall -fno-second-underscore -fPIC -O3 -funroll-loops
-march=opteron -mmmx -msse2 -msse -m3dnow'


----

gcc: build/src/build/src/scipy/linalg/cblasmodule.c
build/src/build/src/scipy/linalg/cblasmodule.c: In function
`f2py_as_column_major_storage':
build/src/build/src/scipy/linalg/cblasmodule.c:897: warning: passing arg 2
of `array_from_pyobj' from incompatible pointer type
/scr/python/bin/g77 -shared
build/temp.linux-x86_64-2.4/build/src/build/src/scipy/linalg/cblasmodule.o
build/temp.linux-x86_64-2.4/build/src/fortranobject.o -L/scr/python/lib64
-Lbuild/temp.linux-x86_64-2.4 -llapack -lptf77blas -lptcblas -latlas -lg2c
-o build/lib.linux-x86_64-2.4/scipy/linalg/cblas.so



---


/home/abaecker/BUILDS2/Build_33/inst_scipy_newcore/lib/python2.4/site-packages/scipy/base/include
-I/scr/python/include/python2.4 -c'
gcc: build/src/build/src/scipy/linalg/flapackmodule.c
build/src/build/src/scipy/linalg/flapackmodule.c: In function
`f2py_as_column_major_storage':
build/src/build/src/scipy/linalg/flapackmodule.c:15793: warning: passing
arg 2 of `array_from_pyobj' from incompatible pointer type
/scr/python/bin/g77 -shared
build/temp.linux-x86_64-2.4/build/src/build/src/scipy/linalg/flapackmodule.o
build/temp.linux-x86_64-2.4/build/src/fortranobject.o -L/scr/python/lib64
-Lbuild/temp.linux-x86_64-2.4 -llapack -lptf77blas -lptcblas -latlas -lg2c
-o build/lib.linux-x86_64-2.4/scipy/linalg/flapack.so
building 'scipy.linalg.clapack' extension
compiling C sources


---


gcc: build/src/build/src/scipy/linalg/clapackmodule.c
build/src/build/src/scipy/linalg/clapackmodule.c: In function
`f2py_as_column_major_storage':
build/src/build/src/scipy/linalg/clapackmodule.c:5845: warning: passing
arg 2 of `array_from_pyobj' from incompatible pointer type
/scr/python/bin/g77 -shared
build/temp.linux-x86_64-2.4/build/src/build/src/scipy/linalg/clapackmodule.o
build/temp.linux-x86_64-2.4/build/src/fortranobject.o -L/scr/python/lib64
-Lbuild/temp.linux-x86_64-2.4 -llapack -lptf77blas -lptcblas -latlas -lg2c
-o build/lib.linux-x86_64-2.4/scipy/linalg/clapack.so
building 'scipy.linalg._flinalg' extension
compiling C sources


----


gcc: build/src/scipy/linalg/_flinalgmodule.c
build/src/scipy/linalg/_flinalgmodule.c: In function
`f2py_as_column_major_storage':
build/src/scipy/linalg/_flinalgmodule.c:1913: warning: passing arg 2 of
`array_from_pyobj' from incompatible pointer type
compiling Fortran sources
g77(f77) options: '-Wall -fno-second-underscore -fPIC -O3 -funroll-loops
-march=opteron -mmmx -msse2 -msse -m3dnow'


----


gcc: build/src/scipy/linalg/calc_lworkmodule.c
build/src/scipy/linalg/calc_lworkmodule.c: In function
`f2py_as_column_major_storage':
build/src/scipy/linalg/calc_lworkmodule.c:1276: warning: passing arg 2 of
`array_from_pyobj' from incompatible pointer type
compiling Fortran sources
g77(f77) options: '-Wall -fno-second-underscore -fPIC -O3 -funroll-loops
-march=opteron -mmmx -msse2 -msse -m3dnow'
compile options: '-I/scr/python/include -Ibuild/src
-I/home/abaecker/BUILDS2/Build_33/inst_scipy_newcore/lib/python2.4/site-packages/scipy/base/include
-I/scr/python/include/python2.4 -c'
g77:f77: Lib/linalg/src/calc_lwork.f


---


gcc: build/src/build/src/Lib/linalg/iterative/_iterativemodule.c
build/src/build/src/Lib/linalg/iterative/_iterativemodule.c: In function
`f2py_as_column_major_storage':
build/src/build/src/Lib/linalg/iterative/_iterativemodule.c:5662: warning:
passing arg 2 of `array_from_pyobj' from incompatible pointer type
compiling Fortran sources
g77(f77) options: '-Wall -fno-second-underscore -fPIC -O3 -funroll-loops
-march=opteron -mmmx -msse2 -msse -m3dnow'


---
And loads of warnings of the type

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)

----

gcc: Lib/special/_cephesmodule.c
Lib/special/_cephesmodule.c: In function `Cephes_InitOperators':
Lib/special/_cephesmodule.c:348: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:349: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:352: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:353: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:354: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:355: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:356: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:357: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:358: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:359: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:360: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:361: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:362: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:363: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:364: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:365: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:366: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:367: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:368: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:369: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:372: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:373: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:374: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:375: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:378: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:379: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:380: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:381: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:382: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:383: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:384: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:385: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:386: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:387: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:388: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:389: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:390: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:391: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:392: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:393: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:394: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:395: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:396: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:397: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:398: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:399: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:400: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:401: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:402: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:403: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:404: warning: assignment from incompatible
pointer type
Lib/special/_cephesmodule.c:405: warning: assignment from incompatible
pointer type
gcc: Lib/special/specfun_wrappers.c
gcc: Lib/special/cdf_wrappers.c
/scr/python/bin/g77 -shared
build/temp.linux-x86_64-2.4/Lib/special/_cephesmodule.o build/te

---

gcc: build/src/Lib/special/specfunmodule.c
build/src/Lib/special/specfunmodule.c: In function
`f2py_as_column_major_storage':
build/src/Lib/special/specfunmodule.c:5604: warning: passing arg 2 of
`array_from_pyobj' from incompatible pointer type
/scr/python/bin/g77 -shared
build/temp.linux-x86_64-2.4/build/src/Lib/special/specfunmodule.o
build/temp.linux-x86_64-2.4/build/src/fortranobject.o
-Lbuild/temp.linux-x86_64-2.4 -lspecfun -lg2c -o
build/lib.linux-x86_64-2.4/scipy/special/specfun.so
building 'scipy.optimize._minpack' extension


----

compile options: '-DATLAS_INFO="\"3.7.11\"" -I/scr/python/include
-Ibuild/src
-I/home/abaecker/BUILDS2/Build_33/inst_scipy_newcore/lib/python2.4/site-packages/scipy/base/include
-I/scr/python/include/python2.4 -c'
gcc: build/src/Lib/optimize/lbfgsb-0.9/_lbfgsbmodule.c
build/src/Lib/optimize/lbfgsb-0.9/_lbfgsbmodule.c: In function
`f2py_as_column_major_storage':
build/src/Lib/optimize/lbfgsb-0.9/_lbfgsbmodule.c:774: warning: passing
arg 2 of `array_from_pyobj' from incompatible pointer type
compiling Fortran sources
g77(f77) options: '-Wall -fno-second-underscore -fPIC -O3 -funroll-loops
-march=opteron -mmmx -msse2 -msse -m3dnow'
creating build/temp.linux-x86_64-2.4/Lib/optimize/lbfgsb-0.9


----


compile options: '-Ibuild/src
-I/home/abaecker/BUILDS2/Build_33/inst_scipy_newcore/lib/python2.4/site-packages/scipy/base/include
-I/scr/python/include/python2.4 -c'
gcc: build/src/Lib/optimize/cobyla/_cobylamodule.c
build/src/Lib/optimize/cobyla/_cobylamodule.c: In function
`cb_calcfc_in__cobyla__user__routines':
build/src/Lib/optimize/cobyla/_cobylamodule.c:311: warning: unused
variable `f'
build/src/Lib/optimize/cobyla/_cobylamodule.c: In function
`f2py_as_column_major_storage':
build/src/Lib/optimize/cobyla/_cobylamodule.c:672: warning: passing arg 2
of `array_from_pyobj' from incompatible pointer type
compiling Fortran sources
g77(f77) options: '-Wall -fno-second-underscore -fPIC -O3 -funroll-loops
-march=opteron -mmmx -msse2 -msse -m3dnow'
creating build/temp.linux-x86_64-2.4/Lib/optimize/cobyla

----

gcc: build/src/Lib/optimize/minpack2/minpack2module.c
build/src/Lib/optimize/minpack2/minpack2module.c: In function
`f2py_as_column_major_storage':
build/src/Lib/optimize/minpack2/minpack2module.c:613: warning: passing arg
2 of `array_from_pyobj' from incompatible pointer type
compiling Fortran sources
g77(f77) options: '-Wall -fno-second-underscore -fPIC -O3 -funroll-loops
-march=opteron -mmmx -msse2 -msse -m3dnow'


-----

compile options: '-Ibuild/src
-I/home/abaecker/BUILDS2/Build_33/inst_scipy_newcore/lib/python2.4/site-packages/scipy/base/include
-I/scr/python/include/python2.4 -c'
gcc: build/src/Lib/stats/statlibmodule.c
build/src/Lib/stats/statlibmodule.c: In function
`f2py_as_column_major_storage':
build/src/Lib/stats/statlibmodule.c:708: warning: passing arg 2 of
`array_from_pyobj' from incompatible pointer type
/scr/python/bin/g77 -shared
build/temp.linux-x86_64-2.4/build/src/Lib/stats/statlibmodule.o
build/temp.linux-x86_64-2.4/build/src/fortranobject.o
-Lbuild/temp.linux-x86_64-2.4 -lstatlib -lg2c -o
build/lib.linux-x86_64-2.4/scipy/stats/statlib.so
building 'scipy.stats.futil' extension

----

compile options: '-Ibuild/src
-I/home/abaecker/BUILDS2/Build_33/inst_scipy_newcore/lib/python2.4/site-packages/scipy/base/include
-I/scr/python/include/python2.4 -c'
gcc: build/src/scipy/stats/futilmodule.c
build/src/scipy/stats/futilmodule.c: In function
`f2py_as_column_major_storage':
build/src/scipy/stats/futilmodule.c:370: warning: passing arg 2 of
`array_from_pyobj' from incompatible pointer type
compiling Fortran sources
g77(f77) options: '-Wall -fno-second-underscore -fPIC -O3 -funroll-loops
-march=opteron -mmm

----

compile options: '-Ibuild/src
-I/home/abaecker/BUILDS2/Build_33/inst_scipy_newcore/lib/python2.4/site-packages/scipy/base/include
-I/scr/python/include/python2.4 -c'
gcc: build/src/Lib/stats/mvnmodule.c
build/src/Lib/stats/mvnmodule.c: In function
`f2py_as_column_major_storage':
build/src/Lib/stats/mvnmodule.c:615: warning: passing arg 2 of
`array_from_pyobj' from incompatible pointer type
compiling Fortran sources
g77(f77) options: '-Wall -fno-second-underscore -fPIC -O3 -funroll-loops
-march=opteron -mmmx -msse2 -msse -m3dnow'


-----


gcc options: '-pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC'
creating build/temp.linux-x86_64-2.4/build/src/Lib/interpolate
compile options: '-Ibuild/src
-I/home/abaecker/BUILDS2/Build_33/inst_scipy_newcore/lib/python2.4/site-packages/scipy/base/include
-I/scr/python/include/python2.4 -c'
gcc: build/src/Lib/interpolate/dfitpackmodule.c
build/src/Lib/interpolate/dfitpackmodule.c: In function
`f2py_rout_dfitpack_fpcurf0':
build/src/Lib/interpolate/dfitpackmodule.c:1304: warning: passing arg 1 of
`initforcomb' from incompatible pointer type
build/src/Lib/interpolate/dfitpackmodule.c: In function
`f2py_rout_dfitpack_fpcurfm1':
build/src/Lib/interpolate/dfitpackmodule.c:1998: warning: passing arg 1 of
`initforcomb' from incompatible pointer type
build/src/Lib/interpolate/dfitpackmodule.c: In function
`f2py_rout_dfitpack_surfit_smth':
build/src/Lib/interpolate/dfitpackmodule.c:2613: warning: passing arg 1 of
`initforcomb' from incompatible pointer type
build/src/Lib/interpolate/dfitpackmodule.c: In function
`f2py_rout_dfitpack_surfit_lsq':
build/src/Lib/interpolate/dfitpackmodule.c:3084: warning: passing arg 1 of
`initforcomb' from incompatible pointer type
build/src/Lib/interpolate/dfitpackmodule.c: In function
`f2py_as_column_major_storage':
build/src/Lib/interpolate/dfitpackmodule.c:3328: warning: passing arg 2 of
`array_from_pyobj' from incompatible pointer type
compiling Fortran sources
g77(f77) options: '-Wall -fno-second-underscore -fPIC -O3 -funroll-loops
-march=opteron -mmm



Sorry, this got longer than anticipated....

Anyway, maybe it is useful for you - I will be off
from broad-band for a week, but can run builds
from time to time if needed.

Best, Arnd




More information about the Scipy-dev mailing list