svn commit: r555603 - head/science/mbdyn

Mark Linimon linimon at FreeBSD.org
Tue Nov 17 22:36:02 UTC 2020


Author: linimon
Date: Tue Nov 17 22:36:02 2020
New Revision: 555603
URL: https://svnweb.freebsd.org/changeset/ports/555603

Log:
  Add workaround for new failure with Fortran GCC 10 frontend:
  
    Type mismatch in argument 't' at (1); passed REAL(4) to INTEGER(4)
  
  PR:		246700
  Approved by:	maintainer

Modified:
  head/science/mbdyn/Makefile

Modified: head/science/mbdyn/Makefile
==============================================================================
--- head/science/mbdyn/Makefile	Tue Nov 17 22:34:27 2020	(r555602)
+++ head/science/mbdyn/Makefile	Tue Nov 17 22:36:02 2020	(r555603)
@@ -58,9 +58,17 @@ METIS_LIB_DEPENDS=	libmetis.so:math/metis
 REFERENCE_CONFIGURE_ON=	--with-blas=blas
 REFERENCE_USES=	blaslapack:netlib
 
+.include <bsd.port.pre.mk>
+
+.if ${GCC_DEFAULT} >= 10
+# workaround for Type mismatch in argument 't' at (1); passed REAL(4) to INTEGER(4)
+# in theory, this should set FCFLAGS, but the port does not conform
+FFLAGS+=	-fallow-argument-mismatch
+.endif
+
 pre-configure:
 	${REINPLACE_CMD} -e '/try_lapack_LIBS=/s/-llapack/${LAPACKLIB}/' \
 		-e 's/ -lxerbla//; s/-lcholmod/-lcholmod ${BLASLIB} ${LAPACKLIB} -lsuitesparseconfig/'	\
 		${WRKSRC}/configure
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-head mailing list