[Thermo_pw-forum] compilation error

Andrea Dal Corso dalcorso at sissa.it
Sat Sep 10 14:58:35 CEST 2016


Thank you for reporting this.
There are two missing routines that the gcc compiler does not
link since they are not used, while intel wants to link them.
The solution for now is to take the two missing routines from  
PW/src/paw_onecenter.f90
lines 2237 up to 2310 and copy them in thermo_pw/qe/paw_add_onecenter.f90 at
the end of the file before the end module command.

The other possibility is to use a gcc compiler.


HTH,

Andrea



Quoting "H.Benaissa" <ben_usto at yahoo.fr>:

> Dear Andrea,
> I tried to  compile the beta version 6.0I got an error about  
> undefined reference
> could you please help to solve it
>
> this is my make.inc file 
> DFLAGS         =  -D__INTEL -D__FFTW3 -D__MPI -D__PARA -D__SCALAPACK
> IFLAGS         = -I$(TOPDIR)/include -I../include/  
> -I/usr/local/include -I/opt/intel/composer_xe_2013.1.117/mkl/include
> MPIF90         = mpiifort
> #F90           = ifort
> CC             = icc
> F77            = ifort
> BLAS_LIBS      =   -lmkl_intel_lp64  -lmkl_sequential  
> -lmkl_coreSCALAPACK_LIBS = -lmkl_scalapack_lp64  
> -lmkl_blacs_intelmpi_lp64FFT_LIBS       =  -lfftw3
>
>
>
>
>
>
> the error message :
>
>
>
> ../qe/thermo_qe.a(paw_add_onecenter.o): In function `paw_xc_potential':
> /home/group/espresso-6.0-beta/thermo_pw/qe/paw_add_onecenter.f90:145:  
> undefined reference to `add_small_mag_'
> /home/group/espresso-6.0-beta/thermo_pw/qe/paw_add_onecenter.f90:169:  
> undefined reference to `compute_g_'
> ../qe/thermo_qe.a(paw_add_onecenter.o): In function `compute_rho_spin_lm':
> /home/group/espresso-6.0-beta/thermo_pw/qe/paw_add_onecenter.f90:1089:  
> undefined reference to `add_small_mag_'
> ../qe/thermo_qe.a(paw_add_onecenter.o): In function `compute_pot_nonc':
> /home/group/espresso-6.0-beta/thermo_pw/qe/paw_add_onecenter.f90:1185:  
> undefined reference to `compute_g_'
> /home/group/espresso-6.0-beta/thermo_pw/qe/paw_add_onecenter.f90:1168:  
> undefined reference to `add_small_mag_'
> ../qe/thermo_qe.a(paw_add_onecenter.o): In function  
> `paw_add_onecenter_mp_compute_rho_spin_lm_':
> /home/group/espresso-6.0-beta/thermo_pw/qe/paw_add_onecenter.f90:1089:  
> undefined reference to `add_small_mag_'
> make[3]: *** [thermo_pw.x] Erreur 1
> make[3]: quittant le répertoire «  
> /home/group/espresso-6.0-beta/thermo_pw/src »
> make[2]: *** [thermo_pw] Erreur 1
> make[2]: quittant le répertoire « /home/group/espresso-6.0-beta/thermo_pw »
> make[1]: *** [thermo_pw] Erreur 1
> make[1]: quittant le répertoire « /home/group/espresso-6.0-beta/install »
> make: *** [thermo_pw] Erreur 1
>
> -H.BenaissaUSTO-MB
> _______________________________________________
> Thermo_pw-forum mailing list
> Thermo_pw-forum at qeforge.qe-forge.org
> http://qeforge.qe-forge.org/mailman/listinfo/thermo_pw-forum






More information about the Thermo_pw-forum mailing list