matthieu637 / ddrl

Deep Developmental Reinforcement Learning
MIT License
29 stars 3 forks source link

Compile issue in 4e34326 #11

Open huangjiancong1 opened 5 years ago

huangjiancong1 commented 5 years ago

sudo ./fullBuild.bash

[sudo] password for jim: 
optional install : astyle
optional install : cppcheck
optional install : cpplint
optional install : valgrind
optional install : xml
INFO : 4 CPU used
INFO : cmake well founded. Look what following to know if you need other software.
QUESTION : if a subdirectory already contains a build, should I remove it ? (y/n) [y]:
y
---------------------------------------------------------------------------------
INFO : common already contains a build directory. Removing it...
INFO : common well builed. Congratz.
---------------------------------------------------------------------------------
INFO : agent/deepqn already contains a build directory. Removing it...
INFO : agent/deepqn well builed. Congratz.
---------------------------------------------------------------------------------
INFO : agent/cacla already contains a build directory. Removing it...
Scanning dependencies of target ddrl-cacla
[  5%] Building CXX object CMakeFiles/ddrl-cacla.dir/src/pybinding/cacla.cpp.o
Scanning dependencies of target ddrl-nfac
Scanning dependencies of target ddrl-penfac-para
Scanning dependencies of target ddrl-penfac
[ 16%] Building CXX object CMakeFiles/ddrl-penfac.dir/src/pybinding/nfac.cpp.o
[ 16%] Building CXX object CMakeFiles/ddrl-penfac-para.dir/src/pybinding/nfac.cpp.o
[ 22%] Building CXX object CMakeFiles/ddrl-nfac.dir/src/pybinding/nfac.cpp.o
In file included from /home/jim/ddrl/agent/cacla/../../common/include/arch/AACAgent.hpp:8:0,
                 from /home/jim/ddrl/agent/cacla/include/OfflineCaclaAg.hpp:10,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:8:
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp: In member function 'virtual const std::vector<double>& arch::ARLAgent<ProgOptions>::_run(double, const std::vector<double>&, bool, bool, bool)':
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:91: warning: no return statement in function returning non-void [-Wreturn-type]
                                         bool learning, bool goal_reached, bool finished) {};
                                                                                           ^
In file included from /home/jim/ddrl/agent/cacla/../../common/include/arch/AACAgent.hpp:8:0,
                 from /home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp:12,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:13:
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp: In member function 'virtual const std::vector<double>& arch::ARLAgent<ProgOptions>::_run(double, const std::vector<double>&, bool, bool, bool)':
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:91: warning: no return statement in function returning non-void [-Wreturn-type]
                                         bool learning, bool goal_reached, bool finished) {};
                                                                                           ^
In file included from /home/jim/ddrl/agent/cacla/include/OfflineCaclaAg.hpp:16:0,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:8:
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp: In member function 'void MLP::computeMemoryDataSkip()':
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp:1276:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int i=0;i<neural_net->layers().size();i++){
                    ^
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp:1291:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int i=0;i<neural_net->layers().size();i++){
                    ^
In file included from /home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp:20:0,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:13:
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp: In member function 'void MLP::computeMemoryDataSkip()':
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp:1276:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int i=0;i<neural_net->layers().size();i++){
                    ^
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp:1291:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int i=0;i<neural_net->layers().size();i++){
                    ^
In file included from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:13:0:
/home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp: In instantiation of 'OfflineCaclaAg<NN>::OfflineCaclaAg(unsigned int, unsigned int) [with NN = MLP]':
/home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:32:39:   required from here
/home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp:817:23: warning: 'OfflineCaclaAg<MLP>::empty_action' will be initialized after [-Wreorder]
   caffe::Blob<double> empty_action; //dummy action cause c++ cannot accept null reference
                       ^
/home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp:803:23: warning:   'std::vector<double> OfflineCaclaAg<MLP>::last_state' [-Wreorder]
   std::vector<double> last_state;
                       ^
In file included from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:13:0:
/home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp:57:3: warning:   when initialized here [-Wreorder]
   OfflineCaclaAg(unsigned int _nb_motors, unsigned int _nb_sensors)
   ^
In file included from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:13:0:
/home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp: In instantiation of 'void OfflineCaclaAg<NN>::end_episode(bool) [with NN = MLP]':
/home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:79:29:   required from here
/home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp:384:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for (int i=0;i<trajectory.size(); i++) {
                     ^
/home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp:391:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for (int i=0;i<trajectory.size(); i++) {
                     ^
In file included from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:8:0:
/home/jim/ddrl/agent/cacla/include/OfflineCaclaAg.hpp: In instantiation of 'void OfflineCaclaAg<NN>::end_episode(bool) [with NN = MLP]':
/home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:79:29:   required from here
/home/jim/ddrl/agent/cacla/include/OfflineCaclaAg.hpp:429:12: warning: variable 'V_pi_s0' set but not used [-Wunused-but-set-variable]
     double V_pi_s0 = 0;
            ^
In file included from /home/jim/ddrl/agent/cacla/../../common/include/arch/AACAgent.hpp:8:0,
                 from /home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp:12,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:13:
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp: In instantiation of 'const std::vector<double>& arch::ARLAgent<ProgOptions>::_run(double, const std::vector<double>&, bool, bool, bool) [with ProgOptions = arch::AgentGPUProgOptions]':
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:69:52:   required from 'const std::vector<double>& arch::ARLAgent<ProgOptions>::runf(double, const std::vector<double>&, bool, bool, bool) [with ProgOptions = arch::AgentGPUProgOptions]'
/home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:87:89:   required from here
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:209:50: warning: unused parameter 'reward' [-Wunused-parameter]
   virtual const std::vector<double>& _run(double reward, const std::vector<double>& perceptions,
                                                  ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:209:85: warning: unused parameter 'perceptions' [-Wunused-parameter]
   virtual const std::vector<double>& _run(double reward, const std::vector<double>& perceptions,
                                                                                     ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:46: warning: unused parameter 'learning' [-Wunused-parameter]
                                         bool learning, bool goal_reached, bool finished) {};
                                              ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:61: warning: unused parameter 'goal_reached' [-Wunused-parameter]
                                         bool learning, bool goal_reached, bool finished) {};
                                                             ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:80: warning: unused parameter 'finished' [-Wunused-parameter]
                                         bool learning, bool goal_reached, bool finished) {};
                                                                                ^
In file included from /home/jim/ddrl/agent/cacla/../../common/include/arch/AACAgent.hpp:8:0,
                 from /home/jim/ddrl/agent/cacla/include/OfflineCaclaAg.hpp:10,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:8:
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp: In instantiation of 'const std::vector<double>& arch::ARLAgent<ProgOptions>::_run(double, const std::vector<double>&, bool, bool, bool) [with ProgOptions = arch::AgentProgOptions]':
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:69:52:   required from 'const std::vector<double>& arch::ARLAgent<ProgOptions>::runf(double, const std::vector<double>&, bool, bool, bool) [with ProgOptions = arch::AgentProgOptions]'
/home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:87:89:   required from here
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:209:50: warning: unused parameter 'reward' [-Wunused-parameter]
   virtual const std::vector<double>& _run(double reward, const std::vector<double>& perceptions,
                                                  ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:209:85: warning: unused parameter 'perceptions' [-Wunused-parameter]
   virtual const std::vector<double>& _run(double reward, const std::vector<double>& perceptions,
                                                                                     ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:46: warning: unused parameter 'learning' [-Wunused-parameter]
                                         bool learning, bool goal_reached, bool finished) {};
                                              ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:61: warning: unused parameter 'goal_reached' [-Wunused-parameter]
                                         bool learning, bool goal_reached, bool finished) {};
                                                             ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:80: warning: unused parameter 'finished' [-Wunused-parameter]
                                         bool learning, bool goal_reached, bool finished) {};
                                                                                ^
In file included from /home/jim/ddrl/agent/cacla/include/BaseCaclaAg.hpp:12:0,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/cacla.cpp:2:
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp: In member function 'virtual const std::vector<double>& arch::ARLAgent<ProgOptions>::_run(double, const std::vector<double>&, bool, bool, bool)':
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:91: warning: no return statement in function returning non-void [-Wreturn-type]
                                         bool learning, bool goal_reached, bool finished) {};
                                                                                           ^
In file included from /home/jim/ddrl/agent/cacla/include/BaseCaclaAg.hpp:19:0,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/cacla.cpp:2:
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp: In member function 'void MLP::computeMemoryDataSkip()':
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp:1276:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int i=0;i<neural_net->layers().size();i++){
                    ^
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp:1291:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int i=0;i<neural_net->layers().size();i++){
                    ^
In file included from /home/jim/ddrl/agent/cacla/../../common/include/arch/AACAgent.hpp:8:0,
                 from /home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp:12,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:13:
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp: In member function 'virtual const std::vector<double>& arch::ARLAgent<ProgOptions>::_run(double, const std::vector<double>&, bool, bool, bool)':
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:91: warning: no return statement in function returning non-void [-Wreturn-type]
                                         bool learning, bool goal_reached, bool finished) {};
                                                                                           ^
In file included from /home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp:20:0,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:13:
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp: In member function 'void MLP::computeMemoryDataSkip()':
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp:1276:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int i=0;i<neural_net->layers().size();i++){
                    ^
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp:1291:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int i=0;i<neural_net->layers().size();i++){
                    ^
In file included from /home/jim/ddrl/agent/cacla/include/BaseCaclaAg.hpp:12:0,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/cacla.cpp:2:
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp: In instantiation of 'const std::vector<double>& arch::ARLAgent<ProgOptions>::_run(double, const std::vector<double>&, bool, bool, bool) [with ProgOptions = arch::AgentProgOptions]':
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:69:52:   required from 'const std::vector<double>& arch::ARLAgent<ProgOptions>::runf(double, const std::vector<double>&, bool, bool, bool) [with ProgOptions = arch::AgentProgOptions]'
/home/jim/ddrl/agent/cacla/src/pybinding/cacla.cpp:56:89:   required from here
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:209:50: warning: unused parameter 'reward' [-Wunused-parameter]
   virtual const std::vector<double>& _run(double reward, const std::vector<double>& perceptions,
                                                  ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:209:85: warning: unused parameter 'perceptions' [-Wunused-parameter]
   virtual const std::vector<double>& _run(double reward, const std::vector<double>& perceptions,
                                                                                     ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:46: warning: unused parameter 'learning' [-Wunused-parameter]
                                         bool learning, bool goal_reached, bool finished) {};
                                              ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:61: warning: unused parameter 'goal_reached' [-Wunused-parameter]
                                         bool learning, bool goal_reached, bool finished) {};
                                                             ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:80: warning: unused parameter 'finished' [-Wunused-parameter]
                                         bool learning, bool goal_reached, bool finished) {};
                                                                                ^
In file included from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:13:0:
/home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp: In instantiation of 'OfflineCaclaAg<NN>::OfflineCaclaAg(unsigned int, unsigned int) [with NN = MLP]':
/home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:32:39:   required from here
/home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp:817:23: warning: 'OfflineCaclaAg<MLP>::empty_action' will be initialized after [-Wreorder]
   caffe::Blob<double> empty_action; //dummy action cause c++ cannot accept null reference
                       ^
/home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp:803:23: warning:   'std::vector<double> OfflineCaclaAg<MLP>::last_state' [-Wreorder]
   std::vector<double> last_state;
                       ^
In file included from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:13:0:
/home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp:57:3: warning:   when initialized here [-Wreorder]
   OfflineCaclaAg(unsigned int _nb_motors, unsigned int _nb_sensors)
   ^
In file included from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:13:0:
/home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp: In instantiation of 'void OfflineCaclaAg<NN>::end_episode(bool) [with NN = MLP]':
/home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:79:29:   required from here
/home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp:366:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for (int i=0; i < all_traj.size() ; i++) {
                       ^
/home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp:384:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for (int i=0;i<trajectory.size(); i++) {
                     ^
/home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp:391:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for (int i=0;i<trajectory.size(); i++) {
                     ^
In file included from /home/jim/ddrl/agent/cacla/../../common/include/arch/AACAgent.hpp:8:0,
                 from /home/jim/ddrl/agent/cacla/include/PenNFACAg.hpp:12,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:13:
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp: In instantiation of 'const std::vector<double>& arch::ARLAgent<ProgOptions>::_run(double, const std::vector<double>&, bool, bool, bool) [with ProgOptions = arch::AgentGPUProgOptions]':
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:69:52:   required from 'const std::vector<double>& arch::ARLAgent<ProgOptions>::runf(double, const std::vector<double>&, bool, bool, bool) [with ProgOptions = arch::AgentGPUProgOptions]'
/home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:87:89:   required from here
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:209:50: warning: unused parameter 'reward' [-Wunused-parameter]
   virtual const std::vector<double>& _run(double reward, const std::vector<double>& perceptions,
                                                  ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:209:85: warning: unused parameter 'perceptions' [-Wunused-parameter]
   virtual const std::vector<double>& _run(double reward, const std::vector<double>& perceptions,
                                                                                     ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:46: warning: unused parameter 'learning' [-Wunused-parameter]
                                         bool learning, bool goal_reached, bool finished) {};
                                              ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:61: warning: unused parameter 'goal_reached' [-Wunused-parameter]
                                         bool learning, bool goal_reached, bool finished) {};
                                                             ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:80: warning: unused parameter 'finished' [-Wunused-parameter]
                                         bool learning, bool goal_reached, bool finished) {};
                                                                                ^
[ 27%] Linking CXX shared library ../../lib/libddrl-nfac.so
[ 27%] Built target ddrl-nfac
Scanning dependencies of target ddrl-psepenfac
[ 33%] Building CXX object CMakeFiles/ddrl-psepenfac.dir/src/pybinding/nfac.cpp.o
[ 38%] Linking CXX shared library ../../lib/libddrl-cacla.so
[ 44%] Linking CXX shared library ../../lib/libddrl-penfac.so
[ 44%] Built target ddrl-cacla
Scanning dependencies of target ddrl-corpenfac
[ 50%] Building CXX object CMakeFiles/ddrl-corpenfac.dir/src/pybinding/nfac.cpp.o
[ 50%] Built target ddrl-penfac
Scanning dependencies of target ddrl-hpenfac
[ 55%] Building CXX object CMakeFiles/ddrl-hpenfac.dir/src/pybinding/nfac.cpp.o
In file included from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:22:0:
/home/jim/ddrl/agent/cacla/include/CorPeNFACAg.hpp:13:21: fatal error: lapacke.h: No such file or directory
compilation terminated.
CMakeFiles/ddrl-corpenfac.dir/build.make:62: recipe for target 'CMakeFiles/ddrl-corpenfac.dir/src/pybinding/nfac.cpp.o' failed
make[2]: *** [CMakeFiles/ddrl-corpenfac.dir/src/pybinding/nfac.cpp.o] Error 1
CMakeFiles/Makefile2:252: recipe for target 'CMakeFiles/ddrl-corpenfac.dir/all' failed
make[1]: *** [CMakeFiles/ddrl-corpenfac.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /home/jim/ddrl/agent/cacla/../../common/include/arch/AACAgent.hpp:8:0,
                 from /home/jim/ddrl/agent/cacla/include/PSEPeNFACAg.hpp:10,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:10:
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp: In member function 'virtual const std::vector<double>& arch::ARLAgent<ProgOptions>::_run(double, const std::vector<double>&, bool, bool, bool)':
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:91: warning: no return statement in function returning non-void [-Wreturn-type]
                                         bool learning, bool goal_reached, bool finished) {};
                                                                                           ^
In file included from /home/jim/ddrl/agent/cacla/include/PSEPeNFACAg.hpp:16:0,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:10:
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp: In member function 'void MLP::computeMemoryDataSkip()':
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp:1276:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int i=0;i<neural_net->layers().size();i++){
                    ^
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp:1291:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int i=0;i<neural_net->layers().size();i++){
                    ^
In file included from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:10:0:
/home/jim/ddrl/agent/cacla/include/PSEPeNFACAg.hpp: In instantiation of 'void OfflineCaclaAg<NN>::end_episode(bool) [with NN = MLP]':
/home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:79:29:   required from here
/home/jim/ddrl/agent/cacla/include/PSEPeNFACAg.hpp:443:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int j=0;j<this->nb_motors;j++) {
                      ^
/home/jim/ddrl/agent/cacla/include/PSEPeNFACAg.hpp:603:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
           for(int i=size_cost_cacla;i<actions.size();i++) {
                                      ^
/home/jim/ddrl/agent/cacla/include/PSEPeNFACAg.hpp:468:12: warning: variable 'V_pi_s0' set but not used [-Wunused-but-set-variable]
     double V_pi_s0 = 0;
            ^
In file included from /home/jim/ddrl/agent/cacla/../../common/include/arch/AACAgent.hpp:8:0,
                 from /home/jim/ddrl/agent/cacla/include/PSEPeNFACAg.hpp:10,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:10:
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp: In instantiation of 'const std::vector<double>& arch::ARLAgent<ProgOptions>::_run(double, const std::vector<double>&, bool, bool, bool) [with ProgOptions = arch::AgentProgOptions]':
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:69:52:   required from 'const std::vector<double>& arch::ARLAgent<ProgOptions>::runf(double, const std::vector<double>&, bool, bool, bool) [with ProgOptions = arch::AgentProgOptions]'
/home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:87:89:   required from here
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:209:50: warning: unused parameter 'reward' [-Wunused-parameter]
   virtual const std::vector<double>& _run(double reward, const std::vector<double>& perceptions,
                                                  ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:209:85: warning: unused parameter 'perceptions' [-Wunused-parameter]
   virtual const std::vector<double>& _run(double reward, const std::vector<double>& perceptions,
                                                                                     ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:46: warning: unused parameter 'learning' [-Wunused-parameter]
                                         bool learning, bool goal_reached, bool finished) {};
                                              ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:61: warning: unused parameter 'goal_reached' [-Wunused-parameter]
                                         bool learning, bool goal_reached, bool finished) {};
                                                             ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:210:80: warning: unused parameter 'finished' [-Wunused-parameter]
                                         bool learning, bool goal_reached, bool finished) {};
                                                                                ^
In file included from /home/jim/ddrl/agent/cacla/../../common/include/arch/AACAgent.hpp:8:0,
                 from /home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:12,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:19:
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp: In member function 'virtual const std::vector<double>& arch::ARLAgent<ProgOptions>::_run(double, const std::vector<double>&, const std::vector<double>&, bool, bool, bool)':
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:207:133: warning: no return statement in function returning non-void [-Wreturn-type]
                                         const std::vector<double>& goal_achieved, bool learning, bool goal_reached, bool finished) {};
                                                                                                                                     ^
In file included from /home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:20:0,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:19:
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp: In member function 'void MLP::computeMemoryDataSkip()':
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp:1276:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int i=0;i<neural_net->layers().size();i++){
                    ^
/home/jim/ddrl/agent/cacla/../../common/include/nn/MLP.hpp:1291:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int i=0;i<neural_net->layers().size();i++){
                    ^
In file included from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:19:0:
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp: In instantiation of 'OfflineCaclaAg<NN>::OfflineCaclaAg(unsigned int, unsigned int, uint, uint) [with NN = MLP; uint = unsigned int]':
/home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:39:62:   required from here
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:1074:23: warning: 'OfflineCaclaAg<MLP>::empty_action' will be initialized after [-Wreorder]
   caffe::Blob<double> empty_action; //dummy action cause c++ cannot accept null reference
                       ^
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:1061:23: warning:   'std::vector<double> OfflineCaclaAg<MLP>::last_state' [-Wreorder]
   std::vector<double> last_state;
                       ^
In file included from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:19:0:
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:67:3: warning:   when initialized here [-Wreorder]
   OfflineCaclaAg(unsigned int _nb_motors, unsigned int _nb_sensors, uint _goal_size, uint _goal_start)
   ^
In file included from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:19:0:
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp: In instantiation of 'void OfflineCaclaAg<NN>::end_episode(bool) [with NN = MLP]':
/home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:79:29:   required from here
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:360:75: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (trajectory_end_points.size() == 0 || trajectory_end_points.back() != trajectory.size())
                                                                           ^
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:373:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int goal_dim=0; goal_dim < goal_size; goal_dim++) {
                                       ^
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:434:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i=0;i<trajectory.size(); i++) {
                   ^
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:476:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      for (int i=0;i<trajectory.size(); i++) {
                    ^
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:515:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int j=0;j<hindsight_nb_destination;j++) {
                    ^
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:518:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
           for(int k=min_index;k<=destination;k++) {
                                ^
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:549:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (trajectory_end_points.back() != trajectory.size())
                                          ^
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:561:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int goal_dim=0; goal_dim < goal_size; goal_dim++) {
                                       ^
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:586:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for (int i = saved_trajsize; i < trajectory.size(); i++) {
                                      ^
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:594:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for (int i = saved_trajsize; i < trajectory.size(); i++) {
                                      ^
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:649:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      for(int i=0;i<trajectory.size();i++){
                   ^
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:736:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         if(ignore_poss_ac && pdeltas[li] > 0. || it->artificial) {
                                               ^
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp: In instantiation of 'bool OfflineCaclaAg<NN>::sparse_reward(const std::vector<double>&, const std::vector<double>&) [with NN = MLP]':
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:530:31:   required from 'void OfflineCaclaAg<NN>::end_episode(bool) [with NN = MLP]'
/home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:79:29:   required from here
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:948:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i=0;i<a.size();i++){
                   ^
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp: In instantiation of 'OfflineCaclaAg<NN>::update_critic(const caffe::Blob<double>&, const caffe::Blob<double>&, const caffe::Blob<double>&)::<lambda()> [with NN = MLP]':
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:272:93:   required from 'struct OfflineCaclaAg<NN>::update_critic(const caffe::Blob<double>&, const caffe::Blob<double>&, const caffe::Blob<double>&) [with NN = MLP]::<lambda()>'
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:346:7:   required from 'void OfflineCaclaAg<NN>::update_critic(const caffe::Blob<double>&, const caffe::Blob<double>&, const caffe::Blob<double>&) [with NN = MLP]'
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:634:18:   required from 'void OfflineCaclaAg<NN>::end_episode(bool) [with NN = MLP]'
/home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:79:29:   required from here
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:277:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<trajectory.size();i++){
                      ^
In file included from /home/jim/ddrl/agent/cacla/../../common/include/arch/AACAgent.hpp:8:0,
                 from /home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:12,
                 from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:19:
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp: In instantiation of 'const std::vector<double>& arch::ARLAgent<ProgOptions>::_run(double, const std::vector<double>&, const std::vector<double>&, bool, bool, bool) [with ProgOptions = arch::AgentGPUProgOptions]':
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:67:52:   required from 'const std::vector<double>& arch::ARLAgent<ProgOptions>::runf(double, const std::vector<double>&, const std::vector<double>&, bool, bool, bool) [with ProgOptions = arch::AgentGPUProgOptions]'
/home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:92:104:   required from here
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:206:50: warning: unused parameter 'reward' [-Wunused-parameter]
   virtual const std::vector<double>& _run(double reward, const std::vector<double>& perceptions,
                                                  ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:206:85: warning: unused parameter 'perceptions' [-Wunused-parameter]
   virtual const std::vector<double>& _run(double reward, const std::vector<double>& perceptions,
                                                                                     ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:207:68: warning: unused parameter 'goal_achieved' [-Wunused-parameter]
                                         const std::vector<double>& goal_achieved, bool learning, bool goal_reached, bool finished) {};
                                                                    ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:207:88: warning: unused parameter 'learning' [-Wunused-parameter]
                                         const std::vector<double>& goal_achieved, bool learning, bool goal_reached, bool finished) {};
                                                                                        ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:207:103: warning: unused parameter 'goal_reached' [-Wunused-parameter]
                                         const std::vector<double>& goal_achieved, bool learning, bool goal_reached, bool finished) {};
                                                                                                       ^
/home/jim/ddrl/agent/cacla/../../common/include/arch/ARLAgent.hpp:207:122: warning: unused parameter 'finished' [-Wunused-parameter]
                                         const std::vector<double>& goal_achieved, bool learning, bool goal_reached, bool finished) {};
                                                                                                                          ^
In file included from /home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:19:0:
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp: In instantiation of 'const std::vector<double>& OfflineCaclaAg<NN>::_run(double, const std::vector<double>&, const std::vector<double>&, bool, bool, bool) [with NN = MLP]':
/home/jim/ddrl/agent/cacla/src/pybinding/nfac.cpp:125:1:   required from here
/home/jim/ddrl/agent/cacla/include/HPeNFACAg.hpp:90:97: warning: unused parameter 'as' [-Wunused-parameter]
                                   const std::vector<double>& goal_achieved, bool learning, bool as, bool) override {
                                                                                                 ^
[ 61%] Linking CXX shared library ../../lib/libddrl-penfac-para.so
[ 61%] Built target ddrl-penfac-para
[ 66%] Linking CXX shared library ../../lib/libddrl-psepenfac.so
[ 66%] Built target ddrl-psepenfac
[ 72%] Linking CXX shared library ../../lib/libddrl-hpenfac.so
[ 72%] Built target ddrl-hpenfac
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2