[SciPy-user] scipy build with gcc on solaris problems

John Reid j.reid at mail.cryst.bbk.ac.uk
Mon Mar 3 06:08:41 EST 2008


Hi,

I'm on solaris using gcc:
SunOS mahler 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-880 Solaris
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: ../configure --prefix=/usr/local --with-gnu-as 
--with-as=/usr/local/bin/as --with-gnu-ld --with-ld=/usr/local/bin/ld 
--with-libiconv --enable-libada --enable-libssp --enable-objc-gc 
--enable-threads --enable-languages=c,c++,objc,obj-c++,fortran
Thread model: posix
gcc version 4.2.2


The scipy tests generate a core dump. The numpy tests seem fine except 
for a few warnings about invalid values. What am I doing wrong?



I build atlas following the advice here:
http://www.scipy.org/Installing_SciPy/Linux#head-89e1f6afaa3314d98a22c79b063cceee2cc6313c


I install scipy using "easy_install scipy" when I get some warnings like 
the following:
scipy/ndimage/src/nd_image.c: In function 'Py_Filter1DFunc':
scipy/ndimage/src/nd_image.c:273: warning: function called through a 
non-compatible type
scipy/ndimage/src/nd_image.c:273: note: if this code is reached, the 
program will abort
scipy/ndimage/src/nd_image.c:274: warning: function called through a 
non-compatible type
scipy/ndimage/src/nd_image.c:274: note: if this code is reached, the 
program will abort
scipy/ndimage/src/nd_image.c: In function 'Py_FilterFunc':
scipy/ndimage/src/nd_image.c:351: warning: function called through a 
non-compatible type
scipy/ndimage/src/nd_image.c:351: note: if this code is reached, the 
program will abort
scipy/ndimage/src/nd_image.c: In function 'Py_Histogram':
scipy/ndimage/src/nd_image.c:1100: warning: function called through a 
non-compatible type
scipy/ndimage/src/nd_image.c:1100: note: if this code is reached, the 
program will abort


and when I run the tests I get a core dump:

ipython
 >>> import scipy
 >>> scipy.test()




Here is the "gdb python core" output:
Core was generated by `/usr/local/bin/python /usr/local/bin/ipython'.
Program terminated with signal 4, Illegal instruction.
#0  Py_FilterFunc (buffer=0xc91778, filter_size=2, output=0xffbfc118, 
data=0xffbfc1c4)
     at scipy/ndimage/src/nd_image.c:351
351     scipy/ndimage/src/nd_image.c: No such file or directory.
         in scipy/ndimage/src/nd_image.c
(gdb) where
#0  Py_FilterFunc (buffer=0xc91778, filter_size=2, output=0xffbfc118, 
data=0xffbfc1c4)
     at scipy/ndimage/src/nd_image.c:351
#1  0xfdc16eb8 in NI_GenericFilter (input=0x900708, function=0xfdc130b8 
<Py_FilterFunc>, data=0xffbfc1c4,
     footprint=0xb96be0, output=0xb96c40, mode=<value optimized out>, 
cvalue=0, origins=0xbfcd60)
     at scipy/ndimage/src/ni_filters.c:858
#2  0xfdc14a54 in Py_GenericFilter (obj=0x0, args=0xb493f0) at 
scipy/ndimage/src/nd_image.c:411
#3  0x000f7a24 in PyCFunction_Call (func=0x838878, arg=0xb493f0, kw=0x0) 
at Objects/methodobject.c:108
#4  0x000a188c in PyEval_EvalFrameEx (f=0xbf6570, throwflag=-4209780) at 
Python/ceval.c:3564
#5  0x000a3784 in PyEval_EvalCodeEx (co=0x7f7b60, globals=0x7f7b60, 
locals=0x1, args=0x1a210c, argcount=2,
     kws=0x28, kwcount=3, defs=0x833dfc, defcount=8, closure=0x0) at 
Python/ceval.c:2831
#6  0x000a1804 in PyEval_EvalFrameEx (f=0xbf63c0, throwflag=-4209276) at 
Python/ceval.c:3659
#7  0x000a3784 in PyEval_EvalCodeEx (co=0x9fdf98, globals=0x9fdf98, 
locals=0x1, args=0x43d2b4,
     argcount=10432304, kws=0x20, kwcount=1, defs=0x0, defcount=8, 
closure=0x0) at Python/ceval.c:2831
#8  0x000a1804 in PyEval_EvalFrameEx (f=0xa4ee30, throwflag=-4208772) at 
Python/ceval.c:3659
#9  0x000a3784 in PyEval_EvalCodeEx (co=0x2bdf50, globals=0x2bdf50, 
locals=0x1, args=0x138800, argcount=2,
     kws=0x9db3c8, kwcount=0, defs=0x2d7c9c, defcount=1, closure=0x0) at 
Python/ceval.c:2831
#10 0x000f72ec in function_call (func=0x2dd2b0, arg=0x93c788, 
kw=0xb4b270) at Objects/funcobject.c:517
#11 0x00026448 in PyObject_Call (func=0x2dd2b0, arg=0x93c788, 
kw=0xb4b270) at Objects/abstract.c:1860
#12 0x0009f6f8 in PyEval_EvalFrameEx (f=0xa4ecc0, throwflag=0) at 
Python/ceval.c:3844
#13 0x000a3784 in PyEval_EvalCodeEx (co=0x2bdf98, globals=0x2bdf98, 
locals=0x1, args=0x138800, argcount=2,
     kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at 
Python/ceval.c:2831
#14 0x000f72ec in function_call (func=0x2dd2f0, arg=0x93c620, kw=0x0) at 
Objects/funcobject.c:517
#15 0x00026448 in PyObject_Call (func=0x2dd2f0, arg=0x93c620, kw=0x0) at 
Objects/abstract.c:1860
#16 0x00031310 in instancemethod_call (func=0x2, arg=0x93c620, kw=0x0) 
at Objects/classobject.c:2497
#17 0x00026448 in PyObject_Call (func=0x8c7d78, arg=0x93c620, kw=0x0) at 
Objects/abstract.c:1860
#18 0x0009fe10 in PyEval_EvalFrameEx (f=0xa4eb40, throwflag=-4206524) at 
Python/ceval.c:3775
#19 0x000a3784 in PyEval_EvalCodeEx (co=0x2a35c0, globals=0x2a35c0, 
locals=0x1, args=0x138800, argcount=2,
     kws=0x0, kwcount=0, defs=0x61e25c, defcount=1, closure=0x0) at 
Python/ceval.c:2831
#20 0x000f72ec in function_call (func=0x67fdf0, arg=0x93c738, kw=0x0) at 
Objects/funcobject.c:517
#21 0x00026448 in PyObject_Call (func=0x67fdf0, arg=0x93c738, kw=0x0) at 
Objects/abstract.c:1860
#22 0x00031310 in instancemethod_call (func=0x0, arg=0x93c738, kw=0x0) 
at Objects/classobject.c:2497
#23 0x00026448 in PyObject_Call (func=0x8ce3f0, arg=0xaf9d70, kw=0x0) at 
Objects/abstract.c:1860
#24 0x00074ad8 in slot_tp_call (self=0xf, args=0xaf9d70, kwds=0x0) at 
Objects/typeobject.c:4633
#25 0x00026448 in PyObject_Call (func=0xa8de30, arg=0xaf9d70, kw=0x0) at 
Objects/abstract.c:1860
#26 0x0009fe10 in PyEval_EvalFrameEx (f=0xa57fa8, throwflag=-4204804) at 
Python/ceval.c:3775
#27 0x000a3784 in PyEval_EvalCodeEx (co=0x2d46e0, globals=0x2d46e0, 
locals=0x1, args=0x138800, argcount=2,
     kws=0x9db4f8, kwcount=0, defs=0x0, defcount=0, closure=0x0) at 
Python/ceval.c:2831
#28 0x000f72ec in function_call (func=0x2dd730, arg=0x93c558, 
kw=0xb40e40) at Objects/funcobject.c:517
#29 0x00026448 in PyObject_Call (func=0x2dd730, arg=0x93c558, 
kw=0xb40e40) at Objects/abstract.c:1860
#30 0x0009f6f8 in PyEval_EvalFrameEx (f=0xa57e38, throwflag=0) at 
Python/ceval.c:3844
#31 0x000a3784 in PyEval_EvalCodeEx (co=0x2d4728, globals=0x2d4728, 
locals=0x1, args=0x138800, argcount=2,
     kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at 
Python/ceval.c:2831
#32 0x000f72ec in function_call (func=0x2dd770, arg=0x942c10, kw=0x0) at 
Objects/funcobject.c:517
#33 0x00026448 in PyObject_Call (func=0x2dd770, arg=0x942c10, kw=0x0) at 
Objects/abstract.c:1860
#34 0x00031310 in instancemethod_call (func=0x0, arg=0x942c10, kw=0x0) 
at Objects/classobject.c:2497
#35 0x00026448 in PyObject_Call (func=0x759a58, arg=0x7d6bd0, kw=0x0) at 
Objects/abstract.c:1860
#36 0x00074ad8 in slot_tp_call (self=0xc, args=0x7d6bd0, kwds=0x0) at 
Objects/typeobject.c:4633
#37 0x00026448 in PyObject_Call (func=0x7bea30, arg=0x7d6bd0, kw=0x0) at 
Objects/abstract.c:1860
#38 0x0009fe10 in PyEval_EvalFrameEx (f=0x96e7a8, throwflag=-4202332) at 
Python/ceval.c:3775
#39 0x000a2b58 in PyEval_EvalFrameEx (f=0x95e978, throwflag=-4201972) at 
Python/ceval.c:3650
#40 0x000a3784 in PyEval_EvalCodeEx (co=0x2a3068, globals=0x2a3068, 
locals=0x1, args=0x610880, argcount=3,
     kws=0x18, kwcount=0, defs=0x6779fc, defcount=5, closure=0x0) at 
Python/ceval.c:2831
#41 0x000a1804 in PyEval_EvalFrameEx (f=0x78e3f8, throwflag=-4201468) at 
Python/ceval.c:3659
#42 0x000a3784 in PyEval_EvalCodeEx (co=0x60b188, globals=0x60b188, 
locals=0x1, args=0x1a2100, argcount=0,
     kws=0x8, kwcount=0, defs=0x774c44, defcount=2, closure=0x0) at 
Python/ceval.c:2831
#43 0x000a1804 in PyEval_EvalFrameEx (f=0x6baa30, throwflag=-4200964) at 
Python/ceval.c:3659
#44 0x000a3784 in PyEval_EvalCodeEx (co=0x775ba8, globals=0x775ba8, 
locals=0x1, args=0x0, argcount=0,
     kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at 
Python/ceval.c:2831
#45 0x000a22e8 in PyEval_EvalFrameEx (f=0x804e78, throwflag=7822248) at 
Python/ceval.c:494
---Type <return> to continue, or q <return> to quit---
#46 0x000a3784 in PyEval_EvalCodeEx (co=0x4e5020, globals=0x4e5020, 
locals=0x1, args=0x138800, argcount=2,
     kws=0x804e44, kwcount=0, defs=0x0, defcount=0, closure=0x0) at 
Python/ceval.c:2831
#47 0x000a1804 in PyEval_EvalFrameEx (f=0x804cf0, throwflag=-4199956) at 
Python/ceval.c:3659
#48 0x000a3784 in PyEval_EvalCodeEx (co=0x4dcf50, globals=0x4dcf50, 
locals=0x1, args=0x2aa020, argcount=3,
     kws=0x10, kwcount=0, defs=0x58d424, defcount=2, closure=0x0) at 
Python/ceval.c:2831
#49 0x000a1804 in PyEval_EvalFrameEx (f=0x5d7aa0, throwflag=-4199452) at 
Python/ceval.c:3659
#50 0x000a2b58 in PyEval_EvalFrameEx (f=0x5e43c0, throwflag=-4199092) at 
Python/ceval.c:3650
#51 0x000a3784 in PyEval_EvalCodeEx (co=0x4dccc8, globals=0x4dccc8, 
locals=0x1, args=0x138800, argcount=2,
     kws=0x5df1f8, kwcount=0, defs=0x5901fc, defcount=1, closure=0x0) at 
Python/ceval.c:2831
#52 0x000a1804 in PyEval_EvalFrameEx (f=0x5df0b0, throwflag=-4198588) at 
Python/ceval.c:3659
#53 0x000a3784 in PyEval_EvalCodeEx (co=0x4dcbf0, globals=0x4dcbf0, 
locals=0x1, args=0x138800, argcount=2,
     kws=0x37c9fc, kwcount=0, defs=0x5901dc, defcount=1, closure=0x0) at 
Python/ceval.c:2831
#54 0x000a1804 in PyEval_EvalFrameEx (f=0x37c8b0, throwflag=-4198084) at 
Python/ceval.c:3659
#55 0x000a3784 in PyEval_EvalCodeEx (co=0x448410, globals=0x448410, 
locals=0x1, args=0x13796c, argcount=1,
     kws=0xc, kwcount=0, defs=0x358b04, defcount=2, closure=0x0) at 
Python/ceval.c:2831
#56 0x000a1804 in PyEval_EvalFrameEx (f=0x5d7338, throwflag=-4197580) at 
Python/ceval.c:3659
#57 0x000a3784 in PyEval_EvalCodeEx (co=0x428d10, globals=0x428d10, 
locals=0x1, args=0x13796c, argcount=0,
     kws=0x4, kwcount=0, defs=0x43d87c, defcount=1, closure=0x0) at 
Python/ceval.c:2831
#58 0x000a1804 in PyEval_EvalFrameEx (f=0x216480, throwflag=-4197076) at 
Python/ceval.c:3659
#59 0x000a3784 in PyEval_EvalCodeEx (co=0x1d1578, globals=0x1d1578, 
locals=0x1, args=0x0, argcount=0,
     kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at 
Python/ceval.c:2831
#60 0x000a3918 in PyEval_EvalCode (co=0x1d1578, globals=0x176d20, 
locals=0x176d20) at Python/ceval.c:494
#61 0x000c8c6c in PyRun_FileExFlags (fp=0x0, filename=0xffbffa52 
"/usr/local/bin/ipython", start=-4,
     globals=0x176d20, locals=0x176d20, closeit=1, flags=0xffbff814) at 
Python/pythonrun.c:1271
#62 0x000c9ba8 in PyRun_SimpleFileExFlags (fp=0x15c4e8, 
filename=0xffbffa52 "/usr/local/bin/ipython",
     closeit=1, flags=0xffbff814) at Python/pythonrun.c:877
#63 0x0001de58 in Py_Main (argc=2, argv=0x0) at Modules/main.c:523
#64 0x0001d440 in _start ()




More information about the SciPy-User mailing list