<div dir="ltr"><div>Some linkers try to resolve ALL symbols, even if they are not linked anywhere. Unless you need those utilities, edit upflib/Makefile, replace the line</div><div> all : libupf.a virtual_v2.x upfconv.x casino2upf.x</div><div>with</div><div> all : libupf.a</div><div>Paolo<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 5, 2021 at 1:36 AM Robert Fleming <<a href="mailto:rofleming@astate.edu">rofleming@astate.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;">
Greetings,
<div><br>
</div>
<div>I’m attempting to compile QE 6.8 on MacOS 11.5 (Big Sur) using Homebrew open-MPI and gcc compilers, and I’ve run into compilation errors that I haven’t seen addressed in mail list archives for guidance. Hardware is an 8-core Intel Core i9 @ 2.4
GHz.</div>
<div><br>
</div>
<div>The configure script completes successfully, but when I try make pw, I eventually get the following undefined symbol errors:</div>
<div><br>
</div>
<div>/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libupf.a(upf_const.o) has no symbols<br>
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libupf.a(upf_kinds.o) has no symbols<br>
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libupf.a(upf_params.o) has no symbols<br>
ranlib -c libupf.a <br>
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libupf.a(upf_const.o) has no symbols<br>
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libupf.a(upf_kinds.o) has no symbols<br>
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libupf.a(upf_params.o) has no symbols<br>
mpif90 -O3 -g -fallow-argument-mismatch -cpp -D__FFTW3 -D__MPI -I/Users/dxf04/Scientific_Computation/QE/qe-6.8/external/devxlib/src -I/Users/dxf04/Scientific_Computation/QE/qe-6.8/include -I/Users/dxf04/Scientific_Computation/QE/qe-6.8/FoX/finclude -I/usr/local/Cellar/fftw/3.3.9_1/include
-I../UtilXlib -I../external/devxlib/src -c virtual_v2.f90<br>
mpif90 -g -o virtual_v2.x virtual_v2.o libupf.a -L/usr/local/lib -llapack -lblas -lblas <br>
Undefined symbols for architecture x86_64:<br>
"___mp_MOD_mp_sum_rm", referenced from:<br>
_init_us_0_ in libupf.a(init_us_0.o)<br>
"___mp_MOD_mp_sum_rt", referenced from:<br>
_init_us_0_ in libupf.a(init_us_0.o)<br>
"___mp_MOD_mp_sum_rv", referenced from:<br>
_init_us_0_ in libupf.a(init_us_0.o)<br>
"_divide_", referenced from:<br>
_init_us_0_ in libupf.a(init_us_0.o)<br>
"_start_clock_", referenced from:<br>
_init_us_0_ in libupf.a(init_us_0.o)<br>
"_stop_clock_", referenced from:<br>
_init_us_0_ in libupf.a(init_us_0.o)<br>
ld: symbol(s) not found for architecture x86_64<br>
collect2: error: ld returned 1 exit status<br>
make[1]: *** [virtual_v2.x] Error 1<br>
make: *** [libupf] Error 1<br>
<br>
</div>
<div>Is there any guidance on what might be causing this error, i.e., makefile issues vs. compiler issues?</div>
<div><br>
</div>
<div>Thanks for your time,<br>
<div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div>________________________________</div>
<div>Robert “Drew” Fleming, Ph.D.</div>
<div>Assistant Professor of Mechanical Engineering</div>
<div>Arkansas State University</div>
<div>(870) 972-3743</div>
<div><a href="mailto:rofleming@AState.edu" target="_blank">rofleming@AState.edu</a></div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
</div>
<br>
<br>
</div>
<br>
</div>
</div>
_______________________________________________<br>
Quantum ESPRESSO is supported by MaX (<a href="http://www.max-centre.eu" rel="noreferrer" target="_blank">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>
<a href="https://lists.quantum-espresso.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.quantum-espresso.org/mailman/listinfo/users</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Paolo Giannozzi, Dip. Scienze Matematiche Informatiche e Fisiche,<br>Univ. Udine, via delle Scienze 206, 33100 Udine, Italy<br>Phone +39-0432-558216, fax +39-0432-558222<br><br></div></div></div></div></div>