make (--enable-openmp) problem error1, error2

Hello, i am trying to compile graph-tool for parallel mode and getting this
error, while doing $make. Can you help me?

make all-recursive
make[1]: Entering directory `/home/smith/local/graph-tool-2.2.25'
Making all in src
make[2]: Entering directory `/home/smith/local/graph-tool-2.2.25/src'
Making all in graph
make[3]: Entering directory `/home/smith/local/graph-tool-2.2.25/src/graph'
Making all in centrality
make[4]: Entering directory
`/home/smith/local/graph-tool-2.2.25/src/graph/centrality'
  CXX graph_closeness.lo
In file included from graph_closeness.hh:29:0,
                 from graph_closeness.cc:23:
./../numpy_bind.hh: In function ‘boost::python::api::object
wrap_vector_owned(std::vector<ValueType>&)’:
./../numpy_bind.hh:78:34: error: ‘NPY_ARRAY_ALIGNED’ was not declared in
this scope
./../numpy_bind.hh:78:54: error: ‘NPY_ARRAY_C_CONTIGUOUS’ was not declared
in this scope
./../numpy_bind.hh:79:25: error: ‘NPY_ARRAY_OWNDATA’ was not declared in
this scope
./../numpy_bind.hh:79:45: error: ‘NPY_ARRAY_WRITEABLE’ was not declared in
this scope
./../numpy_bind.hh:79:64: error: there are no arguments to
‘PyArray_ENABLEFLAGS’ that depend on a template parameter, so a declaration
of ‘PyArray_ENABLEFLAGS’ must be available [-fpermissive]
./../numpy_bind.hh:79:64: note: (if you use ‘-fpermissive’, G++ will accept
your code, but allowing the use of an undeclared name is deprecated)
./../numpy_bind.hh: In function ‘boost::python::api::object
wrap_vector_not_owned(std::vector<ValueType>&)’:
./../numpy_bind.hh:96:33: error: ‘NPY_ARRAY_ALIGNED’ was not declared in
this scope
./../numpy_bind.hh:96:53: error: ‘NPY_ARRAY_C_CONTIGUOUS’ was not declared
in this scope
./../numpy_bind.hh:97:25: error: ‘NPY_ARRAY_WRITEABLE’ was not declared in
this scope
./../numpy_bind.hh:97:44: error: there are no arguments to
‘PyArray_ENABLEFLAGS’ that depend on a template parameter, so a declaration
of ‘PyArray_ENABLEFLAGS’ must be available [-fpermissive]
./../numpy_bind.hh: In function ‘boost::python::api::object
wrap_multi_array_owned(boost::multi_array<ValueType, Dim>&)’:
./../numpy_bind.hh:116:34: error: ‘NPY_ARRAY_ALIGNED’ was not declared in
this scope
./../numpy_bind.hh:116:54: error: ‘NPY_ARRAY_C_CONTIGUOUS’ was not declared
in this scope
./../numpy_bind.hh:117:25: error: ‘NPY_ARRAY_OWNDATA’ was not declared in
this scope
./../numpy_bind.hh:117:45: error: ‘NPY_ARRAY_WRITEABLE’ was not declared in
this scope
./../numpy_bind.hh:117:64: error: there are no arguments to
‘PyArray_ENABLEFLAGS’ that depend on a template parameter, so a declaration
of ‘PyArray_ENABLEFLAGS’ must be available [-fpermissive]
./../numpy_bind.hh: In function ‘boost::python::api::object
wrap_multi_array_not_owned(boost::multi_array<ValueType, Dim>&)’:
./../numpy_bind.hh:130:34: error: ‘NPY_ARRAY_ALIGNED’ was not declared in
this scope
./../numpy_bind.hh:130:54: error: ‘NPY_ARRAY_C_CONTIGUOUS’ was not declared
in this scope
./../numpy_bind.hh:131:25: error: ‘NPY_ARRAY_WRITEABLE’ was not declared in
this scope
./../numpy_bind.hh:131:44: error: there are no arguments to
‘PyArray_ENABLEFLAGS’ that depend on a template parameter, so a declaration
of ‘PyArray_ENABLEFLAGS’ must be available [-fpermissive]
./../numpy_bind.hh: In function ‘boost::multi_array_ref<ValueType, dim>
get_array(boost::python::api::object)’:
./../numpy_bind.hh:173:30: error: ‘NPY_ARRAY_C_CONTIGUOUS’ was not declared
in this scope
At global scope:
cc1plus: warning: unrecognized command line option
"-Wno-unused-local-typedefs" [enabled by default]
make[4]: *** [graph_closeness.lo] Error 1
make[4]: Leaving directory
`/home/smith/local/graph-tool-2.2.25/src/graph/centrality'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/smith/local/graph-tool-2.2.25/src/graph'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/smith/local/graph-tool-2.2.25/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/smith/local/graph-tool-2.2.25'
make: *** [all] Error 2

attachment.html (4.64 KB)

I don't think this has anything to do with OpenMP. What operating system
are you using, and what numpy version do you have installed?

Cheers,
Tiago

it's ubuntu 12.04 and NumPy 1.6

attachment.html (902 Bytes)

update, i fixed that problem by updating NumPy to 1.7.1

attachment.html (926 Bytes)