Thank you Xiao Liang. Indeed compilation with gcc-5.4 goes smoothly while with 6.1 not. Now I have problems with openmpi: MPI_EXTRA_LIBRARY NOT FOUND Was this issue discussed earlier? Best regards Tadeusz
2016-07-25 12:00 GMT+02:00 comp-phys-alps-users-request@lists.phys.ethz.ch :
Send Comp-phys-alps-users mailing list submissions to comp-phys-alps-users@lists.phys.ethz.ch
To subscribe or unsubscribe via the World Wide Web, visit https://lists.phys.ethz.ch/listinfo/comp-phys-alps-users or, via email, send a message with subject or body 'help' to comp-phys-alps-users-request@lists.phys.ethz.ch
You can reach the person managing the list at comp-phys-alps-users-owner@lists.phys.ethz.ch
When replying, please edit your Subject line so it is more specific than "Re: Contents of Comp-phys-alps-users digest..."
Today's Topics:
- problem compiling alps-2.2.b4 (Tadeusz Wasiuty?ski)
- Re: problem compiling alps-2.2.b4 (??)
- question (Hocine Ahmed)
Message: 1 Date: Sun, 24 Jul 2016 21:05:51 +0200 From: Tadeusz Wasiuty?ski tadeusz.wasiutynski@ifj.edu.pl To: comp-phys-alps-users@lists.phys.ethz.ch Subject: [ALPS-users] problem compiling alps-2.2.b4 Message-ID: <CAKNmYXi5nOpvN=8QbBczCMe3q=smBH4cqYqby_Ww=XOp7EkwrQ@mail. gmail.com> Content-Type: text/plain; charset="utf-8"
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