[Numpy-discussion] numpy revision 3056 will not build on RHE3 or Solaris

Christopher Hanley chanley at stsci.edu
Thu Aug 24 07:57:12 CDT 2006


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




More information about the Numpy-discussion mailing list