Previously, I had "Installed required packages using Synaptic package manager". For libbost-all-dev, Synaptic manager, installed boost, version 1_55. I faced to the bellow problem and Prof. Synge Todo answered my question that I should install a newer version of boost.(I am so sorry to write some details because I guess I maybe have made a mistake in some steps)  the previous problem was:

>........
/home/acerv3-571g/Downloads/alps-2.2.b3-r7462-src-with-boost/boost/boost/atomic/atomic.hpp:202:43:
> error: invalid type in declaration before ?;? token
>  typedef atomic<uintptr_t> atomic_uintptr_t;
>                                            ^
> src/boost/CMakeFiles/boost.dir/build.make:3159: recipe for target
>
> 'src/boost/CMakeFiles/boost.dir/home/acerv3-571g/Downloads/alps-2.2.b3-r7462-src-with-boost/boost/libs/thread/src/pthread/once.cpp.o'
> failed
> make[2]: ***
>
> [src/boost/CMakeFiles/boost.dir/home/acerv3-571g/Downloads/alps-2.2.b3-r7462-src-with-boost/boost/libs/thread/src/pthread/once.cpp.o]
> Error 1
> CMakeFiles/Makefile2:966: recipe for target
> 'src/boost/CMakeFiles/boost.dir/all' failed
> make[1]: *** [src/boost/CMakeFiles/boost.dir/all] Error 2
> Makefile:147: recipe for target 'all' failed
> make: *** [all] Error 2
> acerv3-571g@acerv3571g-Aspire-V3-571G:~/Downloads/build$

I uninstalled the boost_1_55  with :

sudo apt-get autoremove libboost-all-dev

and I followed the next lines in order to hope to be able to do ALPS build:

wget -O boost_1_58_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.gz/download

tar xzvf boost_1_58_0.tar.gz

cd boost_1_58_0/

sudo apt-get update

sudo apt-get install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev

./bootstrap.sh –prefix=/usr/local

sudo ./b2


After these I got a message:



The Boost C++ Libraries were successfully built!

The following directory should be added to compiler include paths:

    /home/acerv3-571g/boost_1_58_0

The following directory should be added to linker library paths:

    /home/acerv3-571g/boost_1_58_0/stage/lib

I added in the home .bashrc:
export INCLUDE="/home/acerv3-571g/boost_1_58_0:$INCLUDE"
export LIBRARY_PATH="/home/acerv3-571g/boost_1_58_0/stage/lib:$LIBRARY_PATH"

and I tried to build ALPS:

acerv3-571g@acerv3571g-Aspire-V3-571G:~/Downloads/build$ make clean
acerv3-571g@acerv3571g-Aspire-V3-571G:~/Downloads/build$ make

But this time I faced to:

[ 18%] Building CXX object src/boost/CMakeFiles/boost.dir/home/acerv3-571g/Downloads/alps-2.2.b3-r7462-src-with-boost/boost/libs/system/src/error_code.cpp.o
[ 18%] Building CXX object src/boost/CMakeFiles/boost.dir/home/acerv3-571g/Downloads/alps-2.2.b3-r7462-src-with-boost/boost/libs/mpi/src/broadcast.cpp.o
In file included from /home/acerv3-571g/Downloads/alps-2.2.b3-r7462-src-with-boost/boost/boost/mpi/communicator.hpp:16:0,
from /home/acerv3-571g/Downloads/alps-2.2.b3-r7462-src-with-boost/boost/boost/mpi/collectives.hpp:21,
from /home/acerv3-571g/Downloads/alps-2.2.b3-r7462-src-with-boost/boost/boost/mpi/collectives_fwd.hpp:19,
from /home/acerv3-571g/Downloads/alps-2.2.b3-r7462-src-with-boost/boost/boost/mpi/collectives/broadcast.hpp:11,
from /home/acerv3-571g/Downloads/alps-2.2.b3-r7462-src-with-boost/boost/libs/mpi/src/broadcast.cpp:9:
/home/acerv3-571g/Downloads/alps-2.2.b3-r7462-src-with-boost/boost/boost/mpi/config.hpp:20:17: fatal error: mpi.h: No such file or directory
#include <mpi.h>
^
compilation terminated.
src/boost/CMakeFiles/boost.dir/build.make:2699: recipe for target 'src/boost/CMakeFiles/boost.dir/home/acerv3-571g/Downloads/alps-2.2.b3-r7462-src-with-boost/boost/libs/mpi/src/broadcast.cpp.o' failed
make[2]: *** [src/boost/CMakeFiles/boost.dir/home/acerv3-571g/Downloads/alps-2.2.b3-r7462-src-with-boost/boost/libs/mpi/src/broadcast.cpp.o] Error 1
CMakeFiles/Makefile2:966: recipe for target 'src/boost/CMakeFiles/boost.dir/all' failed
make[1]: *** [src/boost/CMakeFiles/boost.dir/all] Error 2
Makefile:147: recipe for target 'all' failed
make: *** [all] Error 2

What is the problem? and how can I resolve that? Thanks for following and help.

Inzo