<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 5 Feb 2020, at 9:19 PM, Jacob Faibussowitsch <<a href="mailto:jacob.fai@gmail.com" class="">jacob.fai@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><blockquote type="cite" class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class="">None of the packages with builtafterpetsc = 1 are explicitly linked by PETSc rules.</div></div></blockquote>I see. Is this documented somewhere?</div></div></blockquote><div><br class=""></div><div>I don’t think this is.</div><div>But again, the rationale (which I find rather logic and which may explain the lack of documentation) is that all packages with builtafterpetsc = 1 are just commodities.</div><div>They are built for you by PETSc, but then it’s your job to use them as you see fit, as PETSc won’t use them directly.</div><div><br class=""></div><div>Since SLEPc is following PETSc logic in some sense when it comes to makefile rules, you may also simply put instead of what you have right now:</div><div><div><div>include ${PETSC_DIR}/${PETSC_ARCH}/lib/slepc/conf/slepc_variables</div><div>include ${PETSC_DIR}/${PETSC_ARCH}/lib/slepc/conf/slepc_rules</div><div>+ ${SLEPC_LIB} instead of ${PETSC_LIB}</div><div><br class=""></div><div>Thanks,</div><div>Pierre</div><div><br class=""></div></div></div><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Maybe this should be noted during the initial configure stage when SLEPc (and other similar packages) are downloaded. <div class=""><div class=""><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Best regards,<br class=""><br class="">Jacob Faibussowitsch<br class="">(Jacob Fai - booss - oh - vitch)<br class="">Cell: (312) 694-3391</div></div>

</div>
<div class=""><br class=""><blockquote type="cite" class=""><div class="">On Feb 5, 2020, at 2:16 PM, Pierre Jolivet <<a href="mailto:pierre.jolivet@enseeiht.fr" class="">pierre.jolivet@enseeiht.fr</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello,<div class="">None of the packages with builtafterpetsc = 1 are explicitly linked by PETSc rules.</div><div class="">Thus, you need to add -lslepc after ${PETSC_LIB} in your makefile.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Pierre</div><div class=""><div class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On 5 Feb 2020, at 9:06 PM, Jacob Faibussowitsch <<a href="mailto:jacob.fai@gmail.com" class="">jacob.fai@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">TL;DR: </div><div class="">Undefined symbols for architecture x86_64:<br class="">  "_EPSCreate", referenced from:<br class="">      _main in tightbinding.o<br class="">ld: symbol(s) not found for architecture x86_64</div><div class=""><br class=""></div><div class="">I Installed SLEPc using PETSc with —download-slepc, then reconfigured and made. I also am (I think) correctly including the linking PETSc in the makefile, but still I get errors whenever I try to use any SLEPc functions. Included is my makefile, c program, and logs.</div><div class=""><br class=""></div><div class=""></div></div><span id="cid:AD9965DF-7E57-41A0-B107-5F3DCE2D878E@numericable.fr" class=""><makefile></span><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div class=""></div></div><span id="cid:B8E90D98-7E29-4C54-8F18-9DFEBEDBB329@numericable.fr" class=""><tightbinding.c></span><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div class=""></div></div><span id="cid:BBAB3F81-13C5-4A88-9440-91CB0C53D4D1@numericable.fr" class=""><configure.log></span><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div class=""></div></div><span id="cid:55CAC958-A288-468C-8F12-87FE739E1B4F@numericable.fr" class=""><make.log></span><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""></div><div class=""><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Best regards,<br class=""><br class="">Jacob Faibussowitsch<br class="">(Jacob Fai - booss - oh - vitch)<br class="">Cell: (312) 694-3391</div></div>

</div>

<br class=""></div></div></div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></body></html>