[petsc-users] dyld[19098]: Library not loaded: @rpath/libHYPRE-2.32.0.dylib
Matthew Knepley
knepley at gmail.com
Sun May 11 06:03:43 CDT 2025
On Sat, May 10, 2025 at 11:42 PM Juan Salazar via petsc-users <
petsc-users at mcs.anl.gov> wrote:
> Dear David,
>
> 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.
>
Great! I am glad its working now.
Thanks,
Matt
> So the issue is related to duplicated links. I modified the configure
> command and removed LDFLAGs and CXX_LINKER_FLAGs.
>
> ./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
>
> And now everything works!
>
> √ petsc-3.23.1 % make
> PETSC_DIR=/Volumes/OpenFOAM/jsalazar-9/ThirdParty/petsc-3.23.1
> PETSC_ARCH=arch-darwin-c-opt check
> Running PETSc check examples to verify correct installation
> Using PETSC_DIR=/Volumes/OpenFOAM/jsalazar-9/ThirdParty/petsc-3.23.1 and
> PETSC_ARCH=arch-darwin-c-opt
> C/C++ example src/snes/tutorials/ex19 run successfully with 1 MPI process
> C/C++ example src/snes/tutorials/ex19 run successfully with 2 MPI processes
> C/C++ example src/snes/tutorials/ex19 run successfully with HYPRE
> C/C++ example src/snes/tutorials/ex19 run successfully with MUMPS
> Fortran example src/snes/tutorials/ex5f run successfully with 1 MPI process
> Completed PETSc check examples
>
> One thing I noticed is that I have LDFLAGS=-Wl,-ld_classic there are
> still duplicate LC_RPATH. However, If I remove LDFLAGS and instead have CXX_LINKER_FLAG=-Wl,-ld_classic
> there are no duplicate RC_PATH.
>
> 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.
>
> Juan S.
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!bJz9P0WtZwmbsj_ISUSTkmRQhZvZ3lpgt5Dg1vh1MALD7ebfywzz8PMLf_csoQPBex7eU6Q8QJeOYn9LSr00$ <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!bJz9P0WtZwmbsj_ISUSTkmRQhZvZ3lpgt5Dg1vh1MALD7ebfywzz8PMLf_csoQPBex7eU6Q8QJeOYhDttjg-$ >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250511/96b8a25e/attachment-0001.html>
More information about the petsc-users
mailing list