<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US">Dear Paolo, </span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US"><o:p> </o:p></span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US">Thank you very much for the quick reply. After reading your comments and considering that some of the contributors of the mailing list succeeded in the compilation of qe5.1 using gcc 4.8.5, I tried to test additional compilations using this
compiler (gcc 4.8.5). Although the make pw lasted longer than when using the default gcc 7.4.0, the compilation is interrupted and a different error appeared this time:
</span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US"><o:p> </o:p></span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">ranlib libpw.a</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">mpif90 -g -pthread -o pw.x \</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt"><span style="mso-spacerun:yes">
</span>pwscf.o<span style="mso-spacerun:yes"> </span>libpw.a ../../Modules/libqemod.a ../../flib/ptools.a ../../flib/flib.a ../../clib/clib.a ../../iotk/src/libiotk.a<span style="mso-spacerun:yes">
</span>/home/jorge/20191226-qe51-compilations/26/espresso.5.1.r11289.pybeef/espresso/lapack-3.2/lapack.a<span style="mso-spacerun:yes">
</span>/home/jorge/20191226-qe51-compilations/26/espresso.5.1.r11289.pybeef/espresso/BLAS/blas.a<span style="mso-spacerun:yes">
</span>-L/home/jorge/20191226-qe51-compilations/26/libbeef/lib -lbeef</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">/usr/bin/ld: ../../clib/clib.a(c_mkdir.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">/usr/bin/ld: ../../clib/clib.a(copy.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">/usr/bin/ld: ../../clib/clib.a(cptimer.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">/usr/bin/ld: ../../clib/clib.a(eval_infix.o): relocation R_X86_64_32S against undefined symbol `stack_op' can not be used when making a PIE object; recompile with -fPIC</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">/usr/bin/ld: ../../clib/clib.a(fft_stick.o): relocation R_X86_64_32S against `.text' can not be used when making a PIE object; recompile with -fPIC</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">/usr/bin/ld: ../../clib/clib.a(md5_from_file.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">/usr/bin/ld: ../../clib/clib.a(md5.o): relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIC</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">/usr/bin/ld: final link failed: Nonrepresentable section on output</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">collect2: error: ld returned 1 exit status</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">Makefile:256: recipe for target 'pw.x' failed</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">make[2]: *** [pw.x] Error 1</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">make[2]: Leaving directory '/home/jorge/20191226-qe51-compilations/26/espresso.5.1.r11289.pybeef/espresso/PW/src'</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">Makefile:9: recipe for target 'pw' failed</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">make[1]: *** [pw] Error 1</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">make[1]: Leaving directory '/home/jorge/20191226-qe51-compilations/26/espresso.5.1.r11289.pybeef/espresso/PW'</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:
10.0pt">Makefile:47: recipe for target 'pw' failed</span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US"><o:p> </o:p></span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US"><o:p> </o:p></span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US">Both, the lbeef and the qe were compiled using gcc-4.8. The code lines used are described below:</span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US"><o:p> </o:p></span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US">Installation of lbeef library:</span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US">./configure CC=gcc-4.8 --prefix=/home/jorge/20191226-qe51-compilations/26/libbeef</span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US">make</span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US">make install</span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US"><o:p> </o:p></span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US">Compilation of qe:</span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US">./configure CC_gcc=4.8 BEEF_LIBS="-L/home/jorge/20191226-qe51-compilations/26/libbeef/lib -lbeef"</span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US">make pw</span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US"><o:p> </o:p></span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US">So the error this time is basically related to: “</span><span lang="EN-US" style="font-size:9.0pt;mso-bidi-font-size:10.0pt">/usr/bin/ld: ../../clib/clib.a(c_mkdir.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making
a PIE object; recompile with -fPIC”.</span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US">I wonder if this is still related to the compiler used. If so, should I try icc compilers instead?
</span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US">I have to mentioned that I also installed separately gfortran-4.8 (v 4.8.5), and did the same as described for gcc-4.8 (installed lbeef and tried to compile qe), but the error was exactly the same.
</span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US"><o:p> </o:p></span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-US">Let me recall the specification of the environment I’m working on:</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-GB" style="mso-ansi-language:EN-GB">OS: Ubuntu v.18.04.1 (64bit Virtual machine guest on Windows 10 host – VirtualBox6.0)</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-GB" style="mso-ansi-language:EN-GB">Processor: Intel® Core™ i7-8550U CPU @ 1.80GHz × 4 </span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-GB" style="mso-ansi-language:EN-GB">Graphics: SVGA3D; build: RELEASE; LLVM;<br>
Compiller: gcc, GNU Fortran (Ubuntu 7.4.0-1ubuntu1~18.04.1) <span style="background:yellow;mso-highlight:yellow">
7.4.0</span> (also installed separately gcc-4.8.5 and gfortran-4.8.5)</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-GB" style="mso-ansi-language:EN-GB"><o:p> </o:p></span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-GB" style="mso-ansi-language:EN-GB">Last time I forgot to mentioned that I’m trying to do the installation on a ubuntu virtual machine. Before of attempting the specific compilation I’m describing here (qe5.1-patched/lbeef), I managed to compile
normal qe5.1 or qe6.4 source codes in the standard manner (</span><span lang="EN-US">./configure; make pw)</span><span lang="EN-GB" style="mso-ansi-language:EN-GB">, without any issue. The problems appeared at the moment of using the pair qe5.1-patched/lbeef,
with the particularities that demand this installation. To double check that the issue was not related to my ubuntu virtual machine, I tested the described above using the Quantum Mobile 19.09.0 (Ubuntu 18.04.3 LTS) , but the obtained errors were exactly the
same. If for some reason the use of a ubuntu as a virtual machine is not suitable for this compilation, please let me know.
</span></p>
<p style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif">
<span lang="EN-GB" style="mso-ansi-language:EN-GB"><o:p> </o:p></span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US">I would appreciate further guidance with this issue. </span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US"><o:p> </o:p></span></p>
<p align="left" style="margin: 0mm 0mm 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: "Yu Mincho", serif;text-align:left;mso-pagination:widow-orphan">
<span lang="EN-US">Regards</span></p>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<pre style="font-family: courier, "courier new", monospace; font-size: 14px; overflow-wrap: break-word; margin: 0px; background-color: rgb(255, 255, 255)">Jorge</pre>
<pre style="font-family: courier, "courier new", monospace; font-size: 14px; overflow-wrap: break-word; margin: 0px; background-color: rgb(255, 255, 255)"><br></pre>
<pre style="font-family: courier, "courier new", monospace; font-size: 14px; overflow-wrap: break-word; margin: 0px; background-color: rgb(255, 255, 255)"><br></pre>
<pre style="font-family: courier, "courier new", monospace; font-size: 14px; overflow-wrap: break-word; margin: 0px; background-color: rgb(255, 255, 255)">-----
Jorge A. Delgado, Ph.D.
Research Scientist - Catalysis and Nanomaterials
National Institute of Advanced Industrial Science and Technology (AIST)
Central 5-2, 1-1-1 Higashi, Tsukuba, Ibaraki, 305-8565, Japan</pre>
<div id="Signature">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div style="margin:0px; font-size:15px; font-family:Helvetica,serif,EmojiFont; text-align:start">
<a title="mailto: ayada@sbchem.kyoto-u.ac.jp Command + Click or tap to display link" rel="noopener noreferrer" target="_blank" href="mailto:ayada@sbchem.kyoto-u.ac.jp" style="margin:0px"><span style="margin:0px; font-size:14pt; font-family:"MS PGothic","MS Pゴシック","MS Gothic","MS ゴシック","Hiragino Kaku Gothic ProN",sans-serif,serif,EmojiFont"><font><font><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(12,100,192)"></span></font></font></span></a></div>
<br>
</div>
</div>
</body>
</html>