Code Monkey home page Code Monkey logo

Comments (8)

Svalorzen avatar Svalorzen commented on June 24, 2024

It seems for some reason you are not able to compile the tests. Can you try to compile a sample program with the same compiler/libraries you're using here to see if that's where the problem is? (here's an example: http://stackoverflow.com/questions/32453386/how-to-compile-boost-unit-test-module-with-clang)

In any case I'll try to add a flag to avoid test compilation if not needed so you'll be able to go around the problem if needed.

from ai-toolbox.

alecive avatar alecive commented on June 24, 2024

May be related to this #17 ?

from ai-toolbox.

Svalorzen avatar Svalorzen commented on June 24, 2024

@alecive That's Eigen, this problem here is in boost, so should be unrelated.

from ai-toolbox.

alecive avatar alecive commented on June 24, 2024

Ops sorry I didn't pay enough attention.

from ai-toolbox.

JFan2016 avatar JFan2016 commented on June 24, 2024

@Svalorzen I tried the example

/tmp/ccv7GBES.o: In function `boost::unit_test::make_test_case(boost::unit_test::callback0<boost::unit_test::ut_detail::unused> const&, boost::unit_test::basic_cstring<char const>)':
boost_test_test.cc:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x42): undefined reference to `boost::unit_test::ut_detail::normalize_test_case_name(boost::unit_test::basic_cstring<char const>)'
collect2: error: ld returned 1 exit status

I then compiled with g++-5 and it worked.

SO I compiled the software with g++-5. There is another issue.

[ 40%] Linking CXX executable ../../test/bin/Global_UtilsTests
In file included from /usr/local/include/eigen3/Eigen/Core:458:0,
                 from /home/jing/Documents/AI/AI-Toolbox/include/AIToolbox/Types.hpp:9,
                 from /home/jing/Documents/AI/AI-Toolbox/include/AIToolbox/MDP/Types.hpp:6,
                 from /home/jing/Documents/AI/AI-Toolbox/include/AIToolbox/MDP/Algorithms/ValueIteration.hpp:4,
                 from /home/jing/Documents/AI/AI-Toolbox/src/Python/MDP/Algorithms/ValueIteration.cpp:1:
/usr/local/include/eigen3/Eigen/src/Core/GeneralProduct.h: In member function ‘std::tuple<bool, std::tuple<Eigen::Matrix<double, -1, 1, 0, -1, 1>, std::vector<long unsigned int, std::allocator<long unsigned int> > >, Eigen::Matrix<double, -1, -1, 1, -1, -1> > AIToolbox::MDP::ValueIterationEigen<M>::operator()(const M&) [with M = AIToolbox::MDP::RLModel<AIToolbox::MDP::Experience>; typename std::enable_if<AIToolbox::MDP::is_model_eigen<M>::value>::type = void]’:
/usr/local/include/eigen3/Eigen/src/Core/GeneralProduct.h:365:5: warning: iteration 9223372036854775807u invokes undefined behavior [-Waggressive-loop-optimizations]
     for(Index i=0; i<rows; ++i)
     ^
/usr/local/include/eigen3/Eigen/src/Core/GeneralProduct.h:365:5: note: containing loop

The ctest results is pasted below:

Test project /home/jing/Documents/AI/AI-Toolbox/build
      Start  1: Global_Utils
 1/32 Test  #1: Global_Utils ....................................   Passed    0.03 sec
      Start  2: MDP_Types
 2/32 Test  #2: MDP_Types .......................................   Passed    0.00 sec
      Start  3: MDP_Experience
 3/32 Test  #3: MDP_Experience ..................................   Passed    0.12 sec
      Start  4: MDP_MCTS
 4/32 Test  #4: MDP_MCTS ........................................   Passed    0.12 sec
      Start  5: MDP_Model
 5/32 Test  #5: MDP_Model .......................................   Passed    0.01 sec
      Start  6: MDP_PrioritizedSweeping
 6/32 Test  #6: MDP_PrioritizedSweeping .........................   Passed    0.00 sec
      Start  7: MDP_QLearning
 7/32 Test  #7: MDP_QLearning ...................................   Passed    0.04 sec
      Start  8: MDP_RLModel
 8/32 Test  #8: MDP_RLModel .....................................   Passed    0.01 sec
      Start  9: MDP_SARSA
 9/32 Test  #9: MDP_SARSA .......................................   Passed    0.07 sec
      Start 10: MDP_SparseExperience
10/32 Test #10: MDP_SparseExperience ............................   Passed    0.07 sec
      Start 11: MDP_SparseModel
11/32 Test #11: MDP_SparseModel .................................   Passed    0.01 sec
      Start 12: MDP_SparseRLModel
12/32 Test #12: MDP_SparseRLModel ...............................   Passed    0.01 sec
      Start 13: MDP_ValueIteration
13/32 Test #13: MDP_ValueIteration ..............................   Passed    0.00 sec
      Start 14: MDP_WoLFPolicy
14/32 Test #14: MDP_WoLFPolicy ..................................   Passed    1.02 sec
      Start 15: FactoredMDP_Utils
15/32 Test #15: FactoredMDP_Utils ...............................   Passed    0.00 sec
      Start 16: FactoredMDP_FactoredContainer
16/32 Test #16: FactoredMDP_FactoredContainer ...................   Passed    0.00 sec
      Start 17: FactoredMDP_FactorGraph
17/32 Test #17: FactoredMDP_FactorGraph .........................   Passed    0.00 sec
      Start 18: FactoredMDP_VariableElimination
18/32 Test #18: FactoredMDP_VariableElimination .................   Passed    0.00 sec
      Start 19: FactoredMDP_MultiObjectiveVariableElimination
19/32 Test #19: FactoredMDP_MultiObjectiveVariableElimination ...   Passed    0.00 sec
      Start 20: FactoredMDP_SparseCooperativeQLearning
20/32 Test #20: FactoredMDP_SparseCooperativeQLearning ..........   Passed    0.00 sec
      Start 21: MDP_Python_Experience
21/32 Test #21: MDP_Python_Experience ...........................***Failed    0.58 sec
      Start 22: MDP_Python_QLearning
22/32 Test #22: MDP_Python_QLearning ............................***Failed    0.04 sec
      Start 23: MDP_Python_ValueIteration
23/32 Test #23: MDP_Python_ValueIteration .......................***Failed    0.04 sec
      Start 24: POMDP_Types
24/32 Test #24: POMDP_Types .....................................   Passed    0.00 sec
      Start 25: POMDP_AMDP
25/32 Test #25: POMDP_AMDP ......................................   Passed    3.46 sec
      Start 26: POMDP_IncrementalPruning
26/32 Test #26: POMDP_IncrementalPruning ........................   Passed    0.53 sec
      Start 27: POMDP_Model
27/32 Test #27: POMDP_Model .....................................   Passed    0.03 sec
      Start 28: POMDP_PBVI
28/32 Test #28: POMDP_PBVI ......................................   Passed    0.08 sec
      Start 29: POMDP_POMCP
29/32 Test #29: POMDP_POMCP .....................................   Passed    0.41 sec
      Start 30: POMDP_RTBSS
30/32 Test #30: POMDP_RTBSS .....................................   Passed    0.13 sec
      Start 31: POMDP_SparseModel
31/32 Test #31: POMDP_SparseModel ...............................   Passed    0.00 sec
      Start 32: POMDP_Witness
32/32 Test #32: POMDP_Witness ...................................   Passed    0.74 sec

91% tests passed, 3 tests failed out of 32

Total Test time (real) =   7.63 sec

The following tests FAILED:
	 21 - MDP_Python_Experience (Failed)
	 22 - MDP_Python_QLearning (Failed)
	 23 - MDP_Python_ValueIteration (Failed)
Errors while running CTest

from ai-toolbox.

Svalorzen avatar Svalorzen commented on June 24, 2024

Yes. So the warnings I can't do anything about, since they are from the Eigen library. As the Eigen library improves, they'll remove them, but in any case you shouldn't worry about them.

About the failed tests, it seems that only your Python tests fail. Would you mind running ctest -V to show what exactly is failing?

from ai-toolbox.

JFan2016 avatar JFan2016 commented on June 24, 2024
21: Test command: /home/jing/anaconda2/bin/python2.7 "/home/jing/Documents/AI/AI-Toolbox/test/Python/MDP/ExperienceTests.py"
21: Test timeout computed to be: 9.99988e+06
21: Traceback (most recent call last):
21:   File "/home/jing/Documents/AI/AI-Toolbox/test/Python/MDP/ExperienceTests.py", line 6, in <module>
21:     import MDP
21: ImportError: /home/jing/anaconda2/bin/../lib/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/jing/Documents/AI/AI-Toolbox/build/MDP.so)
21/32 Test #21: MDP_Python_Experience ...........................***Failed    0.03 sec
test 22
      Start 22: MDP_Python_QLearning

22: Test command: /home/jing/anaconda2/bin/python2.7 "/home/jing/Documents/AI/AI-Toolbox/test/Python/MDP/QLearningTests.py"
22: Test timeout computed to be: 9.99988e+06
22: Traceback (most recent call last):
22:   File "/home/jing/Documents/AI/AI-Toolbox/test/Python/MDP/QLearningTests.py", line 6, in <module>
22:     import MDP
22: ImportError: /home/jing/anaconda2/bin/../lib/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/jing/Documents/AI/AI-Toolbox/build/MDP.so)
22/32 Test #22: MDP_Python_QLearning ............................***Failed    0.03 sec
test 23
      Start 23: MDP_Python_ValueIteration

23: Test command: /home/jing/anaconda2/bin/python2.7 "/home/jing/Documents/AI/AI-Toolbox/test/Python/MDP/ValueIterationTests.py"
23: Test timeout computed to be: 9.99988e+06
23: Traceback (most recent call last):
23:   File "/home/jing/Documents/AI/AI-Toolbox/test/Python/MDP/ValueIterationTests.py", line 6, in <module>
23:     import MDP
23: ImportError: /home/jing/anaconda2/bin/../lib/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/jing/Documents/AI/AI-Toolbox/build/MDP.so)
23/32 Test #23: MDP_Python_ValueIteration .......................***Failed    0.04 sec

from ai-toolbox.

Svalorzen avatar Svalorzen commented on June 24, 2024

Mmmhh.. I think those are just problems due to the fact that you compiled with g++ 5, but python is finding your libstdc++.so.6 which has an incompatible ABI with your compiled .so libraries. If you don't intend to use Python, you can ignore the error.

Otherwise, you'll have to add the path to the correct libstdc++.so to the LD_LIBRARY_EXPORT variable. See http://stackoverflow.com/questions/23494103/version-cxxabi-1-3-8-not-found-required-by?noredirect=1&lq=1

Unfortunately these problems are due to your own personal setup so I can't really do much for you. Try looking up the problems you're having online and you should be able to find the solution. The library compiles for you so at least that's working.

from ai-toolbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.