I'm trying to modify the instructions in this page to compile Elmer on macOS (High Sierra 10.13.5).

I installed gcc , cmake , open-mpi and hypre from HomeBrew core and followed this instruction to install mumps from dpo/openblas . I downloaded the source code with:

svn checkout http://svn.code.sf.net/p/elmerfem/code/trunk elmerfem

I made this bash script following the instructions in that page and make it executable chmod u+x compile and ran it ./compile . However I get lots of warnings/errors which I don't know how to solve. I tried to direct the stream into a logfile which you can see in the same GitHub Gist, but apparently it did not include everything. The last couple of lines I see in the stream are:

Types.f90:354: Error: Can't open included file 'dmumps_struc.h' make3: *** [Types.o] Error 1 make2: *** [all-recursive] Error 1 make1: *** [all-recursive] Error 1 make: *** [all] Error 2

I assumed it should be because the compiler somewhere is including the dmumps_struc.h header. so I tried editing the script adding the mumps static libraries in

/usr/local/opt/mumps/libexec/lib

and it didn't even compile the first modules either. I would appreciate it if you could help me know where is my mistake and how I can solve it.

P.S. I have updated the MUMPS installation with HomeBrew here.