<html><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;">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><br/></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="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">LDFLAGS and instead have </span><span style="caret-color: rgb(0, 0, 0); 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></body></html>