On Thu, May 8, 2025 at 12:27 AM Juan Salazar via petsc-users <
petsc-users@mcs.anl.gov> wrote:

> Dear PETSc users,
>

There are some weird path things going on, When you configure, you are in

PWD=/Users/jsalazar/openfoam/jsalazar-9/ThirdParty/petsc-3.23.1

but when it is looking for dynamic libraries, it gets

Reason: tried:
'/Volumes/OpenFOAM/jsalazar-9/ThirdParty/petsc-3.23.1/arch-darwin-c-opt/lib/libHYPRE-2.32.0.dylib'
(duplicate LC_RPATH '/opt/homebrew/Cellar/open-mpi/5.0.7/lib'),

First, never ever ever ever used mixed case directories on MacOS. It has
the worst of all possible systems. It is insensitive for some checks, but
has case sensitive storage, so other checks especially in programs fail.

Second there is some mismatch here between /Volumes and /Users/jsalazar. I
recommend reinstalling completely in the location you want to be in.

  Thanks,

     Matt


> I am probably doing something dumb, but since I recently updated macOS, I
> am getting the following errors when running `make check`: dyld[19098]:
> Library not loaded: @rpath/libHYPRE-2.32.0.dylib . I am also not able to
> compile codes that previously worked with petsc because of the same issues.
> The dylib is not linked, even tough it is in the path that apparently is
> searched.
>
> Below is my configure command
>
> ./configure --with-debugging=0 --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
> CXX_LINKER_FLAGS=-Wl,-rpath,/opt/homebrew/lib CFLAGS="-g -O2 -fPIC"
> CXXFLAGS="-g -O2 -fPIC" FCFLAGS="-g -O2" FFLAGS="-g -O2"
> LDFLAGS="-Wl,-ld_classic -Wl,-commons,use_dylibs" MAKEFLAGS=w
> --download-bison
>
> Attached are the configure.log and make.log and check.log files.
>
> √ petsc-3.23.1 % mpifort --version
> GNU Fortran (Homebrew GCC 14.2.0_1) 14.2.0
> Copyright (C) 2024 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> √ petsc-3.23.1 % mpicc --version
> Apple clang version 17.0.0 (clang-1700.0.13.3)
> Target: arm64-apple-darwin24.4.0
> Thread model: posix
> InstalledDir:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>
> √ petsc-3.23.1 % mpicxx --version
> Apple clang version 17.0.0 (clang-1700.0.13.3)
> Target: arm64-apple-darwin24.4.0
> Thread model: posix
> InstalledDir:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>
> macOS Sequoia 15.4.1 (24E263)
>
> Any help is much appreciated,
> 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!bDJPz2DPLd8evhN5qs-uCttpE8YBYq3IextkJAnaY_4KWG8-LAVyzt_OwBEE1g5SULf4v8Jy5YvAM3iKeunA$
  
<https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!bDJPz2DPLd8evhN5qs-uCttpE8YBYq3IextkJAnaY_4KWG8-LAVyzt_OwBEE1g5SULf4v8Jy5YvAMx7Cs6xL$
 >

Reply via email to