Compiling Sunrise mcrx-extras2.cc error

53 views
Skip to first unread message

Matt Grybas

unread,
Oct 2, 2013, 11:40:01 PM10/2/13
to sunri...@googlegroups.com
Hello everyone,

I am trying to compile Sunrise and I feel (hopefully) I am pretty close to doing so. However I am running into an error while doing a make on Sunrise and could use some insight on what might be causing it. There is a very similar issue already on the discussion board (https://groups.google.com/forum/#!topic/sunrisemcrx/FuSkCqk7BZA) but I have already configured blitz with --enable-serialization and I really don't know what else to do after that point.

I am using Boost-1.48.0 and the hg clone of blitz which I believe is v10, as well as the icpc compiler.
---------------------------------------------------------
/home/mwgrybas/local/include/boost/serialization/access.hpp(118): error: class "ranlib::MersenneTwister::mt_state" has no member "serialize"
t.serialize(ar, file_version);
^
detected during:
instantiation of "void boost::serialization::access::serialize(Archive &, T &, unsigned int) [with Archive=boost::archive::binary_oarchive, T=ranlib::MersenneTwister::T_state]" at line 69 of "/home/mwgrybas/local/include/boost/serialization/serialization.hpp"
instantiation of "void boost::serialization::serialize(Archive &, T &, unsigned int) [with Archive=boost::archive::binary_oarchive, T=ranlib::MersenneTwister::T_state]" at line 128 of "/home/mwgrybas/local/include/boost/serialization/serialization.hpp"
instantiation of "void boost::serialization::serialize_adl(Archive &, T &, unsigned int) [with Archive=boost::archive::binary_oarchive, T=ranlib::MersenneTwister::T_state]" at line 152 of "/home/mwgrybas/local/include/boost/archive/detail/oserializer.hpp"
instantiation of "void boost::archive::detail::oserializer<Archive, T>::save_object_data(boost::archive::detail::basic_oarchive &, const void *) const [with Archive=boost::archive::binary_oarchive, T=ranlib::MersenneTwister::T_state]" at line 113 of "/home/mwgrybas/local/include/boost/archive/detail/oserializer.hpp"
instantiation of "boost::archive::detail::oserializer<Archive, T>::oserializer() [with Archive=boost::archive::binary_oarchive, T=ranlib::MersenneTwister::T_state]" at line 128 of "/home/mwgrybas/local/include/boost/serialization/singleton.hpp"
[ 6 instantiation contexts not shown ]
instantiation of "void boost::archive::save(Archive &, T &) [with Archive=boost::archive::binary_oarchive, T=const ranlib::MersenneTwister::T_state]" at line 69 of "/home/mwgrybas/local/include/boost/archive/detail/common_oarchive.hpp"
instantiation of "void boost::archive::detail::common_oarchive<Archive>::save_override(T &, int) [with Archive=boost::archive::binary_oarchive, T=const ranlib::MersenneTwister::T_state]" at line 75 of "/home/mwgrybas/local/include/boost/archive/basic_binary_oarchive.hpp"
instantiation of "void boost::archive::basic_binary_oarchive<Archive>::save_override(const T &, int) [with Archive=boost::archive::binary_oarchive, T=ranlib::MersenneTwister::T_state]" at line 51 of "/home/mwgrybas/local/include/boost/archive/binary_oarchive_impl.hpp"
instantiation of "void boost::archive::binary_oarchive_impl<Archive, Elem, Tr>::save_override(T &, int) [with Archive=boost::archive::binary_oarchive, Elem=char, Tr=std::char_traits<char>, T=const ranlib::MersenneTwister::T_state]" at line 63 of "/home/mwgrybas/local/include/boost/archive/detail/interface_oarchive.hpp"
instantiation of "Archive &boost::archive::detail::interface_oarchive<Archive>::operator<<(T &) [with Archive=boost::archive::binary_oarchive, T=const ranlib::MersenneTwister::T_state]" at line 213 of "mcrx-extras2.cc"

compilation aborted for mcrx-extras2.cc (code 2)
make[2]: *** [mcrx-extras2.o] Error 1
make[2]: Leaving directory `/home/mwgrybas/sunrise/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/mwgrybas/sunrise/src'
make: *** [all-recursive] Error 1
--------------------------------------------------------------------------------

Thank you for your help and please let me know if there is any more information I can give you!

-Matt

Patrik Jonsson

unread,
Oct 3, 2013, 12:55:15 AM10/3/13
to sunri...@googlegroups.com
Hi Matt,
It's been a while since I compiled sunrise, but as it says on that post, this can happen because either blitz or sunrise is not configured for serialization. The configure log file usually has information that helps track down errors like this. Also, check that the generated blitz config file (config.h or bzconfig.h or something similar) has the serialization turned on.

cheers,

/Patrik




-Matt

--
You received this message because you are subscribed to the Google Groups "Sunrise" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sunrisemcrx...@googlegroups.com.
To post to this group, send email to sunri...@googlegroups.com.
Visit this group at http://groups.google.com/group/sunrisemcrx.
For more options, visit https://groups.google.com/groups/opt_out.

Matt Grybas

unread,
Oct 6, 2013, 8:49:10 PM10/6/13
to sunri...@googlegroups.com
Okay it seems I have fixed the problem,  I was confused at first because Blitz and Sunrise were finding Boost serialization but when I added --without-mpi to the blitz configure it seemed to have fixed the problem. Sunrise now makes without error. Thanks again for your help!

-Matt
Reply all
Reply to author
Forward
0 new messages