用GNU编译器所用指令和错误信息如下: ~/software/OpenMolcas-v24.02/build$CC=gcc CXX=g++ F77=gfortran FC=gfortran MPICC=mpiccMPICXX=mpicxx cmake -DLINALG=MKL -DMPI=ON -DGA=ON -DMPIEXEC_EXECUTABLE=$HOME/openmpi416/bin/mpiexec -DCMAKE_INSTALL_PREFIX=$HOME/software/OpenMolcas2402.. -- The Fortran compiler identification isGNU 9.4.0 -- The C compiler identification is GNU9.4.0 -- Detecting Fortran compiler ABI info -- Detecting Fortran compiler ABI info -done -- Check for working Fortran compiler:/usr/bin/gfortran - skipped -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler:/usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Found Python:/opt/intel/oneapi/intelpython/latest/bin/python3.9 (found version"3.9.7") found components: Interpreter Configuring compilers: Detecting Molcas version info: -- OPENMOLCAS_VERSION: v24.02 ? Detecting system info: -- OS: Linux-x86_64 -- ADDRMODE: 64 -- PLATFORM: LINUX64 Configuring with MPI parallellization: -- Found MPI_C: /home/wlc/openmpi416/lib/libmpi.so(found version "3.1") -- Found MPI_Fortran: /home/wlc/openmpi416/lib/libmpi_usempif08.so(found version "3.1") -- Found MPI: TRUE (found version"3.1") -- MPI_C_INCLUDE_PATH: /home/wlc/openmpi416/include -- MPI_Fortran_INCLUDE_PATH: /home/wlc/openmpi416/include;/home/wlc/openmpi416/lib -- MPI_C_LIBRARIES: /home/wlc/openmpi416/lib/libmpi.so -- MPI_Fortran_LIBRARIES: /home/wlc/openmpi416/lib/libmpi_usempif08.so;/home/wlc/openmpi416/lib/libmpi_usempi_ignore_tkr.so;/home/wlc/openmpi416/lib/libmpi_mpifh.so;/home/wlc/openmpi416/lib/libmpi.so -- MPIEXEC: /home/wlc/openmpi416/bin/mpiexec -- MPI_IMPLEMENTATION: openmpi Configuring HDF5 support: -- Found HDF5: hdf5-shared (found version"1.14.4") found components: C -- HDF5_INCLUDE_DIRS: /home/wlc/software/hdf5-1.14.4/include -- HDF5_C_LIBRARIES: hdf5-shared Configuring linear algebra libraries: -- Using Intel Math Kernel Library (MKL) -- MKLROOT = /opt/intel/oneapi/mkl/2022.0.2 -- MKL_INCLUDE_PATH =/opt/intel/oneapi/mkl/2022.0.2/include -- MKL_LIBRARY_PATH =/opt/intel/oneapi/mkl/2022.0.2/lib -- LINALG_LIBRARIES:/opt/intel/oneapi/mkl/2022.0.2/lib/intel64/libmkl_scalapack_ilp64.so;/opt/intel/oneapi/mkl/2022.0.2/lib/intel64/libmkl_gf_ilp64.so;/opt/intel/oneapi/mkl/2022.0.2/lib/intel64/libmkl_core.so;/opt/intel/oneapi/mkl/2022.0.2/lib/intel64/libmkl_sequential.so;/opt/intel/oneapi/mkl/2022.0.2/lib/intel64/libmkl_blacs_openmpi_ilp64.so Configuring Libxc: -- Configuring built-in Libxc CMake Error at/opt/cmake-3.28.6/share/cmake-3.28/Modules/ExternalProject.cmake:2919(message): error: could not find git for clone of Libxc Call Stack (most recent callfirst): /opt/cmake-3.28.6/share/cmake-3.28/Modules/ExternalProject.cmake:4427(_ep_add_download_command) CMakeLists.txt:1237 (ExternalProject_Add) -- Configuring incomplete, errors occurred!
用intel编译器所用指令和错误信息如下: ~/software/OpenMolcas-v24.06/build$ CC=icc CXX=icpc F77=ifort FC=ifort MPICC=mpiccMPICXX=mpicxx cmake -DLINALG=MKL -DMPI=ON -DGA=ON-DMPIEXEC_EXECUTABLE=/$HOME/software/openmpi416/bin/mpiexec-DCMAKE_INSTALL_PREFIX=$HOME/software/openmolcas2406 .. Configuring compilers: Detecting Molcas version info: -- OPENMOLCAS_VERSION: v24.06 ? Detecting system info: -- OS: Linux-x86_64 -- ADDRMODE: 64 -- PLATFORM: LINUX64 Configuring with MPI parallellization: -- MPI_C_INCLUDE_PATH: /home/wlc/software/openmpi416/include -- MPI_Fortran_INCLUDE_PATH: /home/wlc/software/openmpi416/include;/home/wlc/software/openmpi416/lib -- MPI_C_LIBRARIES: /home/wlc/software/openmpi416/lib/libmpi.so -- MPI_Fortran_LIBRARIES: /home/wlc/software/openmpi416/lib/libmpi_usempif08.so;/home/wlc/software/openmpi416/lib/libmpi_usempi_ignore_tkr.so;/home/wlc/software/openmpi416/lib/libmpi_mpifh.so;/home/wlc/software/openmpi416/lib/libmpi.so -- MPIEXEC: /home/wlc/software/openmpi416/bin/mpiexec -- MPI_IMPLEMENTATION: openmpi Configuring HDF5 support: -- HDF5_INCLUDE_DIRS: /home/wlc/software/hdf5-1-14-4/include -- HDF5_C_LIBRARIES: hdf5-shared Configuring linear algebra libraries: -- Using Intel Math Kernel Library (MKL) -- MKLROOT = /opt/intel/oneapi/mkl/2022.0.2 -- MKL_INCLUDE_PATH =/opt/intel/oneapi/mkl/2022.0.2/include -- MKL_LIBRARY_PATH =/opt/intel/oneapi/mkl/2022.0.2/lib -- LINALG_LIBRARIES:/opt/intel/oneapi/mkl/2022.0.2/lib/intel64/libmkl_scalapack_ilp64.so;/opt/intel/oneapi/mkl/2022.0.2/lib/intel64/libmkl_intel_ilp64.so;/opt/intel/oneapi/mkl/2022.0.2/lib/intel64/libmkl_core.so;/opt/intel/oneapi/mkl/2022.0.2/lib/intel64/libmkl_sequential.so;/opt/intel/oneapi/mkl/2022.0.2/lib/intel64/libmkl_blacs_openmpi_ilp64.so Configuring Libxc: -- Configuring built-in Libxc CMake Error at/snap/cmake/1413/share/cmake-3.30/Modules/ExternalProject/shared_internal_commands.cmake:951(message): error: could not find git for clone of Libxc Call Stack (most recent callfirst): /snap/cmake/1413/share/cmake-3.30/Modules/ExternalProject.cmake:3035(_ep_add_download_command) CMakeLists.txt:1237 (ExternalProject_Add) -- Configuring incomplete, errors occurred!
我尝试的方法有: 1)换各种版本的Libxc和OpenMolcas,尽量尝试原文教程相同的组合; 2)把解压并改名后的Libxc放在多个不同的目录下,差不多让程序随时都能找到Libxc; 3)除直接解压外,还用make& make install 命令安装了Libxc,并且也写了环境变量; 4)openMPI试过了4.1.6和4.1.1两个版本; 5)激活或不激活anaconda; 6)修改CMakeLists.txt文件,去掉configuring Libxc的部分: #Libxc settings #=============== message("Configuring Libxc:") if(EXTERNAL_LIBXC) …… …… endif() #Global Arrays settings #=======================
Configure可以成功,但是到下一步的make操作,进行到26%需要build Libxc部分时仍然会出错: [26%] Building Fortran objectCMakeFiles/dft_util/CMakeFiles/dft_util_obj.dir/libxc_parameters.F90.o /home/wlc/software/OpenMolcas-v24.02/src/dft_util/libxc_parameters.F90(17):error #7002: Error in opening the compiled module file. Check INCLUDE paths. [XC_F03_LIB_M] …… ……
一直无法解决这个错误。请大佬赐教,应该如何解决这个错误呢? 谢谢
|