[QE-users] Failed to compile want and yambo from within the locally cloned Quantum-ESPRESSO gitlab repository.

Hongyi Zhao hongyi.zhao at gmail.com
Sat Dec 25 09:59:44 CET 2021


On Ubuntu 20.04.3 LTS, I try to compile want and yambo from within the
locally cloned Quantum-ESPRESSO gitlab repository, but failed as
following:

$ module load intel/oneapi/2021.2.0
$ make -j44 want
[...]
mpiifort -O2 -assume byterecl -g -traceback -nomodule -fpp -D__INTEL
-D__FFTW3 -D__MPI -D__PARA -I../../include   -I.
-I/home/werner/Public/repo/gitlab.com/QEF/q-e.git/WANT/extlibs/iotk/include
-I../baselib -I../wannier -I../transport  -c sort.f90
qexsd.f90(1788): error #7002: Error in opening the compiled module
file.  Check INCLUDE paths.   [CONSTANTS]
      USE constants,        ONLY : DP
----------^
qexsd.f90(1796): error #6683: A kind type parameter must be a
compile-time constant.   [DP]
      complex(DP), optional, intent(out)   :: wfc(:,:)
--------------^
qexsd.f90(1797): error #6683: A kind type parameter must be a
compile-time constant.   [DP]
      real(DP),    optional, intent(out)   :: xk(3)
-----------^
qexsd.f90(1802): error #6683: A kind type parameter must be a
compile-time constant.   [DP]
      complex(DP), allocatable :: wtmp(:)
--------------^
qexsd.f90(1805): error #6683: A kind type parameter must be a
compile-time constant.   [DP]
      real(DP)           :: xk_(3), scalef, b1(3), b2(3), b3(3)
-----------^
qexsd.f90(2017): error #7002: Error in opening the compiled module
file.  Check INCLUDE paths.   [CONSTANTS]
      use constants,        ONLY : DP
----------^
qexsd.f90(2023): error #6683: A kind type parameter must be a
compile-time constant.   [DP]
      complex(DP), optional, intent(inout) :: rho(:,:)
--------------^
qexsd.f90(2026): error #6683: A kind type parameter must be a
compile-time constant.   [DP]
      complex(DP), allocatable :: rho_g(:)
--------------^
qexsd.f90(2027): error #6683: A kind type parameter must be a
compile-time constant.   [DP]
      complex(DP)         :: rhoup, rhodw
--------------^
qexsd.f90(2028): error #6683: A kind type parameter must be a
compile-time constant.   [DP]
      real(DP)            :: b1(3), b2(3), b3(3)
-----------^
qexsd.f90(1016): error #6633: The type of the actual argument differs
from the type of the dummy argument.   [XK_]
         call qexsd_read_wfc(1,1, ik, 1, nspin, XK=xk_, IGKV=igkv,
NPWK=npwk_, IERR=ierr)
---------------------------------------------------^
qexsd.f90(1018): error #6633: The type of the actual argument differs
from the type of the dummy argument.   [XK_]
         call qexsd_read_wfc(1,1, ik, 1, nspin, XK=xk_, NPWK=npwk_, IERR=ierr)
---------------------------------------------------^
qexsd.f90(1980): error #6404: This name does not have a type, and must
have an explicit type.   [DP]
            IF ( igwx > igwx_ ) wtmp((npol_*igwx_+1):npol_*igwx) = 0.0_DP
----------------------------------------------------------------------^
qexsd.f90(1980): error #6975: A kind-param must be a digit-string or a
scalar-int-constant-name.   [DP]
            IF ( igwx > igwx_ ) wtmp((npol_*igwx_+1):npol_*igwx) = 0.0_DP
----------------------------------------------------------------------^
qexsd.f90(1788): error #6580: Name in only-list does not exist or is
not accessible.   [DP]
      USE constants,        ONLY : DP
-----------------------------------^
qexsd.f90(2149): error #6406: Conflicting attributes or multiple
declaration of name.   [DP]
                  rhoup = (rho(ig,ns-1) + rho_g(ig)) / 2.0_dp
----------------------------------------------------------^
qexsd.f90(2149): error #6975: A kind-param must be a digit-string or a
scalar-int-constant-name.   [DP]
                  rhoup = (rho(ig,ns-1) + rho_g(ig)) / 2.0_dp
----------------------------------------------------------^
qexsd.f90(2150): error #6406: Conflicting attributes or multiple
declaration of name.   [DP]
                  rhodw = (rho(ig,ns-1) - rho_g(ig)) / 2.0_dp
----------------------------------------------------------^
qexsd.f90(2150): error #6975: A kind-param must be a digit-string or a
scalar-int-constant-name.   [DP]
                  rhodw = (rho(ig,ns-1) - rho_g(ig)) / 2.0_dp
----------------------------------------------------------^
qexsd.f90(2017): error #6580: Name in only-list does not exist or is
not accessible.   [DP]
      use constants,        ONLY : DP
-----------------------------------^
compilation aborted for qexsd.f90 (code 1)
make[3]: *** [../../make.sys:10: qexsd.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
'/home/werner/Public/repo/gitlab.com/QEF/q-e.git/want-want-2.6.1/src/baselib'
make[2]: *** [Makefile:66: libwant] Error 2
make[2]: Leaving directory
'/home/werner/Public/repo/gitlab.com/QEF/q-e.git/want-want-2.6.1'
make[1]: *** [plugins_makefile:123: want] Error 1
make[1]: Leaving directory
'/home/werner/Public/repo/gitlab.com/QEF/q-e.git/install'
make: *** [Makefile:240: want] Error 1


$ make -j44 yambo
[...]
configure: creating ./config.status
config.status: error: cannot find input file: `install/make_lapack.inc.in'
make[1]: *** [plugins_makefile:176: configure-yambo] Error 1
make[1]: Leaving directory
'/home/werner/Public/repo/gitlab.com/QEF/q-e.git/install'
make: *** [Makefile:243: yambo] Error 1


But I find that they can be compiled by the following method:

$ module load intel/oneapi/2021.2.0
$ make all
$ cd WANT && make -j 44 all && cd -
$ cd YAMBO && make -j 44 all && cd -


Any hints for fixing this problem?

Regards,
HZ


More information about the users mailing list