Dear all,
I'm trying to build ALPS 2.1.1 with the Intel compiler on a HPC, but I get errors when I run cmake.
1) I run cmake with the command
C=icc CXX=icpc cmake -D Boost_ROOT_DIR:PATH=/home/boeris/lib/boost-1.49.0 -DCMAKE_INSTALL_PREFIX=/home/boeris/lib/alps-2.1.1 -D MPI_C=mpicc -D MPI_CXX=mpicxx -D MPI_C_LIBRARIES=/opt/software/intel/impi/5.0.1.035/lib64/lib/libmpi.a -D MPI_CXX_LIBRARIES=/opt/software/intel/impi/5.0.1.035/lib64/libmpicxx.so -D FFTW_LIBRARIES=/opt/software/libraries/fftw3/3.3.4/lib/libfftw3.a -D FFTW_INCLUDE_DIR=/opt/software/libraries/fftw3/3.3.4/include -D HDF5_hdf5_LIBRARY_DEBUG= -D HDF5_hdf5_hl_LIBRARY_DEBUG= -D HDF5_m_LIBRARY_DEBUG= -D HDF5_rt_LIBRARY_DEBUG= -D HDF5_z_LIBRARY_DEBUG= -D SZIP_LIBRARIES=/opt/software/libraries/szip/2.1/lib/libsz.so -D SZIP_INCLUDE_DIRS=/opt/software/libraries/szip/2.1/include -D LAPACK_64_BIT=ON /home/boeris/lib/alps-2.1.1-r6176-src-with-boost/alps
I set variables like HDF5_hdf5_LIBRARY_DEBUG to empty strings to avoid errors, as recommended in a previous post (https://lists.phys.ethz.ch/pipermail/comp-phys-alps-users/2013/002300.html)
2) I get errors telling me that variables like MPI_C_LIBRARIES or SZIP_LIBRARIES are missing, even if I tried to define them in the command above. The full output of cmake is copied at the end of the message.
I would really appreciate some help !
Regards.
------------
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)
-- The C compiler identification is Intel 15.0.0.20140723
-- The CXX compiler identification is Intel 15.0.0.20140723
-- Check for working C compiler: /opt/software/intel/composer_xe_2015.0.090/bin/intel64/icc
-- Check for working C compiler: /opt/software/intel/composer_xe_2015.0.090/bin/intel64/icc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /opt/software/intel/composer_xe_2015.0.090/bin/intel64/icpc
-- Check for working CXX compiler: /opt/software/intel/composer_xe_2015.0.090/bin/intel64/icpc -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- 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 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/boeris/lib/boost-1.49.0
-- Boost Version: 1_49_0
-- Could NOT find MPI_C (missing: MPI_C_LIBRARIES)
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIBRARIES)
-- MPI compiler was
-- The Fortran compiler identification is Intel
-- Check for working Fortran compiler: /opt/software/intel/composer_xe_2015.0.090/bin/intel64/ifort
-- Check for working Fortran compiler: /opt/software/intel/composer_xe_2015.0.090/bin/intel64/ifort -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /opt/software/intel/composer_xe_2015.0.090/bin/intel64/ifort supports Fortran 90
-- Checking whether /opt/software/intel/composer_xe_2015.0.090/bin/intel64/ifort supports Fortran 90 -- yes
Falling back to CMake provied LAPACK/BLAS detection.
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not 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
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - found
-- 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: /opt/software/libraries/fftw3/3.3.4/lib/libfftw3.a
-- LPSolve Library: not found
-- Found ZLIB: /usr/lib64/libz.so
-- Could NOT find SZIP (missing: SZIP_LIBRARIES SZIP_INCLUDE_DIRS)
-- Found HDF5: debug;optimized;/usr/lib64/libhdf5_hl.so;/usr/lib64/libhdf5.so;/usr/lib64/libz.so;/usr/lib64/librt.so;/usr/lib64/libm.so
-- 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!
See also "/home/boeris/lib/build-alps/CMakeFiles/CMakeOutput.log".
See also "/home/boeris/lib/build-alps/CMakeFiles/CMakeError.log".