<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>




<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px Menlo}
span.s1 {font-variant-ligatures: no-common-ligatures}
</style>


<p class="p1"><span class="s1"><font size="2">---------------------------------------------^</font></span></p>
<p class="p1"><span class="s1"><font size="2">/home/xuzp/bin/packages/cp2k_ForZK/cp2k-5.1/src/xc/xc_libxc_wrap.F(88): error #6580: Name in only-list does not exist. <span class="Apple-converted-space">  </span>[XC_GGA_X_HJS_B97X]</font></span></p>
<p class="p1"><span class="s1"><font size="2"><span class="Apple-converted-space">                                             </span>XC_GGA_X_HJS_B97X,&</font></span></p>
<p class="p1"><span class="s1"><font size="2">---------------------------------------------^</font></span></p>
<p class="p1"><span class="s1"><font size="2">/home/xuzp/bin/packages/cp2k_ForZK/cp2k-5.1/src/xc/xc_libxc_wrap.F(89): error #6580: Name in only-list does not exist. <span class="Apple-converted-space">  </span>[XC_GGA_X_WPBEH]</font></span></p>
<p class="p1"><span class="s1"><font size="2"><span class="Apple-converted-space">                                             </span>XC_GGA_X_WPBEH</font></span></p>
<p class="p1"><span class="s1"><font size="2">---------------------------------------------^</font></span></p>
<p class="p1"><span class="s1"><font size="2">/home/xuzp/bin/packages/cp2k_ForZK/cp2k-5.1/src/xc/xc_libxc_wrap.F(91): error #6580: Name in only-list does not exist. <span class="Apple-converted-space">  </span>[DP]</font></span></p>
<p class="p1"><span class="s1"><font size="2"><span class="Apple-converted-space">  </span>USE kinds, <span class="Apple-converted-space">                          </span>ONLY: dp</font></span></p>
<p class="p1"><span class="s1"><font size="2">---------------------------------------------^</font></span></p>
<p class="p1"><span class="s1"><font size="2">/home/xuzp/bin/packages/cp2k_ForZK/cp2k-5.1/src/xc/xc_libxc_wrap.F(92): error #6580: Name in only-list does not exist. <span class="Apple-converted-space">  </span>[XC_F90_FUNC_END]</font></span></p>
<p class="p1"><span class="s1"><font size="2"><span class="Apple-converted-space">  </span>USE xc_f90_lib_m,<span class="Apple-converted-space">                    </span>ONLY: xc_f90_func_end,&</font></span></p>
<p class="p1"><span class="s1"><font size="2">---------------------------------------------^</font></span></p>
<p class="p1"><span class="s1"><font size="2">/tmp/ifortWv0tBS.i90(656): catastrophic error: Too many errors, exiting</font></span></p>
<p class="p1"><span class="s1"><font size="2">compilation aborted for xc_libxc_wrap.F90 (code 1)</font></span></p>
<p class="p1"><span class="s1"><font size="2">make[3]: *** [xc_libxc_wrap.o] Error 1</font></span></p>
<p class="p1"><span class="s1"><font size="2">make[3]: *** Waiting for unfinished jobs....</font></span></p>
<p class="p1"><span class="s1"><font size="2">ifort: warning #10193: -vec is default; use -x and -ax to configure vectorization</font></span></p>
<p class="p1"><span class="s1"><font size="2">ifort: warning #10193: -vec is default; use -x and -ax to configure vectorization</font></span></p>
<p class="p1"><span class="s1"><font size="2">ifort: warning #10193: -vec is default; use -x and -ax to configure vectorization</font></span></p>
<p class="p1"><span class="s1"><font size="2">ifort: warning #10193: -vec is default; use -x and -ax to configure vectorization</font></span></p>
<p class="p1"><span class="s1"><font size="2">ifort: command line warning #10006: ignoring unknown option '-ffast-math'</font></span></p>
<p class="p1"><span class="s1"><font size="2">ifort: command line warning #10006: ignoring unknown option '-ffree-form'</font></span></p>
<p class="p1"><span class="s1"><font size="2">ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-none'</font></span></p>
<p class="p1"><span class="s1"><font size="2">ifort: command line warning #10159: invalid argument for option '-m'</font></span></p>
<p class="p1"><span class="s1"><font size="2">ifort: warning #10193: -vec is default; use -x and -ax to configure vectorization</font></span></p>
<p class="p1"><span class="s1"><font size="2">/home/xuzp/bin/packages/cp2k_ForZK/cp2k-5.1/src/minimax/minimax_exp.F(38): error #6580: Name in only-list does not exist. <span class="Apple-converted-space">  </span>[K_MM]</font></span></p>
<p class="p1"><span class="s1"><font size="2"><span class="Apple-converted-space">                                              </span>k_mm,&</font></span></p>
<p class="p1"><span class="s1"><font size="2">----------------------------------------------^</font></span></p>
<p class="p1"><span class="s1"><font size="2">compilation aborted for minimax_exp.F90 (code 1)</font></span></p>
<p class="p1"><span class="s1"><font size="2">make[3]: *** [minimax_exp.o] Error 1</font></span></p>
<p class="p1"><span class="s1"><font size="2">make[2]: *** [all] Error 2</font></span></p>
<p class="p1"><span class="s1"><font size="2">make[1]: *** [popt] Error 2</font></span></p>
<p class="p1"><span class="s1"><font size="2">make: *** [all] Error 2</font></span></p><p class="p1"><span class="s1"><font size="2"><br></font></span></p><p class="p1"><font size="2">The <span style="font-variant-ligatures: no-common-ligatures;">FCFLAGS</span><span class="Apple-converted-space" style="font-variant-ligatures: no-common-ligatures;"> is as follow:</span></font></p><p class="p1"><font size="2"><br></font></p><p class="p1"><font size="2"><span class="s1"><span class="Apple-converted-space"> </span></span><span class="s2">FCFLAGS<span class="Apple-converted-space">    </span>= $(DFLAGS) -O2 -ffast-math -ffree-form -ffree-line-length-none\</span></font></p><p class="p1"><font size="2"><span class="s1"><span class="Apple-converted-space"> </span></span><span class="s2"> <span class="Apple-converted-space">            </span>-ftree-vectorize -funroll-loops\</span></font></p><p class="p1">




<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px Menlo}
span.s1 {font-variant-ligatures: no-common-ligatures; color: #afad24}
span.s2 {font-variant-ligatures: no-common-ligatures}
</style>




</p><p class="p1"><font size="2"><span class="s1"><span class="Apple-converted-space"> </span><span class="Apple-converted-space"> </span></span><span class="s2"> <span class="Apple-converted-space">            </span>-mtune=native\</span></font></p><p class="p1"><span style="font-variant-ligatures: no-common-ligatures;"><font size="2">The version of gfortran is : </font></span><span style="font-size: small; color: rgb(175, 173, 36); font-variant-ligatures: no-common-ligatures;">gcc version 4.1.2 20080704.</span></p><p class="p1"><span style="font-size: small; font-variant-ligatures: no-common-ligatures;">And the version of libxc is 3.0.0.</span><br></p><p class="p1"><span style="font-size: small; font-variant-ligatures: no-common-ligatures;"><br></span></p><p class="p1"><span style="font-size: small; font-variant-ligatures: no-common-ligatures;">I thinks the problem maybe from libxc or the old version of gfortran.</span></p><p class="p1"><font size="2"><span style="font-variant-ligatures: no-common-ligatures;">Can you help me?</span></font></p><p class="p1"><font size="2"><span style="font-variant-ligatures: no-common-ligatures;"><br></span></font></p><p class="p1"><font size="2"><span style="font-variant-ligatures: no-common-ligatures;">Best,</span></font></p><p class="p1"><font size="2"><span style="font-variant-ligatures: no-common-ligatures;">Justin </span></font></p><p class="p1"><span style="font-size: small; font-variant-ligatures: no-common-ligatures;"><br></span></p><p class="p1"><span class="s1"><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 href="javascript:" target="_blank" gdf-obfuscated-mailto="swJkAruUAAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp2k+uns...@googlegroups.<wbr>com</a>
<br>> <mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="swJkAruUAAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp2k+uns...@<wbr>googlegroups.com</a>>.
<br>> To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="swJkAruUAAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp...@googlegroups.com</a>
<br>> <mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="swJkAruUAAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp...@googlegroups.com</a>><wbr>.
<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>-- 
<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" target="_blank" rel="nofollow" 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 href="javascript:" target="_blank" gdf-obfuscated-mailto="swJkAruUAAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">tizia...@chem.uzh.ch</a>
<br></blockquote></div><style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px Menlo}
span.s1 {font-variant-ligatures: no-common-ligatures}
</style></div>