From: Christopher H. <ch...@st...> - 2006-08-24 12:57:32
|
Good Morning, Numpy revision 3056 will not build on either Red Hat Enterprise 3 or Solaris 8. The relevant syntax errors are below: For RHE3: --------- creating build/temp.linux-i686-2.4 creating build/temp.linux-i686-2.4/numpy creating build/temp.linux-i686-2.4/numpy/core creating build/temp.linux-i686-2.4/numpy/core/src compile options: '-Ibuild/src.linux-i686-2.4/numpy/core/src -Inumpy/core/include -Ibuild/src.linux-i686-2.4/numpy/core -Inumpy/core/src -Inumpy/core/include -I/usr/stsci/pyssgdev/Python-2.4.2/include/python2.4 -c' gcc: numpy/core/src/multiarraymodule.c In file included from numpy/core/include/numpy/arrayobject.h:19, from numpy/core/src/multiarraymodule.c:25: numpy/core/include/numpy/npy_interrupt.h:95: syntax error before "_NPY_SIGINT_BUF" numpy/core/include/numpy/npy_interrupt.h:95: warning: type defaults to `int' in declaration of `_NPY_SIGINT_BUF' numpy/core/include/numpy/npy_interrupt.h:95: warning: data definition has no type or storage class numpy/core/include/numpy/npy_interrupt.h: In function `_npy_sighandler': numpy/core/include/numpy/npy_interrupt.h:100: `SIG_IGN' undeclared (first use in this function) numpy/core/include/numpy/npy_interrupt.h:100: (Each undeclared identifier is reported only once numpy/core/include/numpy/npy_interrupt.h:100: for each function it appears in.) numpy/core/include/numpy/npy_interrupt.h:101: warning: implicit declaration of function `longjmp' numpy/core/src/multiarraymodule.c: In function `test_interrupt': numpy/core/src/multiarraymodule.c:6441: `SIGINT' undeclared (first use in this function) numpy/core/src/multiarraymodule.c:6441: warning: implicit declaration of function `setjmp' In file included from numpy/core/include/numpy/arrayobject.h:19, from numpy/core/src/multiarraymodule.c:25: numpy/core/include/numpy/npy_interrupt.h:95: syntax error before "_NPY_SIGINT_BUF" numpy/core/include/numpy/npy_interrupt.h:95: warning: type defaults to `int' in declaration of `_NPY_SIGINT_BUF' numpy/core/include/numpy/npy_interrupt.h:95: warning: data definition has no type or storage class numpy/core/include/numpy/npy_interrupt.h: In function `_npy_sighandler': numpy/core/include/numpy/npy_interrupt.h:100: `SIG_IGN' undeclared (first use in this function) numpy/core/include/numpy/npy_interrupt.h:100: (Each undeclared identifier is reported only once numpy/core/include/numpy/npy_interrupt.h:100: for each function it appears in.) numpy/core/include/numpy/npy_interrupt.h:101: warning: implicit declaration of function `longjmp' numpy/core/src/multiarraymodule.c: In function `test_interrupt': numpy/core/src/multiarraymodule.c:6441: `SIGINT' undeclared (first use in this function) numpy/core/src/multiarraymodule.c:6441: warning: implicit declaration of function `setjmp' error: Command "gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/src.linux-i686-2.4/numpy/core/src -Inumpy/core/include -Ibuild/src.linux-i686-2.4/numpy/core -Inumpy/core/src -Inumpy/core/include -I/usr/stsci/pyssgdev/Python-2.4.2/include/python2.4 -c numpy/core/src/multiarraymodule.c -o build/temp.linux-i686-2.4/numpy/core/src/multiarraymodule.o" failed with exit status 1 For Solaris 8: -------------- creating build/temp.solaris-2.8-sun4u-2.4 creating build/temp.solaris-2.8-sun4u-2.4/numpy creating build/temp.solaris-2.8-sun4u-2.4/numpy/core creating build/temp.solaris-2.8-sun4u-2.4/numpy/core/src compile options: '-Ibuild/src.solaris-2.8-sun4u-2.4/numpy/core/src -Inumpy/core/include -Ibuild/src.solaris-2.8-sun4u-2.4/numpy/core -Inumpy/core/src -Inumpy/core/include -I/usr/ra/pyssg/Python-2.4.2/include/python2.4 -c' cc: numpy/core/src/multiarraymodule.c "numpy/core/include/numpy/npy_interrupt.h", line 95: warning: old-style declaration or incorrect type for: jmp_buf "numpy/core/include/numpy/npy_interrupt.h", line 95: syntax error before or at: _NPY_SIGINT_BUF "numpy/core/include/numpy/npy_interrupt.h", line 95: warning: old-style declaration or incorrect type for: _NPY_SIGINT_BUF "numpy/core/include/numpy/npy_interrupt.h", line 100: undefined symbol: SIG_IGN "numpy/core/include/numpy/npy_interrupt.h", line 100: warning: improper pointer/integer combination: arg #2 "numpy/core/src/scalartypes.inc.src", line 70: warning: statement not reached "numpy/core/src/arraytypes.inc.src", line 1045: warning: pointer to void or function used in arithmetic "numpy/core/src/arraytypes.inc.src", line 1045: warning: pointer to void or function used in arithmetic "numpy/core/src/arraytypes.inc.src", line 1045: warning: pointer to void or function used in arithmetic "numpy/core/src/arrayobject.c", line 4338: warning: assignment type mismatch: pointer to function(pointer to void, pointer to void, int, int) returning int "=" pointer to void "numpy/core/src/arrayobject.c", line 4444: warning: argument #4 is incompatible with prototype: prototype: pointer to void : "numpy/core/src/arrayobject.c", line 4326 argument : pointer to function(pointer to unsigned long, pointer to unsigned long, int, int) returning int "numpy/core/src/arrayobject.c", line 4448: warning: argument #4 is incompatible with prototype: prototype: pointer to void : "numpy/core/src/arrayobject.c", line 4326 argument : pointer to function(pointer to char, pointer to char, int, int) returning int "numpy/core/src/arrayobject.c", line 5313: warning: assignment type mismatch: pointer to function(pointer to struct PyArrayObject {int ob_refcnt, pointer to struct _typeobject {..} ob_type, pointer to char data, int nd, pointer to int dimensions, pointer to int strides, pointer to struct _object {..} base, pointer to struct {..} descr, int flags, pointer to struct _object {..} weakreflist}, pointer to struct _object {int ob_refcnt, pointer to struct _typeobject {..} ob_type}) returning int "=" pointer to void "numpy/core/src/arrayobject.c", line 7280: warning: assignment type mismatch: pointer to function(pointer to void, pointer to void, int, pointer to void, pointer to void) returning void "=" pointer to void "numpy/core/src/multiarraymodule.c", line 6441: undefined symbol: SIGINT cc: acomp failed for numpy/core/src/multiarraymodule.c "numpy/core/include/numpy/npy_interrupt.h", line 95: warning: old-style declaration or incorrect type for: jmp_buf "numpy/core/include/numpy/npy_interrupt.h", line 95: syntax error before or at: _NPY_SIGINT_BUF "numpy/core/include/numpy/npy_interrupt.h", line 95: warning: old-style declaration or incorrect type for: _NPY_SIGINT_BUF "numpy/core/include/numpy/npy_interrupt.h", line 100: undefined symbol: SIG_IGN "numpy/core/include/numpy/npy_interrupt.h", line 100: warning: improper pointer/integer combination: arg #2 "numpy/core/src/scalartypes.inc.src", line 70: warning: statement not reached "numpy/core/src/arraytypes.inc.src", line 1045: warning: pointer to void or function used in arithmetic "numpy/core/src/arraytypes.inc.src", line 1045: warning: pointer to void or function used in arithmetic "numpy/core/src/arraytypes.inc.src", line 1045: warning: pointer to void or function used in arithmetic "numpy/core/src/arrayobject.c", line 4338: warning: assignment type mismatch: pointer to function(pointer to void, pointer to void, int, int) returning int "=" pointer to void "numpy/core/src/arrayobject.c", line 4444: warning: argument #4 is incompatible with prototype: prototype: pointer to void : "numpy/core/src/arrayobject.c", line 4326 argument : pointer to function(pointer to unsigned long, pointer to unsigned long, int, int) returning int "numpy/core/src/arrayobject.c", line 4448: warning: argument #4 is incompatible with prototype: prototype: pointer to void : "numpy/core/src/arrayobject.c", line 4326 argument : pointer to function(pointer to char, pointer to char, int, int) returning int "numpy/core/src/arrayobject.c", line 5313: warning: assignment type mismatch: pointer to function(pointer to struct PyArrayObject {int ob_refcnt, pointer to struct _typeobject {..} ob_type, pointer to char data, int nd, pointer to int dimensions, pointer to int strides, pointer to struct _object {..} base, pointer to struct {..} descr, int flags, pointer to struct _object {..} weakreflist}, pointer to struct _object {int ob_refcnt, pointer to struct _typeobject {..} ob_type}) returning int "=" pointer to void "numpy/core/src/arrayobject.c", line 7280: warning: assignment type mismatch: pointer to function(pointer to void, pointer to void, int, pointer to void, pointer to void) returning void "=" pointer to void "numpy/core/src/multiarraymodule.c", line 6441: undefined symbol: SIGINT cc: acomp failed for numpy/core/src/multiarraymodule.c error: Command "/opt/SUNWspro-6u2/bin/cc -DNDEBUG -O -Ibuild/src.solaris-2.8-sun4u-2.4/numpy/core/src -Inumpy/core/include -Ibuild/src.solaris-2.8-sun4u-2.4/numpy/core -Inumpy/core/src -Inumpy/core/include -I/usr/ra/pyssg/Python-2.4.2/include/python2.4 -c numpy/core/src/multiarraymodule.c -o build/temp.solaris-2.8-sun4u-2.4/numpy/core/src/multiarraymodule.o" failed with exit status 2 Chris |
From: Travis O. <oli...@ie...> - 2006-08-24 16:24:03
|
Christopher Hanley wrote: > Good Morning, > > Numpy revision 3056 will not build on either Red Hat Enterprise 3 or > Solaris 8. The relevant syntax errors are below: > > I'd like to see which platforms do not work with the npy_interrupt.h stuff. If you have a unique platform please try the latest SVN. There is a NPY_NO_SIGNAL define that will "turn off" support for interrupts which we can define on platforms that won't work. -Travis |
From: Darren D. <dd...@co...> - 2006-08-24 16:36:24
|
Hi Travis, On Thursday 24 August 2006 12:24, you wrote: > Christopher Hanley wrote: > > Good Morning, > > > > Numpy revision 3056 will not build on either Red Hat Enterprise 3 or > > Solaris 8. The relevant syntax errors are below: > > I'd like to see which platforms do not work with the npy_interrupt.h > stuff. If you have a unique platform please try the latest SVN. I am able to build on an amd64/gentoo with python 2.4.3 and gcc-4.1.1. I am not able to build on 32bit RHEL4: --------------------------------- In file included from numpy/core/include/numpy/arrayobject.h:19, from numpy/core/src/multiarraymodule.c:25: numpy/core/include/numpy/npy_interrupt.h: In function `_npy_sighandler': numpy/core/include/numpy/npy_interrupt.h:102: error: `SIG_IGN' undeclared (first use in this function) numpy/core/include/numpy/npy_interrupt.h:102: error: (Each undeclared identifier is reported only once numpy/core/include/numpy/npy_interrupt.h:102: error: for each function it appears in.) numpy/core/src/multiarraymodule.c: In function `test_interrupt': numpy/core/src/multiarraymodule.c:6439: error: `SIGINT' undeclared (first use in this function) In file included from numpy/core/include/numpy/arrayobject.h:19, from numpy/core/src/multiarraymodule.c:25: numpy/core/include/numpy/npy_interrupt.h: In function `_npy_sighandler': numpy/core/include/numpy/npy_interrupt.h:102: error: `SIG_IGN' undeclared (first use in this function) numpy/core/include/numpy/npy_interrupt.h:102: error: (Each undeclared identifier is reported only once numpy/core/include/numpy/npy_interrupt.h:102: error: for each function it appears in.) numpy/core/src/multiarraymodule.c: In function `test_interrupt': numpy/core/src/multiarraymodule.c:6439: error: `SIGINT' undeclared (first use in this function) error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -fPIC -fPIC -Ibuild/src.linux-i686-2.3/numpy/core/src -Inumpy/core/include -Ibuild/src.linux-i686-2.3/numpy/core -Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.3 -c numpy/core/src/multiarraymodule.c -o build/temp.linux-i686-2.3/numpy/core/src/multiarraymodule.o" failed with exit status 1 |
From: Travis O. <oli...@ie...> - 2006-08-24 17:14:30
|
Travis Oliphant wrote: > Christopher Hanley wrote: > >> Good Morning, >> >> Numpy revision 3056 will not build on either Red Hat Enterprise 3 or >> Solaris 8. The relevant syntax errors are below: >> >> >> > I'd like to see which platforms do not work with the npy_interrupt.h > stuff. If you have a unique platform please try the latest SVN. > > There is a NPY_NO_SIGNAL define that will "turn off" support for > interrupts which we can define on platforms that won't work. > > In particular, if the signal handling works on your platform, then numpy.core.multiarray.test_interrupt() should be interruptable. Otherwise, it will continue until the incrementing counter becomes negative which on my system takes about 10 seconds -Travis |
From: Christopher H. <ch...@st...> - 2006-08-24 17:33:07
|
Travis, Numpy version '1.0b4.dev3060' will now build on both a 32bit Red Hat Enterprise 3 machine as well as Solaris 8. Chris |