<div dir="ltr"><div>
Dear Professor Giannozzi and dear Experts, <br></div><div>Thank You for Your advice: I followed it during this week, focusing on the 7.2 version as suggested, compiling it with "./configure --enable-debug"; anyway nothing particular happened/showed neither on terminal nor in my folders, except for the fact that now the parallel version was set. <br></div><div>I made "make all" using external liblapack and libblas, but when I checked the tests again the same errors already mentioned in my first email showed up (still 163 tests out of 244 succeeded); I also checked and the file to which the errors refer (run-pw.sh) is the same as the one that another colleague of mine (whose tests compile without problems) has, so the problem shouldn't be in it (it refers to line 52 but there there is only "fi").</div><div>I also attach the two kinds of errors I got in the various tests:</div><div><a href="https://drive.google.com/file/d/1haVoWgKXa_e0gRZe64A-mEjeXa1PB76M/view?usp=sharing" target="_blank">https://drive.google.com/file/d/1haVoWgKXa_e0gRZe64A-mEjeXa1PB76M/view?usp=sharing</a></div><div><a href="https://drive.google.com/file/d/1QGEvo94G5no859s97vWndbl6NB71gRGA/view?usp=sharing" target="_blank">https://drive.google.com/file/d/1QGEvo94G5no859s97vWndbl6NB71gRGA/view?usp=sharing</a></div><div><br></div><div>Just for curiosity sake I tried to compile an input file my Professor showed during lectures and (after having modified the paths for the pseudopotentials and the output directory) I used:</div><div>"mpirun -np 4 pw.x -nk 1 < <a href="http://acetylene-scf.in" target="_blank">acetylene-scf.in</a> > acetylene-scf.out" (<a href="http://acetylene-scf.in">acetylene-scf.in</a> is the input file he gave us)<br></div><div>but I get the following error (I modified the "environment_variables" suitably: PARA_PREFIX="mpirun -np 4", PARA_POSTFIX="-nk 1"):</div><div>"--------------------------------------------------------------------------<br>mpirun was unable to find the specified executable file, and therefore<br>did not launch the job.  This error was first reported for process<br>rank 0; it may have occurred for other processes as well.<br><br>NOTE: A common cause for this error is misspelling a mpirun command<br>      line parameter option (remember that mpirun interprets the first<br>      unrecognized command line token as the executable).<br><br>Node:       LAPTOP-K66JO87C<br>Executable: pw.x"</div><div>as if (even after having used the 
"execstack" command) the pw.x executable was not found, regardless it is present in the bin directory...</div><div><br></div><div>What should I do now?</div><div>I am honestly lost.</div><div>Thank You for Your kind attention.<br></div><div>
<div><br></div><div>Best regards,  <span><br></span></div><span><div><span>Niccolò Damian<br>
Physics Master student at University of Padua</span></div></span>

</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno dom 21 mag 2023 alle ore 22:58 Paolo Giannozzi <<a href="mailto:paolo.giannozzi@uniud.it" target="_blank">paolo.giannozzi@uniud.it</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">0. Don't mess up with versions, use the latest.<br>
1. Once you have set LAPACK_EXTERNAL or whatever is needed, "make" will <br>
compile blas and lapack<br>
2. Compiling with debug is often the first thing to do, not the latest<br>
3. All failing tests have something in common: try to figure out what<br>
<br>
Paolo<br>
<br>
On 21/05/2023 09:43, Niccolò Damian wrote:<br>
> <br>
> Dear Professor Giannozzi and dear Experts,<br>
> Thank You for Your kind reply.<br>
> I tried what you suggested at point 1. and tried then "make run-tests" <br>
> in the directory "test-suite", but I still got the "Segmentation fault" <br>
> error messages as before and again 157 tests out 234 passed (I'm working <br>
> for the time being with the 7.1 version since I made "veryclean" for the <br>
> 7.2 version).<br>
> <br>
> As for point 2., in the path "$(TOPDIR)/external/lapack/" I have neither <br>
> libblas.a nor liblapack.a (in the 7.1 version I have only two files <br>
> .yml: .appveyor.yml and .travis.yml; in the 7.2 version I have instead <br>
> the directories and files showed in this snapshot <br>
> <a href="https://drive.google.com/file/d/1W1o0iC67fUTLtQiEo3AZINpPcKStDeOe/view?usp=share_link" rel="noreferrer" target="_blank">https://drive.google.com/file/d/1W1o0iC67fUTLtQiEo3AZINpPcKStDeOe/view?usp=share_link</a> <<a href="https://drive.google.com/file/d/1W1o0iC67fUTLtQiEo3AZINpPcKStDeOe/view?usp=share_link" rel="noreferrer" target="_blank">https://drive.google.com/file/d/1W1o0iC67fUTLtQiEo3AZINpPcKStDeOe/view?usp=share_link</a>> ) and I did not modified such directory for both versions. What should I do?<br>
> As for blas I'm using the newest version of libblas3 (3.9.0-1build1), <br>
> while for lapack I'm using the newest version of liblapack-dev <br>
> (3.9.0-1build1): is the problem (as I guess) related to them?<br>
> Are they not suitable? Should I autoremove and reinstall other versions <br>
> or types?<br>
> <br>
> I will proceed as You kindly suggested in point 3. once this problem has <br>
> been solved.<br>
> <br>
> <br>
> A side question: since now I'm trying to find from where the error <br>
> arises with these two versions in my PC, can I work at the same time <br>
> with both the two versions 7.1 and 7.2 configured and "made all" in two <br>
> different directories (at the same level) or should I (as I am doing <br>
> now) work with only one configured and "made all" (with the other one <br>
> "made veryclean") at a time?<br>
> <br>
> Thank You again in advance.<br>
> <br>
> Best regards,<br>
> Niccolò Damian<br>
> Physics Master student at University of Padua<br>
> <br>
> Il giorno sab 20 mag 2023 alle ore 21:56 Paolo Giannozzi <br>
> <<a href="mailto:paolo.giannozzi@uniud.it" target="_blank">paolo.giannozzi@uniud.it</a> <mailto:<a href="mailto:paolo.giannozzi@uniud.it" target="_blank">paolo.giannozzi@uniud.it</a>>> ha scritto:<br>
> <br>
>     0. I use since several years the Windows Subsystem for Linux as my main<br>
>     develop platform, so it works, no doubts.<br>
> <br>
>     1. Please verify whether this explains your problem:<br>
>     <a href="https://gitlab.com/QEF/q-e/-/wikis/Support/Segfault-with-gfortran-and-WSL" rel="noreferrer" target="_blank">https://gitlab.com/QEF/q-e/-/wikis/Support/Segfault-with-gfortran-and-WSL</a> <<a href="https://gitlab.com/QEF/q-e/-/wikis/Support/Segfault-with-gfortran-and-WSL" rel="noreferrer" target="_blank">https://gitlab.com/QEF/q-e/-/wikis/Support/Segfault-with-gfortran-and-WSL</a>><br>
> <br>
>     2. "configure" no longer recognizes options "--with-internal-blas" and<br>
>     "--with-internal-lapack". If you want to try whether the problem arises<br>
>     from pre-(badly-)compiled blas and lapack, edit make.inc as follows:<br>
>     BLAS_LIBS = $(TOPDIR)/external/lapack/libblas.a<br>
>     LAPACK = liblapack<br>
>     LAPACK_LIBS = $(TOPDIR)/external/lapack/liblapack.a<br>
> <br>
>     3. You may also try "./configure --enable-debug". It should at least<br>
>     say<br>
>     something more about the place where the code crashes.<br>
> <br>
>     Paolo<br>
> <br>
> <br>
>     On 20/05/2023 13:23, Niccolò Damian wrote:<br>
>      ><br>
>      > You don't often get email from <a href="mailto:niccolo.damian@studenti.unipd.it" target="_blank">niccolo.damian@studenti.unipd.it</a><br>
>     <mailto:<a href="mailto:niccolo.damian@studenti.unipd.it" target="_blank">niccolo.damian@studenti.unipd.it</a>>. Learn<br>
>      > why this is important<br>
>     <<a href="https://aka.ms/LearnAboutSenderIdentification" rel="noreferrer" target="_blank">https://aka.ms/LearnAboutSenderIdentification</a><br>
>     <<a href="https://aka.ms/LearnAboutSenderIdentification" rel="noreferrer" target="_blank">https://aka.ms/LearnAboutSenderIdentification</a>>><br>
>      ><br>
>      ><br>
>      > Dear Experts,<br>
>      > In the previous days I have tried to install Quantum espresso<br>
>     version<br>
>      > 7.2 in Ubuntu 20.04.6 LTS app in my Windows PC (I have Windows 10)<br>
>      > through Windows Subsystem for Linux.<br>
>      > There I have the version 9.4.0 of gfortran.<br>
>      ><br>
>      > I have followed the instructions and, when I tried to check<br>
>     whether the<br>
>      > installation was successful or not (no error messages were printed<br>
>      > before), only two thirds of the tests passed, and those that<br>
>     failed were<br>
>      > regarding (more than half of) the "pw" directories. The errors<br>
>     where all<br>
>      > of the following form:<br>
>      ><br>
>      ><br>
>     /home/nick/Quantum_espresso/qe-7.2/test-suite/..//test-suite/run-pw.sh:<br>
>      > line 52: 4169 Segmentation fault      (core dumped) ${PARA_PREFIX}<br>
>      > ${ESPRESSO_ROOT}/bin/pw.x ${PARA_SUFFIX} -input $1 > $2 2> $3<br>
>      > pw_dipole - <a href="http://2dcutoff.in" rel="noreferrer" target="_blank">2dcutoff.in</a><br>
>     <<a href="http://2dcutoff.in/" rel="noreferrer" target="_blank">http://2dcutoff.in/</a>><br>
>      > <<a href="http://2dcutoff.in/" rel="noreferrer" target="_blank">http://2dcutoff.in/</a><br>
>     <<a href="http://2dcutoff.in/" rel="noreferrer" target="_blank">http://2dcutoff.in/</a>>>: **FAILED**.<br>
>      > Different sets of data extracted from benchmark and test.<br>
>      >      Data only in benchmark: n1, ef1, p1, band, f1, e1.<br>
>      ><br>
>      > In the attachment you can find the run-pw.sh file, which to me<br>
>     doesn't<br>
>      > have any problem at line 52.<br>
>      > I followed then what suggested in the User Guide, recompiling with<br>
>      ><br>
>      > ./configure --with-internal-blas --with-internal-lapack<br>
>      ><br>
>      > but the result didn't change.<br>
>      > I then did "make veryclean" and tried to compile and install in<br>
>     another<br>
>      > directory (parallel to the previous one) the version 7.1, using the<br>
>      > ./configure with the two options above, succeeding in the end<br>
>     even if I<br>
>      > don't know if those options worked, since there was the message<br>
>      > "configure: WARNING: unrecognized options: --with-internal-blas,<br>
>      > --with-internal-lapack".<br>
>      > Anyway again, when running the tests the result was the same above.<br>
>      > I tried also to run single examples but the message on terminal<br>
>     was (for<br>
>      > both versions):<br>
>      ><br>
>      > Program received signal SIGSEGV: Segmentation fault - invalid memory<br>
>      > reference.<br>
>      ><br>
>      > Backtrace for this error:<br>
>      > #0  0x7f6c32090d21 in ???<br>
>      > #1  0x7f6c3208fef5 in ???<br>
>      > #2  0x7f6c31ce308f in ???<br>
>      > #3  0x7fffdae329fc in ???<br>
>      > Segmentation fault (core dumped)<br>
>      ><br>
>      > that is also what I get in the output files of the tests (except<br>
>     for the<br>
>      > last line). The output files of the examples instead did not clarify<br>
>      > what the problem is, since they stopped with no useful information.<br>
>      ><br>
>      > I have already checked what advised here<br>
>      ><br>
>     <a href="https://gitlab.com/QEF/q-e/-/wikis/Support/Problem-downloading-pseudopotential-files" rel="noreferrer" target="_blank">https://gitlab.com/QEF/q-e/-/wikis/Support/Problem-downloading-pseudopotential-files</a> <<a href="https://gitlab.com/QEF/q-e/-/wikis/Support/Problem-downloading-pseudopotential-files" rel="noreferrer" target="_blank">https://gitlab.com/QEF/q-e/-/wikis/Support/Problem-downloading-pseudopotential-files</a>> <<a href="https://gitlab.com/QEF/q-e/-/wikis/Support/Problem-downloading-pseudopotential-files" rel="noreferrer" target="_blank">https://gitlab.com/QEF/q-e/-/wikis/Support/Problem-downloading-pseudopotential-files</a> <<a href="https://gitlab.com/QEF/q-e/-/wikis/Support/Problem-downloading-pseudopotential-files" rel="noreferrer" target="_blank">https://gitlab.com/QEF/q-e/-/wikis/Support/Problem-downloading-pseudopotential-files</a>>><br>
>      > and the URLs are correct.<br>
>      > I have also tried to look for a solution on the internet, but I<br>
>     did not<br>
>      > manage to solve the problem.<br>
>      ><br>
>      > I kindly ask for Your help, since I do not know what to do anymore.<br>
>      ><br>
>      > Thank You in advance,<br>
>      > Niccolò Damian<br>
>      > Physics Master student at University of Padua<br>
>      ><br>
>      > _______________________________________________<br>
>      > The Quantum ESPRESSO community stands by the Ukrainian<br>
>      > people and expresses its concerns about the devastating<br>
>      > effects that the Russian military offensive has on their<br>
>      > country and on the free and peaceful scientific, cultural,<br>
>      > and economic cooperation amongst peoples<br>
>      > _______________________________________________<br>
>      > Quantum ESPRESSO is supported by MaX (<a href="http://www.max-centre.eu/" rel="noreferrer" target="_blank">http://www.max-centre.eu/</a><br>
>     <<a href="http://www.max-centre.eu/" rel="noreferrer" target="_blank">http://www.max-centre.eu/</a>>)<br>
>      > users mailing list <a href="mailto:users@lists.quantum-espresso.org" target="_blank">users@lists.quantum-espresso.org</a><br>
>     <mailto:<a href="mailto:users@lists.quantum-espresso.org" target="_blank">users@lists.quantum-espresso.org</a>><br>
>      > <a href="https://lists.quantum-espresso.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.quantum-espresso.org/mailman/listinfo/users</a><br>
>     <<a href="https://lists.quantum-espresso.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.quantum-espresso.org/mailman/listinfo/users</a>><br>
> <br>
>     -- <br>
>     Paolo Giannozzi, Dip. Scienze Matematiche Informatiche e Fisiche,<br>
>     Univ. Udine, via delle Scienze 206, 33100 Udine Italy, +39-0432-558216<br>
> <br>
<br>
-- <br>
Paolo Giannozzi, Dip. Scienze Matematiche Informatiche e Fisiche,<br>
Univ. Udine, via delle Scienze 206, 33100 Udine Italy, +39-0432-558216<br>
</blockquote></div>