issp-center-dev / HPhi

Quantum Lattice Model Simulator Package
https://www.pasums.issp.u-tokyo.ac.jp/hphi/en/
GNU General Public License v3.0
82 stars 25 forks source link

install error! #165

Open jsfeng-fudan opened 1 month ago

jsfeng-fudan commented 1 month ago

I following the install guidance, cmake sucessfully, but when I make , the error took place The error information is : [ 1%] Building Fortran object src/komega/CMakeFiles/komega.dir/komega_math.F90.o f951: Fatal Error: Reading module ‘mpi’ at line 1 column 2: Unexpected EOF.

If someone could help solve this, I would be very grateful.

jsfeng-fudan commented 1 month ago

cmake information is attached as below : -- Build type: Release -- The C compiler identification is GNU 5.4.0 -- The Fortran compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working Fortran compiler: /usr/bin/gfortran -- Check for working Fortran compiler: /usr/bin/gfortran -- works -- Detecting Fortran compiler ABI info -- Detecting Fortran compiler ABI info - done -- Checking whether /usr/bin/gfortran supports Fortran 90 -- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes -- Found OpenMP_C: -fopenmp (found version "4.0") -- Found OpenMP_Fortran: -fopenmp (found version "4.0") -- Found OpenMP: TRUE (found version "4.0")
-- Found MPI_C: /opt/vasp_volume/opt/intel2018/compilers_and_libraries_2018.5.274/linux/mpi/intel64/lib/release_mt/libmpi.so (found version "3.1") -- Found MPI_Fortran: /opt/vasp_volume/opt/intel2018/compilers_and_libraries_2018.5.274/linux/mpi/intel64/lib/libmpifort.so (found version "3.1") -- Found MPI: TRUE (found version "3.1")
-- Looking for Fortran sgemm -- Looking for Fortran sgemm - not found -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE
-- Looking for Fortran sgemm -- Looking for Fortran sgemm - found -- Found BLAS: /opt/vasp_volume/opt/intel2018/compilers_and_libraries_2018.5.274/linux/mkl/lib/intel64_lin/libmkl_gf_lp64.so;/opt/vasp_volume/opt/intel2018/compilers_and_libraries_2018.5.274/linux/mkl/lib/intel64_lin/libmkl_gnu_thread.so;/opt/vasp_volume/opt/intel2018/compilers_and_libraries_2018.5.274/linux/mkl/lib/intel64_lin/libmkl_core.so;/usr/lib/gcc/x86_64-linux-gnu/5/libgomp.so;-lm;-ldl
-- Looking for Fortran cheev -- Looking for Fortran cheev - found -- A library with LAPACK API found. -- Configuring done -- Generating done -- Build files have been written to: /home/ubuntu/work/fengjs/HPhi-3.5.1/build (base) root@master:/home/ubuntu/work/fengjs/HPhi-3.5.1/build# FC=gfortran cmake .. -- Build type: Release -- Found OpenMP_C: -fopenmp
-- Found OpenMP_Fortran: -fopenmp
-- Found OpenMP: TRUE
-- A library with LAPACK API found. -- Configuring done -- Generating done -- Build files have been written to: /home/ubuntu/work/fengjs/HPhi-3.5.1/build

tmisawa commented 1 month ago

This error may be related to the conflict of different compliers (e.g the intel compiler and the gcc compiler). Could you try to explicitly specify the intel compiler using the command cmake -DCONFIG=intel .. ?

jsfeng-fudan commented 1 month ago

It is okay! Thank you very much!

tmisawa commented 1 month ago

You are welcome~