Dear Matthias, as for Boost:
the ccmake prints: Boost_INCLUDE_DIR /home/stefan/lacki/al/alps-2.0.2-r5790-src-with-boost/boost Boost_ROOT_DIR /home/stefan/al/alps-2.0.2-r5790-src-with-boost/boost the path are ok - they exist, but These are compiler settings: -- The C compiler identification is Intel -- The CXX compiler identification is Intel -- The Fortran compiler identification is Intel -- Check for working C compiler: /users/champ/delande/intel/composer_xe_2011_sp1.7.256/bin/intel64/icc -- Check for working C compiler: /users/champ/delande/intel/composer_xe_2011_sp1.7.256/bin/intel64/icc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /users/champ/delande/intel/composer_xe_2011_sp1.7.256/bin/intel64/icpc -- Check for working CXX compiler: /users/champ/delande/intel/composer_xe_2011_sp1.7.256/bin/intel64/icpc -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working Fortran compiler: /users/champ/delande/intel/composer_xe_2011_sp1.7.256/bin/intel64/ifort -- Check for working Fortran compiler: /users/champ/delande/intel/composer_xe_2011_sp1.7.256/bin/intel64/ifort -- works -- Detecting Fortran compiler ABI info -- Detecting Fortran compiler ABI info - done -- Checking whether /users/champ/delande/intel/composer_xe_2011_sp1.7.256/bin/intel64/ifort supports Fortran 90 -- Checking whether /users/champ/delande/intel/composer_xe_2011_sp1.7.256/bin/intel64/ifort supports Fortran 90 -- yes
and boost info: -- Found Boost Source: /users/champ/lacki/al/alps-2.0.2-r5790-src-with-boost/boost -- Boost Version: 1_47_0
but nevertheless this sort of errors:
/users/champ/lacki/al/alps-2.0.2-r5790-src-with-boost/boost/boost/type_traits/remove_const.hpp(63): error: expected a ">" struct remove_const_impl<T&&> ^
/users/champ/lacki/al/alps-2.0.2-r5790-src-with-boost/boost/boost/iterator/detail/minimum_category.hpp(62): error: expected a type specifier BOOST_STATIC_ASSERT((is_same<T1,T2>::value)); ^
/users/champ/lacki/al/alps-2.0.2-r5790-src-with-boost/boost/boost/iterator/detail/minimum_category.hpp(62): error #303: explicit type is missing ("int" assumed) BOOST_STATIC_ASSERT((is_same<T1,T2>::value)); ^
/users/champ/lacki/al/alps-2.0.2-r5790-src-with-boost/boost/boost/iterator/iterator_facade.hpp(837): error: identifier "static_assert" is undefined BOOST_ITERATOR_FACADE_RELATION(!=, return !, equal)
during: [ 0%] Building CXX object src/boost/CMakeFiles/boost.dir/__/__/boost/libs/date_time/src/gregorian/date_generators.cpp.o [ 1%] Building CXX object src/boost/CMakeFiles/boost.dir/__/__/boost/libs/date_time/src/gregorian/greg_month.cpp.o
and are present in:
detected during: instantiation of "boost::detail::enable_if_interoperable<Derived1, Derived2, boost::mpl::apply2<boost::detail::always_bool2, Derived1, Derived2>::type>::type boost::operator!=(const boost::iterator_facade<Derived1, V1, TC1, Reference1, Difference1> &, const boost::iterator_facade<Derived2, V2, TC2, Reference2, Difference2> &) [with Derived1=boost::token_iterator<boost::char_separator<char, std::char_traits<char>>, __gnu_cxx::__normal_iterator<const char *, std::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::basic_string<char, std::char_traits<char>, std::allocator<char>>>, V1=std::basic_string<char, std::char_traits<char>, std::allocator<char>>, TC1=boost::forward_traversal_tag, Reference1=const std::basic_string<char, std::char_traits<char>, std::allocator<char>> &, Difference1=std::ptrdiff_t={long}, Derived2=boost::token_iterator<boost::char_separator<char, std::char_traits<char>>, __gnu_cxx::__normal_iterator<const char *, std::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::basic_string<char, std::char_traits<char>, std::allocator<char>>>, V2=std::basic_string<char, std::char_traits<char>, std::allocator<char>>, TC2=boost::forward_traversal_tag, Reference2=const std::basic_string<char, std::char_traits<char>, std::allocator<char>> &, Difference2=std::ptrdiff_t={long}]" at line 133 of
"/users/champ/lacki/al/alps-2.0.2-r5790-src-with-boost/boost/boost/date_time/date_parsing.hpp" instantiation of "date_type boost::date_time::parse_date<date_type>(const std::string &, int) [with date_type=boost::gregorian::date]" at line 30 of "/users/champ/lacki/al/alps-2.0.2-r5790-src-with-boost/boost/boost/date_time/gregorian/parsers.hpp"
/users/champ/lacki/al/alps-2.0.2-r5790-src-with-boost/boost/boost/lexical_cast.hpp(628): error: identifier "static_assert" is undefined BOOST_STATIC_ASSERT(!std::numeric_limits<T>::is_signed); ^ detected during: instantiation of "bool boost::detail::lcast_ret_unsigned<Traits,T,CharT>(T &, const CharT *, const CharT *) [with Traits=std::char_traits<char>, T=unsigned short, CharT=char]" at line 930 instantiation of "bool boost::detail::lexical_stream_limited_src<CharT, Base, Traits>::input_operator_helper_unsigned(Type &) [with CharT=char, Base=boost::detail::lexical_streambuf_fake, Traits=std::char_traits<char>, Type=unsigned short]" at line 995 instantiation of "bool boost::detail::lexical_stream_limited_src<CharT, Base, Traits>::operator>>(unsigned short &) [with CharT=char, Base=boost::detail::lexical_streambuf_fake, Traits=std::char_traits<char>]" at line 1527 instantiation of "Target boost::detail::lexical_cast<Target,Source,Unlimited,CharT>(boost::call_traits<Source>::param_type, CharT *, std::size_t={unsigned long}) [with Target=unsigned short, Source=std::basic_string<char, std::char_traits<char>, std::allocator<char>>, Unlimited=false, CharT=char]" at line 1653 instantiation of "Target boost::detail::lexical_cast_do_cast<Target, Source>::lexical_cast_impl(const Source &) [with Target=unsigned short, Source=std::basic_string<char, std::char_traits<char>, std::allocator<char>>]" at line 1813 instantiation of "Target boost::lexical_cast<Target,Source>(const Source &) [with Target=unsigned short, Source=std::basic_string<char, std::char_traits<char>, std::allocator<char>>]" at line 138 of "/users/champ/lacki/al/alps-2.0.2-r5790-src-with-boost/boost/boost/date_time/date_parsing.hpp" instantiation of "date_type boost::date_time::parse_date<date_type>(const std::string &, int) [with date_type=boost::gregorian::date]" at line 30 of "/users/champ/lacki/al/alps-2.0.2-r5790-src-with-boost/boost/boost/date_time/gregorian/parsers.hpp"
/users/champ/lacki/al/alps-2.0.2-r5790-src-with-boost/boost/boost/iterator/iterator_facade.hpp(837): error: identifier "static_assert" is undefined BOOST_ITERATOR_FACADE_RELATION(!=, return !, equal) ^ detected during: instantiation of "boost::detail::enable_if_interoperable<Derived1, Derived2, boost::mpl::apply2<boost::detail::always_bool2, Derived1, Derived2>::type>::type boost::operator!=(const boost::iterator_facade<Derived1, V1, TC1, Reference1, Difference1> &, const boost::iterator_facade<Derived2, V2, TC2, Reference2, Difference2> &) [with Derived1=boost::token_iterator<boost::offset_separator, __gnu_cxx::__normal_iterator<const char *, std::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::basic_string<char, std::char_traits<char>, std::allocator<char>>>, V1=std::basic_string<char, std::char_traits<char>, std::allocator<char>>, TC1=boost::forward_traversal_tag, Reference1=const std::basic_string<char, std::char_traits<char>, std::allocator<char>> &, Difference1=std::ptrdiff_t={long}, Derived2=boost::token_iterator<boost::offset_separator, __gnu_cxx::__normal_iterator<const char *, std::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::basic_string<char, std::char_traits<char>, std::allocator<char>>>, V2=std::basic_string<char, std::char_traits<char>, std::allocator<char>>, TC2=boost::forward_traversal_tag, Reference2=const std::basic_string<char, std::char_traits<char>, std::allocator<char>> &, Difference2=std::ptrdiff_t={long}]" at line 177 of "/users/champ/lacki/al/alps-2.0.2-r5790-src-with-boost/boost/boost/date_time/date_parsing.hpp" instantiation of "date_type boost::date_time::parse_undelimited_date<date_type>(const std::string &) [with date_type=boost::gregorian::date]" at line 50 of "/users/champ/lacki/al/alps-2.0.2-r5790-src-with-boost/boost/boost/date_time/gregorian/parsers.hpp"
compilation aborted for /users/champ/lacki/al/alps-2.0.2-r5790-src-with-boost/boost/libs/date_time/src/gregorian/greg_month.cpp (code 2) make[2]: *** [src/boost/CMakeFiles/boost.dir/__/__/boost/libs/date_time/src/gregorian/greg_month.cpp.o] Error 2 make[1]: *** [src/boost/CMakeFiles/boost.dir/all] Error 2 make: *** [all] Error 2
You write that gcc4.4 is sufficient then i suppose this is not related to a "new" version of c++ or anythyng like that
These are compiler versions: icpc version 12.1.0 (gcc version 4.6.0 compatibility) icc version 12.1.0 (gcc version 4.6.0 compatibility) ifort version 12.1.0
To make things more clear i did not compile boost before - that is i set something wrong and binaries were used instead. Now it is the first time i try to compile boost
Regards, Mateusz Lacki
2011/11/23, Mateusz Łącki mateusz.lacki@gmail.com:
Dear Matthias, i defined manualy HDF5_LIBRARIES=(correct path)/lib/libhdf5.so.6 -D HDF5_INCLUDE_DIR=(correct path)/include/
and it is now ok.
Regards, Mateusz
2011/11/23, Matthias Troyer troyer@phys.ethz.ch:
You seem to have two HDF5 installations. Id tou don't need the tebd program then just turn ALPS_BUILD_FORTRAN off. Otherwise please manually set the HDF libraries.
Matthias
On Nov 23, 2011, at 9:15 AM, Mateusz Łącki wrote:
I tried to try this and did not work for similar reasons. I retried today and hopefully thi will work. On the other hand i saw a new message that did not show before (the difference is that i had unpacked the the *tar.gz file just before that). The message is:
CMake Warning at applications/dmrg/tebd/CMakeLists.txt:12 (add_executable): Cannot generate a safe runtime search path for target tebd because files in some directories may conflict with libraries in implicit directories:
runtime library [libhdf5_fortran.so.6] in /usr/lib64 may be hidden by files in: /opt/hdf5-1.8.5-intel/lib
Some of these libraries may not be found correctly.
The file applications/dmrg/tebd/CMakeLists.txt does not exist (I suppose it was not created due to this error). On the other hand i think boost has been successfully located now - but I did not compile due to the mentioned error. What is it ?
this is the command i execute just after untaring:
cmake -D Boost_ROOT_DIR:PATH=/home/stefan/al/alps-2.0.2-r5790-src-with-boost/boost -DCMAKE_INSTALL_PREFIX=/home/stefan/alps202/ -DQMC_BITS=64 -DBLAS_LIBRARY= -DLAPACK_LINKER_FLAGS=-lmkl_sequential -lmkl_core -lmkl_intel_lp64 -DCMAKE_CXX_COMPILER=icpc -DCMAKE_C_COMPILER=icc -DCMAKE_FORTRAN_COMPILER=ifort -DALPS_BUILD_FORTRAN=ON -DALPS_ENABLE_OPENMP=ON -DALPS_Fortran_FLAGS=-openmp -DBoost_MPI_LIBRARY=/usr/lib64/openmpi/lib/libboost_mpi-mt.so -DBoost_MPI_LIBRARY_RELEASE=/usr/lib64/openmpi/lib/libboost_mpi-mt.so /home/stefan/al/alps-2.0.2-r5790-src-with-boost/alps/
i have also performed modification indicating earlier: i added intel64 directory for lapack search and "-L" before ENV{MKL} in the findlapack.cmake
I also include the new CMakeCache.txt.
For the trouble with boost linking: I would like to postpone this thread until after the tebd problem will be dealt with.
I also have a quesion: where the code responsible for printing the message is located?
i tried this: for i in `find . -name "*txt"`; do grep "runtime search path" $i; done for i in `find . -name "*cmake"`; do grep "runtime search path" $i; done for i in `find . -name "*efile"`; do grep "runtime search path" $i; done
but it did not find anything.
Regards, Mateusz Lacki
2011/11/22, Matthias Troyer troyer@phys.ethz.ch:
Have you tried just using the Boost source and letting ALPS compile it?
On Nov 22, 2011, at 5:15 PM, Mateusz Łącki wrote:
Dear All, I am still trying to compile alps using icc. I have run to a new error:
lacki@scud:~/alps/alps-2.0.2-r5790-src-with-boost/alps-2.0.2-r5790-src-with-boost/alps $ make xmlparser [100%] Built target alps Linking CXX executable xmlparser ../../src/alps/libalps.so.2.0.2: undefined reference to `void boost::mpi::broadcastboost::mpi::packed_iarchive(boost::mpi::communicator const&, boost::mpi::packed_iarchive&, int)' ../../src/alps/libalps.so.2.0.2: undefined reference to `boost::mpi::exception::exception(char const*, int)' ../../src/alps/libalps.so.2.0.2: undefined reference to `boost::mpi::communicator::barrier() const' (............) ../../src/alps/libalps.so.2.0.2: undefined reference to `boost::mpi::communicator::operator ompi_communicator_t*() const' ../../src/alps/libalps.so.2.0.2: undefined reference to `boost::mpi::environment::~environment()' ../../src/alps/libalps.so.2.0.2: undefined reference to `boost::mpi::communicator::size() const' ../../src/alps/libalps.so.2.0.2: undefined reference to `void boost::mpi::communicator::sendboost::mpi::packed_oarchive(int, int, boost::mpi::packed_oarchive const&) const' make[3]: *** [test/parser/xmlparser] Error 1 make[2]: *** [test/parser/CMakeFiles/xmlparser.dir/all] Error 2 make[1]: *** [test/parser/CMakeFiles/xmlparser.dir/rule] Error 2
while trying to do "make". The exact make subcommand it corresponds to is "make xmlparser"
I enclose my config files.
here is a quotation from: alps/config/FindBoostForALPS.cmake
# We do not require Boost.MPI, therefore check whether Boost.MPI exists # before actual find_package for Boost. # - Ubuntu 10.10 does not have Boost.MPI package. find_package(Boost 1.43.0 COMPONENTS mpi) if (Boost_FOUND)
it seem contradictory with previous message. Also when i try to set boost_mpi directory to /usr/lib64/openmpi/lib where there is libboost_mpi.so.1.46.0 pressing "c" for doing "configure" ereases the path that i have just put in - why is that ?
The same linking error appears if I set the path to boost_root_dir correctly - in that case manual specification of location of binary libboost_mpi is no longer an option
Regards, Mateusz <CMC.txt>
<CMC.tex>