[CP2K:9139] Errors while compiling with ELPA

Luiz Fernando Lopes Oliveira olive... at gmail.com
Thu Jun 22 03:22:41 UTC 2017


Hi Ole.

Thanks again for your help.
I have tried this before and only get* ld: cannot find -lelpa *
Finally, what worked is only placing LIBS += -L$(ELPA_LIB) -lelpa
No LDFGLAGS and I had to export the path 

On Wednesday, June 21, 2017 at 12:48:40 AM UTC-7, Ole Schütt wrote:
>
> Hi Luiz, 
>
> the error message means that your are not linking in the elpa library. 
> You need to add -L$(ELPA_DIR) to LDFLAGS and -lelpa to LIBS . 
>
> -Ole 
>
> On 2017-06-20 23:15, Luiz Fernando Lopes Oliveira wrote: 
> > I'm getting the following error when compiling with ELPA: 
> > 
> > 
> /gscratch/pfaendtner/lflo/cp2k2017/cp2k/cp2k/lib/Linux-x86-64-intel-host/psmp/libcp2kfm.a(cp_fm_elpa.o): 
>
> > In function `cp_fm_elpa_mp_cp_fm_diag_elpa_': 
> > cp_fm_elpa.F90:(.text+0x128b): undefined reference to 
> > `elpa2_mp_solve_evp_real_2stage_double_' 
> > cp_fm_elpa.F90:(.text+0x23db): undefined reference to 
> > `elpa2_mp_solve_evp_real_2stage_double_' 
> > cp_fm_elpa.F90:(.text+0x315b): undefined reference to 
> > `elpa2_mp_solve_evp_real_2stage_double_' 
> > cp_fm_elpa.F90:(.text+0x3def): undefined reference to 
> > `elpa2_mp_solve_evp_real_2stage_double_' 
> > 
> /gscratch/pfaendtner/lflo/cp2k2017/cp2k/cp2k/lib/Linux-x86-64-intel-host/psmp/libcp2kfm.a(cp_fm_elpa.o): 
>
> > In function `cp_fm_elpa_mp_cp_fm_diag_elpa_': 
> > cp_fm_elpa.F90:(.text+0x128b): undefined reference to 
> > `elpa2_mp_solve_evp_real_2stage_double_' 
> > cp_fm_elpa.F90:(.text+0x23db): undefined reference to 
> > `elpa2_mp_solve_evp_real_2stage_double_' 
> > cp_fm_elpa.F90:(.text+0x315b): undefined reference to 
> > `elpa2_mp_solve_evp_real_2stage_double_' 
> > cp_fm_elpa.F90:(.text+0x3def): undefined reference to 
> > `elpa2_mp_solve_evp_real_2stage_double_' 
> > 
> /gscratch/pfaendtner/lflo/cp2k2017/cp2k/cp2k/lib/Linux-x86-64-intel-host/psmp/libcp2kfm.a(cp_fm_elpa.o): 
>
> > In function `cp_fm_elpa_mp_cp_fm_diag_elpa_': 
> > cp_fm_elpa.F90:(.text+0x128b): undefined reference to 
> > `elpa2_mp_solve_evp_real_2stage_double_' 
> > cp_fm_elpa.F90:(.text+0x23db): undefined reference to 
> > `elpa2_mp_solve_evp_real_2stage_double_' 
> > cp_fm_elpa.F90:(.text+0x315b): undefined reference to 
> > `elpa2_mp_solve_evp_real_2stage_double_' 
> > cp_fm_elpa.F90:(.text+0x3def): undefined reference to 
> > `elpa2_mp_solve_evp_real_2stage_double_' 
> > make[3]: *** 
> > 
> [/gscratch/pfaendtner/lflo/cp2k2017/cp2k/cp2k/exe/Linux-x86-64-intel-host/cp2k_shell.psmp] 
>
> > Error 1 
> > make[3]: *** Waiting for unfinished jobs.... 
> > make[3]: *** 
> > 
> [/gscratch/pfaendtner/lflo/cp2k2017/cp2k/cp2k/exe/Linux-x86-64-intel-host/libcp2k_unittest.psmp] 
>
> > Error 1 
> > make[3]: *** 
> > 
> [/gscratch/pfaendtner/lflo/cp2k2017/cp2k/cp2k/exe/Linux-x86-64-intel-host/cp2k.psmp] 
>
> > Error 1 
> > make[2]: *** [all] Error 2 
> > make[1]: *** [psmp] Error 2 
> > make: *** [all] Error 2 
> > 
> > Does someone have encountered a similar issue? 
> > 
> >  -- 
> > You received this message because you are subscribed to the Google 
> > Groups "cp2k" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> > an email to cp2k+... at googlegroups.com <javascript:>. 
> > To post to this group, send email to cp... at googlegroups.com 
> <javascript:>. 
> > Visit this group at https://groups.google.com/group/cp2k. 
> > For more options, visit https://groups.google.com/d/optout. 
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20170621/00f04ad0/attachment.htm>


More information about the CP2K-user mailing list