Dear Paco Cordobes,
Do you by chance have an older ALPS installation installed and as part of your include path?
Matthias
On Feb 21, 2012, at 1:10 PM, Francisco Cordobés wrote:
Dear all,
I am trying to build ALPS 2.0.3 in a Debian Squeeze(stable) system. I have downloaded the .tgz with BOOST sources and I prepare for building with the following command:
$cmake -D Boost_ROOT_DIR:PATH=/home/ghiret/Downloads/alps-2.0.3-src-with-boost/boost/ -DCMAKE_INSTALL_PREFIX=/home/ghiret/local/ ./alps
the output of it being:
""" -- CMAKE_GENERATOR: Unix Makefiles -- CMAKE_CL_64: -- CMAKE_SIZEOF_VOID_P: -- CMAKE_GENERATOR: Unix Makefiles -- CMAKE_CL_64: -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Build type: Release -- Python interpreter /usr/bin/python -- Python interpreter ok : version 2.6.6 -- PYTHON_INCLUDE_DIRS = /usr/include/python2.6 -- PYTHON_NUMPY_INCLUDE_DIR = /usr/lib/pymodules/python2.6/numpy/core/include -- PYTHON_SITE_PKG = /usr/lib/python2.6/dist-packages -- PYTHON_LIBRARY = /usr/lib/python2.6/config/libpython2.6.so -- PYTHON_EXTRA_LIBS =-lssl -lcrypto -lssl -lcrypto -L/usr/lib -lz -lpthread -ldl -lutil -- PYTHON_LINK_FOR_SHARED = -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -- ALPS version: 2.0.3 -- Looking for rpc/rpc.h -- Looking for rpc/rpc.h - found -- Looking for stdarg.h -- Looking for stdarg.h - found -- Looking for sys/stat.h -- Looking for sys/stat.h - found -- Looking for sys/systeminfo.h -- Looking for sys/systeminfo.h - not found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for windows.h -- Looking for windows.h - not found -- Looking for C++ include valarray -- Looking for C++ include valarray - found -- Looking for Boost Source -- Found Boost Source: /home/ghiret/Downloads/alps-2.0.3-src-with-boost/boost -- Boost Version: 1_47_0 -- Found MPI: /usr/lib/openmpi/lib/libmpi_cxx.so -- MPI compiler was /usr/bin/mpic++ -- The Fortran compiler identification is GNU -- Check for working Fortran compiler: /usr/bin/gfortran -- Check for working Fortran compiler: /usr/bin/gfortran -- works -- Detecting Fortran compiler ABI info -- Detecting Fortran compiler ABI info - done -- Checking whether /usr/bin/gfortran supports Fortran 90 -- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes -- Looking for Fortran cblas_dgemm -- Looking for Fortran cblas_dgemm - not found -- Looking for Fortran sgemm -- Looking for Fortran sgemm - found -- Looking for include files CMAKE_HAVE_PTHREAD_H -- Looking for include files CMAKE_HAVE_PTHREAD_H - found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- A library with BLAS API found. -- A library with BLAS API found. -- Looking for Fortran cheev -- Looking for Fortran cheev - found -- A library with LAPACK API found. -- SQLite Library: not found -- Found FFTW: /usr/lib/libfftw3.so -- LPSolve Library: not found -- Found ZLIB: /usr/lib/libz.so -- Found SZIP: /home/ghiret/local/lib/libsz.so -- Found HDF5: debug;/home/ghiret/local/hdf5/lib/libhdf5_hl.so;/home/ghiret/local/hdf5/lib/libhdf5.so;/usr/lib/libz.so;/usr/lib/libm.so;optimized;/home/ghiret/local/hdf5/lib/libhdf5_hl.so;/home/ghiret/local/hdf5/lib/libhdf5.so;/usr/lib/libz.so;/usr/lib/libm.so -- HDF5 version found is 1.8.7 in /home/ghiret/local/hdf5/include -- Python interpreter /usr/bin/python -- Python interpreter ok : version 2.6.6 -- PYTHON_INCLUDE_DIRS = /usr/include/python2.6 -- PYTHON_NUMPY_INCLUDE_DIR = /usr/lib/pymodules/python2.6/numpy/core/include -- PYTHON_SITE_PKG = /usr/lib/python2.6/dist-packages -- PYTHON_LIBRARY = /usr/lib/python2.6/config/libpython2.6.so -- PYTHON_EXTRA_LIBS =-lssl -lcrypto -lssl -lcrypto -L/usr/lib -lz -lpthread -ldl -lutil -- PYTHON_LINK_FOR_SHARED = -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -- Numpy include in /usr/lib/pymodules/python2.6/numpy/core/include -- ALPS XML dir is /home/ghiret/local/lib/xml -- Adding Boost dir: /home/ghiret/Downloads/alps-2.0.3-src-with-boost/boost -- HDF5 version found is 1.8.7 in /home/ghiret/local/hdf5/include -- HDF5 version found is 1.8.7 in /home/ghiret/local/hdf5/include -- tebd will not be built -- Configuring done -- Generating done -- Build files have been written to: /home/ghiret/Downloads/alps-2.0.3-src-with-boost """
and when I do "make", it goes well up to 38%, where the following error stops it from continuing: " [ 39%] Building CXX object src/alps/CMakeFiles/alps.dir/ngs/lib/convert.cpp.o /home/ghiret/Downloads/alps-2.0.3-src-with-boost/alps/src/alps/ngs/lib/convert.cpp:48: error: expected constructor, destructor, or type conversion before ‘std’ /home/ghiret/Downloads/alps-2.0.3-src-with-boost/alps/src/alps/ngs/lib/convert.cpp:48: error: expected constructor, destructor, or type conversion before ‘short’ /home/ghiret/Downloads/alps-2.0.3-src-with-boost/alps/src/alps/ngs/lib/convert.cpp:49: error: expected constructor, destructor, or type conversion before ‘std’ /home/ghiret/Downloads/alps-2.0.3-src-with-boost/alps/src/alps/ngs/lib/convert.cpp:49: error: expected constructor, destructor, or type conversion before ‘int’ /home/ghiret/Downloads/alps-2.0.3-src-with-boost/alps/src/alps/ngs/lib/convert.cpp:50: error: expected constructor, destructor, or type conversion before ‘std’ /home/ghiret/Downloads/alps-2.0.3-src-with-boost/alps/src/alps/ngs/lib/convert.cpp:50: error: expected constructor, destructor, or type conversion before ‘long’ .... .... .... /home/ghiret/Downloads/alps-2.0.3-src-with-boost/alps/src/alps/ngs/lib/convert.cpp:101: error: expected constructor, destructor, or type conversion before ‘void’ /home/ghiret/Downloads/alps-2.0.3-src-with-boost/alps/src/alps/ngs/lib/convert.cpp:101: error: expected constructor, destructor, or type conversion before ‘void’ /home/ghiret/Downloads/alps-2.0.3-src-with-boost/alps/src/alps/ngs/lib/convert.cpp:101: error: expected constructor, destructor, or type conversion before ‘void’ make[2]: *** [src/alps/CMakeFiles/alps.dir/ngs/lib/convert.cpp.o] Error 1 make[1]: *** [src/alps/CMakeFiles/alps.dir/all] Error 2 make: *** [all] Error 2 "
I am not sure if it is because I am doing something wrong or I am missing a library or something like that(from the output of cmake it does not look like that). I have either the recommended version(or newer) of cmake, hdf5 and everything as recommended in the ALPS website and my gcc is:
" $ gcc -v Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.5-4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.3.5 (Debian 4.3.5-4) "
and for g++ " $ g++ -v Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.4.5 (Debian 4.4.5-8) "
I apologize in advance if it is a stupid mistake of mine but I have been trying for some days and I cannot find a solution.
Thank you very much in advance.
Paco Cordobes