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
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
Dear Matthias,
I had, indeed, an old installation of ALPS(which didn't work) but it was not in my include path so I'm not sure why I was getting that error. I removed it all and upgraded to Debian testing(Wheezy). Getting the more modern versions of the libraries and compiler (gcc 4.6.2) seems to fix the error as it compiles now with no problem.
On the other hand, when I execute "make test" the output is:
"95% tests passed, 5 tests failed out of 99
Total Test time (real) = 11.62 sec
The following tests FAILED: 23 - test_vector (Failed) 40 - lattice_constant_test (Failed) 97 - python_hlist_test (Failed) 98 - python_mcdata (Failed) 99 - python_pyhdf5 (Failed) Errors while running CTest make: *** [test] Error 8 "
Is this normal? Does it mean that it is working but I have some python library missing and I can just install and use ALPS or should I try to get all the tests right before installing and using ALPS?
Thank you very much,
Paco Cordobes
On 2 March 2012 07:57, Matthias Troyer troyer@phys.ethz.ch wrote:
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
Dear Paco Cordobes,
This is okay. The failed tests 23 and 40 are not serious and known for that OS. The Python failures simply mean that it could not do the tests. Go ahead and install and then see whether the Python modules work.
Matthias
On Mar 2, 2012, at 3:54 PM, Francisco Cordobés wrote:
Dear Matthias,
I had, indeed, an old installation of ALPS(which didn't work) but it was not in my include path so I'm not sure why I was getting that error. I removed it all and upgraded to Debian testing(Wheezy). Getting the more modern versions of the libraries and compiler (gcc 4.6.2) seems to fix the error as it compiles now with no problem.
On the other hand, when I execute "make test" the output is:
"95% tests passed, 5 tests failed out of 99
Total Test time (real) = 11.62 sec
The following tests FAILED: 23 - test_vector (Failed) 40 - lattice_constant_test (Failed) 97 - python_hlist_test (Failed) 98 - python_mcdata (Failed) 99 - python_pyhdf5 (Failed) Errors while running CTest make: *** [test] Error 8 "
Is this normal? Does it mean that it is working but I have some python library missing and I can just install and use ALPS or should I try to get all the tests right before installing and using ALPS?
Thank you very much,
Paco Cordobes
On 2 March 2012 07:57, Matthias Troyer troyer@phys.ethz.ch wrote: 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
Dear Matthias,
It does work. Indeed, the python errors were only due to the fact that during the upgrade I have lost some numerical libraries and packages that I have had to reinstall manually so after install python-matplotlib and python-scipy I only get the other two errors and after installation I can run the examples with no problem(that I have detected so far).
Thank you very much for you help,
Paco Cordobes
On 2 March 2012 14:57, Matthias Troyer troyer@phys.ethz.ch wrote:
Dear Paco Cordobes,
This is okay. The failed tests 23 and 40 are not serious and known for that OS. The Python failures simply mean that it could not do the tests. Go ahead and install and then see whether the Python modules work.
Matthias
On Mar 2, 2012, at 3:54 PM, Francisco Cordobés wrote:
Dear Matthias,
I had, indeed, an old installation of ALPS(which didn't work) but it was not in my include path so I'm not sure why I was getting that error. I removed it all and upgraded to Debian testing(Wheezy). Getting the more modern versions of the libraries and compiler (gcc 4.6.2) seems to fix the error as it compiles now with no problem.
On the other hand, when I execute "make test" the output is:
"95% tests passed, 5 tests failed out of 99
Total Test time (real) = 11.62 sec
The following tests FAILED: 23 - test_vector (Failed) 40 - lattice_constant_test (Failed) 97 - python_hlist_test (Failed) 98 - python_mcdata (Failed) 99 - python_pyhdf5 (Failed) Errors while running CTest make: *** [test] Error 8 "
Is this normal? Does it mean that it is working but I have some python library missing and I can just install and use ALPS or should I try to get all the tests right before installing and using ALPS?
Thank you very much,
Paco Cordobes
On 2 March 2012 07:57, Matthias Troyer troyer@phys.ethz.ch wrote:
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
comp-phys-alps-users@lists.phys.ethz.ch