Comments (6)
Hi,
It looks like the problem comes from boost during the linking stage. On my ubuntu 18.04 servers with boost 1.65 it works without any issue. I see that you are using boost 1.70. There might be a difference between between these boost versions? Can you try with an older version of boost?
Also, if you want to use QD, I suggest you to use the "qd" branch. We are working on the documentation before merging this to master, but the code itself is perfectly stable (and used on a daily basis here).
from sferes2.
Hi,
Thank you for the fast reply. I will try downgrading the version of boost and see if that solves the issue.
Thank you for the recommendation as well. I will use the qd branch then.
If you do not mind me asking, @Aneoshun, is your implementation of the Hierarchical Behavior Repertoire available?. I would like to implement something similar to that, but for a different manipulation task and investigate the robustness capabilities of the high-level behaviors obtained using this compositional structure.
from sferes2.
Hi,
Unfortunately, my HBR code is not available (it's quite complicated, with a lot of different variants and not very generic). But I will be happy to help if you don't know how to do this.
from sferes2.
from sferes2.
Hi,
@Aneoshun thank you for offering your help. I will do my best to do this with the information I can find in the sferes documentation and the collection of papers about BRs.
@JoostHuizinga Thank you for the insight about getting it to work with boost 1_70. I did not want to spend more time than needed to get the base implementation of sferes to work, so I decided to downgrade the boost version to the 1_65.
I tested the 1_65 and 1_65_1 boost versions in Ubuntu 16.04, but got different compilation issues and could not find a way around them (I will add those at the end of this message).
I then decided to upgrade my system to Ubuntu 18.04 and I was able to compile and use sferes with boost 1_65_1. (I just had a minor inconvenience to get the right KDtree library to compile, which I had to obtain it from sferes/modular_QD, as the other versions of the library were giving me compilation issues).
Should I close the issue, as I no longer have this problem by having upgraded my system?
Logs: Ubuntu 16.04 - Boost 1_65_1
▲ Documents/testing_repositories/sferes2 ./waf configure -v
Command-line options for exp [exp/example] : -> OK
Setting top to : /home/kramer/Documents/testing_repositories/sferes2
Setting out to : /home/kramer/Documents/testing_repositories/sferes2/build
Checking for 'g++' (C++ compiler) : 23:54:34 runner ['/usr/bin/g++', '-dM', '-E', '-']
/usr/bin/g++
Checking boost includes : 1_65_1
path : /usr/include
Checking boost libs : ok
path : /usr/lib
libs : ['boost_serialization', 'boost_filesystem', 'boost_system', 'boost_unit_test_framework', 'boost_program_options', 'boost_graph', 'boost_thread', 'boost_regex', 'boost_mpi']
Checking Intel TBB includes (optional) : /usr/include
Checking Intel TBB libs (optional) : /usr/lib/x86_64-linux-gnu
Checking for MPI include (optional) : ok
path : /usr/include/mpi
Checking for MPI libs (optional) : ok
paths : ['/usr/lib']
libs : ['mpi_cxx', 'mpi']
Checking for Eigen : ok
path : /usr/include/eigen3
Checking pthread : /usr/lib/x86_64-linux-gnu
--- configuration ---
compiler(s):
- CXX: gcc
boost version: 1_65_1
mpi: True
Compilation flags :
CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated -Wno-unused -DSFERES_ROOT="/home/kramer/Documents/testing_repositories/sferes2" -std=c++11 -DMPI_ENABLED -DEIGEN3_ENABLED
LINKFLAGS:
--- license ---
Sferes2 is distributed under the CECILL license (GPL-compatible)
Please check the accompanying COPYING file or http://www.cecill.info/
'configure' finished successfully (0.065s)
▲ Documents/testing_repositories/sferes2 ./waf build -v master :: 143d :: ⬢
Command-line options for exp [exp/example] : -> OK
Waf: Entering directory /home/kramer/Documents/testing_repositories/sferes2/build' DEBUG is is disabled Entering directory
/home/kramer/Documents/testing_repositories/sferes2'
[ 1/13] Compiling sferes/ea/cmaes.cpp
23:54:44 runner ['/usr/bin/g++', '-D_REENTRANT', '-Wall', '-fPIC', '-ftemplate-depth-1024', '-Wno-sign-compare', '-Wno-deprecated', '-Wno-unused', '-DSFERES_ROOT="/home/kramer/Documents/testing_repositories/sferes2"', '-std=c++11', '-DMPI_ENABLED', '-DEIGEN3_ENABLED', '-DVERSION="ca0781ab324b8444bd7779a41b20169f142c7ca2"', '-O3', '-Isferes', '-I../sferes', '-Isferes/dbg', '-I../sferes/dbg', '-I/usr/include', '-I/usr/include/mpi', '-DUSE_TBB', '../sferes/ea/cmaes.cpp', '-c', '-o/home/kramer/Documents/testing_repositories/sferes2/build/sferes/ea/cmaes.cpp.1.o']
[ 2/13] Compiling sferes/dbg/dbg.cpp
23:54:44 runner ['/usr/bin/g++', '-D_REENTRANT', '-Wall', '-fPIC', '-ftemplate-depth-1024', '-Wno-sign-compare', '-Wno-deprecated', '-Wno-unused', '-DSFERES_ROOT="/home/kramer/Documents/testing_repositories/sferes2"', '-std=c++11', '-DMPI_ENABLED', '-DEIGEN3_ENABLED', '-DVERSION="ca0781ab324b8444bd7779a41b20169f142c7ca2"', '-O3', '-Isferes', '-I../sferes', '-Isferes/dbg', '-I../sferes/dbg', '-I/usr/include', '-I/usr/include/mpi', '-DUSE_TBB', '../sferes/dbg/dbg.cpp', '-c', '-o/home/kramer/Documents/testing_repositories/sferes2/build/sferes/dbg/dbg.cpp.1.o']
[ 3/13] Compiling examples/ex_ea.cpp
23:54:44 runner ['/usr/bin/g++', '-D_REENTRANT', '-Wall', '-fPIC', '-ftemplate-depth-1024', '-Wno-sign-compare', '-Wno-deprecated', '-Wno-unused', '-DSFERES_ROOT="/home/kramer/Documents/testing_repositories/sferes2"', '-std=c++11', '-DMPI_ENABLED', '-DEIGEN3_ENABLED', '-DVERSION="ca0781ab324b8444bd7779a41b20169f142c7ca2"', '-O3', '-I.', '-I..', '-I/usr/include', '-I/usr/include/eigen3', '-I/usr/include/mpi', '-DUSE_TBB', '../examples/ex_ea.cpp', '-c', '-o/home/kramer/Documents/testing_repositories/sferes2/build/examples/ex_ea.cpp.1.o']
[ 4/13] Compiling examples/ex_ea_mpi.cpp
23:54:44 runner ['/usr/bin/g++', '-D_REENTRANT', '-Wall', '-fPIC', '-ftemplate-depth-1024', '-Wno-sign-compare', '-Wno-deprecated', '-Wno-unused', '-DSFERES_ROOT="/home/kramer/Documents/testing_repositories/sferes2"', '-std=c++11', '-DMPI_ENABLED', '-DEIGEN3_ENABLED', '-DVERSION="ca0781ab324b8444bd7779a41b20169f142c7ca2"', '-O3', '-I.', '-I..', '-I/usr/include', '-I/usr/include/eigen3', '-I/usr/include/mpi', '-DUSE_TBB', '../examples/ex_ea_mpi.cpp', '-c', '-o/home/kramer/Documents/testing_repositories/sferes2/build/examples/ex_ea_mpi.cpp.2.o']
[ 5/13] Compiling examples/ex_nsga2.cpp
[ 6/13] Compiling examples/ex_diversity.cpp
23:54:44 runner ['/usr/bin/g++', '-D_REENTRANT', '-Wall', '-fPIC', '-ftemplate-depth-1024', '-Wno-sign-compare', '-Wno-deprecated', '-Wno-unused', '-DSFERES_ROOT="/home/kramer/Documents/testing_repositories/sferes2"', '-std=c++11', '-DMPI_ENABLED', '-DEIGEN3_ENABLED', '-DVERSION="ca0781ab324b8444bd7779a41b20169f142c7ca2"', '-O3', '-I.', '-I..', '-I/usr/include', '-I/usr/include/eigen3', '-I/usr/include/mpi', '-DUSE_TBB', '../examples/ex_nsga2.cpp', '-c', '-o/home/kramer/Documents/testing_repositories/sferes2/build/examples/ex_nsga2.cpp.3.o']
[ 7/13] Compiling examples/ex_eps_moea.cpp
23:54:44 runner ['/usr/bin/g++', '-D_REENTRANT', '-Wall', '-fPIC', '-ftemplate-depth-1024', '-Wno-sign-compare', '-Wno-deprecated', '-Wno-unused', '-DSFERES_ROOT="/home/kramer/Documents/testing_repositories/sferes2"', '-std=c++11', '-DMPI_ENABLED', '-DEIGEN3_ENABLED', '-DVERSION="ca0781ab324b8444bd7779a41b20169f142c7ca2"', '-O3', '-I.', '-I..', '-I/usr/include', '-I/usr/include/eigen3', '-I/usr/include/mpi', '-DUSE_TBB', '../examples/ex_diversity.cpp', '-c', '-o/home/kramer/Documents/testing_repositories/sferes2/build/examples/ex_diversity.cpp.4.o']
23:54:44 runner ['/usr/bin/g++', '-D_REENTRANT', '-Wall', '-fPIC', '-ftemplate-depth-1024', '-Wno-sign-compare', '-Wno-deprecated', '-Wno-unused', '-DSFERES_ROOT="/home/kramer/Documents/testing_repositories/sferes2"', '-std=c++11', '-DMPI_ENABLED', '-DEIGEN3_ENABLED', '-DVERSION="ca0781ab324b8444bd7779a41b20169f142c7ca2"', '-O3', '-I.', '-I..', '-I/usr/include', '-I/usr/include/eigen3', '-I/usr/include/mpi', '-DUSE_TBB', '../examples/ex_eps_moea.cpp', '-c', '-o/home/kramer/Documents/testing_repositories/sferes2/build/examples/ex_eps_moea.cpp.5.o']
../sferes/ea/cmaes.cpp: In function ‘void cmaes_resume_distribution(cmaes_t*, char*)’:
../sferes/ea/cmaes.cpp:383:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, " %s");
^
../sferes/ea/cmaes.cpp:397:25: warning: ignoring return value of ‘int fscanf(FILE, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, " %s");
^
../sferes/ea/cmaes.cpp:409:25: warning: ignoring return value of ‘int fscanf(FILE, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, " %s");
^
../sferes/ea/cmaes.cpp:427:25: warning: ignoring return value of ‘int fscanf(FILE, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, " %s");
^
../sferes/ea/cmaes.cpp:445:25: warning: ignoring return value of ‘int fscanf(FILE, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, " %s");
^
../sferes/ea/cmaes.cpp:462:25: warning: ignoring return value of ‘int fscanf(FILE, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, " %s");
^
../sferes/ea/cmaes.cpp:473:25: warning: ignoring return value of ‘int fscanf(FILE, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, " %*s");
^
../sferes/dbg/dbg.cpp: In member function ‘{anonymous}::source_info::array_type& {anonymous}::source_info::raw_cast()’:
../sferes/dbg/dbg.cpp:443:60: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return reinterpret_cast<array_type>(raw_dbg_streams);
^
../sferes/dbg/dbg.cpp: In member function ‘const {anonymous}::source_info::array_type& {anonymous}::source_info::raw_cast() const’:
../sferes/dbg/dbg.cpp:446:66: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return reinterpret_cast<const array_type>(raw_dbg_streams);
^
[ 8/13] Linking build/sferes/libsferes2.a
23:54:47 runner ['/usr/bin/ar', 'rcs', 'sferes/libsferes2.a', 'sferes/dbg/dbg.cpp.1.o', 'sferes/ea/cmaes.cpp.1.o']
In file included from ../examples/ex_ea.cpp:4:0:
../sferes/ea/rank_simple.hpp:47:2: warning: #warning "DEPRECATED: rank_simple will be removed in future versions" [-Wcpp]
#warning "DEPRECATED: rank_simple will be removed in future versions"
^
[ 9/13] Linking build/examples/ex_ea
23:54:54 runner ['/usr/bin/g++', 'examples/ex_ea.cpp.1.o', '-o/home/kramer/Documents/testing_repositories/sferes2/build/examples/ex_ea', '-Wl,-Bstatic', '-Lsferes', '-lsferes2', '-Wl,-Bdynamic', '-L/usr/lib/x86_64-linux-gnu', '-L/usr/lib', '-L/usr/lib/x86_64-linux-gnu', '-L/usr/lib', '-ltbb', '-lboost_serialization', '-lboost_filesystem', '-lboost_system', '-lboost_unit_test_framework', '-lboost_program_options', '-lboost_graph', '-lboost_thread', '-lboost_regex', '-lboost_mpi', '-lpthread', '-lmpi_cxx', '-lmpi']
examples/ex_ea.cpp.1.o: In function boost::archive::detail::common_iarchive<boost::archive::binary_iarchive>::vload(boost::archive::class_name_type&)': ex_ea.cpp:(.text._ZN5boost7archive6detail15common_iarchiveINS0_15binary_iarchiveEE5vloadERNS0_15class_name_typeE[_ZN5boost7archive6detail15common_iarchiveINS0_15binary_iarchiveEE5vloadERNS0_15class_name_typeE]+0x1): undefined reference to
boost::archive::basic_binary_iarchiveboost::archive::binary_iarchive::load_override(boost::archive::class_name_type&)'
examples/ex_ea.cpp.1.o: In function void boost::serialization::throw_exception<boost::archive::archive_exception>(boost::archive::archive_exception const&)': ex_ea.cpp:(.text._ZN5boost13serialization15throw_exceptionINS_7archive17archive_exceptionEEEvRKT_[_ZN5boost13serialization15throw_exceptionINS_7archive17archive_exceptionEEEvRKT_]+0x1d): undefined reference to
boost::archive::archive_exception::archive_exception(boost::archive::archive_exception const&)'
examples/ex_ea.cpp.1.o: In function boost::archive::detail::pointer_oserializer<boost::archive::binary_oarchive, sferes::phen::Parameters<sferes::gen::EvoFloat<10, Params, stc::Itself>, FitTest<Params, stc::Itself>, Params, stc::Itself> >::pointer_oserializer()': ex_ea.cpp:(.text._ZN5boost7archive6detail19pointer_oserializerINS0_15binary_oarchiveEN6sferes4phen10ParametersINS4_3gen8EvoFloatILi10E6ParamsN3stc6ItselfEEE7FitTestIS9_SB_ES9_SB_EEEC2Ev[_ZN5boost7archive6detail19pointer_oserializerINS0_15binary_oarchiveEN6sferes4phen10ParametersINS4_3gen8EvoFloatILi10E6ParamsN3stc6ItselfEEE7FitTestIS9_SB_ES9_SB_EEEC5Ev]+0x28): undefined reference to
boost::serialization::singleton_module::get_lock()'
examples/ex_ea.cpp.1.o: In function boost::archive::detail::pointer_iserializer<boost::archive::binary_iarchive, sferes::phen::Parameters<sferes::gen::EvoFloat<10, Params, stc::Itself>, FitTest<Params, stc::Itself>, Params, stc::Itself> >::pointer_iserializer()': ex_ea.cpp:(.text._ZN5boost7archive6detail19pointer_iserializerINS0_15binary_iarchiveEN6sferes4phen10ParametersINS4_3gen8EvoFloatILi10E6ParamsN3stc6ItselfEEE7FitTestIS9_SB_ES9_SB_EEEC2Ev[_ZN5boost7archive6detail19pointer_iserializerINS0_15binary_iarchiveEN6sferes4phen10ParametersINS4_3gen8EvoFloatILi10E6ParamsN3stc6ItselfEEE7FitTestIS9_SB_ES9_SB_EEEC5Ev]+0x28): undefined reference to
boost::serialization::singleton_module::get_lock()'
examples/ex_ea.cpp.1.o: In function boost::archive::detail::iserializer<boost::archive::binary_iarchive, boost::shared_ptr<sferes::phen::Parameters<sferes::gen::EvoFloat<10, Params, stc::Itself>, FitTest<Params, stc::Itself>, Params, stc::Itself> > >::load_object_data(boost::archive::detail::basic_iarchive&, void*, unsigned int) const': ex_ea.cpp:(.text._ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENS_10shared_ptrIN6sferes4phen10ParametersINS5_3gen8EvoFloatILi10E6ParamsN3stc6ItselfEEE7FitTestISA_SC_ESA_SC_EEEEE16load_object_dataERNS1_14basic_iarchiveEPvj[_ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENS_10shared_ptrIN6sferes4phen10ParametersINS5_3gen8EvoFloatILi10E6ParamsN3stc6ItselfEEE7FitTestISA_SC_ESA_SC_EEEEE16load_object_dataERNS1_14basic_iarchiveEPvj]+0x2b7): undefined reference to
boost::serialization::singleton_module::get_lock()'
collect2: error: ld returned 1 exit status
In file included from ../examples/ex_eps_moea.cpp:4:0:
../sferes/ea/eps_moea.hpp:41:2: warning: #warning "DEPRECATED: eps_moea is likely to be removed in future versions (due to a lack of active users)" [-Wcpp]
#warning "DEPRECATED: eps_moea is likely to be removed in future versions (due to a lack of active users)"
^
In file included from ../examples/ex_ea_mpi.cpp:6:0:
../sferes/ea/rank_simple.hpp:47:2: warning: #warning "DEPRECATED: rank_simple will be removed in future versions" [-Wcpp]
#warning "DEPRECATED: rank_simple will be removed in future versions"
^
Waf: Leaving directory `/home/kramer/Documents/testing_repositories/sferes2/build'
Build failed
-> task in 'ex_ea' failed with exit status 1:
{task 139933694092424: cxxprogram ex_ea.cpp.1.o -> ex_ea}
['/usr/bin/g++', 'examples/ex_ea.cpp.1.o', '-o/home/kramer/Documents/testing_repositories/sferes2/build/examples/ex_ea', '-Wl,-Bstatic', '-Lsferes', '-lsferes2', '-Wl,-Bdynamic', '-L/usr/lib/x86_64-linux-gnu', '-L/usr/lib', '-L/usr/lib/x86_64-linux-gnu', '-L/usr/lib', '-ltbb', '-lboost_serialization', '-lboost_filesystem', '-lboost_system', '-lboost_unit_test_framework', '-lboost_program_options', '-lboost_graph', '-lboost_thread', '-lboost_regex', '-lboost_mpi', '-lpthread', '-lmpi_cxx', '-lmpi']
Logs: Ubuntu 16.04 - Boost 1_65
△ Documents/testing_repositories/sferes2 ./waf configure -v
Command-line options for exp [exp/example] : -> OK
Setting top to : /home/kramer/Documents/testing_repositories/sferes2
Setting out to : /home/kramer/Documents/testing_repositories/sferes2/build
Checking for 'g++' (C++ compiler) : 23:31:51 runner ['/usr/bin/g++', '-dM', '-E', '-']
/usr/bin/g++
Checking boost includes : 1_66
path : /usr/include
Checking boost libs : ok
path : /usr/lib
libs : ['boost_serialization', 'boost_filesystem', 'boost_system', 'boost_unit_test_framework', 'boost_program_options', 'boost_graph', 'boost_thread', 'boost_regex', 'boost_mpi']
Checking Intel TBB includes (optional) : /usr/include
Checking Intel TBB libs (optional) : /usr/lib/x86_64-linux-gnu
Checking for MPI include (optional) : ok
path : /usr/include/mpi
Checking for MPI libs (optional) : ok
paths : ['/usr/lib']
libs : ['mpi_cxx', 'mpi']
Checking for Eigen : ok
path : /usr/include/eigen3
Checking pthread : /usr/lib/x86_64-linux-gnu
--- configuration ---
compiler(s):
- CXX: gcc
boost version: 1_66
mpi: True
Compilation flags :
CXXFLAGS : -D_REENTRANT -Wall -fPIC -ftemplate-depth-1024 -Wno-sign-compare -Wno-deprecated -Wno-unused -DSFERES_ROOT="/home/kramer/Documents/testing_repositories/sferes2" -std=c++11 -DMPI_ENABLED -DEIGEN3_ENABLED
LINKFLAGS:
--- license ---
Sferes2 is distributed under the CECILL license (GPL-compatible)
Please check the accompanying COPYING file or http://www.cecill.info/
'configure' finished successfully (0.075s)
▲ Documents/testing_repositories/sferes2 ./waf build -v master :: 143d :: ⬢
Command-line options for exp [exp/example] : -> OK
Waf: Entering directory /home/kramer/Documents/testing_repositories/sferes2/build' DEBUG is is disabled Entering directory
/home/kramer/Documents/testing_repositories/sferes2'
[ 1/13] Compiling sferes/ea/cmaes.cpp
23:32:47 runner ['/usr/bin/g++', '-D_REENTRANT', '-Wall', '-fPIC', '-ftemplate-depth-1024', '-Wno-sign-compare', '-Wno-deprecated', '-Wno-unused', '-DSFERES_ROOT="/home/kramer/Documents/testing_repositories/sferes2"', '-std=c++11', '-DMPI_ENABLED', '-DEIGEN3_ENABLED', '-DVERSION="ca0781ab324b8444bd7779a41b20169f142c7ca2"', '-O3', '-Isferes', '-I../sferes', '-Isferes/dbg', '-I../sferes/dbg', '-I/usr/include', '-I/usr/include/mpi', '-DUSE_TBB', '../sferes/ea/cmaes.cpp', '-c', '-o/home/kramer/Documents/testing_repositories/sferes2/build/sferes/ea/cmaes.cpp.1.o']
[ 2/13] Compiling sferes/dbg/dbg.cpp
23:32:47 runner ['/usr/bin/g++', '-D_REENTRANT', '-Wall', '-fPIC', '-ftemplate-depth-1024', '-Wno-sign-compare', '-Wno-deprecated', '-Wno-unused', '-DSFERES_ROOT="/home/kramer/Documents/testing_repositories/sferes2"', '-std=c++11', '-DMPI_ENABLED', '-DEIGEN3_ENABLED', '-DVERSION="ca0781ab324b8444bd7779a41b20169f142c7ca2"', '-O3', '-Isferes', '-I../sferes', '-Isferes/dbg', '-I../sferes/dbg', '-I/usr/include', '-I/usr/include/mpi', '-DUSE_TBB', '../sferes/dbg/dbg.cpp', '-c', '-o/home/kramer/Documents/testing_repositories/sferes2/build/sferes/dbg/dbg.cpp.1.o']
[ 3/13] Compiling examples/ex_ea.cpp
23:32:47 runner ['/usr/bin/g++', '-D_REENTRANT', '-Wall', '-fPIC', '-ftemplate-depth-1024', '-Wno-sign-compare', '-Wno-deprecated', '-Wno-unused', '-DSFERES_ROOT="/home/kramer/Documents/testing_repositories/sferes2"', '-std=c++11', '-DMPI_ENABLED', '-DEIGEN3_ENABLED', '-DVERSION="ca0781ab324b8444bd7779a41b20169f142c7ca2"', '-O3', '-I.', '-I..', '-I/usr/include', '-I/usr/include/eigen3', '-I/usr/include/mpi', '-DUSE_TBB', '../examples/ex_ea.cpp', '-c', '-o/home/kramer/Documents/testing_repositories/sferes2/build/examples/ex_ea.cpp.1.o']
[ 4/13] Compiling examples/ex_ea_mpi.cpp
23:32:47 runner ['/usr/bin/g++', '-D_REENTRANT', '-Wall', '-fPIC', '-ftemplate-depth-1024', '-Wno-sign-compare', '-Wno-deprecated', '-Wno-unused', '-DSFERES_ROOT="/home/kramer/Documents/testing_repositories/sferes2"', '-std=c++11', '-DMPI_ENABLED', '-DEIGEN3_ENABLED', '-DVERSION="ca0781ab324b8444bd7779a41b20169f142c7ca2"', '-O3', '-I.', '-I..', '-I/usr/include', '-I/usr/include/eigen3', '-I/usr/include/mpi', '-DUSE_TBB', '../examples/ex_ea_mpi.cpp', '-c', '-o/home/kramer/Documents/testing_repositories/sferes2/build/examples/ex_ea_mpi.cpp.2.o']
[ 5/13] Compiling examples/ex_nsga2.cpp
23:32:47 runner ['/usr/bin/g++', '-D_REENTRANT', '-Wall', '-fPIC', '-ftemplate-depth-1024', '-Wno-sign-compare', '-Wno-deprecated', '-Wno-unused', '-DSFERES_ROOT="/home/kramer/Documents/testing_repositories/sferes2"', '-std=c++11', '-DMPI_ENABLED', '-DEIGEN3_ENABLED', '-DVERSION="ca0781ab324b8444bd7779a41b20169f142c7ca2"', '-O3', '-I.', '-I..', '-I/usr/include', '-I/usr/include/eigen3', '-I/usr/include/mpi', '-DUSE_TBB', '../examples/ex_nsga2.cpp', '-c', '-o/home/kramer/Documents/testing_repositories/sferes2/build/examples/ex_nsga2.cpp.3.o']
[ 6/13] Compiling examples/ex_diversity.cpp
23:32:47 runner ['/usr/bin/g++', '-D_REENTRANT', '-Wall', '-fPIC', '-ftemplate-depth-1024', '-Wno-sign-compare', '-Wno-deprecated', '-Wno-unused', '-DSFERES_ROOT="/home/kramer/Documents/testing_repositories/sferes2"', '-std=c++11', '-DMPI_ENABLED', '-DEIGEN3_ENABLED', '-DVERSION="ca0781ab324b8444bd7779a41b20169f142c7ca2"', '-O3', '-I.', '-I..', '-I/usr/include', '-I/usr/include/eigen3', '-I/usr/include/mpi', '-DUSE_TBB', '../examples/ex_diversity.cpp', '-c', '-o/home/kramer/Documents/testing_repositories/sferes2/build/examples/ex_diversity.cpp.4.o']
[ 7/13] Compiling examples/ex_eps_moea.cpp
23:32:47 runner ['/usr/bin/g++', '-D_REENTRANT', '-Wall', '-fPIC', '-ftemplate-depth-1024', '-Wno-sign-compare', '-Wno-deprecated', '-Wno-unused', '-DSFERES_ROOT="/home/kramer/Documents/testing_repositories/sferes2"', '-std=c++11', '-DMPI_ENABLED', '-DEIGEN3_ENABLED', '-DVERSION="ca0781ab324b8444bd7779a41b20169f142c7ca2"', '-O3', '-I.', '-I..', '-I/usr/include', '-I/usr/include/eigen3', '-I/usr/include/mpi', '-DUSE_TBB', '../examples/ex_eps_moea.cpp', '-c', '-o/home/kramer/Documents/testing_repositories/sferes2/build/examples/ex_eps_moea.cpp.5.o']
../sferes/ea/cmaes.cpp: In function ‘void cmaes_resume_distribution(cmaes_t*, char*)’:
../sferes/ea/cmaes.cpp:383:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, " %s");
^
../sferes/ea/cmaes.cpp:397:25: warning: ignoring return value of ‘int fscanf(FILE, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, " %s");
^
../sferes/ea/cmaes.cpp:409:25: warning: ignoring return value of ‘int fscanf(FILE, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, " %s");
^
../sferes/ea/cmaes.cpp:427:25: warning: ignoring return value of ‘int fscanf(FILE, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, " %s");
^
../sferes/ea/cmaes.cpp:445:25: warning: ignoring return value of ‘int fscanf(FILE, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, " %s");
^
../sferes/ea/cmaes.cpp:462:25: warning: ignoring return value of ‘int fscanf(FILE, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, " %s");
^
../sferes/ea/cmaes.cpp:473:25: warning: ignoring return value of ‘int fscanf(FILE, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp, " %*s");
^
../sferes/dbg/dbg.cpp: In member function ‘{anonymous}::source_info::array_type& {anonymous}::source_info::raw_cast()’:
../sferes/dbg/dbg.cpp:443:60: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return reinterpret_cast<array_type>(raw_dbg_streams);
^
../sferes/dbg/dbg.cpp: In member function ‘const {anonymous}::source_info::array_type& {anonymous}::source_info::raw_cast() const’:
../sferes/dbg/dbg.cpp:446:66: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return reinterpret_cast<const array_type>(raw_dbg_streams);
^
[ 8/13] Linking build/sferes/libsferes2.a
23:32:50 runner ['/usr/bin/ar', 'rcs', 'sferes/libsferes2.a', 'sferes/dbg/dbg.cpp.1.o', 'sferes/ea/cmaes.cpp.1.o']
In file included from ../examples/ex_ea.cpp:4:0:
../sferes/ea/rank_simple.hpp:47:2: warning: #warning "DEPRECATED: rank_simple will be removed in future versions" [-Wcpp]
#warning "DEPRECATED: rank_simple will be removed in future versions"
^
[ 9/13] Linking build/examples/ex_ea
23:32:57 runner ['/usr/bin/g++', 'examples/ex_ea.cpp.1.o', '-o/home/kramer/Documents/testing_repositories/sferes2/build/examples/ex_ea', '-Wl,-Bstatic', '-Lsferes', '-lsferes2', '-Wl,-Bdynamic', '-L/usr/lib/x86_64-linux-gnu', '-L/usr/lib', '-L/usr/lib/x86_64-linux-gnu', '-L/usr/lib', '-ltbb', '-lboost_serialization', '-lboost_filesystem', '-lboost_system', '-lboost_unit_test_framework', '-lboost_program_options', '-lboost_graph', '-lboost_thread', '-lboost_regex', '-lboost_mpi', '-lpthread', '-lmpi_cxx', '-lmpi']
examples/ex_ea.cpp.1.o: In function boost::archive::detail::common_iarchive<boost::archive::binary_iarchive>::vload(boost::archive::class_name_type&)': ex_ea.cpp:(.text._ZN5boost7archive6detail15common_iarchiveINS0_15binary_iarchiveEE5vloadERNS0_15class_name_typeE[_ZN5boost7archive6detail15common_iarchiveINS0_15binary_iarchiveEE5vloadERNS0_15class_name_typeE]+0x1): undefined reference to
boost::archive::basic_binary_iarchiveboost::archive::binary_iarchive::load_override(boost::archive::class_name_type&)'
examples/ex_ea.cpp.1.o: In function void boost::serialization::throw_exception<boost::archive::archive_exception>(boost::archive::archive_exception const&)': ex_ea.cpp:(.text._ZN5boost13serialization15throw_exceptionINS_7archive17archive_exceptionEEEvRKT_[_ZN5boost13serialization15throw_exceptionINS_7archive17archive_exceptionEEEvRKT_]+0x1d): undefined reference to
boost::archive::archive_exception::archive_exception(boost::archive::archive_exception const&)'
collect2: error: ld returned 1 exit status
In file included from ../examples/ex_ea_mpi.cpp:6:0:
../sferes/ea/rank_simple.hpp:47:2: warning: #warning "DEPRECATED: rank_simple will be removed in future versions" [-Wcpp]
#warning "DEPRECATED: rank_simple will be removed in future versions"
^
In file included from ../examples/ex_eps_moea.cpp:4:0:
../sferes/ea/eps_moea.hpp:41:2: warning: #warning "DEPRECATED: eps_moea is likely to be removed in future versions (due to a lack of active users)" [-Wcpp]
#warning "DEPRECATED: eps_moea is likely to be removed in future versions (due to a lack of active users)"
^
Waf: Leaving directory `/home/kramer/Documents/testing_repositories/sferes2/build'
Build failed
-> task in 'ex_ea' failed with exit status 1:
{task 140503935792264: cxxprogram ex_ea.cpp.1.o -> ex_ea}
['/usr/bin/g++', 'examples/ex_ea.cpp.1.o', '-o/home/kramer/Documents/testing_repositories/sferes2/build/examples/ex_ea', '-Wl,-Bstatic', '-Lsferes', '-lsferes2', '-Wl,-Bdynamic', '-L/usr/lib/x86_64-linux-gnu', '-L/usr/lib', '-L/usr/lib/x86_64-linux-gnu', '-L/usr/lib', '-ltbb', '-lboost_serialization', '-lboost_filesystem', '-lboost_system', '-lboost_unit_test_framework', '-lboost_program_options', '-lboost_graph', '-lboost_thread', '-lboost_regex', '-lboost_mpi', '-lpthread', '-lmpi_cxx', '-lmpi']
from sferes2.
Glad to read that you managed to compile and use Sferes. Good luck with your master project.
from sferes2.
Related Issues (20)
- /sferes/misc/rand.hpp:79 : Assertion `max > min' failed. HOT 6
- configure module map-elite failed
- Rename namespace stat to stats
- Compilation of QD branch without KD-tree HOT 3
- Will sferes2 ever consider adding cmake support? HOT 1
- nn2 build fail HOT 29
- generated wscript is outdated for new exps
- New rng breaking valgrind
- Creation exp not up-to-date
- Switch to double (instead of float)
- Excessive memory consumption when using eval::Parallel HOT 23
- Configuring experiments improvement
- documentation missing some libboost libs HOT 1
- Update wiki HOT 1
- pthread in Ubuntu 18.10 HOT 3
- ./waf --exp modular_QD in ubuntu 18.10 HOT 6
- New exp_map_elites.cpp does not compile HOT 9
- GenericNsga2 does not use Crowd template parameter HOT 1
- Segmentation fault using eval::Parallel HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sferes2.