Trouble installing FreeFEM with full plugin support on HPC cluster

As suggested, I compiled PETSc externally (not using make petsc-slepc) and made sure MPI was correctly loaded before configuring FreeFEM:

./configure \
  --with-mpi-dir=$MPI_DIR \
  --with-blas-lib="${OPENBLAS_DIR}/lib/libopenblas.so" \
  --with-blas-include="${OPENBLAS_DIR}/include" \
  --with-lapack-lib="${OPENBLAS_DIR}/lib/libopenblas.so" \
  --with-fortran-bindings=0 \
  --with-scalar-type=real \
  --with-debugging=0 \
  --download-mumps \
  --download-parmetis \
  --download-metis \
  --download-hypre \
  --download-superlu \
  --download-slepc \
  --download-hpddm \
  --download-ptscotch \
  --download-suitesparse \
  --download-scalapack \
  --download-tetgen \
  --download-mmg \

where the variables OPENBLAS_DIR and MPI_DIR were detected before from Spack.

The PETSc configuration and compilation seem to have completed successfully, as you can see in the configure.log (I’ve zipped the file due to the 8MB limit).

FreeFEM also compiles correctly, and the parallel version (ff-mpirun) runs fine, however, it’s still missing several plugins. This is the script for the configure:

  MPICC=$(which mpicc) \
  MPICXX=$(which mpicxx) \
  --without-hdf5 \
  --with-petsc=${PETSC_VAR}/lib

From the config.log, it seems that these packages are not detected. Do I need to manually provide their paths (e.g., --with-mshmet=...) during configuration, or is there another recommended way to include them?

config.log (417.1 KB)
configure.zip (481.6 KB)