Parallel computing error in macOS 15.4

Dear all,

Since I updated my devices to macOS 15.4, parallel simulations cannot be calculated properly.
The following error message appears:

user@user 0407 % ff-mpirun -np 2 “/Users/user/Library/Mobile Documents/com~apple~CloudDocs/0407/YDM++Example1.edp” -cd -glut ffglut
‘/Applications/FreeFem++.app/Contents/ff-4.15/ff-petsc/r/bin/mpiexec’ -np 2 /Applications/FreeFem++.app/Contents/ff-4.15/bin/FreeFem+±mpi -nw ‘/Users/user/Library/Mobile Documents/com~apple~CloudDocs/0407/YDM++Example1.edp’ -cd -glut ffglut
dyld[21364]: Library not loaded: /Applications/FreeFem++.app/Contents/ff-4.15/ff-petsc/r/lib/libscalapack.2.2.dylib
Referenced from: /Applications/FreeFem++.app/Contents/ff-4.15/bin/FreeFem+±mpi
Reason: tried: ‘/Applications/FreeFem++.app/Contents/ff-4.15/ff-petsc/r/lib/libscalapack.2.2.dylib’ (duplicate LC_RPATH ‘/Applications/FreeFem++.app/Contents/ff-4.15/ff-petsc/r/lib’), ‘/System/Volumes/Preboot/Cryptexes/OS/Applications/FreeFem++.app/Contents/ff-4.15/ff-petsc/r/lib/libscalapack.2.2.dylib’ (no such file), ‘/Applications/FreeFem++.app/Contents/ff-4.15/ff-petsc/r/lib/libscalapack.2.2.dylib’ (duplicate LC_RPATH ‘/Applications/FreeFem++.app/Contents/ff-4.15/ff-petsc/r/lib’), ‘/usr/local/lib/libscalapack.2.2.dylib’ (no such file), ‘/usr/lib/libscalapack.2.2.dylib’ (no such file, not in dyld cache)
dyld[21363]: Library not loaded: /Applications/FreeFem++.app/Contents/ff-4.15/ff-petsc/r/lib/libscalapack.2.2.dylib
Referenced from: /Applications/FreeFem++.app/Contents/ff-4.15/bin/FreeFem+±mpi
Reason: tried: ‘/Applications/FreeFem++.app/Contents/ff-4.15/ff-petsc/r/lib/libscalapack.2.2.dylib’ (duplicate LC_RPATH ‘/Applications/FreeFem++.app/Contents/ff-4.15/ff-petsc/r/lib’), ‘/System/Volumes/Preboot/Cryptexes/OS/Applications/FreeFem++.app/Contents/ff-4.15/ff-petsc/r/lib/libscalapack.2.2.dylib’ (no such file), ‘/Applications/FreeFem++.app/Contents/ff-4.15/ff-petsc/r/lib/libscalapack.2.2.dylib’ (duplicate LC_RPATH ‘/Applications/FreeFem++.app/Contents/ff-4.15/ff-petsc/r/lib’), ‘/usr/local/lib/libscalapack.2.2.dylib’ (no such file), ‘/usr/lib/libscalapack.2.2.dylib’ (no such file, not in dyld cache)

I have tested this on multiple devices, and they all encounter the same error, while non-parallel computings (using freefem++) work normally.
I would like to know if this is an issue on my end or a compatibility problem between macOS and FreeFEM, as I often experience various software becoming unusable after macOS upgrades.
Thank you in advance for your help and suggestions. I appreciate your time and expertise in addressing this matter.

I will install the version 15.4 to see on my mac.

I have the same problem very strange, I will try to correct

Host-004:~ hecht$ FreeFem+±mpi
dyld[1706]: Library not loaded: /usr/local/ff+±4.15-M4/ff-petsc/r/lib/libscalapack.2.2.dylib
Referenced from: <44EFD4B6-4934-3D8B-A22C-93EC0DA651E3> /usr/local/ff+±4.15-M4/bin/FreeFem+±mpi
Reason: tried: ‘/usr/local/ff+±4.15-M4/ff-petsc/r/lib/libscalapack.2.2.dylib’ (duplicate LC_RPATH ‘/usr/local/ff+±4.15-M4/ff-petsc/r/lib’), ‘/System/Volumes/Preboot/Cryptexes/OS/usr/local/ff+±4.15-M4/ff-petsc/r/lib/libscalapack.2.2.dylib’ (no such file), ‘/usr/local/ff+±4.15-M4/ff-petsc/r/lib/libscalapack.2.2.dylib’ (duplicate LC_RPATH ‘/usr/local/ff+±4.15-M4/ff-petsc/r/lib’), ‘/usr/local/ff+±4.15-M4/ff-petsc/r/lib/libscalapack.2.2.1.dylib’ (duplicate LC_RPATH ‘/usr/local/ff+±4.15-M4/ff-petsc/r/lib’), ‘/System/Volumes/Preboot/Cryptexes/OS/usr/local/ff+±4.15-M4/ff-petsc/r/lib/libscalapack.2.2.1.dylib’ (no such file), ‘/usr/local/ff+±4.15-M4/ff-petsc/r/lib/libscalapack.2.2.1.dylib’ (duplicate LC_RPATH ‘/usr/local/ff+±4.15-M4/ff-petsc/r/lib’)

You could try install_name_tool -delete_rpath "@loader_path" /usr/local/ff++-4.15-M4/ff-petsc/r/lib/libscalapack.2.2.dylib.

Or use this Recursively seek out and remove duplicate LC_RPATH entries from linked libraries with supplied binary · GitHub on the FreeFem++-mpi binary.

I rebuild all from scratch to see

I have solve this problem, the correction is on the develop distribution,
If you recompile be carful with cmakeversion 4.0.0 due to error in metis, and mmg

my local correction on petsc

Host-003:ff-10 hecht$ git diff

diff --git a/3rdparty/ff-petsc/Makefile-PETSc.inc b/3rdparty/ff-petsc/Makefile-PETSc.inc

index ccc62dc8a..3846fa419 100644

--- a/3rdparty/ff-petsc/Makefile-PETSc.inc

+++ b/3rdparty/ff-petsc/Makefile-PETSc.inc

@@ -5,7 +5,8 @@ CC=@CC@

CXX=@CXX@

FC=@FC@

BLASINC=@BLASINC@

-FFCMAKE=@ff_cmake@

+FFCMAKE=no

+#@ff_cmake1@

BLASLIBS=@BLASLIBS@

LAPACKLIBS=@LAPACKLIBS@

COMPILE_OPENBLAS=@COMPILE_OPENBLAS@

Host-003:ff-10 hecht$ 

Dear prj,

Thank you for your response.
I have tried your first method many times, but I encountered several errors—it seems to be an issue with insufficient permissions. Despite trying various approaches, I still ran into different errors.

I am also looking into your second method; however, it appears to be very similar to the first one. I would like to know if you managed to solve the problem using the same approach.

Dear Frédéric Hecht,

Thank you for your response.
I have installed the develop distribution several times.
It seems that the petsc can be loaded but the a new mistake occors.

if I run

load “PETSc”
Mat Au,Alsf;

the error below will occur.

Load: lg_fem no UMFPACK → replace by LU or GMRES lg_mesh lg_mesh3
1 : load “PETSc”
2 : Mat The Identifier Mat does not exist

Error line number 2, in file 1.edp, before token Mat

current line = 1
Compile error :
line number :2, Mat
error Compile error :
line number :2, Mat
code = 1 mpirank: 0

I think “Mat” is a part of petsc so I am not sure if I haven’t installed the develop distrubution correctly or there is something need to be done.