Dear All,
I have requested out IT manager to install graph-tool on our local cluster
(based on RedHat).
He changed the "configure" link to point to the corresponding directories,
and the "configure" operation seemed to completed successfully.
However, the make operation failed with the corresponding message:
In file included from ./../graph_python_interface.hh:48:0,
from graph_motifs.cc:26:
./../numpy_bind.hh: In function ‘boost::python::api::object
wrap_vector_owned(const std::vector<_RealType>&)’:
./../numpy_bind.hh:83:34: error: ‘NPY_ARRAY_ALIGNED’ was not declared in
this scope
PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS
^
./../numpy_bind.hh:83:54: error: ‘NPY_ARRAY_C_CONTIGUOUS’ was not declared
in this scope
PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS
^
./../numpy_bind.hh:84:25: error: ‘NPY_ARRAY_OWNDATA’ was not declared in
this scope
NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE);
^
./../numpy_bind.hh:84:45: error: ‘NPY_ARRAY_WRITEABLE’ was not declared in
this scope
NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE);
^
./../numpy_bind.hh:84: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]
NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE);
^
./../numpy_bind.hh:84: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<_RealType>&)’:
./../numpy_bind.hh:101:33: error: ‘NPY_ARRAY_ALIGNED’ was not declared in
this scope
PyArray_ENABLEFLAGS(ndarray,NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS
^
./../numpy_bind.hh:101:53: error: ‘NPY_ARRAY_C_CONTIGUOUS’ was not declared
in this scope
PyArray_ENABLEFLAGS(ndarray,NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS
^
./../numpy_bind.hh:102:25: error: ‘NPY_ARRAY_WRITEABLE’ was not declared in
this scope
NPY_ARRAY_WRITEABLE);
^
./../numpy_bind.hh:102: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]
NPY_ARRAY_WRITEABLE);
^
./../numpy_bind.hh: In function ‘boost::python::api::object
wrap_multi_array_owned(const boost::multi_array<ValueType, Dim>&)’:
./../numpy_bind.hh:122:34: error: ‘NPY_ARRAY_ALIGNED’ was not declared in
this scope
PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS
^
./../numpy_bind.hh:122:54: error: ‘NPY_ARRAY_C_CONTIGUOUS’ was not declared
in this scope
PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS
^
./../numpy_bind.hh:123:25: error: ‘NPY_ARRAY_OWNDATA’ was not declared in
this scope
NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE);
^
./../numpy_bind.hh:123:45: error: ‘NPY_ARRAY_WRITEABLE’ was not declared in
this scope
NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE);
^
./../numpy_bind.hh:123: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]
NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE);
^
./../numpy_bind.hh: In function ‘boost::python::api::object
wrap_multi_array_not_owned(boost::multi_array<ValueType, Dim>&)’:
./../numpy_bind.hh:137:34: error: ‘NPY_ARRAY_ALIGNED’ was not declared in
this scope
PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS
^
./../numpy_bind.hh:137:54: error: ‘NPY_ARRAY_C_CONTIGUOUS’ was not declared
in this scope
PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS
^
./../numpy_bind.hh:138:25: error: ‘NPY_ARRAY_WRITEABLE’ was not declared in
this scope
NPY_ARRAY_WRITEABLE);
^
./../numpy_bind.hh:138: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]
NPY_ARRAY_WRITEABLE);
^
make[4]: *** [graph_motifs.lo] Error 1
make[4]: Leaving directory `/usr/local/graph-tool-2.19/src/graph/clustering'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/graph-tool-2.19/src/graph'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/graph-tool-2.19/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/graph-tool-2.19'
make: *** [all] Error 2
Any idea how to resolve this?