Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Errors #22

Closed
JFan2016 opened this issue Jan 26, 2017 · 8 comments
Closed

Make Errors #22

JFan2016 opened this issue Jan 26, 2017 · 8 comments

Comments

@JFan2016
Copy link

Hello @Svalorzen, I've got the following issues while compiling your software:

[ 40%] Built target AIToolboxMDP
Scanning dependencies of target MDP_RLModelTests
Scanning dependencies of target MDP_MCTSTests
Scanning dependencies of target MDP_WoLFPolicyTests
Scanning dependencies of target AIToolboxPOMDP
Scanning dependencies of target MDP_PrioritizedSweepingTests
Scanning dependencies of target MDP_ModelTests
Scanning dependencies of target FactoredMDP_SparseCooperativeQLearningTests
Scanning dependencies of target FactoredMDP_VariableEliminationTests
Scanning dependencies of target FactoredMDP_FactoredContainerTests
Scanning dependencies of target MDP_ExperienceTests
Scanning dependencies of target MDP_SARSATests
Scanning dependencies of target MDP_TypesTests
Scanning dependencies of target MDP_QLearningTests
Scanning dependencies of target MDP_SparseExperienceTests
Scanning dependencies of target FactoredMDP_UtilsTests
Scanning dependencies of target FactoredMDP_MultiObjectiveVariableEliminationTests
Scanning dependencies of target MDP_SparseModelTests
Scanning dependencies of target MDP_ValueIterationTests
Scanning dependencies of target MDP_SparseRLModelTests
Scanning dependencies of target FactoredMDP_FactorGraphTests
CMakeFiles/Global_UtilsTests.dir/UtilsTests.cpp.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>)':
UtilsTests.cpp:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): 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
test/CMakeFiles/Global_UtilsTests.dir/build.make:95: recipe for target '../test/bin/Global_UtilsTests' failed
make[2]: *** [../test/bin/Global_UtilsTests] Error 1
CMakeFiles/Makefile2:1134: recipe for target 'test/CMakeFiles/Global_UtilsTests.dir/all' failed
make[1]: *** [test/CMakeFiles/Global_UtilsTests.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

[ 71%] Built target AIToolboxPOMDP
CMakeFilesCMakeFiles/MDP_MCTSTests.dir/MDP/MCTSTests.cpp.o: In function `boost::CMakeFilesunit_test::make_test_case(boost::unit_test::callback0<boost::unit_test::ut_detail::unused> const&, boost::CMakeFilesunit_test:/:basic_cstringMDP_RLModelTests.dir</charMDP /const>RLModelTests.cpp.o):' :In
 MCTSTests.cppfunction: (`.boosttext._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE:[:unit_test_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE:]:+make_test_case0x23()boost:: :undefinedunit_test :reference: callback0to< boost`:boost::unit_test::unit_test::ut_detail::ut_detail::unused:>normalize_test_case_name (constboost&:,: unit_testboost::::basic_cstringunit_test<:char: basic_cstringconst<>char) 'const
>)':
RLModelTests.cpp:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): undefined reference to `boost::unit_test::ut_detail::normalize_test_case_name(boost::unit_test::collect2: error: ld returned 1 exit status
basic_cstring<char const>)'
/FactoredMDP_FactorGraphTests.dircollect2: error: ld returned 1 exit status
/FactoredMDP/FactorGraphTests.cpp.o: In/MDP_QLearningTests.dir/MDP/QLearningTests.cpp.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>)':
QLearningTests.cpp:(CMakeFiles.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE/[MDP_SparseRLModelTests.dir/_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEEMDP]/+SparseRLModelTests.cpp.o0x23:) :In  undefined functionreference  `toboost :`:boostunit_test::::unit_test:make_test_case:(ut_detailboost::::normalize_test_case_nameunit_test(:boost::callback0:<unit_testboost::::basic_cstringunit_test<:char: ut_detailconst:>:)unused'>
 const&, boost::unit_test::basic_cstring<char const>)':
SparseRLModelTests.cpp:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEEcollect2: error: ld returned 1 exit status
[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): undefined reference to `boost::unit_test::ut_detail::normalize_test_case_name(boost::unit_test::basic_cstring<char const>)'
 functioncollect2: error: ld returned 1 exit status
 `boost::unit_test::make_test_case(boost::unit_test::CMakeFiles/MDP_WoLFPolicyTests.dir/MDP/WoLFPolicyTests.cpp.o: In function `boost::unit_test::make_test_case(boost::unit_test::callback0<boost::unit_test::ut_detail::unused> const&, boost::unit_test::test/CMakeFiles/MDP_MCTSTests.dir/build.make:96: recipe for target '../test/bin/MDP_MCTSTests' failed
basic_cstring<charmake[2]: *** [../test/bin/MDP_MCTSTests] Error 1
 const>)':
WoLFPolicyTests.cpp:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): undefined reference to `boost::unit_test::ut_detail::normalize_test_case_name(boost::unit_test::basic_cstring<char const>)'
callback0<CMakeFiles/Makefile2:726: recipe for target 'test/CMakeFiles/MDP_MCTSTests.dir/all' failed
collect2: error: ld returned 1 exit status
make[1]: *** [test/CMakeFiles/MDP_MCTSTests.dir/all] Error 2
boost::unit_test::ut_detail::unused> const&, boost::unit_test::basic_cstring<char const>)':
test/CMakeFiles/MDP_QLearningTests.dir/build.make:96: recipe for target '../test/bin/MDP_QLearningTests' failed
make[2]: *** [../test/bin/MDP_QLearningTests] Error 1
FactorGraphTests.cpp:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): undefined reference to `boost::unit_test::ut_detail::normalize_test_case_nameCMakeFilesCMakeFiles/Makefile2:985: recipe for target 'test/CMakeFiles/MDP_QLearningTests.dir/all' failed
make[1]: *** [test/CMakeFiles/MDP_QLearningTests.dir/all] Error 2
/MDP_TypesTests.dir/(boost::unit_test::basic_cstring<char const>)'
CMakeFiles/MDP_ValueIterationTests.dirCMakeFiles/MDP_PrioritizedSweepingTests.dir/MDP/PrioritizedSweepingTests.cpp.o: In function collect2: error: ld returned 1 exit status
`boost::unit_test::make_test_case(boost::unit_test::callback0<boost::unit_test::ut_detail::unused> const&, boost::unit_test::basic_cstring<char const>)':
PrioritizedSweepingTests.cpp:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): undefined reference to `boost::unit_test::ut_detail::normalize_test_case_name(boost::unit_test::basic_cstring<char const>)'
MDP/MDP//ValueIterationTests.cpp.o: In function `boost::unit_test::make_test_case(boost::unit_test::callback0<boost::unit_testcollect2: error: ld returned 1 exit status
::ut_detail::unused> const&, boost::unit_test::basic_cstring<char const>)':
TypesTests.cpp.oValueIterationTests.cpp:(:.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[ _ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): undefined reference to `boost::unit_test::Inut_detail::normalize_test_case_name(boost::unit_test::basic_cstringtest/CMakeFiles/MDP_RLModelTests.dir/build.make:96: recipe for target '../test/bin/MDP_RLModelTests' failed
<charmake[2]: *** [../test/bin/MDP_RLModelTests] Error 1
 const>)'
 function `boost::unit_test::make_test_case(boost:collect2: error: ld returned 1 exit status
:unit_test::callback0<boost::unit_test::ut_detail::unusedtest/CMakeFiles/MDP_SparseRLModelTests.dir/build.make:96: recipe for target '../test/bin/MDP_SparseRLModelTests' failed
> make[2]: *** [../test/bin/MDP_SparseRLModelTests] Error 1
const&, boost:CMakeFiles/Makefile2:800: recipe for target 'test/CMakeFiles/MDP_RLModelTests.dir/all' failed
make[1]: *** [test/CMakeFiles/MDP_RLModelTests.dir/all] Error 2
:unit_test::basic_cstring<char const>)':
TypesTests.cpp:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): 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
test/CMakeFiles/MDP_WoLFPolicyTests.dir/build.make:96: recipe for target '../test/bin/MDP_WoLFPolicyTests' failed
make[2]: *** [../test/bin/MDP_WoLFPolicyTests] Error 1
test/CMakeFiles/FactoredMDP_FactorGraphTests.dir/build.make:96: recipe for target '../test/bin/FactoredMDP_FactorGraphTests' failed
CMakeFilesmake[2]: *** [../test/bin/FactoredMDP_FactorGraphTests] Error 1
/MDP_SARSATests.dir/MDP/SARSATests.cpp.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>)':
SARSATests.cpp:test/CMakeFiles/MDP_PrioritizedSweepingTests.dir/build.make:96: recipe for target '../test/bin/MDP_PrioritizedSweepingTests' failed
(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEEmake[2]: *** [../test/bin/MDP_PrioritizedSweepingTests] Error 1
[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): undefined reference to `boost::unit_test::ut_detail::CMakeFiles/Makefile2:948: recipe for target 'test/CMakeFiles/MDP_SparseRLModelTests.dir/all' failed
normalize_test_case_name(make[1]: *** [test/CMakeFiles/MDP_SparseRLModelTests.dir/all] Error 2
boost::unit_test::basic_cstring<charCMakeFiles/Makefile2:615: recipe for target 'test/CMakeFiles/MDP_WoLFPolicyTests.dir/all' failed
 constmake[1]: *** [test/CMakeFiles/MDP_WoLFPolicyTests.dir/all] Error 2
>)'
CMakeFiles/Makefile2:1060: recipe for target 'test/CMakeFiles/FactoredMDP_FactorGraphTests.dir/all' failed
make[1]: *** [test/CMakeFiles/FactoredMDP_FactorGraphTests.dir/all] Error 2
test/CMakeFiles/MDP_ValueIterationTests.dir/build.make:96: recipe for target '../test/bin/MDP_ValueIterationTests' failed
make[2]: *** [../test/bin/MDP_ValueIterationTests] Error 1
collect2: error: ld returned 1 exit status
CMakeFiles/Makefile2:541: recipe for target 'test/CMakeFiles/MDP_PrioritizedSweepingTests.dir/all' failed
make[1]: *** [test/CMakeFiles/MDP_PrioritizedSweepingTests.dir/all] Error 2
test/CMakeFiles/MDP_TypesTests.dir/build.make:96: recipe for target '../test/bin/MDP_TypesTests' failed
make[2]: *** [../test/bin/MDP_TypesTests] Error 1
CMakeFiles/Makefile2:1097: recipe for target 'test/CMakeFiles/MDP_ValueIterationTests.dir/all' failed
make[1]: *** [test/CMakeFiles/MDP_ValueIterationTests.dir/all] Error 2
CMakeFiles/FactoredMDP_FactoredContainerTests.dir/FactoredMDP/FactoredContainerTests.cpp.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>)':
FactoredContainerTests.cpp:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): 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
CMakeFiles/Makefile2:652: recipe for target 'test/CMakeFiles/MDP_TypesTests.dir/all' failed
make[1]: *** [test/CMakeFiles/MDP_TypesTests.dir/all] Error 2
test/CMakeFiles/MDP_SARSATests.dir/build.make:96: recipe for target '../test/bin/MDP_SARSATests' failed
make[2]: *** [../test/bin/MDP_SARSATests] Error 1
CMakeFiles/Makefile2:689: recipe for target 'test/CMakeFiles/MDP_SARSATests.dir/all' failed
make[1]: *** [test/CMakeFiles/MDP_SARSATests.dir/all] Error 2
test/CMakeFiles/FactoredMDP_FactoredContainerTests.dir/build.make:96: recipe for target '../test/bin/FactoredMDP_FactoredContainerTests' failed
make[2]: *** [../test/bin/FactoredMDP_FactoredContainerTests] Error 1
CMakeFiles/Makefile2:1171: recipe for target 'test/CMakeFiles/FactoredMDP_FactoredContainerTests.dir/all' failed
make[1]: *** [test/CMakeFiles/FactoredMDP_FactoredContainerTests.dir/all] Error 2
CMakeFiles/FactoredMDP_SparseCooperativeQLearningTests.dir/FactoredMDP/SparseCooperativeQLearningTests.cpp.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>)':
SparseCooperativeQLearningTests.cpp:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): 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
test/CMakeFiles/FactoredMDP_SparseCooperativeQLearningTests.dir/build.make:96: recipe for target '../test/bin/FactoredMDP_SparseCooperativeQLearningTests' failed
make[2]: *** [../test/bin/FactoredMDP_SparseCooperativeQLearningTests] Error 1
CMakeFiles/Makefile2:1320: recipe for target 'test/CMakeFiles/FactoredMDP_SparseCooperativeQLearningTests.dir/all' failed
make[1]: *** [test/CMakeFiles/FactoredMDP_SparseCooperativeQLearningTests.dir/all] Error 2
CMakeFiles/FactoredMDP_VariableEliminationTests.dir/FactoredMDP/VariableEliminationTests.cpp.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>)':
VariableEliminationTests.cpp:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): 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
test/CMakeFiles/FactoredMDP_VariableEliminationTests.dir/build.make:96: recipe for target '../test/bin/FactoredMDP_VariableEliminationTests' failed
make[2]: *** [../test/bin/FactoredMDP_VariableEliminationTests] Error 1
CMakeFiles/Makefile2:1208: recipe for target 'test/CMakeFiles/FactoredMDP_VariableEliminationTests.dir/all' failed
make[1]: *** [test/CMakeFiles/FactoredMDP_VariableEliminationTests.dir/all] Error 2
CMakeFiles/FactoredMDP_UtilsTests.dir/FactoredMDP/UtilsTests.cpp.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>)':
UtilsTests.cpp:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): 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
test/CMakeFiles/FactoredMDP_UtilsTests.dir/build.make:96: recipe for target '../test/bin/FactoredMDP_UtilsTests' failed
make[2]: *** [../test/bin/FactoredMDP_UtilsTests] Error 1
CMakeFiles/Makefile2:837: recipe for target 'test/CMakeFiles/FactoredMDP_UtilsTests.dir/all' failed
make[1]: *** [test/CMakeFiles/FactoredMDP_UtilsTests.dir/all] Error 2
CMakeFiles/FactoredMDP_MultiObjectiveVariableEliminationTests.dir/FactoredMDP/MultiObjectiveVariableEliminationTests.cpp.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>)':
MultiObjectiveVariableEliminationTests.cpp:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): 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
test/CMakeFiles/FactoredMDP_MultiObjectiveVariableEliminationTests.dir/build.make:96: recipe for target '../test/bin/FactoredMDP_MultiObjectiveVariableEliminationTests' failed
make[2]: *** [../test/bin/FactoredMDP_MultiObjectiveVariableEliminationTests] Error 1
CMakeFiles/Makefile2:1245: recipe for target 'test/CMakeFiles/FactoredMDP_MultiObjectiveVariableEliminationTests.dir/all' failed
make[1]: *** [test/CMakeFiles/FactoredMDP_MultiObjectiveVariableEliminationTests.dir/all] Error 2
CMakeFiles/MDP_SparseExperienceTests.dir/MDP/SparseExperienceTests.cpp.o: In function `boost::unit_test::make_test_case(boost::unit_test::callback0<boost::unit_test::ut_detail::unused> const&, boost::unit_test::basic_cstringCMakeFiles</charMDP_ModelTests.dir /constMDP>/)ModelTests.cpp.o':: 
InSparseExperienceTests.cpp :function( `boost.:text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE:[unit_test:_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE:]make_test_case+(0x23boost)::: unit_testundefined: :referencecallback0 <toboost :`:boostunit_test::::unit_testut_detail::::ut_detailunused:>: normalize_test_case_nameconst(&boost,: :boostunit_test::::unit_testbasic_cstring:<:charbasic_cstring <constchar> )const'>
)':
ModelTests.cpp:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): 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
collect2: error: ld returned 1 exit status
test/CMakeFiles/MDP_SparseExperienceTests.dir/build.make:96: recipe for target '../test/bin/MDP_SparseExperienceTests' failed
test/CMakeFiles/MDP_ModelTests.dir/build.make:96: recipe for target '../test/bin/MDP_ModelTests' failed
make[2]: *** [../test/bin/MDP_SparseExperienceTests] Error 1
make[2]: *** [../test/bin/MDP_ModelTests] Error 1
CMakeFiles/Makefile2:874: recipe for target 'test/CMakeFiles/MDP_SparseExperienceTests.dir/all' failed
make[1]: *** [test/CMakeFiles/MDP_SparseExperienceTests.dir/all] Error 2
CMakeFiles/Makefile2:578: recipe for target 'test/CMakeFiles/MDP_ModelTests.dir/all' failed
make[1]: *** [test/CMakeFiles/MDP_ModelTests.dir/all] Error 2
CMakeFiles/MDP_SparseModelTests.dir/MDP/SparseModelTests.cpp.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>)':
SparseModelTests.cpp:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): undefined reference to `boost::unit_test::ut_detail::normalize_test_case_name(boost::unit_test::basic_cstring<CMakeFileschar/ constMDP_ExperienceTests.dir>/)MDP'/
ExperienceTests.cpp.o: In function `boost::unit_test::make_test_case(boost::unit_test::callback0<boost::unit_test::ut_detail::unused>collect2: error: ld returned 1 exit status
 const&, boost::unit_test::basic_cstring<char const>)':
ExperienceTests.cpp:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): 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
test/CMakeFiles/MDP_SparseModelTests.dir/build.make:96: recipe for target '../test/bin/MDP_SparseModelTests' failed
make[2]: *** [../test/bin/MDP_SparseModelTests] Error 1
CMakeFiles/Makefile2:911: recipe for target 'test/CMakeFiles/MDP_SparseModelTests.dir/all' failed
make[1]: *** [test/CMakeFiles/MDP_SparseModelTests.dir/all] Error 2
test/CMakeFiles/MDP_ExperienceTests.dir/build.make:96: recipe for target '../test/bin/MDP_ExperienceTests' failed
make[2]: *** [../test/bin/MDP_ExperienceTests] Error 1
CMakeFiles/Makefile2:763: recipe for target 'test/CMakeFiles/MDP_ExperienceTests.dir/all' failed
make[1]: *** [test/CMakeFiles/MDP_ExperienceTests.dir/all] Error 2
[ 72%] Linking CXX shared library ../MDP.so
[ 72%] Built target MDP
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2

-- The C compiler identification is GNU 4.9.3
-- The CXX compiler identification is GNU 4.9.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.58.0
-- Found Eigen3: /usr/local/include/eigen3 (Required is at least version "3.2")
-- Found PythonLibs: /home/jing/anaconda2/lib/libpython2.7.so (found suitable version "2.7.12", minimum required is "2.7")
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- python
-- Performing Test LPSOLVE_LINKS_ALONE
-- Performing Test LPSOLVE_LINKS_ALONE - Success
-- Found LpSolve: /usr/local/lib/liblpsolve55.so
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- unit_test_framework
-- Found PythonInterp: /home/jing/anaconda2/bin/python2.7 (found suitable exact version "2.7.12")
-- Configuring done
-- Generating done

@Svalorzen
Copy link
Owner

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.

@alecive
Copy link

alecive commented Jan 26, 2017

May be related to this #17 ?

@Svalorzen
Copy link
Owner

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

@alecive
Copy link

alecive commented Jan 26, 2017

Ops sorry I didn't pay enough attention.

@JFan2016
Copy link
Author

JFan2016 commented Jan 26, 2017

@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

@Svalorzen
Copy link
Owner

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?

@JFan2016
Copy link
Author

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

@Svalorzen
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants