Closed paintedveil5 closed 5 years ago
I almost compile lava successfully, but this error happened. My os is Ubuntu 16.04. Did anyone else face this situation?
[100%] Linking CXX executable fbi /usr/bin/ld.gold: error: cannot find -lodb /usr/bin/ld.gold: error: cannot find -lodb-pgsql ../../lavaODB/src/liblava-odb_x64.a(lava-odb.cxx.o):lava-odb.cxx:function odb::access::composite_value_traits<LavaASTLoc, (odb::database_id)2>::grow(odb::access::composite_value_traits<LavaASTLoc, (odb::database_id)2>::image_type&, bool*): error: undefined reference to 'odb::details::basic_buffer_base::capacity(unsigned long, unsigned long)' ../../lavaODB/src/liblava-odb_x64.a(lava-odb.cxx.o):lava-odb.cxx:function odb::access::composite_value_traits<LavaASTLoc, (odb::database_id)2>::init(odb::access::composite_value_traits<LavaASTLoc, (odb::database_id)2>::image_type&, LavaASTLoc const&, odb::pgsql::statement_kind): error: undefined reference to 'odb::pgsql::default_value_traits<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, (odb::pgsql::database_type_id)10>::set_image(odb::details::basic_buffer<char>&, unsigned long&, bool&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../../lavaODB/src/liblava-odb_x64.a(lava-odb.cxx.o):lava-odb.cxx:function odb::access::object_traits_impl<SourceLval, (odb::database_id)2>::grow(odb::access::object_traits_impl<SourceLval, (odb::database_id)2>::image_type&, bool*): error: undefined reference to 'odb::details::basic_buffer_base::capacity(unsigned long, unsigned long)' ../../lavaODB/src/liblava-odb_x64.a(lava-odb.cxx.o):lava-odb.cxx:function odb::access::object_traits_impl<SourceLval, (odb::database_id)2>::init(odb::access::object_traits_impl<SourceLval, (odb::database_id)2>::image_type&, SourceLval const&, odb::pgsql::statement_kind): error: undefined reference to 'odb::pgsql::default_value_traits<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, (odb::pgsql::database_type_id)10>::set_image(odb::details::basic_buffer<char>&, unsigned long&, bool&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../../lavaODB/src/liblava-odb_x64.a(lava-odb.cxx.o):lava-odb.cxx:function odb::access::object_traits_impl<SourceLval, (odb::database_id)2>::persist(odb::database&, SourceLval&): error: undefined reference to 'odb::pgsql::transaction::current()' ../../lavaODB/src/liblava-odb_x64.a(lava-odb.cxx.o):lava-odb.cxx:function odb::access::object_traits_impl<SourceLval, (odb::database_id)2>::persist(odb::database&, SourceLval&): error: undefined reference to 'odb::pgsql::insert_statement::execute()' ../../lavaODB/src/liblava-odb_x64.a(lava-odb.cxx.o):lava-odb.cxx:function odb::access::object_traits_impl<SourceLval, (odb::database_id)2>::persist(odb::database&, SourceLval&): error: undefined reference to 'typeinfo for odb::object_already_persistent'
solved. apt-get install libodb-dev libodb-pgsql-dev
I almost compile lava successfully, but this error happened. My os is Ubuntu 16.04. Did anyone else face this situation?
[100%] Linking CXX executable fbi /usr/bin/ld.gold: error: cannot find -lodb /usr/bin/ld.gold: error: cannot find -lodb-pgsql ../../lavaODB/src/liblava-odb_x64.a(lava-odb.cxx.o):lava-odb.cxx:function odb::access::composite_value_traits<LavaASTLoc, (odb::database_id)2>::grow(odb::access::composite_value_traits<LavaASTLoc, (odb::database_id)2>::image_type&, bool*): error: undefined reference to 'odb::details::basic_buffer_base::capacity(unsigned long, unsigned long)' ../../lavaODB/src/liblava-odb_x64.a(lava-odb.cxx.o):lava-odb.cxx:function odb::access::composite_value_traits<LavaASTLoc, (odb::database_id)2>::init(odb::access::composite_value_traits<LavaASTLoc, (odb::database_id)2>::image_type&, LavaASTLoc const&, odb::pgsql::statement_kind): error: undefined reference to 'odb::pgsql::default_value_traits<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, (odb::pgsql::database_type_id)10>::set_image(odb::details::basic_buffer<char>&, unsigned long&, bool&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../../lavaODB/src/liblava-odb_x64.a(lava-odb.cxx.o):lava-odb.cxx:function odb::access::object_traits_impl<SourceLval, (odb::database_id)2>::grow(odb::access::object_traits_impl<SourceLval, (odb::database_id)2>::image_type&, bool*): error: undefined reference to 'odb::details::basic_buffer_base::capacity(unsigned long, unsigned long)' ../../lavaODB/src/liblava-odb_x64.a(lava-odb.cxx.o):lava-odb.cxx:function odb::access::object_traits_impl<SourceLval, (odb::database_id)2>::init(odb::access::object_traits_impl<SourceLval, (odb::database_id)2>::image_type&, SourceLval const&, odb::pgsql::statement_kind): error: undefined reference to 'odb::pgsql::default_value_traits<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, (odb::pgsql::database_type_id)10>::set_image(odb::details::basic_buffer<char>&, unsigned long&, bool&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../../lavaODB/src/liblava-odb_x64.a(lava-odb.cxx.o):lava-odb.cxx:function odb::access::object_traits_impl<SourceLval, (odb::database_id)2>::persist(odb::database&, SourceLval&): error: undefined reference to 'odb::pgsql::transaction::current()' ../../lavaODB/src/liblava-odb_x64.a(lava-odb.cxx.o):lava-odb.cxx:function odb::access::object_traits_impl<SourceLval, (odb::database_id)2>::persist(odb::database&, SourceLval&): error: undefined reference to 'odb::pgsql::insert_statement::execute()' ../../lavaODB/src/liblava-odb_x64.a(lava-odb.cxx.o):lava-odb.cxx:function odb::access::object_traits_impl<SourceLval, (odb::database_id)2>::persist(odb::database&, SourceLval&): error: undefined reference to 'typeinfo for odb::object_already_persistent'