<div dir="ltr"><div dir="ltr">On Mon, Mar 22, 2021 at 11:04 AM Mark Adams <<a href="mailto:mfadams@lbl.gov">mfadams@lbl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks Scott,<div><br></div><div>Can you please tell us where this pkg-config file is?</div></div></blockquote><div><br></div><div>Looks like ${PETSC_ARCH}/lib/pkgconfig</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Thank again,</div><div>Mark</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 22, 2021 at 10:45 AM Scott Kruger <<a href="mailto:kruger@txcorp.com" target="_blank">kruger@txcorp.com</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"><br>
>From you make.log, it looks like petsc found it here:<br>
/opt/cray/wlm_detect/1.3.3-7.0.1.1_4.19__g7109084.ari/lib64<br>
<br>
PETSc has it and found it because BuildSystem did the query of what<br>
it takes to get C/C++/Fortran to work together. Why is it needed?<br>
That's up to Cray.<br>
<br>
But the question is: <br>
<br>
How is your CMake build getting PETSc info? <br>
<br>
If <br>
a) it using pkg-config and CMake's ability to parse it, then it looks like our pkg-config export might need work.<br>
We'd need to see the pkg-config file to be sure though.<br>
<br>
and if<br>
b) it is not using pkg-config, then the answer is it should.<br>
<br>
Scott<br>
<br>
<br>
On 2021-03-21 08:25, Mark Adams did write:<br>
> We are having problems with linking and use static linking.<br>
> We get this error and have seen others like it (eg, lpetsc_lib_gcc_s)<br>
> <br>
> /usr/bin/ld: cannot find -lpetsc_lib_wlm_detect-NOTFOUND<br>
> <br>
> wlm_detect is some sort of system library, but I have no idea where this<br>
> petsc string comes from.<br>
> This is on Cori and the application uses cmake.<br>
> I can run PETSc tests fine.<br>
> <br>
> Any ideas?<br>
> <br>
> Thanks,<br>
> Mark<br>
<br>
<br>
<br>
<br>
-- <br>
Scott Kruger<br>
Tech-X Corporation <a href="mailto:kruger@txcorp.com" target="_blank">kruger@txcorp.com</a><br>
5621 Arapahoe Ave, Suite A Phone: (720) 466-3196<br>
Boulder, CO 80303 Fax: (303) 448-7756<br>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>