<html aria-label="message body"><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><br></div>  Probably  not an issue at all but why does --with-blaslapack-dir=/home/bchapman/aocl/5.1.0/gcc end with gcc? <br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Nov 26, 2025, at 2:46 PM, Benjamin Chapman via petsc-users <petsc-users@mcs.anl.gov> wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: 400; 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;"><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;">Hello,<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;">I am currently trying to build PETSc using the AOCC compiler and using AOCL libraries for BLAS/LAPACK. However, I am running into an issue when it tries to download and construct the MPI library, it cannot find the “.libs/<a href="https://urldefense.us/v3/__http://libevent.so/__;!!G_uCfscf7eWS!eCTV7HOPIUn75CuafYQXAhs0576zXZiNO4f6GWn6VG2JrDwpWQTFEKHycgGPN8fq2EnAx1V9u3LBZq85HrRzfZ4$">libevent.so</a>” library in libevent (which it downloads). I attached the configure.log file.<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;">The reason I’m so confused is because PETSc built successfully when I did AOCC + MKL and gcc + AOCL, but not AOCC + AOCL together.<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;">Is it even possible to build PETSc using AOCC + AOCL or is it not designed for that? If so, is there a specific procedure I should follow?</div></div></div></blockquote><div><br></div>   There is no specific reason with PETSc that this should not work. The failure takes place in building OpenMPI which should have nothing to do with aocl.  What you set for --with-blaslapack-dir should have no effect on the building of OpenMPI. OpenMPI builds libevent as part of its build process and then uses it. I cannot see a failure in building libevent just that it cannot find it later while working on other parts of OpenMPI.</div><div><br></div><div>   Can you delete your PETSC_ARCH directory  completely and rerun the ./configure </div><div><br></div><div>   Don't use --with-fortran-kernels=1  it is pretty worthless. Don't use --with-threadsafety unless you know specifically that you need it. </div><div><br></div><div>   If the rerun of ./configure fails you can try a trick. Run without the --with-blaslapack-dir (and let it use the default it finds) then immediately run ./configure again this time with the --with-blaslapack-dir  option (it will reuse the OpenMPI that it has already just built and won't rebuild it).</div><div><br></div><div><br><blockquote type="cite"><div><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: 400; 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;"><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;">Thanks in advance.<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;">Best,<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;">Ben<o:p></o:p></div></div><span id="cid:94B530DD-59C1-4230-9B19-453F003A23B5"><configure_AOCC_AOCL_add.log></span></div></blockquote></div><br></body></html>