[NumPy-Tickets] [NumPy] #1371: compilation fails on non-Intel CPUs

NumPy Trac numpy-tickets@scipy....
Fri Jan 22 13:14:43 CST 2010


#1371: compilation fails on non-Intel CPUs
------------------------+---------------------------------------------------
 Reporter:  tanner      |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:          
Component:  numpy.core  |     Version:  1.4.0   
 Keywords:              |  
------------------------+---------------------------------------------------
 Numpy 1.4 fails to compile on non-Intel architectures (here ARM on
 Maemo/Nokia N900):

 compile options: '-Inumpy/core/include
 -I/home/tanner/tmp/numpy-1.4.0/./build/src.linux-
 armv5tel-2.5/numpy/core/include/numpy -Inumpy/core/src/private
 -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath
 -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include
 -I/usr/include/python2.5 -I/home/tanner/tmp/numpy-1.4.0/build/src.linux-
 armv5tel-2.5/numpy/core/src/multiarray
 -I/home/tanner/tmp/numpy-1.4.0/build/src.linux-
 armv5tel-2.5/numpy/core/src/umath -c'
 gcc: numpy/core/src/multiarray/multiarraymodule_onefile.c
 In file included from
 numpy/core/src/multiarray/multiarraymodule_onefile.c:11:
 numpy/core/src/multiarray/scalartypes.c.src: In function
 'voidtype_setfield':
 numpy/core/src/multiarray/scalartypes.c.src:1208: warning: implicit
 declaration of function 'NPY_COPY_PYOBJECT_PTR'

 NPY_COPY_PYOBJECT_PTR is not defined because NPY_SIZEOF_PY_INTPTR_T was
 not defined before including numpy/core/include/numpy/npy_cpu.h

 my patch fixes the includes and triggers an error if
 NPY_SIZEOF_PY_INTPTR_T
 is not defined. with this I get

 compile options: '-Inumpy/core/include
 -I/home/tanner/tmp/numpy-1.4.0/./build/src.linux-
 armv5tel-2.5/numpy/core/include/numpy -Inumpy/core/src/private
 -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath
 -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include
 -I/usr/include/python2.5 -I/home/tanner/tmp/numpy-1.4.0/build/src.linux-
 armv5tel-2.5/numpy/core/src/multiarray
 -I/home/tanner/tmp/numpy-1.4.0/build/src.linux-
 armv5tel-2.5/numpy/core/src/umath -c'
 gcc: /home/tanner/tmp/numpy-1.4.0/build/src.linux-
 armv5tel-2.5/numpy/core/src/npymath/npy_math_complex.c
 gcc: /home/tanner/tmp/numpy-1.4.0/build/src.linux-
 armv5tel-2.5/numpy/core/src/npymath/npy_math.c
 In file included from numpy/core/src/private/npy_fpmath.h:7,
                  from numpy/core/src/npymath/npy_math_private.h:25,
                  from numpy/core/src/npymath/npy_math.c.src:56:
 numpy/core/include/numpy/npy_cpu.h:99:3: error: #error Unknown CPU

 which my patch to numpy/core/src/private/npy_fpmath.h fixes.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1371>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list