All users, I have installed Alps.1.3.5 and got to my mind the good results of configuration bellow. But after make command it shows very many error. What is wrong? I tried different boost options with prefix. Nothing changes after 'make' the same errors
are repeating. Something is connected with private note: class version_type { private: typedef uint_least32_t base_type; base_type t; public: // should be private - but MPI fails if it's not!!! version_type(): t(0) {}; explicit version_type(const unsigned int & t_) : t(t_){ assert(t_ <= boost::integer_traits<base_type>::const_max); }
or class class_id_type { private: typedef int_least16_t base_type; base_type t; public: // should be private - but then can't use BOOST_STRONG_TYPE below class_id_type() : t(0) {}; explicit class_id_type(const int t_) : t(t_){ assert(t_ <= boost::integer_traits<base_type>::const_max); }
I can not edit: It is not possible! The boost prefix options doesn't influence to content of an archive file 'basic_archive.h', where almost all errors are appeared. See, about all in attached make results
Thanks for your advises in advance Algis Garliauskas
Summary of configuration: ALPS version 1.3.5 prefix /home/ag/ALPS compiler type gnu [g++] optimization yes exceptions yes warnings no Boost version svn MPI support no OpenMP support no HDF5 support no LAPACK support no SQLite support yes XML parser native Documentation no ..---... [ag@localhost ALPS]$ make Making all in lib make[1]: Entering directory `/ALPS/lib' Making all in comm-sgl make[2]: Entering directory `/ALPS/lib/comm-sgl' /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../../src -I../../src -DNDEBUG -g -O2 -MT buffer.lo -MD -MP -MF .deps/buffer.Tpo -c -o buffer.lo `test -f '../../src/alps/osiris/buffer.C' || echo './'`../../src/alps/osiris/buffer.C libtool: compile: g++ -DHAVE_CONFIG_H -I../../src -I../../src -DNDEBUG -g -O2 -MT buffer.lo -MD -MP -MF .deps/buffer.Tpo -c ../../src/alps/osiris/buffer.C -fPIC -DPIC -o .libs/buffer.o In file included from ../../src/alps/osiris/dump.h:221:0, from ../../src/alps/osiris/buffer.C:32: /usr/include/boost/archive/basic_archive.hpp: In member function ‘void alps::odump_archive::save_override(const boost::archive::version_type&, int)’: /usr/include/boost/archive/basic_archive.hpp:78:15: error: ‘boost::archive::version_type::base_type boost::archive::version_type::t’ is private ../../src/alps/osiris/dumparchive.h:111:24: error: within this context /usr/include/boost/archive/basic_archive.hpp: In member function ‘void alps::odump_archive::save_override(const boost::archive::class_id_type&, int)’: /usr/include/boost/archive/basic_archive.hpp:111:15: error: ‘boost::archive::class_id_type::base_type boost::archive::class_id_type::t’ is private ../../src/alps/osiris/dumparchive.h:117:29: error: within this context /usr/include/boost/archive/basic_archive.hpp: In member function ‘void alps::odump_archive::save_override(const boost::archive::class_id_reference_type&, int)’: /usr/include/boost/archive/basic_archive.hpp:111:15: error: ‘boost::archive::class_id_type::base_type boost::archive::class_id_type::t’ is private ../../src/alps/osiris/dumparchive.h:123:29: error: within this context /usr/include/boost/archive/basic_archive.hpp: In member function ‘void alps::odump_archive::save_override(const boost::archive::object_id_type&, int)’: /usr/include/boost/archive/basic_archive.hpp:150:15: error: ‘boost::archive::object_id_type::base_type boost::archive::object_id_type::t’ is private ../../src/alps/osiris/dumparchive.h:129:30: error: within this context /usr/include/boost/archive/basic_archive.hpp: In member function ‘void alps::odump_archive::save_override(const boost::archive::object_reference_type&, int)’: /usr/include/boost/archive/basic_archive.hpp:150:15: error: ‘boost::archive::object_id_type::base_type boost::archive::object_id_type::t’ is private ../../src/alps/osiris/dumparchive.h:135:30: error: within this context ../../src/alps/osiris/dumparchive.h: In member function ‘void alps::idump_archive::load_override(boost::archive::class_id_reference_type&, int)’: ../../src/alps/osiris/dumparchive.h:238:54: error: no matching function for call to
‘boost::archive::class_id_reference_type::class_id_reference_type(int_least16_t&)’ /usr/include/boost/archive/basic_archive.hpp:261:73: note: candidates are:
boost::archive::class_id_reference_type::class_id_reference_type(boost::archive::class_id_type) /usr/include/boost/archive/basic_archive.hpp:261:54: note: boost::archive::class_id_reference_type::class_id_reference_type(const boost::archive::class_id_reference_type&) ../../src/alps/osiris/dumparchive.h: In member function ‘void alps::idump_archive::load_override(boost::archive::object_reference_type&, int)’: ../../src/alps/osiris/dumparchive.h:252:52: error: no matching function for call to
‘boost::archive::object_reference_type::object_reference_type(uint_least32_t&)’ /usr/include/boost/archive/basic_archive.hpp:263:72: note: candidates are:
boost::archive::object_reference_type::object_reference_type(boost::archive::object_id_type) /usr/include/boost/archive/basic_archive.hpp:263:53: note: boost::archive::object_reference_type::object_reference_type(const boost::archive::object_reference_type&) make[2]: *** [buffer.lo] Error 1 make[2]: Leaving directory `/ALPS/lib/comm-sgl' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/ALPS/lib' make: *** [all-recursive] Error 1
Dear Algis Garliauskas,
Probably you use a recent version of Boost, and not the one recommended for ALPS 1.3.5. But, why don't you try to use the new ALPS 200 release instead which works with more recent Boost versions?
Matthias
On Apr 7, 2011, at 2:51 PM, Algis Garliauskas wrote:
All users,
I have installed Alps.1.3.5 and got to my mind the good results of configuration bellow. But after make command it shows very many error. What is wrong? I tried different boost options with prefix. Nothing changes after 'make' the same errors are repeating. Something is connected with private note: class version_type { private: typedef uint_least32_t base_type; base_type t; public: // should be private - but MPI fails if it's not!!! version_type(): t(0) {}; explicit version_type(const unsigned int & t_) : t(t_){ assert(t_ <= boost::integer_traits<base_type>::const_max); }
or class class_id_type { private: typedef int_least16_t base_type; base_type t; public: // should be private - but then can't use BOOST_STRONG_TYPE below class_id_type() : t(0) {}; explicit class_id_type(const int t_) : t(t_){ assert(t_ <= boost::integer_traits<base_type>::const_max); }
I can not edit: It is not possible! The boost prefix options doesn't influence to content of an archive file 'basic_archive.h', where almost all errors are appeared. See, about all in attached make results Thanks for your advises in advance Algis Garliauskas
Summary of configuration: ALPS version 1.3.5 prefix /home/ag/ALPS compiler type gnu [g++] optimization yes exceptions yes warnings no Boost version svn MPI support no OpenMP support no HDF5 support no LAPACK support no SQLite support yes XML parser native Documentation no ..---... [ag@localhost ALPS]$ make Making all in lib make[1]: Entering directory `/ALPS/lib' Making all in comm-sgl make[2]: Entering directory `/ALPS/lib/comm-sgl' /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../../src -I../../src -DNDEBUG -g -O2 -MT buffer.lo -MD -MP -MF .deps/buffer.Tpo -c -o buffer.lo `test -f '../../src/alps/osiris/buffer.C' || echo './'`../../src/alps/osiris/buffer.C libtool: compile: g++ -DHAVE_CONFIG_H -I../../src -I../../src -DNDEBUG -g -O2 -MT buffer.lo -MD -MP -MF .deps/buffer.Tpo -c ../../src/alps/osiris/buffer.C -fPIC -DPIC -o .libs/buffer.o In file included from ../../src/alps/osiris/dump.h:221:0, from ../../src/alps/osiris/buffer.C:32: /usr/include/boost/archive/basic_archive.hpp: In member function ‘void alps::odump_archive::save_override(const boost::archive::version_type&, int)’: /usr/include/boost/archive/basic_archive.hpp:78:15: error: ‘boost::archive::version_type::base_type boost::archive::version_type::t’ is private ../../src/alps/osiris/dumparchive.h:111:24: error: within this context /usr/include/boost/archive/basic_archive.hpp: In member function ‘void alps::odump_archive::save_override(const boost::archive::class_id_type&, int)’: /usr/include/boost/archive/basic_archive.hpp:111:15: error: ‘boost::archive::class_id_type::base_type boost::archive::class_id_type::t’ is private ../../src/alps/osiris/dumparchive.h:117:29: error: within this context /usr/include/boost/archive/basic_archive.hpp: In member function ‘void alps::odump_archive::save_override(const boost::archive::class_id_reference_type&, int)’: /usr/include/boost/archive/basic_archive.hpp:111:15: error: ‘boost::archive::class_id_type::base_type boost::archive::class_id_type::t’ is private ../../src/alps/osiris/dumparchive.h:123:29: error: within this context /usr/include/boost/archive/basic_archive.hpp: In member function ‘void alps::odump_archive::save_override(const boost::archive::object_id_type&, int)’: /usr/include/boost/archive/basic_archive.hpp:150:15: error: ‘boost::archive::object_id_type::base_type boost::archive::object_id_type::t’ is private ../../src/alps/osiris/dumparchive.h:129:30: error: within this context /usr/include/boost/archive/basic_archive.hpp: In member function ‘void alps::odump_archive::save_override(const boost::archive::object_reference_type&, int)’: /usr/include/boost/archive/basic_archive.hpp:150:15: error: ‘boost::archive::object_id_type::base_type boost::archive::object_id_type::t’ is private ../../src/alps/osiris/dumparchive.h:135:30: error: within this context ../../src/alps/osiris/dumparchive.h: In member function ‘void alps::idump_archive::load_override(boost::archive::class_id_reference_type&, int)’: ../../src/alps/osiris/dumparchive.h:238:54: error: no matching function for call to ‘boost::archive::class_id_reference_type::class_id_reference_type(int_least16_t&)’ /usr/include/boost/archive/basic_archive.hpp:261:73: note: candidates are: boost::archive::class_id_reference_type::class_id_reference_type(boost::archive::class_id_type) /usr/include/boost/archive/basic_archive.hpp:261:54: note: boost::archive::class_id_reference_type::class_id_reference_type(const boost::archive::class_id_reference_type&) ../../src/alps/osiris/dumparchive.h: In member function ‘void alps::idump_archive::load_override(boost::archive::object_reference_type&, int)’: ../../src/alps/osiris/dumparchive.h:252:52: error: no matching function for call to ‘boost::archive::object_reference_type::object_reference_type(uint_least32_t&)’ /usr/include/boost/archive/basic_archive.hpp:263:72: note: candidates are: boost::archive::object_reference_type::object_reference_type(boost::archive::object_id_type) /usr/include/boost/archive/basic_archive.hpp:263:53: note: boost::archive::object_reference_type::object_reference_type(const boost::archive::object_reference_type&) make[2]: *** [buffer.lo] Error 1 make[2]: Leaving directory `/ALPS/lib/comm-sgl' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/ALPS/lib' make: *** [all-recursive] Error 1
-- Algis Garliauskas Prof., Hab. dr. Vilnius University Institute of Mathematics & Informatics Akademijos 4, LT-6883, Vilnius, Lithuania Tel.:370 5 2109333
comp-phys-alps-users@lists.phys.ethz.ch