← Back to team overview

dolfin team mailing list archive

numpy + build problem

 

hi all of you

just made a pull for dorsal + all packages and get the following:


In file included from /scratch/priesen/FEniCS/build/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:68, from /scratch/priesen/FEniCS/build/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h:14,
                 from dolfin/swig/cpp_wrap.cc:3519:
/scratch/priesen/FEniCS/build/lib/python2.5/site-packages/numpy/core/include/numpy/npy_common.h:120:2: error: #error npy_cdouble definition is not compatible with C99 complex definition ! Please contact Numpy maintainers and give detailed information about your compiler and platform /scratch/priesen/FEniCS/build/lib/python2.5/site-packages/numpy/core/include/numpy/npy_common.h:127:2: error: #error npy_cfloat definition is not compatible with C99 complex definition ! Please contact Numpy maintainers and give detailed information about your compiler and platform /scratch/priesen/FEniCS/build/lib/python2.5/site-packages/numpy/core/include/numpy/npy_common.h:134:2: error: #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 /scratch/priesen/FEniCS/build/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1258, from /scratch/priesen/FEniCS/build/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h:14,
                 from dolfin/swig/cpp_wrap.cc:3519:
/scratch/priesen/FEniCS/build/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h: In function 'int _import_array()': /scratch/priesen/FEniCS/build/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:1202: error: 'NPY_ABI_VERSION' was not declared in this scope /scratch/priesen/FEniCS/build/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:1208: error: 'NPY_API_VERSION' was not declared in this scope
scons: *** [dolfin/swig/cpp_wrap.os] Error 1
scons: building terminated because of errors.

In dorsal numpy1.4 is used, do you all use the same?

This problem only occurs on my optimized installation, i.e. where I compile Dolfin with -03. I have another installation with debugging enabled and the problem does not occur there.

somebody has seen this before? a hint on how to fix it?

thank you and best regards,

patrick




Follow ups