./../graph_util.hh:447: error: expected '>'

Hi

-bash-4.1$ make
make all-recursive
make[1]: Entering directory ` /home/peroksid/graph-tool-2.2.27 '
Making all in src
make[2]: Entering directory `/home/peroksid/graph-tool-2.2.27/src'
Making all in graph
make[3]: Entering directory `/home/peroksid/graph-tool-2.2.27/src/graph'
Making all in centrality
make[4]: Entering directory
`/home/peroksid/graph-tool-2.2.27/src/graph/centrality'
CXX graph_betweenness.lo
In file included from ./../graph_filtering.hh:54,
from graph_betweenness.cc:18:
./../graph_util.hh:447: error: expected type-specifier
./../graph_util.hh:447: error: expected '>'
In file included from
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/functional:70,
from
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/memory:70,
from /opt/boost_1_54_0_icc/boost/config/no_tr1/memory.hpp:21,
from /opt/boost_1_54_0_icc/boost/get_pointer.hpp:14,
from /opt/boost_1_54_0_icc/boost/python/object/pointer_holder.hpp:11,
from /opt/boost_1_54_0_icc/boost/python/to_python_indirect.hpp:10,
from /opt/boost_1_54_0_icc/boost/python/converter/arg_to_python.hpp:10,
from /opt/boost_1_54_0_icc/boost/python/call.hpp:15,
from /opt/boost_1_54_0_icc/boost/python/object_core.hpp:14,
from /opt/boost_1_54_0_icc/boost/python/object.hpp:9,
from ./../graph.hh:23,
from ./../graph_filtering.hh:21,
from graph_betweenness.cc:18:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/tr1_impl/functional:
In instantiation of 'std::_Maybe_wrap_member_pointer<void>':
graph_betweenness.cc:157: instantiated from here
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/tr1_impl/functional:1094:
error: forming reference to void
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/tr1_impl/functional:
In instantiation of 'std::_Result_of_impl<false, const volatile
get_central_point_dominance(boost::adj_list<long unsigned int>&,
boost::unchecked_vector_property_map<unsigned char,
boost::typed_identity_property_map<long unsigned int> >&, double&)>':
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/tr1_impl/functional:149:
instantiated from 'std::result_of<const volatile
get_central_point_dominance(boost::adj_list<long unsigned int>&,
boost::unchecked_vector_property_map<unsigned char,
boost::typed_identity_property_map<long unsigned int> >&, double&)>'
./../graph_filtering.hh:565: instantiated from 'void
graph_tool::detail::action_wrap<Action, Wrap>::operator()(T1*, T2&) const
[with T1 = boost::adj_list<long unsigned int>, T2 =
boost::checked_vector_property_map<unsigned char,
boost::typed_identity_property_map<long unsigned int> >, Action =
std::_Bind<get_central_point_dominance(std::_Placeholder<1>,
std::_Placeholder<2>, std::reference_wrapper<double>)>, Wrap =
mpl_::bool_<false>]'
./../mpl_nested_loop.hh:273: instantiated from 'void
boost::mpl::selected_types<Action>::operator()(T1, T2) const [with T1 =
boost::adj_list<long unsigned int>*, T2 =
boost::checked_vector_property_map<unsigned char,
boost::typed_identity_property_map<long unsigned int> >, Action =
graph_tool::detail::action_wrap<std::_Bind<get_central_point_dominance(std::_Placeholder<1>,
std::_Placeholder<2>, std::reference_wrapper<double>)>, mpl_::bool_<false>

]'

./../mpl_nested_loop.hh:160: instantiated from 'void
boost::mpl::nested_for_each<TR1, TR2, TR3, TR4, TR5>::eval_action2<Action,
T1>::operator()(T2) const [with T2 =
boost::checked_vector_property_map<unsigned char,
boost::typed_identity_property_map<long unsigned int> >, Action =
boost::mpl::selected_types<graph_tool::detail::action_wrap<std::_Bind<get_central_point_dominance(std::_Placeholder<1>,
std::_Placeholder<2>, std::reference_wrapper<double>)>, mpl_::bool_<false>

>, T1 = boost::adj_list<long unsigned int>*, TR1 =

graph_tool::detail::graph_action<std::_Bind<get_central_point_dominance(std::_Placeholder<1>,
std::_Placeholder<2>, std::reference_wrapper<double>)>,
graph_tool::detail::never_reversed, mpl_::bool_<false>,
boost::mpl::v_item<boost::typed_identity_property_map<long unsigned int>,
boost::mpl::v_item<boost::checked_vector_property_map<long double,
boost::typed_identity_property_map<long unsigned int> >,
boost::mpl::v_item<boost::checked_vector_property_map<double,
boost::typed_identity_property_map<long unsigned int> >,
boost::mpl::v_item<boost::checked_vector_property_map<long int,
boost::typed_identity_property_map<long unsigned int> >,
boost::mpl::v_item<boost::checked_vector_property_map<int,
boost::typed_identity_property_map<long unsigned int> >,
boost::mpl::v_item<boost::checked_vector_property_map<short int,
boost::typed_identity_property_map<long unsigned int> >,
boost::mpl::v_item<boost::checked_vector_property_map<unsigned char,

  infinity strings like this:

::na>, boost::mpl::vector<mpl_::na, mpl_::na,....::na>,
boost::mpl::vector<mpl_::na, mpl_::na,

At the end:

<unsigned char, boost::typed_identity_property_map<long unsigned int> > > >

, boost::unchecked_vector_property_map<long double,

boost::adj_edge_index_property_map<long unsigned int> >,
boost::unchecked_vector_property_map<long double,
boost::typed_identity_property_map<long unsigned int> >, _Result = void,
_Functor = get_betweenness, _Bound_args = std::_Placeholder<1>,
boost::typed_identity_property_map<long unsigned int>,
std::_Placeholder<2>, std::_Placeholder<3>, bool, long unsigned int]
At global scope:
cc1plus: warning: unrecognized command line option
"-Wno-unused-local-typedefs"
make[4]: *** [graph_betweenness.lo] Error 1
make[4]: Leaving directory
`/home/peroksid/graph-tool-2.2.27/src/graph/centrality'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/peroksid/graph-tool-2.2.27/src/graph'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/peroksid/graph-tool-2.2.27/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/peroksid/graph-tool-2.2.27'
make: *** [all] Error 2

Any suggeshion?
The same problems for ICC comilers.
In attach configure output and log.

attachment.html (7.01 KB)

configureOUT.txt (10 KB)

configureLOG.txt (107 KB)

Николай Кинаш wrote

The same problems for ICC comilers.

Ops, for ICC it`s different:
./configure --prefix=/home/peroksid/graph-tool/ --enable-openmp
LDFLAGS="-L/opt/boost_1_54_0_icc/stage/lib -L/home/peroksid/cgal/lib
-L/home/peroksid/sparsehash/lib" CPPFLAGS="-I/opt/boost_1_54_0_icc/
-I/home/peroksid/cgal/include -I/home/peroksid/sparsehash/include
-I/home/peroksid/sparsehash/include/sparsehash/
-I/home/peroksid/sparsehash/include/google/" --disable-cairo *CC=icc
CXX=icc*

-bash-4.1$ make
make all-recursive
make[1]: Entering directory `/home/peroksid/graph-tool-2.2.27'
Making all in src
make[2]: Entering directory `/home/peroksid/graph-tool-2.2.27/src'
Making all in graph
make[3]: Entering directory `/home/peroksid/graph-tool-2.2.27/src/graph'
Making all in centrality
make[4]: Entering directory
`/home/peroksid/graph-tool-2.2.27/src/graph/centrality'
  CXX graph_betweenness.lo
icc: command line warning #10006: ignoring unknown option
'-Wno-unused-local-typedefs'
/opt/boost_1_54_0_icc/boost/python/object/instance.hpp(44): warning #1875:
offsetof applied to non-POD (Plain Old Data) types is nonstandard
      BOOST_STATIC_CONSTANT(
      ^

/opt/boost_1_54_0_icc/boost/python/converter/rvalue_from_python_data.hpp(99):
warning #1875: offsetof applied to non-POD (Plain Old Data) types is
nonstandard
     
BOOST_STATIC_ASSERT(BOOST_PYTHON_OFFSETOF(rvalue_from_python_storage<T>,stage1)
== 0);
      ^

./../graph_properties.hh(565): warning #2536: type qualifiers are
meaningless here
      const reference operator[](const key_type& k) const
      ^

./../graph_properties.hh(570): warning #2536: type qualifiers are
meaningless here
      const reference get(const key_type& k) const
      ^

./../graph_util.hh(447): error: namespace "std" has no member
"uniform_int_distribution"
            class RandomDist = std::uniform_int_distribution<size_t>>
                                    ^

./../graph_util.hh(447): error: expected a "," or ">"
            class RandomDist = std::uniform_int_distribution<size_t>>
                                                            ^

./../graph_util.hh(450): error: expected a declaration
  {
  ^

./../graph_util.hh(450): error: expected a ";"
  {
  ^

./../graph_util.hh(476): warning #12: parsing restarts here after previous
syntax error
          return *this;
                      ^

./../graph_util.hh(477): error: expected a declaration
      }
      ^

./../graph_util.hh(495): warning #12: parsing restarts here after previous
syntax error
      RandomAccessIterator _i, _end;
                                   ^

./../graph_util.hh(496): error: identifier "RNG" is undefined
      RNG* _rng;
      ^

./../graph_util.hh(497): error: expected a declaration
  };

Since version 2.2.27 graph-tool requires a C++ compiler with good c++11
support. This means GCC version 4.6 or above (4.4.7 is too old). For the
ICC compiler, I think you need version 14, but I haven't tested it.

Whenever reporting compilation problems, please always provide detailed
information on the compiler and the operating system being used.

Cheers,
Tiago