Hi,
- the problem was not a lack of permissions for the build directory, but just cmake trying to write at the root of the filesystem. I commented out line 110 of CMakeLists.txt. I saw that this is also done in ALPS 2.2.0b3, but maybe this should be fixed in 2.1.1 version as well. Now CMake runs without errors.
- I now get the following error during the compilation :
[ 63%] Built target jacobi [ 63%] Built target jacobidavidson1 [ 63%] Building CXX object example/ietl/CMakeFiles/jacobidavidson2.dir/jacobidavidson2.cpp.o /home/boeris/build/alps-2.1.1-r6176-src/alps/src/boost/numeric/bindings/lapack/computational/getrf.hpp(197): error: no instance of overloaded function "boost::numeric::bindings::lapack::detail::getrf" matches the argument list argument types are: (order, ptrdiff_t, ptrdiff_t, double *, ptrdiff_t, int *) return detail::getrf( order(), bindings::size_row(a).
I don't know if it's due to the fact that I use Intel MKL. Do you know how to fix this ?
Thank you for your help.
Le Mercredi 4 février 2015 1h58, Haruhiko Matsuo halm.matsuo@gmail.com a écrit :
Hi,
- I changed somes values in CMakeCache.txt
Before running cmake again, you may need to remove all the cache files like CMakeCache.txt.
Haruhiko
On Wed, Feb 4, 2015 at 5:47 AM, Matthias Troyer troyer@phys.ethz.ch wrote:
As Synge Todo suggested, you need to run it from a directory where you have write permission, like somewhere in your home directory.
On Feb 3, 2015, at 17:32, Guilhem Boeris guilhemboeris@yahoo.fr wrote:
Hi,
Thank you very much for your answers ! Here is what I did following your advice :
- setting C=mpiicc and CXX=mpiicpc : yes, this worked and removed the errors
like "Could NOT find MPI_C (missing: MPI_C_LIBRARIES)"
- I changed somes values in CMakeCache.txt
- I still have the error : CMake Error: Could not open file for write in
copy operation /CMakeSystem.cmake.tmp CMake Error: : System Error: Permission denied
I checked that I was running cmake in a directory like $HOME/build with full write permissions. Moreover, this error does not show when I try to install ALPS 2.2.0b3 instead.
Do you have any idea ? Thanks you.
CMake output :
CMake Error: Could not open file for write in copy operation /CMakeSystem.cmake.tmp CMake Error: : System Error: Permission denied CMake Error at /usr/share/cmake/Modules/CMakeDetermineSystem.cmake:182 (configure_file): configure_file Problem configuring file Call Stack (most recent call first): CMakeLists.txt:110 (include)
-- Build type: Release -- Python interpreter /opt/software/tools/python/2.7.8/bin/python -- Python interpreter ok : version 2.7.8 -- PYTHON_INCLUDE_DIRS = /opt/software/tools/python/2.7.8/include/python2.7 -- PYTHON_NUMPY_INCLUDE_DIR = /opt/software/tools/python/2.7.8/lib/python2.7/site-packages/numpy/core/include -- PYTHON_SITE_PKG = /opt/software/tools/python/2.7.8/lib/python2.7/site-packages -- PYTHON_LIBRARY = /opt/software/tools/python/2.7.8/lib/python2.7/config/libpython2.7.a -- PYTHON_EXTRA_LIBS =-lpthread -ldl -lutil -- PYTHON_LINK_FOR_SHARED = -Xlinker -export-dynamic -- ALPS version: 2.1.1 -- Looking for Boost Source -- Found Boost Source: /home/boeris/lib/boost/1.49.0 -- Boost Version: 1_49_0 -- MPI compiler was /opt/software/intel/impi/5.0.1.035/bin64/mpiicpc 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. -- HDF5: /usr/include debug;optimized;/usr/lib64/libhdf5_hl.so;/usr/lib64/libhdf5.so;/usr/lib64/libz.so;/usr/lib64/librt.so;/usr/lib64/libm.so HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND -- Python interpreter /opt/software/tools/python/2.7.8/bin/python -- Python interpreter ok : version 2.7.8 -- PYTHON_INCLUDE_DIRS = /opt/software/tools/python/2.7.8/include/python2.7 -- PYTHON_NUMPY_INCLUDE_DIR = /opt/software/tools/python/2.7.8/lib/python2.7/site-packages/numpy/core/include -- PYTHON_SITE_PKG = /opt/software/tools/python/2.7.8/lib/python2.7/site-packages -- PYTHON_LIBRARY = /opt/software/tools/python/2.7.8/lib/python2.7/config/libpython2.7.a -- PYTHON_EXTRA_LIBS =-lpthread -ldl -lutil -- PYTHON_LINK_FOR_SHARED = -Xlinker -export-dynamic -- Numpy include in /opt/software/tools/python/2.7.8/lib/python2.7/site-packages/numpy/core/include -- ALPS XML dir is /home/boeris/lib/alps-2.1.1/lib/xml -- Adding Boost dir: /home/boeris/lib/boost/1.49.0 -- HDF5: /usr/include debug;optimized;/usr/lib64/libhdf5_hl.so;/usr/lib64/libhdf5.so;/usr/lib64/libz.so;/usr/lib64/librt.so;/usr/lib64/libm.so HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND;HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND CMake Warning (dev) at src/alps/CMakeLists.txt:85 (target_link_libraries): Link library type specifier "debug" is followed by specifier "optimized" instead of a library name. The first specifier will be ignored. This warning is for project developers. Use -Wno-dev to suppress it.
-- HDF5: /usr/include debug;optimized;/usr/lib64/libhdf5_hl.so;/usr/lib64/libhdf5.so;/usr/lib64/libz.so;/usr/lib64/librt.so;/usr/lib64/libm.so HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND;HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND -- tebd will not be built -- Configuring incomplete, errors occurred!