Hi Matthias,
Ah, it seems that there was just a problem with the Boost-finder, not with the Boost-version. I initially got this error message:
-- Boost Version: 1_40_0 CMake Error at config/FindBoostSrc.cmake:99 (message): Boost library version is too old, boost chrono requires boost >= 1.47.0 Call Stack (most recent call first): config/FindBoostForALPS.cmake:44 (find_package) CMakeLists.txt:276 (find_package)
which was fixed when I linked to an other version of Boost that we already had on our system, so I assumed that the problem was with the Boost-version that was packed with ALPS. I have now tried it again several times and it seems there's something else going on.
If I do: evanloon@li-lin19 ~/alpstest/alpsbuild $ cmake -DCMAKE_INSTALL_PREFIX=~/alpstest/alpsinstall ~/alpstest/alps-2.1.1-r6176-src-with-boost/alps
Then I get this error (which suggests the correct source has been found): -- Looking for precompiled Boost libraries (version >= 1.47) -- Could NOT find Boost -- Could NOT find Boost -- Looking for Boost Source -- Found Boost Source: /afs/physnet.uni-hamburg.de/users/th1_li/evanloon/alpstest/alps-2.1.1-r6176-src-with-boost/boost -- Boost Version: 1_42_0 CMake Error at config/FindBoostSrc.cmake:99 (message): Boost library version is too old, boost chrono requires boost >= 1.47.0 Call Stack (most recent call first): config/FindBoostForALPS.cmake:61 (find_package) CMakeLists.txt:248 (find_package)
However, if I explicitely give the Boost-source directory like this: evanloon@li-lin19 ~/alpstest/alpsbuild $ cmake -DBoost_ROOT_DIR:PATH=~/alpstest/alps-2.1.1-r6176-src-with-boost/boost/ -DCMAKE_INSTALL_PREFIX=~/alpstest/alpsinstall ~/alpstest/alps-2.1.1-r6176-src-with-boost/alps
Then everything seems to work fine: -- Looking for Boost Source -- Found Boost Source: /afs/physnet.uni-hamburg.de/users/th1_li/evanloon/alpstest/alps-2.1.1-r6176-src-with-boost/boost -- Boost Version: 1_49_0
I'm not sure what causes this different behaviour, since the correct source location seems to be found in both cases. I'm not sure if this behaviour is specific to some of my machine settings, or is more universal. In this case, I think it might be good to mention this in the installation manual on the wiki (http://alps.comp-phys.org/mediawiki/index.php/Building_ALPS_from_source#Buil..., the second example doesn't give the -DBoost_ROOT_DIR:PATH explicitely, which seems to cause the problems in my case).
Erik
Quoting Matthias Troyer troyer@phys.ethz.ch:
Hi Erik,
I package Boost 1.49 and this is what I use to build ALPS every day. Which tarball is supposed to have Boost 1.40?
Matthias
On Jan 10, 2013, at 1:12 PM, evanloon@physnet.uni-hamburg.de wrote:
Dear all,
It seems that the alps src-with-boost downloads still contain an old (1.40) version of the boost src, which will not allow to compile ALPS.
Best regards,
Erik