svn commit: r555605 - head/science/octopus
Mark Linimon
linimon at FreeBSD.org
Tue Nov 17 22:39:17 UTC 2020
Author: linimon
Date: Tue Nov 17 22:39:17 2020
New Revision: 555605
URL: https://svnweb.freebsd.org/changeset/ports/555605
Log:
Add workaround for new failure with Fortran GCC 10 frontend:
BOZ literal constant at (1) is neither a data-stmt-constant nor an actual argument to INT, REAL, DBLE, or CMPLX intrinsic function
PR: 246700
Approved by: maintainer
Modified:
head/science/octopus/Makefile
Modified: head/science/octopus/Makefile
==============================================================================
--- head/science/octopus/Makefile Tue Nov 17 22:37:32 2020 (r555604)
+++ head/science/octopus/Makefile Tue Nov 17 22:39:17 2020 (r555605)
@@ -41,7 +41,15 @@ OPTIONS_DEFINE= OPENMP
OPTIONS_DEFAULT= OPENMP
OPENMP_CONFIGURE_ENABLE= openmp
+.include <bsd.port.pre.mk>
+
+# workaround for:
+# Error: BOZ literal constant at (1) is neither a data-stmt-constant nor an actual argument to INT, REAL, DBLE, or CMPLX intrinsic function [see '-fno-allow-invalid-boz']
+.if ${GCC_DEFAULT} >= 10
+FCFLAGS+= -fallow-argument-mismatch -fallow-invalid-boz
+.endif
+
post-stage: # https://gitlab.com/octopus-code/octopus/issues/108
@${RM} ${STAGEDIR}${PREFIX}/include/yaml.h
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list