In the past I had no problems with compiling alps from source. Recently I tried to compile it on Fedora 24 and failed. I noticed that the source does not like boost 1.6 from Fedora, used native 1.58 from alps. Cmake result looks good but make fails:
cmake -D Boost_ROOT_DIR:PATH=~/alps-2.2.b4-src-with-boost/boost/ -DCMAKE_INSTALL_PREFIX=$HOME/ALPS/ LPSolve_LIBRARY=/usr/lib64/liblpsolve55.so -D LPSolve_INCLUDE_DIR=/usr/include/lpsolve/ -D HDF5_LIBRARIES=/usr/lib64/libhdf5.so -D HDF5_INCLUDE_DIR=/usr/include/ ~/alps-2.2.b4-src-with-boost/alps/
-- Compiler version: c++ (GCC) 6.1.1 20160621 (Red Hat 6.1.1-3) -- Build type: Release -- Python interpreter /usr/bin/python -- Python interpreter ok : version 2.7.12 -- PYTHON_INCLUDE_DIRS = /usr/include/python2.7 -- PYTHON_NUMPY_INCLUDE_DIR = /usr/lib64/python2.7/site-packages/numpy/core/include -- PYTHON_SITE_PKG = /usr/lib/python2.7/site-packages -- PYTHON_LIBRARY = /usr/lib64/python2.7/config/libpython2.7.so -- PYTHON_EXTRA_LIBS =-lpthread -ldl -lutil -- PYTHON_LINK_FOR_SHARED = -Xlinker -export-dynamic -- ALPS version: 2.2.b4 -- Looking for Boost Source -- Found Boost Source: /home/tadeusz/alps-2.2.b4-src-with-boost/boost -- Boost Version: 1_58_0 -- Adding Boost dir: /home/tadeusz/alps-2.2.b4-src-with-boost/boost -- Could NOT find MPI_C (missing: MPI_C_LIBRARIES MPI_C_INCLUDE_PATH) -- Could NOT find MPI_CXX (missing: MPI_CXX_LIBRARIES MPI_CXX_INCLUDE_PATH) -- MPI compiler was -- Falling back to CMake provied LAPACK/BLAS detection. -- A library with BLAS API found. -- A library with BLAS API found. -- A library with LAPACK API found. -- Could NOT find SZIP (missing: SZIP_LIBRARIES SZIP_INCLUDE_DIRS) -- Python interpreter /usr/bin/python -- Python interpreter ok : version 2.7.12 -- PYTHON_INCLUDE_DIRS = /usr/include/python2.7 -- PYTHON_NUMPY_INCLUDE_DIR = /usr/lib64/python2.7/site-packages/numpy/core/include -- PYTHON_SITE_PKG = /usr/lib/python2.7/site-packages -- PYTHON_LIBRARY = /usr/lib64/python2.7/config/libpython2.7.so -- PYTHON_EXTRA_LIBS =-lpthread -ldl -lutil -- PYTHON_LINK_FOR_SHARED = -Xlinker -export-dynamic -- Numpy include in /usr/lib64/python2.7/site-packages/numpy/core/include -- ALPS XML dir is /home/tadeusz/ALPS/lib/xml -- MPS: enabling NU1 symmetry. -- tebd will not be built -- Configuring done -- Generating done -- Build files have been written to: /home/tadeusz/build
make result: [ 65%] Building CXX object applications/dmrg/dmrg/CMakeFiles/dmrg.dir/dmrg.C.o In file included from /usr/include/python2.7/pyconfig.h:6:0, from /home/tadeusz/alps-2.2.b4-src-with-boost/boost/boost/python/detail/wrap_python.hpp:50, from /home/tadeusz/alps-2.2.b4-src-with-boost/boost/boost/python/detail/prefix.hpp:13, from /home/tadeusz/alps-2.2.b4-src-with-boost/boost/boost/python/args.hpp:8, from /home/tadeusz/alps-2.2.b4-src-with-boost/boost/boost/python.hpp:11, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/alea/mcdata.hpp:79, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/alea.h:34, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/alea/observableset.h:49, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/scheduler/montecarlo.h:40, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/scheduler.h:31, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/applications/dmrg/dmrg/dmrg.C:31: /usr/include/python2.7/pyconfig-64.h:1202:0: warning: "_POSIX_C_SOURCE" redefined #define _POSIX_C_SOURCE 200112L --------------------------------------------- In file included from /usr/include/c++/6.1.1/memory:81:0, from /home/tadeusz/alps-2.2.b4-src-with-boost/boost/boost/smart_ptr/scoped_ptr.hpp:21, from /home/tadeusz/alps-2.2.b4-src-with-boost/boost/boost/scoped_ptr.hpp:14, from /home/tadeusz/alps-2.2.b4-src-with-boost/boost/boost/smart_ptr.hpp:19, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/osiris/dump.h:38, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/scheduler/info.h:38, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/scheduler/worker.h:35, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/scheduler/task.h:41, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/scheduler/factory.h:34, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/applications/dmrg/dmrg/factory.h:31, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/applications/dmrg/dmrg/factory.C:30: /usr/include/c++/6.1.1/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ applications/dmrg/dmrg/CMakeFiles/dmrg.dir/build.make:86: for 'applications/dmrg/dmrg/CMakeFiles/dmrg.dir/factory.C.o' failed make[2]: *** [applications/dmrg/dmrg/CMakeFiles/dmrg.dir/factory.C.o] error 1 CMakeFiles/Makefile2:6096: polecenia dla obiektu 'applications/dmrg/dmrg/CMakeFiles/dmrg.dir/all' failed make[1]: *** [applications/dmrg/dmrg/CMakeFiles/dmrg.dir/all] error 2 Makefile:160: polecenia dla obiektu 'all' failed make: *** [all] error 2
Any suggestions? Regards
Tadeusz Wasiutyński, I guess it is the gcc version, try gcc5 instead.
Xiao Liang
-----Original Messages----- From:"Tadeusz Wasiutyński" tadeusz.wasiutynski@ifj.edu.pl Sent Time:2016-07-25 03:05:51 (Monday) To: comp-phys-alps-users@lists.phys.ethz.ch Cc: Subject: [ALPS-users] problem compiling alps-2.2.b4
In the past I had no problems with compiling alps from source. Recently I tried to compile it on Fedora 24 and failed. I noticed that the source does not like boost 1.6 from Fedora, used native 1.58 from alps. Cmake result looks good but make fails:
cmake -D Boost_ROOT_DIR:PATH=~/alps-2.2.b4-src-with-boost/boost/ -DCMAKE_INSTALL_PREFIX=$HOME/ALPS/ LPSolve_LIBRARY=/usr/lib64/liblpsolve55.so -D LPSolve_INCLUDE_DIR=/usr/include/lpsolve/ -D HDF5_LIBRARIES=/usr/lib64/libhdf5.so -D HDF5_INCLUDE_DIR=/usr/include/ ~/alps-2.2.b4-src-with-boost/alps/
-- Compiler version: c++ (GCC) 6.1.1 20160621 (Red Hat 6.1.1-3) -- Build type: Release -- Python interpreter /usr/bin/python -- Python interpreter ok : version 2.7.12 -- PYTHON_INCLUDE_DIRS = /usr/include/python2.7 -- PYTHON_NUMPY_INCLUDE_DIR = /usr/lib64/python2.7/site-packages/numpy/core/include -- PYTHON_SITE_PKG = /usr/lib/python2.7/site-packages -- PYTHON_LIBRARY = /usr/lib64/python2.7/config/libpython2.7.so -- PYTHON_EXTRA_LIBS =-lpthread -ldl -lutil -- PYTHON_LINK_FOR_SHARED = -Xlinker -export-dynamic -- ALPS version: 2.2.b4 -- Looking for Boost Source -- Found Boost Source: /home/tadeusz/alps-2.2.b4-src-with-boost/boost -- Boost Version: 1_58_0 -- Adding Boost dir: /home/tadeusz/alps-2.2.b4-src-with-boost/boost -- Could NOT find MPI_C (missing: MPI_C_LIBRARIES MPI_C_INCLUDE_PATH) -- Could NOT find MPI_CXX (missing: MPI_CXX_LIBRARIES MPI_CXX_INCLUDE_PATH) -- MPI compiler was -- Falling back to CMake provied LAPACK/BLAS detection. -- A library with BLAS API found. -- A library with BLAS API found. -- A library with LAPACK API found. -- Could NOT find SZIP (missing: SZIP_LIBRARIES SZIP_INCLUDE_DIRS) -- Python interpreter /usr/bin/python -- Python interpreter ok : version 2.7.12 -- PYTHON_INCLUDE_DIRS = /usr/include/python2.7 -- PYTHON_NUMPY_INCLUDE_DIR = /usr/lib64/python2.7/site-packages/numpy/core/include -- PYTHON_SITE_PKG = /usr/lib/python2.7/site-packages -- PYTHON_LIBRARY = /usr/lib64/python2.7/config/libpython2.7.so -- PYTHON_EXTRA_LIBS =-lpthread -ldl -lutil -- PYTHON_LINK_FOR_SHARED = -Xlinker -export-dynamic -- Numpy include in /usr/lib64/python2.7/site-packages/numpy/core/include -- ALPS XML dir is /home/tadeusz/ALPS/lib/xml -- MPS: enabling NU1 symmetry. -- tebd will not be built -- Configuring done -- Generating done -- Build files have been written to: /home/tadeusz/build
make result: [ 65%] Building CXX object applications/dmrg/dmrg/CMakeFiles/dmrg.dir/dmrg.C.o In file included from /usr/include/python2.7/pyconfig.h:6:0, from /home/tadeusz/alps-2.2.b4-src-with-boost/boost/boost/python/detail/wrap_python.hpp:50, from /home/tadeusz/alps-2.2.b4-src-with-boost/boost/boost/python/detail/prefix.hpp:13, from /home/tadeusz/alps-2.2.b4-src-with-boost/boost/boost/python/args.hpp:8, from /home/tadeusz/alps-2.2.b4-src-with-boost/boost/boost/python.hpp:11, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/alea/mcdata.hpp:79, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/alea.h:34, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/alea/observableset.h:49, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/scheduler/montecarlo.h:40, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/scheduler.h:31, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/applications/dmrg/dmrg/dmrg.C:31: /usr/include/python2.7/pyconfig-64.h:1202:0: warning: "_POSIX_C_SOURCE" redefined #define _POSIX_C_SOURCE 200112L --------------------------------------------- In file included from /usr/include/c++/6.1.1/memory:81:0, from /home/tadeusz/alps-2.2.b4-src-with-boost/boost/boost/smart_ptr/scoped_ptr.hpp:21, from /home/tadeusz/alps-2.2.b4-src-with-boost/boost/boost/scoped_ptr.hpp:14, from /home/tadeusz/alps-2.2.b4-src-with-boost/boost/boost/smart_ptr.hpp:19, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/osiris/dump.h:38, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/scheduler/info.h:38, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/scheduler/worker.h:35, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/scheduler/task.h:41, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/src/alps/scheduler/factory.h:34, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/applications/dmrg/dmrg/factory.h:31, from /home/tadeusz/alps-2.2.b4-src-with-boost/alps/applications/dmrg/dmrg/factory.C:30: /usr/include/c++/6.1.1/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ applications/dmrg/dmrg/CMakeFiles/dmrg.dir/build.make:86: for 'applications/dmrg/dmrg/CMakeFiles/dmrg.dir/factory.C.o' failed make[2]: *** [applications/dmrg/dmrg/CMakeFiles/dmrg.dir/factory.C.o] error 1 CMakeFiles/Makefile2:6096: polecenia dla obiektu 'applications/dmrg/dmrg/CMakeFiles/dmrg.dir/all' failed make[1]: *** [applications/dmrg/dmrg/CMakeFiles/dmrg.dir/all] error 2 Makefile:160: polecenia dla obiektu 'all' failed make: *** [all] error 2
Any suggestions?
Regards
--
Tadeusz Wasiutyński
comp-phys-alps-users@lists.phys.ethz.ch