Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jul 2020 06:54:39 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r541167 - head/science/dcl
Message-ID:  <202007040654.0646sdv6045591@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sat Jul  4 06:54:39 2020
New Revision: 541167
URL: https://svnweb.freebsd.org/changeset/ports/541167

Log:
  science/dcl: Unbreak build with GCC 10
  
  glrqnp.f:29:56:
  
     29 |       DATA CPARAS(6) / 'REALMIN ' /, RX(6) / Z'00800000' /
        |                                                        1
  Error: BOZ literal constant near (1) cannot be assigned to a REAL variable [see '-fno-allow-invalid-boz']
  glrqnp.f:28:56:
  
     28 |       DATA CPARAS(5) / 'REALMAX ' /, RX(5) / Z'7F7FFFFF' /
        |                                                        1
  Error: BOZ literal constant near (1) cannot be assigned to a REAL variable [see '-fno-allow-invalid-boz']
  
  http://package18.nyi.freebsd.org/data/121amd64-default-PR244494/2020-06-10_18h04m44s/logs/errors/dcl-5.4.8_9.log
  
  PR:		246700

Modified:
  head/science/dcl/Makefile

Modified: head/science/dcl/Makefile
==============================================================================
--- head/science/dcl/Makefile	Sat Jul  4 06:54:26 2020	(r541166)
+++ head/science/dcl/Makefile	Sat Jul  4 06:54:39 2020	(r541167)
@@ -26,6 +26,12 @@ RESTRICTED=	No commercial use
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
+.include <bsd.port.options.mk>
+
+.if ${FORTRAN_DEFAULT} == gfortran && ${GCC_DEFAULT} >= 10
+FFLAGS+=	-fallow-invalid-boz
+.endif
+
 post-install:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	(cd ${WRKSRC}/demo/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})



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