compiling GiGi -- archive/shared_ptr_helper.hpp:114: error

Questions, problems and discussion about compiling FreeOrion.

Moderators: Oberlus, Oberlus

Post Reply
Message
Author
dsockwell
Space Krill
Posts: 3
Joined: Mon Dec 28, 2009 11:23 am

compiling GiGi -- archive/shared_ptr_helper.hpp:114: error

#1 Post by dsockwell » Mon Dec 28, 2009 11:37 am

I'm having trouble completing the compilation in the FreeOrion/GG directory. I read in another thread that the tutorials may be the problem, and that it is safe to ignore the error described there:

viewtopic.php?f=24&t=2395

Since this is a different error, I must ask if it is safe to ignore it as well.

Compilation log as follows:

Code: Select all

[ 98%] Building CXX object tutorial/CMakeFiles/serialization.dir/saveload.cpp.o
/usr/local/include/boost/archive/shared_ptr_helper.hpp: In static member function ‘static const boost::serialization::extended_type_info* boost::archive::detail::shared_ptr_helper::non_polymorphic<T>::get_object_identifier(T&) [with T = GG::Font]’:
/usr/local/include/boost/archive/shared_ptr_helper.hpp:147:   instantiated from ‘void boost::archive::detail::shared_ptr_helper::reset(boost::shared_ptr<X>&, T*) [with T = GG::Font]’
/usr/local/include/boost/serialization/shared_ptr.hpp:142:   instantiated from ‘void boost::serialization::load(Archive&, boost::shared_ptr<U>&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = GG::Font]’
/usr/local/include/boost/serialization/split_free.hpp:58:   instantiated from ‘static void boost::serialization::free_loader<Archive, T>::invoke(Archive&, T&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = boost::shared_ptr<GG::Font>]’
/usr/local/include/boost/serialization/split_free.hpp:74:   instantiated from ‘void boost::serialization::split_free(Archive&, T&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = boost::shared_ptr<GG::Font>]’
/usr/local/include/boost/serialization/shared_ptr.hpp:157:   instantiated from ‘void boost::serialization::serialize(Archive&, boost::shared_ptr<U>&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = GG::Font]’
/usr/local/include/boost/serialization/serialization.hpp:133:   instantiated from ‘void boost::serialization::serialize_adl(Archive&, T&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = boost::shared_ptr<GG::Font>]’
/usr/local/include/boost/archive/detail/iserializer.hpp:173:   instantiated from ‘void boost::archive::detail::iserializer<Archive, T>::load_object_data(boost::archive::detail::basic_iarchive&, void*, unsigned int) const [with Archive = boost::archive::xml_iarchive, T = boost::shared_ptr<GG::Font>]’
/home/dsockwell/freeorion/freeorion/FreeOrion/GG/tutorial/saveload.cpp:91:   instantiated from here
/usr/local/include/boost/archive/shared_ptr_helper.hpp:114: error: cannot convert ‘const boost::serialization::extended_type_info_typeid<GG::Font>’ to ‘const boost::serialization::extended_type_info*’ in return
make[2]: *** [tutorial/CMakeFiles/serialization.dir/saveload.cpp.o] Error 1
make[1]: *** [tutorial/CMakeFiles/serialization.dir/all] Error 2
make: *** [all] Error 2
Last edited by dsockwell on Mon Dec 28, 2009 12:12 pm, edited 1 time in total.

dsockwell
Space Krill
Posts: 3
Joined: Mon Dec 28, 2009 11:23 am

Re: compiling GiGi -- archive/shared_ptr_helper.hpp:114: error

#2 Post by dsockwell » Mon Dec 28, 2009 12:11 pm

I went ahead and renamed the makefiles for GG/tutorials and GG installed fine. Trouble is I had the same error come up when compiling freeorion.

Code: Select all

[ 17%] Building CXX object server/CMakeFiles/freeoriond.dir/__/util/Serialize.cpp.o
/usr/local/include/boost/archive/shared_ptr_helper.hpp: In static member function ‘static const boost::serialization::extended_type_info* boost::archive::detail::shared_ptr_helper::non_polymorphic<T>::get_object_identifier(T&) [with T = CombatFighterFormation]’:
/usr/local/include/boost/archive/shared_ptr_helper.hpp:147:   instantiated from ‘void boost::archive::detail::shared_ptr_helper::reset(boost::shared_ptr<X>&, T*) [with T = CombatFighterFormation]’
/usr/local/include/boost/serialization/shared_ptr.hpp:142:   instantiated from ‘void boost::serialization::load(Archive&, boost::shared_ptr<U>&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = CombatFighterFormation]’
/usr/local/include/boost/serialization/split_free.hpp:58:   instantiated from ‘static void boost::serialization::free_loader<Archive, T>::invoke(Archive&, T&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = boost::shared_ptr<CombatFighterFormation>]’
/usr/local/include/boost/serialization/split_free.hpp:74:   instantiated from ‘void boost::serialization::split_free(Archive&, T&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = boost::shared_ptr<CombatFighterFormation>]’
/usr/local/include/boost/serialization/shared_ptr.hpp:157:   instantiated from ‘void boost::serialization::serialize(Archive&, boost::shared_ptr<U>&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = CombatFighterFormation]’
/usr/local/include/boost/serialization/serialization.hpp:133:   instantiated from ‘void boost::serialization::serialize_adl(Archive&, T&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = boost::shared_ptr<CombatFighterFormation>]’
/usr/local/include/boost/archive/detail/iserializer.hpp:173:   instantiated from ‘void boost::archive::detail::iserializer<Archive, T>::load_object_data(boost::archive::detail::basic_iarchive&, void*, unsigned int) const [with Archive = boost::archive::xml_iarchive, T = boost::shared_ptr<CombatFighterFormation>]’
/home/dsockwell/freeorion/freeorion/FreeOrion/util/Serialize.cpp:120:   instantiated from here
/usr/local/include/boost/archive/shared_ptr_helper.hpp:114: error: cannot convert ‘const boost::serialization::extended_type_info_typeid<CombatFighterFormation>’ to ‘const boost::serialization::extended_type_info*’ in return
/usr/local/include/boost/archive/shared_ptr_helper.hpp: In static member function ‘static const boost::serialization::extended_type_info* boost::archive::detail::shared_ptr_helper::non_polymorphic<T>::get_object_identifier(T&) [with T = ResourcePool]’:
/usr/local/include/boost/archive/shared_ptr_helper.hpp:147:   instantiated from ‘void boost::archive::detail::shared_ptr_helper::reset(boost::shared_ptr<X>&, T*) [with T = ResourcePool]’
/usr/local/include/boost/serialization/shared_ptr.hpp:142:   instantiated from ‘void boost::serialization::load(Archive&, boost::shared_ptr<U>&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = ResourcePool]’
/usr/local/include/boost/serialization/split_free.hpp:58:   instantiated from ‘static void boost::serialization::free_loader<Archive, T>::invoke(Archive&, T&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = boost::shared_ptr<ResourcePool>]’
/usr/local/include/boost/serialization/split_free.hpp:74:   instantiated from ‘void boost::serialization::split_free(Archive&, T&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = boost::shared_ptr<ResourcePool>]’
/usr/local/include/boost/serialization/shared_ptr.hpp:157:   instantiated from ‘void boost::serialization::serialize(Archive&, boost::shared_ptr<U>&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = ResourcePool]’
/usr/local/include/boost/serialization/serialization.hpp:133:   instantiated from ‘void boost::serialization::serialize_adl(Archive&, T&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = boost::shared_ptr<ResourcePool>]’
/usr/local/include/boost/archive/detail/iserializer.hpp:173:   instantiated from ‘void boost::archive::detail::iserializer<Archive, T>::load_object_data(boost::archive::detail::basic_iarchive&, void*, unsigned int) const [with Archive = boost::archive::xml_iarchive, T = boost::shared_ptr<ResourcePool>]’
/home/dsockwell/freeorion/freeorion/FreeOrion/util/Serialize.cpp:120:   instantiated from here
/usr/local/include/boost/archive/shared_ptr_helper.hpp:114: error: cannot convert ‘const boost::serialization::extended_type_info_typeid<ResourcePool>’ to ‘const boost::serialization::extended_type_info*’ in return
make[2]: *** [server/CMakeFiles/freeoriond.dir/__/util/Serialize.cpp.o] Error 1
make[1]: *** [server/CMakeFiles/freeoriond.dir/all] Error 2
make: *** [all] Error 2
dsockwell@pegasus:~/freeorion/freeorion/FreeOrion$ 


User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: compiling GiGi -- archive/shared_ptr_helper.hpp:114: error

#3 Post by OndrejR » Mon Dec 28, 2009 12:14 pm

What boost version do you have?

dsockwell
Space Krill
Posts: 3
Joined: Mon Dec 28, 2009 11:23 am

Re: compiling GiGi -- archive/shared_ptr_helper.hpp:114: error

#4 Post by dsockwell » Mon Dec 28, 2009 12:47 pm

it's 1.41.0

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: compiling GiGi -- archive/shared_ptr_helper.hpp:114: error

#5 Post by OndrejR » Mon Dec 28, 2009 1:01 pm

Please downgrade.

Post Reply