Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2020 22:28:17 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r555600 - head/science/dftbplus
Message-ID:  <202011172228.0AHMSHIQ013107@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Tue Nov 17 22:28:16 2020
New Revision: 555600
URL: https://svnweb.freebsd.org/changeset/ports/555600

Log:
  Add workaround for new failure with Fortran GCC 10 frontend:
  
    Type mismatch between actual argument at (1) and actual argument at (2) (COMPLEX(8)/CHARACTER(*)).
  
  PR:		246700
  Approved by:	maintainer

Modified:
  head/science/dftbplus/Makefile

Modified: head/science/dftbplus/Makefile
==============================================================================
--- head/science/dftbplus/Makefile	Tue Nov 17 22:27:00 2020	(r555599)
+++ head/science/dftbplus/Makefile	Tue Nov 17 22:28:16 2020	(r555600)
@@ -62,6 +62,14 @@ ARPACK_PREVENTS=	MPI # ARPACK is only used in a single
 
 MAKE_JOBS_UNSAFE=	yes # race conditions when some options are ON
 
+.include <bsd.port.pre.mk>
+
+.if ${GCC_DEFAULT} >= 10
+# workaround for Type mismatch between actual argument at (1) and actual argument at (2) (COMPLEX(8)/CHARACTER(*)).
+# in theory, this should set FCFLAGS, but the port does not conform
+FFLAGS+=	-fallow-argument-mismatch
+.endif
+
 post-extract:
 	@${RM} ${WRKSRC}/external/scalapackfx/origin/test/psyr_result.dat.orig
 	@cd ${WRKSRC} && ${CP} sys/make.x86_64-linux-gnu make.arch
@@ -69,4 +77,4 @@ post-extract:
 post-install:
 	@cd ${STAGEDIR}${PREFIX}/bin && ${STRIP_CMD} dftb+ modes waveplot
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011172228.0AHMSHIQ013107>