# Parallel computing error in macOS 15.4

**URL:** <https://community.freefem.org/t/parallel-computing-error-in-macos-15-4/3835>\
**Category:** General Discussion\
**Created:** [April 7, 2025, 12:49pm UTC](https://community.freefem.org/t/parallel-computing-error-in-macos-15-4/3835 "2025-04-07T12:49:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Free](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@Free](https://community.freefem.org/u/Free)\
**Post date:** [April 7, 2025, 12:49pm UTC](https://community.freefem.org/t/parallel-computing-error-in-macos-15-4/3835/1 "2025-04-07T12:49:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [April 8, 2025, 9:20am UTC](https://community.freefem.org/t/parallel-computing-error-in-macos-15-4/3835/2 "2025-04-08T09:20:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [April 8, 2025, 9:41am UTC](https://community.freefem.org/t/parallel-computing-error-in-macos-15-4/3835/3 "2025-04-08T09:41:11Z")

</div>

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’)

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [April 8, 2025, 12:53pm UTC](https://community.freefem.org/t/parallel-computing-error-in-macos-15-4/3835/4 "2025-04-08T12:53:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [April 8, 2025, 12:55pm UTC](https://community.freefem.org/t/parallel-computing-error-in-macos-15-4/3835/5 "2025-04-08T12:55:42Z")

</div>

Or use this [Recursively seek out and remove duplicate LC\_RPATH entries from linked libraries with supplied binary · GitHub](https://gist.github.com/minrk/bb9bfc369c8d398dbee87852f2d092f3) on the `FreeFem++-mpi` binary.

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [April 8, 2025, 1:57pm UTC](https://community.freefem.org/t/parallel-computing-error-in-macos-15-4/3835/6 "2025-04-08T13:57:33Z")

</div>

I rebuild all from scratch to see

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [April 10, 2025, 3:16pm UTC](https://community.freefem.org/t/parallel-computing-error-in-macos-15-4/3835/7 "2025-04-10T15:16:06Z")

</div>

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

my local correction on petsc

```auto
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$ 

```

---

<div class="post-metadata">

**Author:** ![Free](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@Free](https://community.freefem.org/u/Free)\
**Post date:** [April 13, 2025, 5:58am UTC](https://community.freefem.org/t/parallel-computing-error-in-macos-15-4/3835/9 "2025-04-13T05:58:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Free](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@Free](https://community.freefem.org/u/Free)\
**Post date:** [April 13, 2025, 5:58am UTC](https://community.freefem.org/t/parallel-computing-error-in-macos-15-4/3835/10 "2025-04-13T05:58:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Free](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@Free](https://community.freefem.org/u/Free)\
**Post date:** [April 21, 2025, 5:42am UTC](https://community.freefem.org/t/parallel-computing-error-in-macos-15-4/3835/11 "2025-04-21T05:42:37Z")

</div>

I have downgraded macOS to 15.3.2, and FreeFEM works very well.
