Hi ,
I am installing opencontrail on a single node setup, I am building using *make
.*
Getting some errors while building *package-contrail.*
Errors:

scons: Building targets ...
g++ -o build/debug/db/db_graph.o -c -O0 -DDEBUG -g -Wall -Werror
-Wsign-compare                     -Wno-unused-local-typedefs -DLINUX
-Icontroller/src -Ibuild/include -Icontroller                    /lib
-Ibuild/debug -Ibuild/debug/db -Icontroller/src/db controller/src/db/db_gra
                   ph.cc
controller/src/db/db_graph.cc:169:20: error: reference to ‘uint64_t’ is
ambiguou                    s
                    uint64_t curr_walk, VisitQ &visit_q,
                    ^
In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include/stdint.h:9:0,
                 from controller/src/db/db_graph_base.h:7,
                 from controller/src/db/db_graph.h:13,
                 from controller/src/db/db_graph.cc:5:
/usr/include/stdint.h:55:27: note: candidates are: typedef long unsigned
int uin                    t64_t
 typedef unsigned long int uint64_t;
                           ^
In file included from /usr/local/include/boost/integer_fwd.hpp:17:0,
                 from /usr/local/include/boost/integer.hpp:18,
                 from
/usr/local/include/boost/function/function_base.hpp:21,
                 from
/usr/local/include/boost/function/detail/prologue.hpp:17,
                 from /usr/local/include/boost/function.hpp:24,
                 from controller/src/db/db_graph.h:10,
                 from controller/src/db/db_graph.cc:5:
/usr/local/include/boost/cstdint.hpp:311:42: note:                 typedef
boost                    ::ulong_long_type boost::uint64_t
      typedef  ::boost::ulong_long_type   uint64_t;
                                          ^
controller/src/db/db_graph.cc:169:20: error: ‘uint64_t’ has not been
declared
                    uint64_t curr_walk, VisitQ &visit_q,
                    ^
controller/src/db/db_graph.cc:165:6: error: prototype for ‘void
DBGraph::Iterate                    Edges(DBGraphVertex*,
DBGraphBase::OutEdgeIterator&, DBGraphBase::OutEdgeIterato
   r&, DBGraph::VertexVisitor, DBGraph::EdgeVisitor,
DBGraph::EdgePredicate&, DBGra                    ph::VertexPredicate&,
int, DBGraph::VisitQ&, bool, const string&)’ does not matc
   h any in class ‘DBGraph’
 void DBGraph::IterateEdges(DBGraphVertex *current_vertex,
      ^
In file included from controller/src/db/db_graph.cc:5:0:
controller/src/db/db_graph.h:128:10: error: candidate is: void
DBGraph::IterateE                    dges(DBGraphVertex*,
DBGraphBase::OutEdgeIterator&, DBGraphBase::OutEdgeIterator
   &, DBGraph::VertexVisitor, DBGraph::EdgeVisitor,
DBGraph::EdgePredicate&, DBGrap                    h::VertexPredicate&,
uint64_t, DBGraph::VisitQ&, bool, const string&)
     void IterateEdges(DBGraphVertex *start,
          ^
controller/src/db/db_graph.cc:120:17: error: ‘struct
DBGraph::EdgePredicate’ is                     private
 struct DBGraph::EdgePredicate {
                 ^
controller/src/db/db_graph.cc:168:20: error: within this context
                    EdgePredicate &edge_test, VertexPredicate &vertex_test,
                    ^
controller/src/db/db_graph.cc:139:17: error: ‘struct
DBGraph::VertexPredicate’ i                    s private
 struct DBGraph::VertexPredicate {
                 ^
controller/src/db/db_graph.cc:168:46: error: within this context
                    EdgePredicate &edge_test, VertexPredicate &vertex_test,
                                              ^
In file included from controller/src/db/db_graph.cc:5:0:
controller/src/db/db_graph.h:124:41: error: ‘typedef class
std::queue<DBGraphVer                    tex*> DBGraph::VisitQ’ is private
     typedef std::queue<DBGraphVertex *> VisitQ;
                                         ^
controller/src/db/db_graph.cc:169:40: error: within this context
                    uint64_t curr_walk, VisitQ &visit_q,
                                        ^
controller/src/db/db_graph.cc: In member function ‘void
DBGraph::Visit(DBGraphVe                    rtex*, DBGraph::VertexVisitor,
DBGraph::EdgeVisitor, const DBGraph::VisitorFilte                    r&)’:
controller/src/db/db_graph.cc:189:5: error: reference to ‘uint64_t’ is
ambiguous
     uint64_t t = ClockMonotonicUsec();
     ^
In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include/stdint.h:9:0,
                 from controller/src/db/db_graph_base.h:7,
                 from controller/src/db/db_graph.h:13,
                 from controller/src/db/db_graph.cc:5:
/usr/include/stdint.h:55:27: note: candidates are: typedef long unsigned
int uin                    t64_t
 typedef unsigned long int uint64_t;
                           ^
In file included from /usr/local/include/boost/integer_fwd.hpp:17:0,
                 from /usr/local/include/boost/integer.hpp:18,
                 from
/usr/local/include/boost/function/function_base.hpp:21,
                 from
/usr/local/include/boost/function/detail/prologue.hpp:17,
                 from /usr/local/include/boost/function.hpp:24,
                 from controller/src/db/db_graph.h:10,
                 from controller/src/db/db_graph.cc:5:
/usr/local/include/boost/cstdint.hpp:311:42: note:                 typedef
boost                    ::ulong_long_type boost::uint64_t
      typedef  ::boost::ulong_long_type   uint64_t;
                                          ^
controller/src/db/db_graph.cc:190:5: error: reference to ‘uint64_t’ is
ambiguous
     uint64_t curr_walk = get_graph_walk_num();
     ^
In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include/stdint.h:9:0,
                 from controller/src/db/db_graph_base.h:7,
                 from controller/src/db/db_graph.h:13,
                 from controller/src/db/db_graph.cc:5:
/usr/include/stdint.h:55:27: note: candidates are: typedef long unsigned
int uin                    t64_t
 typedef unsigned long int uint64_t;
                           ^
In file included from /usr/local/include/boost/integer_fwd.hpp:17:0,
                 from /usr/local/include/boost/integer.hpp:18,
                 from
/usr/local/include/boost/function/function_base.hpp:21,
                 from
/usr/local/include/boost/function/detail/prologue.hpp:17,
                 from /usr/local/include/boost/function.hpp:24,
                 from controller/src/db/db_graph.h:10,
                 from controller/src/db/db_graph.cc:5:
/usr/local/include/boost/cstdint.hpp:311:42: note:                 typedef
boost                    ::ulong_long_type boost::uint64_t
      typedef  ::boost::ulong_long_type   uint64_t;
                                          ^
controller/src/db/db_graph.cc:197:24: error: ‘curr_walk’ was not declared
in thi                    s scope
     start->set_visited(curr_walk);
                        ^
controller/src/db/db_graph.cc:231:5: error: reference to ‘uint64_t’ is
ambiguous
     uint64_t end_t = ClockMonotonicUsec();
     ^
In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include/stdint.h:9:0,
                 from controller/src/db/db_graph_base.h:7,
                 from controller/src/db/db_graph.h:13,
                 from controller/src/db/db_graph.cc:5:
/usr/include/stdint.h:55:27: note: candidates are: typedef long unsigned
int uin                    t64_t
 typedef unsigned long int uint64_t;
                           ^
In file included from /usr/local/include/boost/integer_fwd.hpp:17:0,
                 from /usr/local/include/boost/integer.hpp:18,
                 from
/usr/local/include/boost/function/function_base.hpp:21,
                 from
/usr/local/include/boost/function/detail/prologue.hpp:17,
                 from /usr/local/include/boost/function.hpp:24,
                 from controller/src/db/db_graph.h:10,
                 from controller/src/db/db_graph.cc:5:
/usr/local/include/boost/cstdint.hpp:311:42: note:                 typedef
boost                    ::ulong_long_type boost::uint64_t
      typedef  ::boost::ulong_long_type   uint64_t;
                                          ^
controller/src/db/db_graph.cc:232:51: error: ‘end_t’ was not declared in
this sc                    ope
     std::cout << "Graph Walk time(in usec) " <<  (end_t-t) << std::endl;
                                                   ^
controller/src/db/db_graph.cc:232:57: error: ‘t’ was not declared in this
scope
     std::cout << "Graph Walk time(in usec) " <<  (end_t-t) << std::endl;
                                                         ^
scons: *** [build/debug/db/db_graph.o] Error 1
scons: building terminated because of errors.
debian/rules:31: recipe for target 'override_dh_auto_build' failed
make[2]: *** [override_dh_auto_build] Error 2
make[2]: Leaving directory '/home/hadoop/build/build/packages/contrail'
debian/rules:25: recipe for target 'build' failed
make[1]: *** [build] Error 2
make[1]: Leaving directory '/home/hadoop/build/build/packages/contrail'
dpkg-buildpackage: error: debian/rules build gave error exit status 2
packages.make:100: recipe for target 'package-contrail' failed
make: *** [package-contrail] Error 2

Please anyone help me with these issues.

Thanks & Regards
Raghav Sachdeva
_______________________________________________
Users mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/users_lists.opencontrail.org

Reply via email to