﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6153	Mumps compilation fails	gautier.bureau@…	somebody	"Hello,

Compilation of 3rdParty mumps is broken on Fedora 33, with the error:

 
{{{
gfortran -I. -I. -I./MUMPS/src -I./MUMPS/libseq -I./MUMPS/include -g -O2 -c MUMPS/src/tools_common_mod.F  -fPIC -o .libs/tools_common_mod.o
/bin/sh ./../../libtool --tag=F77 --mode=compile gfortran  -I. -I`echo .`  -I`echo ./MUMPS/src` -I`echo ./MUMPS/libseq` -I`echo ./MUMPS/include`   -g -O2   -c -o dmumps_comm_buffer.lo `test -f 'MUMPS/src/dmumps_comm_buffer.F' || echo './'`MUMPS/src/dmumps_comm_buffer.F
 gfortran -I. -I. -I./MUMPS/src -I./MUMPS/libseq -I./MUMPS/include -g -O2 -c MUMPS/src/dmumps_comm_buffer.F  -fPIC -o .libs/dmumps_comm_buffer.o
MUMPS/src/dmumps_comm_buffer.F:2667:23:

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,
      |                       2
......
 2667 |         CALL MPI_PACK( LIST_SLAVES, NSLAVES, MPI_INTEGER,
      |                       1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
MUMPS/src/dmumps_comm_buffer.F:2670:23:

}}}

The procedure I did to get the error was:

{{{

docker run -it fedora:33

dnf upgrade -y && dnf update -y && dnf install -y git gcc gcc-c++ gcc-gfortran autoconf automake make libtool sudo passwd cmake hwloc java-1.8.0-openjdk-devel blas-devel lapack-devel lpsolve-devel expat-devel glibc-devel sqlite-devel libarchive-devel zlib-devel doxygen doxygen-latex qt-devel gettext patch wget python-devel clang llvm-devel ncurses-devel readline-devel unzip perl-Digest-MD5 vim gcovr python-pip python-psutil boost-devel lcov gtest-devel gmock-devel xz rsync python-lxml graphviz gpg curl dpkg libcurl-devel bash-completion && dnf clean all && rm -rf /var/cache/dnf/*

git clone https://github.com/OpenModelica/OpenModelica.git 
cd OpenModelica/
git submodule init
git submodule update 
git submodule foreach 'git submodule init'
git submodule foreach 'git submodule update'
autoconf 
./configure CC=gcc CXX=g++
make omc
}}}

Adding the flag -fallow-argument-mismatch in OMCompiler/3rdParty/Ipopt/ThirdParty/Mumps/Makefile.in at the line FFLAGS = -fallow-argument-mismatch @FFLAGS@ $(MY_FDEFS) seems to solve the issue.

Thanks for the help

Gautier
"	defect	closed	high	1.16.0	Build Environment		fixed		
