<div dir="ltr"><div dir="ltr">On Sat, May 10, 2025 at 11:42 PM Juan Salazar via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Dear David,<div><br></div><div>This indeed looks like the culprit! I verified that the libHYPRE-2.32.0.dylib had many duplicate LC_RPATH instances. Upon removing them, the executable (src/snes/tutorials/ex19) complained that the next linked library also has duplicate LC_RPATH instances.</div></div></blockquote><div><br></div><div>Great! I am glad its working now.</div><div><br></div><div>  Thanks,</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><div>So the issue is related to duplicated links. I modified the configure command and removed LDFLAGs and CXX_LINKER_FLAGs.</div><div><br></div><div>./configure --with-debugging=0 --download-make --download-cmake --download-hypre --download-parmetis --download-metis --download-ptscotch --download-mumps --download-scalapack --with-precision=double --with-shared-libraries=1 --with-scalar-type=real --with-fc=mpifort --with-cc=mpicc --with-cxx=mpicxx CFLAGS="-g -O2 -fPIC" CXXFLAGS="-g -O2 -fPIC" FCFLAGS="-g -O2" FFLAGS="-g -O2" MAKEFLAGS=w --download-bison</div><div><br></div><div>And now everything works!</div><div><br></div><div><div>√ petsc-3.23.1 % make PETSC_DIR=/Volumes/OpenFOAM/jsalazar-9/ThirdParty/petsc-3.23.1 PETSC_ARCH=arch-darwin-c-opt check</div><div>Running PETSc check examples to verify correct installation</div><div>Using PETSC_DIR=/Volumes/OpenFOAM/jsalazar-9/ThirdParty/petsc-3.23.1 and PETSC_ARCH=arch-darwin-c-opt</div><div>C/C++ example src/snes/tutorials/ex19 run successfully with 1 MPI process</div><div>C/C++ example src/snes/tutorials/ex19 run successfully with 2 MPI processes</div><div>C/C++ example src/snes/tutorials/ex19 run successfully with HYPRE</div><div>C/C++ example src/snes/tutorials/ex19 run successfully with MUMPS</div><div>Fortran example src/snes/tutorials/ex5f run successfully with 1 MPI process</div><div>Completed PETSc check examples</div></div><div><br></div><div>One thing I noticed is that I have <font color="#000000">LDFLAGS=-Wl,-ld_classic there are still duplicate LC_RPATH. However, If I remove </font><span style="color:rgb(0,0,0)">LDFLAGS and instead have </span><span style="color:rgb(0,0,0)">CXX_LINKER_FLAG=-Wl,-ld_classic there are no duplicate RC_PATH.</span></div><div><br></div><div>Thank you, I learned something today. Also thanks to Matthew, I have to be more careful about different paths, even if they lead to the same place. Sorry I took a long time to reply.</div><div><br></div><div>Juan S.</div></div></blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><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="https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!bJz9P0WtZwmbsj_ISUSTkmRQhZvZ3lpgt5Dg1vh1MALD7ebfywzz8PMLf_csoQPBex7eU6Q8QJeOYhDttjg-$" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>