Description
Original ticket http://projects.scipy.org/numpy/ticket/1337 on 2009-12-18 by trac user mayzel, assigned to unknown.
I've got the following errors after manual installation of numpy-1.4.0rc1
/home/nmr5/local/lib/python2.6/site-packages/numpy/core/include/numpy/npy_common.h:120:2: #error npy_cdouble definition is not compatible with C99 complex definition ! Please contact Numpy maintainers and give detailed information about your compiler and platform
/home/nmr5/local/lib/python2.6/site-packages/numpy/core/include/numpy/npy_common.h:127:2: #error npy_cfloat definition is not compatible with C99 complex definition ! Please contact Numpy maintainers and give detailed information about your compiler and platform
/home/nmr5/local/lib/python2.6/site-packages/numpy/core/include/numpy/npy_common.h:134:2: #error npy_clongdouble definition is not compatible with C99 complex definition ! Please contact Numpy maintainers and give detailed information about your compiler and platform
In file included from /home/nmr5/local/lib/python2.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:1258,
from /home/nmr5/local/lib/python2.6/site-packages/numpy/core/include/numpy/arrayobject.h:14,
from cov.c:144:
/home/nmr5/local/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h: In function _import_array': /home/nmr5/local/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:1202: error:
NPY_ABI_VERSION' undeclared (first use in this function)
/home/nmr5/local/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:1202: error: (Each undeclared identifier is reported only once
/home/nmr5/local/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:1202: error: for each function it appears in.)
/home/nmr5/local/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:1208: error: `NPY_API_VERSION' undeclared (first use in this function
Python version and numpy configuration are:
Python 2.6.4 (r264:75706, Dec 14 2009, 16:29:30)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import numpy
numpy.show_config()
atlas_threads_info:
libraries = ['lapack', 'clapack', 'f77blas', 'cblas', 'atlas']
library_dirs = ['/home/nmr5/local/lib/']
language = f77
include_dirs = ['/home/nmr5/local/include']
blas_opt_info:
libraries = ['clapack', 'f77blas', 'cblas', 'atlas']
library_dirs = ['/home/nmr5/local/lib/']
define_macros = [('ATLAS_INFO', '""3.9.19""')]
language = c
include_dirs = ['/home/nmr5/local/include']
atlas_blas_threads_info:
libraries = ['clapack', 'f77blas', 'cblas', 'atlas']
library_dirs = ['/home/nmr5/local/lib/']
language = c
include_dirs = ['/home/nmr5/local/include']
lapack_opt_info:
libraries = ['lapack', 'clapack', 'f77blas', 'cblas', 'atlas']
library_dirs = ['/home/nmr5/local/lib/']
define_macros = [('ATLAS_INFO', '""3.9.19""')]
language = f77
include_dirs = ['/home/nmr5/local/include']
lapack_mkl_info:
NOT AVAILABLE
blas_mkl_info:
NOT AVAILABLE
mkl_info:
NOT AVAILABLE
gcc is
nmr5@gly.nmr.gu.se:/home/nmr5/sampler> gcc -v
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-8)
I'm using CentOS release 4.5 (Final) on cluster with
Linux version 2.6.9-55.ELsmp (mockbuild@builder6.centos.org) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-8)) #1 SMP Wed May 2 14:04:42 EDT 2007