<div dir="ltr">Hi Ole.<div><br></div><div>Thanks again for your help.</div><div>I have tried this before and only get<i> ld: cannot find -lelpa </i></div>
<div>Finally, what worked is only placing LIBS += -L$(ELPA_LIB) -lelpa</div><div>No LDFGLAGS and I had to export the path </div><div><br></div><div>On Wednesday, June 21, 2017 at 12:48:40 AM UTC-7, Ole Schütt wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Hi Luiz,
<br>
<br>the error message means that your are not linking in the elpa library.
<br>You need to add -L$(ELPA_DIR) to LDFLAGS and -lelpa to LIBS .
<br>
<br>-Ole
<br>
<br>On 2017-06-20 23:15, Luiz Fernando Lopes Oliveira wrote:
<br>> I'm getting the following error when compiling with ELPA:
<br>>
<br>> /gscratch/pfaendtner/lflo/<wbr>cp2k2017/cp2k/cp2k/lib/Linux-<wbr>x86-64-intel-host/psmp/<wbr>libcp2kfm.a(cp_fm_elpa.o):
<br>> In function `cp_fm_elpa_mp_cp_fm_diag_<wbr>elpa_':
<br>> cp_fm_elpa.F90:(.text+0x128b): undefined reference to
<br>> `elpa2_mp_solve_evp_real_<wbr>2stage_double_'
<br>> cp_fm_elpa.F90:(.text+0x23db): undefined reference to
<br>> `elpa2_mp_solve_evp_real_<wbr>2stage_double_'
<br>> cp_fm_elpa.F90:(.text+0x315b): undefined reference to
<br>> `elpa2_mp_solve_evp_real_<wbr>2stage_double_'
<br>> cp_fm_elpa.F90:(.text+0x3def): undefined reference to
<br>> `elpa2_mp_solve_evp_real_<wbr>2stage_double_'
<br>> /gscratch/pfaendtner/lflo/<wbr>cp2k2017/cp2k/cp2k/lib/Linux-<wbr>x86-64-intel-host/psmp/<wbr>libcp2kfm.a(cp_fm_elpa.o):
<br>> In function `cp_fm_elpa_mp_cp_fm_diag_<wbr>elpa_':
<br>> cp_fm_elpa.F90:(.text+0x128b): undefined reference to
<br>> `elpa2_mp_solve_evp_real_<wbr>2stage_double_'
<br>> cp_fm_elpa.F90:(.text+0x23db): undefined reference to
<br>> `elpa2_mp_solve_evp_real_<wbr>2stage_double_'
<br>> cp_fm_elpa.F90:(.text+0x315b): undefined reference to
<br>> `elpa2_mp_solve_evp_real_<wbr>2stage_double_'
<br>> cp_fm_elpa.F90:(.text+0x3def): undefined reference to
<br>> `elpa2_mp_solve_evp_real_<wbr>2stage_double_'
<br>> /gscratch/pfaendtner/lflo/<wbr>cp2k2017/cp2k/cp2k/lib/Linux-<wbr>x86-64-intel-host/psmp/<wbr>libcp2kfm.a(cp_fm_elpa.o):
<br>> In function `cp_fm_elpa_mp_cp_fm_diag_<wbr>elpa_':
<br>> cp_fm_elpa.F90:(.text+0x128b): undefined reference to
<br>> `elpa2_mp_solve_evp_real_<wbr>2stage_double_'
<br>> cp_fm_elpa.F90:(.text+0x23db): undefined reference to
<br>> `elpa2_mp_solve_evp_real_<wbr>2stage_double_'
<br>> cp_fm_elpa.F90:(.text+0x315b): undefined reference to
<br>> `elpa2_mp_solve_evp_real_<wbr>2stage_double_'
<br>> cp_fm_elpa.F90:(.text+0x3def): undefined reference to
<br>> `elpa2_mp_solve_evp_real_<wbr>2stage_double_'
<br>> make[3]: ***
<br>> [/gscratch/pfaendtner/lflo/<wbr>cp2k2017/cp2k/cp2k/exe/Linux-<wbr>x86-64-intel-host/cp2k_shell.<wbr>psmp]
<br>> Error 1
<br>> make[3]: *** Waiting for unfinished jobs....
<br>> make[3]: ***
<br>> [/gscratch/pfaendtner/lflo/<wbr>cp2k2017/cp2k/cp2k/exe/Linux-<wbr>x86-64-intel-host/libcp2k_<wbr>unittest.psmp]
<br>> Error 1
<br>> make[3]: ***
<br>> [/gscratch/pfaendtner/lflo/<wbr>cp2k2017/cp2k/cp2k/exe/Linux-<wbr>x86-64-intel-host/cp2k.psmp]
<br>> Error 1
<br>> make[2]: *** [all] Error 2
<br>> make[1]: *** [psmp] Error 2
<br>> make: *** [all] Error 2
<br>>
<br>> Does someone have encountered a similar issue?
<br>>
<br>> --
<br>> You received this message because you are subscribed to the Google
<br>> Groups "cp2k" group.
<br>> To unsubscribe from this group and stop receiving emails from it, send
<br>> an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Z1Ne0W_wAQAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp2k+uns...@googlegroups.<wbr>com</a>.
<br>> To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Z1Ne0W_wAQAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp...@googlegroups.com</a>.
<br>> Visit this group at <a href="https://groups.google.com/group/cp2k" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/group/cp2k';return true;" onclick="this.href='https://groups.google.com/group/cp2k';return true;">https://groups.google.com/<wbr>group/cp2k</a>.
<br>> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/<wbr>optout</a>.
<br>
<br></blockquote></div></div>