<div dir="ltr">Hi,<div><br></div><div>Create a file in the main ELPA directory called 'remove_xcompiler', open it to edit, and add the code,</div><div><br></div><div><div class="prettyprint" style="background-color: rgb(250, 250, 250); border-color: rgb(187, 187, 187); border-style: solid; border-width: 1px; overflow-wrap: break-word;"><code class="prettyprint"><div class="subprettyprint"><pre class="code highlight" lang="python"><span id="LC1" class="line" lang="python"><span style="color: #800;" class="styled-by-prettify">#!/usr/bin/env python</span></span><span style="color: #000;" class="styled-by-prettify"><br></span><span id="LC2" class="line" lang="python"><span class="kn"><span style="color: #008;" class="styled-by-prettify">import</span></span><span style="color: #000;" class="styled-by-prettify"> </span><span class="nn"><span style="color: #000;" class="styled-by-prettify">sys</span></span></span><span style="color: #000;" class="styled-by-prettify"><br></span><span id="LC3" class="line" lang="python"><span class="kn"><span style="color: #008;" class="styled-by-prettify">import</span></span><span style="color: #000;" class="styled-by-prettify"> </span><span class="nn"><span style="color: #000;" class="styled-by-prettify">os</span></span></span><span style="color: #000;" class="styled-by-prettify"><br></span><span id="LC4" class="line" lang="python"></span><span style="color: #000;" class="styled-by-prettify"><br></span><span id="LC5" class="line" lang="python"><span class="n"><span style="color: #000;" class="styled-by-prettify">args</span></span><span style="color: #000;" class="styled-by-prettify"> </span><span class="o"><span style="color: #660;" class="styled-by-prettify">=</span></span><span style="color: #000;" class="styled-by-prettify"> </span><span class="p"><span style="color: #660;" class="styled-by-prettify">[</span></span><span class="n"><span style="color: #000;" class="styled-by-prettify">q</span></span><span style="color: #000;" class="styled-by-prettify"> </span><span class="k"><span style="color: #008;" class="styled-by-prettify">for</span></span><span style="color: #000;" class="styled-by-prettify"> </span><span class="n"><span style="color: #000;" class="styled-by-prettify">q</span></span><span style="color: #000;" class="styled-by-prettify"> </span><span class="ow"><span style="color: #008;" class="styled-by-prettify">in</span></span><span style="color: #000;" class="styled-by-prettify"> </span><span class="n"><span style="color: #000;" class="styled-by-prettify">sys</span></span><span class="o"><span style="color: #660;" class="styled-by-prettify">.</span></span><span class="n"><span style="color: #000;" class="styled-by-prettify">argv</span></span><span class="p"><span style="color: #660;" class="styled-by-prettify">[</span></span><span class="mi"><span style="color: #066;" class="styled-by-prettify">1</span></span><span class="p"><span style="color: #660;" class="styled-by-prettify">:]</span></span><span style="color: #000;" class="styled-by-prettify"> </span><span class="k"><span style="color: #008;" class="styled-by-prettify">if</span></span><span style="color: #000;" class="styled-by-prettify"> </span><span class="n"><span style="color: #000;" class="styled-by-prettify">q</span></span><span style="color: #000;" class="styled-by-prettify"> </span><span class="o"><span style="color: #660;" class="styled-by-prettify">!=</span></span><span style="color: #000;" class="styled-by-prettify"> </span><span class="s"><span style="color: #080;" class="styled-by-prettify">"-Xcompiler"</span></span><span class="p"><span style="color: #660;" class="styled-by-prettify">]</span></span></span><span style="color: #000;" class="styled-by-prettify"><br></span><span id="LC6" class="line" lang="python"><span class="n"><span style="color: #000;" class="styled-by-prettify">os</span></span><span class="o"><span style="color: #660;" class="styled-by-prettify">.</span></span><span class="n"><span style="color: #000;" class="styled-by-prettify">execvp</span></span><span class="p"><span style="color: #660;" class="styled-by-prettify">(</span></span><span class="n"><span style="color: #000;" class="styled-by-prettify">args</span></span><span class="p"><span style="color: #660;" class="styled-by-prettify">[</span></span><span class="mi"><span style="color: #066;" class="styled-by-prettify">0</span></span><span class="p"><span style="color: #660;" class="styled-by-prettify">],</span></span><span style="color: #000;" class="styled-by-prettify"> </span><span class="n"><span style="color: #000;" class="styled-by-prettify">args</span></span><span class="p"><span style="color: #660;" class="styled-by-prettify">[</span></span><span class="mi"><span style="color: #066;" class="styled-by-prettify">0</span></span><span class="p"><span style="color: #660;" class="styled-by-prettify">:])</span></span></span><span style="color: #000;" class="styled-by-prettify"><br></span></pre></div></code></div><br>Save and close.</div><div><br></div><div><a href="https://gitlab.mpcdf.mpg.de/elpa/elpa/blob/master/remove_xcompiler">https://gitlab.mpcdf.mpg.de/elpa/elpa/blob/master/remove_xcompiler</a><br></div><div><br></div><div>-T</div><div><br><br>On Friday, April 10, 2020 at 9:01:01 AM UTC-4, zhijian fu wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">Hi, what does "<font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6667px">the file "remove_xcompiler" is missing" mean? I created a "build" directory for installing, and the file "remove_xcompiler" is in the previous directory. where is the requested location?</span></font><br><br>在 2020年4月9日星期四 UTC+8下午5:58:54,Matthias Krack写道:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">The error message is quite clear. The file “../remove_xcompiler” is missing and that’s not a python issue. I encountered the same problem quite a while ago. I
looked for that file and copied it to the requested location to please the installer. That worked.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">HTH</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Matthias</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <a rel="nofollow">c...@googlegroups.com</a> <<a rel="nofollow">c...@googlegroups.com</a>>
<b>On Behalf Of </b>zhijian fu<br>
<b>Sent:</b> Donnerstag, 9. April 2020 08:12<br>
<b>To:</b> cp2k <<a rel="nofollow">c...@googlegroups.com</a>><br>
<b>Subject:</b> [CP2K:13093] Re: ELPA compile error when install cp2k 7.1</span></p>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">Hi, I change to python2 to compile elpa 2019.05.001, but the error still exists:</p>
<div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">Traceback (most recent call last):</p>
</div>
<div>
<p class="MsoNormal"> File "../remove_xcompiler", line 6, in <module></p>
</div>
<div>
<p class="MsoNormal"> os.execvp(args[0], args[0:])</p>
</div>
<div>
<p class="MsoNormal"> File "/usr/lib64/python2.7/os.py", line 346, in execvp</p>
</div>
<div>
<p class="MsoNormal"> _execvpe(file, args)</p>
</div>
<div>
<p class="MsoNormal"> File "/usr/lib64/python2.7/os.py", line 370, in _execvpe</p>
</div>
<div>
<p class="MsoNormal"> func(file, *argrest)</p>
</div>
<div>
<p class="MsoNormal">OSError: [Errno 2] No such file or directory</p>
</div>
<div>
<p class="MsoNormal">make[1]: *** [Makefile:16610<span style="font-family:"MS Gothic"">:</span>src/libelpa_<wbr>public_la-elpa_constants.lo] error 1</p>
</div>
<p class="MsoNormal"><span style="font-family:"MS Gothic"">在</span> 2020<span style="font-family:"MS Gothic"">年</span>4<span style="font-family:"MS Gothic"">月</span>7<span style="font-family:"MS Gothic"">日星期二</span> UTC+8<span style="font-family:"MS Gothic"">下午</span>4:12:54<span style="font-family:"MS Gothic"">,</span>Linfeng
Gan<span style="font-family:"MS Gothic"">写道:</span></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal">Hi, </p>
</div>
<div>
<p class="MsoNormal">Try with python 2 again?</p>
</div>
<p class="MsoNormal"><br>
On Sunday, April 5, 2020 at 4:28:48 PM UTC+8, zhijian fu wrote:</p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal">Hello, I want to install cp2k 7.1 using intel compiler, but when I install ELPA library, there is an error,</p>
<div>
<p class="MsoNormal">The compile setting:</p>
</div>
<div>
<div>
<p class="MsoNormal">../configure \</p>
</div>
<div>
<p class="MsoNormal">--prefix="/home/sunlight/<wbr>work2/cp2k/libs/libelpa/<wbr>201911001" \</p>
</div>
<div>
<p class="MsoNormal">--libdir="/home/sunlight/<wbr>work2/cp2k/libs/libelpa/<wbr>201911001/lib" \</p>
</div>
<div>
<p class="MsoNormal">--enable-openmp=no \</p>
</div>
<div>
<p class="MsoNormal">--enable-shared=no \</p>
</div>
<div>
<p class="MsoNormal">--enable-static=yes \</p>
</div>
<div>
<p class="MsoNormal">--enable-avx=yes \</p>
</div>
<div>
<p class="MsoNormal">--enable-avx2=yes \</p>
</div>
<div>
<p class="MsoNormal">--enable-avx512=yes \</p>
</div>
<div>
<p class="MsoNormal">--enable-option-checking=fatal \</p>
</div>
<div>
<p class="MsoNormal">FC=/opt/intel2020up1/<wbr>compilers_and_libraries_2020.<wbr>1.217/linux/mpi/intel64/bin/<wbr>mpiifort \</p>
</div>
<div>
<p class="MsoNormal">CC=/opt/intel2020up1/<wbr>compilers_and_libraries_2020.<wbr>1.217/linux/mpi/intel64/bin/<wbr>mpiicc \</p>
</div>
<div>
<p class="MsoNormal">CXX=/opt/intel2020up1/<wbr>compilers_and_libraries_2020.<wbr>1.217/linux/mpi/intel64/bin/<wbr>mpiicpc \</p>
</div>
<div>
<p class="MsoNormal">FCFLAGS="-O3 -xAVX2" CFLAGS="-O3 -xAVX2" \</p>
</div>
<div>
<p class="MsoNormal">SCALAPACK_LDFLAGS="-L/opt/<wbr>intel2020up1/mkl/lib/intel64 -lmkl_scalapack_lp64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lmkl_blacs_intelmpi_lp64 -lpthread " \</p>
</div>
<div>
<p class="MsoNormal">SCALAPACK_FCFLAGS="-I/opt/<wbr>intel2020up1/mkl/include/<wbr>intel64/lp64" \</p>
</div>
<div>
<p class="MsoNormal"> >configure.log 2>&1</p>
</div>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">The error is:</p>
</div>
<div>
<div>
<p class="MsoNormal">Traceback (most recent call last):</p>
</div>
<div>
<p class="MsoNormal"> File "../remove_xcompiler", line 6, in <module></p>
</div>
<div>
<p class="MsoNormal"> os.execvp(args[0], args[0:])</p>
</div>
<div>
<p class="MsoNormal"> File "/opt/intel2020up1/<wbr>intelpython3/lib/python3.7/os.<wbr>py", line 574, in execvp</p>
</div>
<div>
<p class="MsoNormal"> _execvpe(file, args)</p>
</div>
<div>
<p class="MsoNormal"> File "/opt/intel2020up1/<wbr>intelpython3/lib/python3.7/os.<wbr>py", line 597, in _execvpe</p>
</div>
<div>
<p class="MsoNormal"> exec_func(file, *argrest)</p>
</div>
<div>
<p class="MsoNormal">FileNotFoundError: [Errno 2] No such file or directory</p>
</div>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Could you give me some advice?</p>
</div>
<div>
<p class="MsoNormal">Thank you!</p>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
<p class="MsoNormal">-- <br>
You received this message because you are subscribed to the Google Groups "cp2k" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to
<a rel="nofollow">c...@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/6f1781ca-2bc4-486b-9d8f-797afb0580df%40googlegroups.com?utm_medium=email&utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/cp2k/6f1781ca-2bc4-486b-9d8f-797afb0580df%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;" onclick="this.href='https://groups.google.com/d/msgid/cp2k/6f1781ca-2bc4-486b-9d8f-797afb0580df%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;">
https://groups.google.com/d/<wbr>msgid/cp2k/6f1781ca-2bc4-486b-<wbr>9d8f-797afb0580df%<wbr>40googlegroups.com</a>.</p>
</div>
</div>
</blockquote></div></blockquote></div></div>