# Compline on macOS 10.15.6

**URL:** <https://community.freefem.org/t/compline-on-macos-10-15-6/543>\
**Category:** FreeFEM installation\
**Created:** [August 23, 2020, 3:34am UTC](https://community.freefem.org/t/compline-on-macos-10-15-6/543 "2020-08-23T03:34:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bpabbott](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/bpabbott/32/205_2.png) [@bpabbott](https://community.freefem.org/u/bpabbott)\
**Post date:** [August 23, 2020, 3:34am UTC](https://community.freefem.org/t/compline-on-macos-10-15-6/543/1 "2020-08-23T03:34:56Z")

</div>

I initially pulled from git a couple of months back and had no trouble building. After updating to macOS 10.15.6 I’m seeing the error below. Unfortunately, I also pulled fresh sources for freeFEM. Thus the sources may have changed, or the updated build tools (supplemented with Home-brew) may have changed.

cd MUMPS\_5.0.2 && /Applications/Xcode.app/Contents/Developer/usr/bin/make d  
/Applications/Xcode.app/Contents/Developer/usr/bin/make ARITH=d mumps\_lib  
(cd libseq; /Applications/Xcode.app/Contents/Developer/usr/bin/make)  
gfortran -O -g -DNDEBUG -O3 -O3 -O3 -fPIC -c mpi.f -o mpi.o  
mpi.f:566:72:

566 | CALL MUMPS\_COPY\_LOGICAL( SENDBUF, RECVBUF, COUNT )  
| 1  
Error: Type mismatch in argument ‘s’ at (1); passed INTEGER(4) to LOGICAL(4)  
mpi.f:568:72:

568 | CALL MUMPS\_COPY\_REAL( SENDBUF, RECVBUF, COUNT )  
| 1  
Error: Type mismatch in argument ‘s’ at (1); passed INTEGER(4) to REAL(4)  
mpi.f:571:72:

571 | CALL MUMPS\_COPY\_DOUBLE\_PRECISION( SENDBUF, RECVBUF, COUNT )  
| 1  
Error: Type mismatch in argument ‘s’ at (1); passed INTEGER(4) to REAL(8)  
mpi.f:573:72:

573 | CALL MUMPS\_COPY\_COMPLEX( SENDBUF, RECVBUF, COUNT )  
| 1  
Error: Type mismatch in argument ‘s’ at (1); passed INTEGER(4) to COMPLEX(4)  
mpi.f:575:72:

575 | CALL MUMPS\_COPY\_DOUBLE\_COMPLEX( SENDBUF, RECVBUF, COUNT )  
| 1  
Error: Type mismatch in argument ‘s’ at (1); passed INTEGER(4) to COMPLEX(8)  
mpi.f:577:72:

577 | CALL MUMPS\_COPY\_2DOUBLE\_PRECISION( SENDBUF, RECVBUF, COUNT )  
| 1  
Error: Type mismatch in argument ‘s’ at (1); passed INTEGER(4) to REAL(8)  
make[8]: \*\*\* [mpi.o] Error 1  
make[7]: \*\*\* [libseqneeded] Error 2  
make[6]: \*\*\* [d] Error 2  
make[5]: \*\*\* [MUMPS\_5.0.2/FAIT] Error 2  
make[4]: \*\*\* [compile-dir] Error 2  
make[3]: \*\*\* [tag-compile-pkg] Error 1  
make[2]: \*\*\* [all-recursive] Error 1  
make[1]: \*\*\* [all-recursive] Error 1  
make: \*\*\* [all] Error 2

---

<div class="post-metadata">

**Author:** ![bpabbott](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/bpabbott/32/205_2.png) [@bpabbott](https://community.freefem.org/u/bpabbott)\
**Post date:** [August 23, 2020, 3:52am UTC](https://community.freefem.org/t/compline-on-macos-10-15-6/543/2 "2020-08-23T03:52:26Z")

</div>

Apologies. I see this is a problem on MUMPS. Possibly due to an update to gfortran. Adding the gfortran option -fallow-argument-mismatch allow mpi.f to compile

---

<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:** [August 23, 2020, 8:10am UTC](https://community.freefem.org/t/compline-on-macos-10-15-6/543/3 "2020-08-23T08:10:13Z")

</div>

You can also let PETSc compile MUMPS with `make petsc-slepc`, and then `./reconfigure --disable-fortran`.

---

<div class="post-metadata">

**Author:** ![david.fabre](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@david.fabre](https://community.freefem.org/u/david.fabre)\
**Post date:** [August 27, 2020, 11:05pm UTC](https://community.freefem.org/t/compline-on-macos-10-15-6/543/4 "2020-08-27T23:05:46Z")

</div>

Hi  
Same problem for me.

The `./reconfigure --disable-fortran` method did not work for me.

As for the other method, can you explain me how you changed the gfortran options to compile correctly ?

Thanks

---

<div class="post-metadata">

**Author:** ![david.fabre](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@david.fabre](https://community.freefem.org/u/david.fabre)\
**Post date:** [August 27, 2020, 11:51pm UTC](https://community.freefem.org/t/compline-on-macos-10-15-6/543/5 "2020-08-27T23:51:39Z")

</div>

Things are getting even worse…

To make sure to redo every steps of the compilations I did a  
`make clean` and then `make petsc-slepc` in the ff-petsc directory and now it fails to recompute slepc !

And the error message is of very little help (see bellow)

HELP PLEASE !  
David

* * *

## =============================================================================== Compiling and installing Scalapack; this may take several minutes =============================================================================== \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):

Error running make on SCALAPACK

* * *

make: \*\*\* [petsc-3.13.0/tag-conf-real] Error 1  
(base) fabred@autonome232:ff-petsc$ more config.log

## ----------------------

## Running config.status.

## ----------------------

This file was extended by FreeFEM config.status 4.6, which was  
generated by GNU Autoconf 2.69. Invocation command line was

CONFIG\_FILES =  
CONFIG\_HEADERS =  
CONFIG\_LINKS =  
CONFIG\_COMMANDS =  
$ …/…/config.status --file=Makefile.inc:Makefile-PETSc.inc

on autonome232.local

config.status:1224: creating Makefile.inc

---

<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:** [August 28, 2020, 5:59am UTC](https://community.freefem.org/t/compline-on-macos-10-15-6/543/6 "2020-08-28T05:59:20Z")

</div>

Nothing to do with SLEPc… It says ScaLAPACK, not SLEPc. You need to switch to the develop branch.

---

<div class="post-metadata">

**Author:** ![david.fabre](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@david.fabre](https://community.freefem.org/u/david.fabre)\
**Post date:** [August 28, 2020, 9:23am UTC](https://community.freefem.org/t/compline-on-macos-10-15-6/543/7 "2020-08-28T09:23:01Z")

</div>

OK. So switched to develop branch.  
I had to do `./reconfigure --disable-fortran` to succeed compilation of mpi.f

Now compilation succeeds but new problem:

`(base) fabred@autonome232:FreeFem-sources$ src/mpi/FreeFem++-mpi`

`src/mpi/FreeFem++-mpi dyld: Library not loaded: @rpath/libhdf5.103.dylib Referenced from: /Users/fabred/FreeFem-sources/src/mpi/FreeFem++-mpi Reason: image not found Abort trap: 6`

Thanks for help !

* * *

EDIT : problem finally fixed

using develop branch with configure options

`--disable-fortran --disable-iohdf5 --with-hdf5=no --without-hdf5 `

---

<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:** [August 28, 2020, 9:57am UTC](https://community.freefem.org/t/compline-on-macos-10-15-6/543/8 "2020-08-28T09:57:59Z")

</div>

A quick search on the forum returns [this](https://community.freefem.org/t/help-installing-freefem-in-ubuntu-19-10/269/2) solution.

---

<div class="post-metadata">

**Author:** ![bpabbott](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/bpabbott/32/205_2.png) [@bpabbott](https://community.freefem.org/u/bpabbott)\
**Post date:** [August 30, 2020, 4:43am UTC](https://community.freefem.org/t/compline-on-macos-10-15-6/543/9 "2020-08-30T04:43:18Z")

</div>

Just for completeness … I am able to compile by manually adding “-fallow-argument-mismatch” when needed.

I’ll try the configure options and report back.

---

<div class="post-metadata">

**Author:** ![bpabbott](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/bpabbott/32/205_2.png) [@bpabbott](https://community.freefem.org/u/bpabbott)\
**Post date:** [August 30, 2020, 4:54am UTC](https://community.freefem.org/t/compline-on-macos-10-15-6/543/10 "2020-08-30T04:54:38Z")

</div>

I’m able to build with David’s suggested configure change. I get two FAIL during “make check” and will follow up with another thread.
