make test fails on BitNodeUTest

Bug #961660 reported by Alex van der Peet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenCog
Fix Released
High
linas

Bug Description

Make test fails around 70% with the following message:

Linking CXX executable BITNodeUTest
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::Agent::Agent(unsigned int)'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::Request::addParameter(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::Request::setRequestResult(opencog::RequestResult*)'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::server(opencog::BaseServer* (*)())'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `typeinfo for opencog::Agent'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::Request::Request()'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::Request::send(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `typeinfo for opencog::Request'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::BaseServer::getAtomSpace()'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::BaseServer::createInstance()'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::Agent::setParameters(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const*)'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::Agent::~Agent()'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::Request::~Request()'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::Request::setParameters(std::list<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)'
collect2: ld returned 1 exit status
make[3]: *** [tests/reasoning/pln/BITNodeUTest] Error 1
make[2]: *** [tests/reasoning/pln/CMakeFiles/BITNodeUTest.dir/all] Error 2
make[1]: *** [CMakeFiles/test.dir/rule] Error 2
make: *** [test] Error 2

This is a fresh build with a fresh download of the source code (<1 hr ago)

Revision history for this message
linas (linasvepstas) wrote :

I have just made changes (bzr revision 6722) that I think might fix this, but I'm not really sure if they'll work. I will push this rev later today.

What OS/version is this for?

Changed in opencog:
importance: Undecided → High
assignee: nobody → linas (linasvepstas)
Revision history for this message
Alex van der Peet (alex-van-der-peet) wrote :

It's on Ubuntu 11.10, does that help?

Revision history for this message
Alex van der Peet (alex-van-der-peet) wrote :

Just made a new VM and started over with the CogBuntu install script. Same error it seems:

Linking CXX executable BITNodeUTest
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::Agent::Agent(unsigned int)'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::server(opencog::BaseServer* (*)())'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `typeinfo for opencog::Agent'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::BaseServer::getAtomSpace()'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::BaseServer::createInstance()'
../../../opencog/server/libbuiltinreqs.so: undefined reference to `opencog::Agent::to_string() const'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::Agent::setParameters(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const*)'
../../../opencog/reasoning/pln/libpln.so: undefined reference to `opencog::Agent::~Agent()'
collect2: ld returned 1 exit status
make[3]: *** [tests/reasoning/pln/BITNodeUTest] Error 1
make[2]: *** [tests/reasoning/pln/CMakeFiles/BITNodeUTest.dir/all] Error 2
make[1]: *** [CMakeFiles/test.dir/rule] Error 2
make: *** [test] Error 2

Revision history for this message
linas (linasvepstas) wrote :

Can you try this patch:

=== modified file 'opencog/reasoning/pln/CMakeLists.txt'
--- opencog/reasoning/pln/CMakeLists.txt 2012-01-26 07:51:28 +0000
+++ opencog/reasoning/pln/CMakeLists.txt 2012-03-31 19:38:10 +0000
@@ -74,6 +74,7 @@

 SET(PLN_LINK_LIBS
  atomspace
+ server
  util
  #${Boost_SIGNALS_LIBRARY}
 )

Revision history for this message
Alex van der Peet (alex-van-der-peet) wrote :

That fixed it! When actually running the tests, not all of them succeed however, but this solved my bug report. Would you like me to report one for each of the issues below?

96% tests passed, 6 tests failed out of 150

Total Test time (real) = 146.96 sec

The following tests FAILED:
  36 - BasicSaveUTest (Failed)
  57 - RESTfulTest (Failed)
  71 - PLNUTest (Failed)
 100 - metapopulationUTest (OTHER_FAULT)
 112 - LanguageComprehensionUTest (Failed)
 116 - PsiActionSelectionAgentUTest (OTHER_FAULT)
Errors while running CTest
make[3]: *** [CMakeFiles/test] Error 8
make[2]: *** [CMakeFiles/test.dir/all] Error 2
make[1]: *** [CMakeFiles/test.dir/rule] Error 2
make: *** [test] Error 2

       Start 36: BasicSaveUTest
 36/150 Test #36: BasicSaveUTest ........................***Failed 0.01 sec

       Start 57: RESTfulTest
 57/150 Test #57: RESTfulTest ...........................***Failed 10.50 sec

       Start 71: PLNUTest
 71/150 Test #71: PLNUTest ..............................***Failed 51.72 sec

        Start 100: metapopulationUTest
100/150 Test #100: metapopulationUTest ...................***Exception: Other 0.01 sec

        Start 112: LanguageComprehensionUTest
112/150 Test #112: LanguageComprehensionUTest ............***Failed 15.21 sec

        Start 116: PsiActionSelectionAgentUTest
116/150 Test #116: PsiActionSelectionAgentUTest ..........***Exception: Other 2.43 sec

Revision history for this message
linas (linasvepstas) wrote :

Nah, as of right now, these are the ones that regularly fail. (except for metapopUTest, which is a surprise to me).
 Can you run that one separately, on a command line, like so:

./tests/learning/moses/metapopulationUTest

and report the results, in a new bug?

Also, it might not fail every time...

Changed in opencog:
status: New → Fix Committed
Revision history for this message
linas (linasvepstas) wrote :

pushed fix in bzr rev 6746

Revision history for this message
Alex van der Peet (alex-van-der-peet) wrote :

I ran it about 20 times, same thing each time:

alex@ubuntu:~/src/ochack/bin$ ./tests/learning/moses/metapopulationUTest
metapopulationUTest: /usr/include/boost/variant/detail/visitation_impl.hpp:182: typename Visitor::result_type boost::detail::variant::visitation_impl_invoke(int, Visitor&, VoidPtrCV, boost::detail::variant::apply_visitor_unrolled*, NBF, long int) [with Visitor = boost::detail::variant::invoke_visitor<boost::detail::variant::get_visitor<const opencog::combo::id::builtin> >, VoidPtrCV = const void*, NBF = boost::variant<double, opencog::combo::id::builtin, opencog::combo::id::wild_card, opencog::combo::argument, opencog::combo::id::action, const opencog::combo::builtin_action_base*, const opencog::combo::perception_base*, std::basic_string<char>, const opencog::combo::indefinite_object_base*, opencog::combo::message, const opencog::combo::procedure_call_base*, const opencog::combo::action_symbol_base*, opencog::combo::ann_type>::has_fallback_type_, typename Visitor::result_type = const opencog::combo::id::builtin*]: Assertion `false' failed.
Aborted

Revision history for this message
linas (linasvepstas) wrote :

closing, the original bug report has been long fixed; if there are other, new problems, please open new bug reports.

Changed in opencog:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.