Hello,
I can’t get FreeFEM++ to work on macOS Sequoia 15.4.1 (M2 Pro chip).
I’ve tried several methods: downloading the “FreeFEM-v4.15-Apple-Silicon-O-a.dmg” file, and also compiling it from source — first by following the official installation guide, then using the compilation method found in this document: https://joliv.et/FreeFem-tutorial/main.pdf#198, which I found while browsing the forum.
None of these methods allowed me to run the first test file from the ffddm documentation succesfully.
With the .dmg file, I get the following error:
'/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 './demo.edp' -wg
dyld[53583]: Library not loaded: /Applications/FreeFem++.app/Contents/ff-4.15/ff-petsc/r/lib/libscalapack.2.2.dylib
Referenced from: <C5B9599A-6694-3692-907D-057587EFC838> /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-petdyld[53582]: Library not loaded: /Applications/FreeFem++.app/Contents/ff-4.15/ff-petsc/r/lib/libscalapack.2.2.dylib
Referenced from: <C5B9599A-6694-3692-907D-057587EFC838> /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)
sc/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)
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= PID 53582 RUNNING AT
= EXIT CODE: 6
= CLEANING UP REMAINING PROCESSES
= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Abort trap: 6 (signal 6)
This typically refers to a problem with your application.
However, the file /Applications/FreeFem++.app/Contents/ff-4.15/ff-petsc/r/lib/libscalapack.2.2.dylib
does exist.
When compiling Freefem from source following the documentation, I’m unable to run sudo make petsc-slepc
because there’s a configuration issue with CMake — see below:
configure.log (3.8 MB)
In the end, when I compile and install PETSc separately, it does work — but the make check
tests don’t pass properly: about half of the tests in ffddm
and hpddm
result in XFAILs.
I’m sorry to bother you with that, do you know what am i doing wrong ?
Thank you in advance,
Lucien.