<div dir="ltr">Hi,<div>are you including the LIBXC include path to your FCFLAGS? For instance, my arch file I have</div><div><br></div><div><span style="font-family:monospace"><span style="color: rgb(0, 0, 0);">FCFLAGS += -I${LIBXC_PATH}/include</span><br></span></div><div><span style="font-family:monospace"><span style="color: rgb(0, 0, 0);"><br></span></span></div><div><span style="font-family:monospace"><span style="color: rgb(0, 0, 0);">where LIBXC_PATH is set to the LIBXC path.</span></span></div><div><span style="font-family:monospace"><span style="color: rgb(0, 0, 0);"><br></span></span></div><div><span style="font-family:monospace"><span style="color: rgb(0, 0, 0);">Best regards,</span></span></div><div><span style="font-family:monospace"><span style="color: rgb(0, 0, 0);"><br></span></span></div><div><span style="font-family:monospace"><span style="color: rgb(0, 0, 0);">Alfio</span></span></div><div><br></div><div><br><br>Il giorno lunedì 26 febbraio 2018 09:28:10 UTC+1, Ke Zhou ha scritto:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><font size="2">Dear Tiziano Müller ,</font><div><font size="2"><br></font></div><div><font size="2">Your suggestion works well.</font></div><div><font size="2"><br></font></div><div><font size="2">However here comes the new problem.</font></div><div><font size="2"><br></font></div><div><font size="2"><br></font></div><div><font size="2">......</font></div><div>
<p><span><font size="2">------------------------------<wbr>---------------^</font></span></p>
<p><span><font size="2">/home/xuzp/bin/packages/cp2k_<wbr>ForZK/cp2k-5.1/src/xc/xc_<wbr>libxc_wrap.F(88): error #6580: Name in only-list does not exist. <span> </span>[XC_GGA_X_HJS_B97X]</font></span></p>
<p><span><font size="2"><span> </span>XC_GGA_X_HJS_B97X,&</font></span></p>
<p><span><font size="2">------------------------------<wbr>---------------^</font></span></p>
<p><span><font size="2">/home/xuzp/bin/packages/cp2k_<wbr>ForZK/cp2k-5.1/src/xc/xc_<wbr>libxc_wrap.F(89): error #6580: Name in only-list does not exist. <span> </span>[XC_GGA_X_WPBEH]</font></span></p>
<p><span><font size="2"><span> </span>XC_GGA_X_WPBEH</font></span></p>
<p><span><font size="2">------------------------------<wbr>---------------^</font></span></p>
<p><span><font size="2">/home/xuzp/bin/packages/cp2k_<wbr>ForZK/cp2k-5.1/src/xc/xc_<wbr>libxc_wrap.F(91): error #6580: Name in only-list does not exist. <span> </span>[DP]</font></span></p>
<p><span><font size="2"><span> </span>USE kinds, <span> </span>ONLY: dp</font></span></p>
<p><span><font size="2">------------------------------<wbr>---------------^</font></span></p>
<p><span><font size="2">/home/xuzp/bin/packages/cp2k_<wbr>ForZK/cp2k-5.1/src/xc/xc_<wbr>libxc_wrap.F(92): error #6580: Name in only-list does not exist. <span> </span>[XC_F90_FUNC_END]</font></span></p>
<p><span><font size="2"><span> </span>USE xc_f90_lib_m,<span> </span>ONLY: xc_f90_func_end,&</font></span></p>
<p><span><font size="2">------------------------------<wbr>---------------^</font></span></p>
<p><span><font size="2">/tmp/ifortWv0tBS.i90(656): catastrophic error: Too many errors, exiting</font></span></p>
<p><span><font size="2">compilation aborted for xc_libxc_wrap.F90 (code 1)</font></span></p>
<p><span><font size="2">make[3]: *** [xc_libxc_wrap.o] Error 1</font></span></p>
<p><span><font size="2">make[3]: *** Waiting for unfinished jobs....</font></span></p>
<p><span><font size="2">ifort: warning #10193: -vec is default; use -x and -ax to configure vectorization</font></span></p>
<p><span><font size="2">ifort: warning #10193: -vec is default; use -x and -ax to configure vectorization</font></span></p>
<p><span><font size="2">ifort: warning #10193: -vec is default; use -x and -ax to configure vectorization</font></span></p>
<p><span><font size="2">ifort: warning #10193: -vec is default; use -x and -ax to configure vectorization</font></span></p>
<p><span><font size="2">ifort: command line warning #10006: ignoring unknown option '-ffast-math'</font></span></p>
<p><span><font size="2">ifort: command line warning #10006: ignoring unknown option '-ffree-form'</font></span></p>
<p><span><font size="2">ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-none'</font></span></p>
<p><span><font size="2">ifort: command line warning #10159: invalid argument for option '-m'</font></span></p>
<p><span><font size="2">ifort: warning #10193: -vec is default; use -x and -ax to configure vectorization</font></span></p>
<p><span><font size="2">/home/xuzp/bin/packages/cp2k_<wbr>ForZK/cp2k-5.1/src/minimax/<wbr>minimax_exp.F(38): error #6580: Name in only-list does not exist. <span> </span>[K_MM]</font></span></p>
<p><span><font size="2"><span> </span>k_mm,&</font></span></p>
<p><span><font size="2">------------------------------<wbr>----------------^</font></span></p>
<p><span><font size="2">compilation aborted for minimax_exp.F90 (code 1)</font></span></p>
<p><span><font size="2">make[3]: *** [minimax_exp.o] Error 1</font></span></p>
<p><span><font size="2">make[2]: *** [all] Error 2</font></span></p>
<p><span><font size="2">make[1]: *** [popt] Error 2</font></span></p>
<p><span><font size="2">make: *** [all] Error 2</font></span></p><p><span><font size="2"><br></font></span></p><p><font size="2">The <span>FCFLAGS</span><span> is as follow:</span></font></p><p><font size="2"><br></font></p><p><font size="2"><span><span> </span></span><span>FCFLAGS<span> </span>= $(DFLAGS) -O2 -ffast-math -ffree-form -ffree-line-length-none\</span></font></p><p><font size="2"><span><span> </span></span><span> <span> </span>-ftree-vectorize -funroll-loops\</span></font></p><p>
</p><p><font size="2"><span><span> </span><span> </span></span><span> <span> </span>-mtune=native\</span></font></p><p><span><font size="2">The version of gfortran is : </font></span><span style="font-size:small;color:rgb(175,173,36)">gcc version 4.1.2 20080704.</span></p><p><span style="font-size:small">And the version of libxc is 3.0.0.</span><br></p><p><span style="font-size:small"><br></span></p><p><span style="font-size:small">I thinks the problem maybe from libxc or the old version of gfortran.</span></p><p><font size="2"><span>Can you help me?</span></font></p><p><font size="2"><span><br></span></font></p><p><font size="2"><span>Best,</span></font></p><p><font size="2"><span>Justin </span></font></p><p><span style="font-size:small"><br></span></p><p><span><br></span></p><br>在 2018年2月26日星期一 UTC+8上午12:24:31,Tiziano Müller写道:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ke
<br>
<br>Try to run make like that:
<br>
<br> PATH="/home/xuzp/bin/packages/<wbr>python/Python-2.7.14:${PATH}" make
<br>VERSION=sopt ARCH=local
<br>
<br>or set your path variable before running make:
<br>
<br> export PATH="/home/xuzp/bin/packages/<wbr>python/Python-2.7.14:${PATH}"
<br> make VERSION=sopt ARCH=local
<br>
<br>Both options should ensure that make picks up your version of Python.
<br>
<br>And please talk to your administrator: Python 2.4 is EOL with its last
<br>bug fixing release more than 9 years ago.
<br>
<br>Best regards,
<br>Tiziano
<br>
<br>Am 24.02.2018 um 02:30 schrieb Ke Zhou:
<br>> Dear Patrick,
<br>>
<br>> Thanks for your reply.
<br>>
<br>> It returns:
<br>>
<br>> Discovering programs ...
<br>>
<br>> /home/xuzp/bin/packages/cp2k_<wbr>ForZK/cp2k-5.1/makefiles/<wbr>Makefile:42:
<br>> /home/xuzp/bin/packages/cp2k_<wbr>ForZK/cp2k-5.1/arch/local.<wbr>sopt: No such
<br>> file or directory
<br>>
<br>> make[2]: *** No rule to make target
<br>> `/home/xuzp/bin/packages/cp2k_<wbr>ForZK/cp2k-5.1/arch/local.<wbr>sopt'. Stop.
<br>>
<br>> make[1]: *** [sopt] Error 2
<br>>
<br>> make: *** [toolversions] Error 2
<br>>
<br>>
<br>> I type: /usr/bin/env python -V
<br>>
<br>> It returns:
<br>>
<br>> Python 2.4.3
<br>>
<br>>
<br>> I type: python -V
<br>>
<br>> It returns:
<br>>
<br>> Python 2.7.14
<br>>
<br>>
<br>> Because I have no permission to change the python on the root. So I
<br>> use /alias/ to link python to the new one on my users files.
<br>>
<br>>
<br>>
<br>> alias python='/home/xuzp/bin/<wbr>packages/python/Python-2.7.14/<wbr>python'
<br>>
<br>>
<br>> I gauss that the python running when making is old version not the new one.
<br>>
<br>> So I thinks If I specify the path for python, it may solve the problem.
<br>> But I don't how to do it.
<br>>
<br>>
<br>> Best,
<br>>
<br>> Ke
<br>>
<br>>
<br>> 在 2018年2月23日星期五 UTC+8下午10:19:15,Patrick Seewald写道:
<br>>
<br>> It is rather strange that you get this syntax error from python
<br>> since fypp should support python 2.7.14. If you type /make
<br>> toolversions/ on the cluster (in the same directory as CP2K
<br>> makefile), what is the output for Python?
<br>>
<br>> Patrick
<br>>
<br>> Am Freitag, 23. Februar 2018 13:37:37 UTC+1 schrieb Ke Zhou:
<br>>
<br>> Dear all,
<br>>
<br>> Now I am compiling the CP2K 2.5.1 on cluster. When I making, it
<br>> returns:
<br>>
<br>>
<br>> Discovering programs ...
<br>>
<br>> Removing stale archives for popt ...
<br>>
<br>> Resolving dependencies for popt ...
<br>>
<br>> ...
<br>>
<br>> ... /cp2k-5.1/tools/build_utils/<wbr>fypp -n ...
<br>> /cp2k-5.1/src/dbcsr/mm/dbcsr_<wbr>mm_types.F dbcsr_mm_types.F90
<br>>
<br>> ... /cp2k-5.1/tools/build_utils/<wbr>fypp", line 705
<br>>
<br>> except Exception as exc:
<br>>
<br>> ^
<br>>
<br>> SyntaxError: invalid syntax
<br>>
<br>> make[3]: *** [kinds.o] Error 1
<br>>
<br>> make[3]: *** Waiting for unfinished jobs....
<br>>
<br>>
<br>> I thinks it's the problem from python.
<br>>
<br>>
<br>> The version of python is:
<br>>
<br>>
<br>> python -V
<br>>
<br>> Python 2.7.14
<br>>
<br>>
<br>> Here are my questions:
<br>>
<br>> 1. Can I directly specify the path of python on makefile?
<br>>
<br>> 2. Can I give up the build of tools?
<br>>
<br>>
<br>> Can you help me?
<br>>
<br>>
<br>> Justin
<br>>
<br>>
<br>>
<br>>
<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 rel="nofollow">cp2k+...@googlegroups.com</a>
<br>> <mailto:<a rel="nofollow">cp2k+uns...@<wbr>googlegroups.com</a>>.
<br>> To post to this group, send email to <a rel="nofollow">cp...@googlegroups.com</a>
<br>> <mailto:<a rel="nofollow">cp...@googlegroups.com</a><wbr>>.
<br>> Visit this group at <a href="https://groups.google.com/group/cp2k" rel="nofollow" target="_blank" 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" rel="nofollow" target="_blank" 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>--
<br>Tiziano Müller
<br>University of Zurich
<br>Department of Chemistry
<br>Winterthurerstrasse 190
<br>CH-8057 Zürich
<br>
<br>Tel: +41 44 63 54234
<br><a href="http://www.chem.uzh.ch" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.chem.uzh.ch\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEaSd80M-dQwlA8q5GEKkKY5wRCiQ';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.chem.uzh.ch\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEaSd80M-dQwlA8q5GEKkKY5wRCiQ';return true;">www.chem.uzh.ch</a>
<br><a rel="nofollow">tizia...@chem.uzh.ch</a>
<br></blockquote></div></div></blockquote></div></div>