The ebuild needs the following patch --- /usr/portage/sci-libs/mumps/mumps-5.1.2.ebuild 2018-10-08 20:09:33.000000000 +0200 +++ /usr/local/portage/sci-libs/mumps/mumps-5.1.2.ebuild 2018-10-09 11:12:53.389016133 +0200 @@ -78,7 +78,7 @@ -e "s:#\s*\(IMETIS\s*=\).*:\1$($(tc-getPKG_CONFIG) --cflags parmetis):" \ Makefile.inc || die LIBADD="${LIBADD} $($(tc-getPKG_CONFIG) --libs parmetis)" - ord="${ord} -Dparmetis" + ord="${ord} -Dparmetis3" elif use metis; then sed -i \ -e "s:#\s*\(LMETIS\s*=\).*:\1$($(tc-getPKG_CONFIG) --libs metis):" \ ================ Compiling mumps-5.1.2 with the ebuild in the tree fails with mpicc -march=native -O2 -maes -mavx -mavx2 -mf16c -mfma -mmmx -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -msse4a -mssse3 -pipe -fPIC -I../include -DAdd_ -I/usr/include/metis -I../PORD/include/ -I/usr/include/scotch -Dpord -Dparmetis -Dptscotch -c mumps_metis.c -o mumps_metis.o In file included from mumps_metis.c:26: /usr/include/scotch/parmetis.h:96:40: error: conflicting types for 'ParMETIS_V3_NodeND' void METISNAMEU(ParMETIS_V3_NodeND) (const int * const, int * const, int * const, const int * const, const int * const, int * const, int * const, MPI_Comm * const); ^~~~~~~~~~~~~~~~~~ /usr/include/scotch/parmetis.h:89:40: note: in definition of macro 'METISNAME4' #define METISNAME4(p,s) p##s ^ /usr/include/scotch/parmetis.h:86:37: note: in expansion of macro 'METISNAME2' #define METISNAMEU(s) METISNAME2(METISNAME3(SCOTCH_METIS_PREFIXU),s) ^~~~~~~~~~ /usr/include/scotch/parmetis.h:96:29: note: in expansion of macro 'METISNAMEU' void METISNAMEU(ParMETIS_V3_NodeND) (const int * const, int * const, int * const, const int * const, const int * const, int * const, int * const, MPI_Comm * const); ^~~~~~~~~~ In file included from /usr/include/metis/metis.h:25, from mumps_metis.c:25: /usr/include/metis/../parmetis.h:87:14: note: previous declaration of 'ParMETIS_V3_NodeND' was here void __cdecl ParMETIS_V3_NodeND( ^~~~~~~~~~~~~~~~~~ Looking at the source, the flags parametis has to be replaced by parametis3
I can confirm this issue and also that the proposed fix works
Alternatively, let's just use modern metis...
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=418b4a50e26dcc6a5a57c33bc2efb0ae4880e7d1 commit 418b4a50e26dcc6a5a57c33bc2efb0ae4880e7d1 Author: Matthias Maier <tamiko@gentoo.org> AuthorDate: 2018-11-26 00:34:59 +0000 Commit: Matthias Maier <tamiko@gentoo.org> CommitDate: 2018-11-26 00:34:59 +0000 sci-libs/mumps: update metis dependencies (again) Closes: https://bugs.gentoo.org/668144 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Matthias Maier <tamiko@gentoo.org> sci-libs/mumps/mumps-5.1.2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)