I just ran into this, and posting it as someone might finds it useful. The compilation of FreeFem from the develop branch did not work because some error with superlu. The FreeFem configure option --disable-superlu
fixed this issue. See also Conflicts with SuperLU-6.0.0 · Issue #272 · FreeFem/FreeFem-sources · GitHub