Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jul 2020 07:27:41 +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: r541170 - head/graphics/raster3d
Message-ID:  <202007040727.0647RfoS064341@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sat Jul  4 07:27:41 2020
New Revision: 541170
URL: https://svnweb.freebsd.org/changeset/ports/541170

Log:
  graphics/raster3d: Unbreak build with GCC 10
  
  render.f:971:28:
  
    971 |  BKGND(3) = iand(XBG,X'00FF')
        |                            1
  Error: Hexadecimal constant at (1) uses nonstandard X instead of Z [see '-fno-allow-invalid-boz']
  render.f:972:28:
  
    972 |  BKGND(2) = iand(XBG,X'FF00')/256
        |                            1
  Error: Hexadecimal constant at (1) uses nonstandard X instead of Z [see '-fno-allow-invalid-boz']
  render.f:973:28:
  
    973 |  BKGND(1) = iand(XBG,X'FF0000')/65536
        |                            1
  Error: Hexadecimal constant at (1) uses nonstandard X instead of Z [see '-fno-allow-invalid-boz']
  
  Error: More actual than formal arguments in procedure call at (1)
  render.f:1079:22:
  
   1077 |       IERR = LOCAL(5, IBKGND(1), IBKGND(2), IBKGND(3))
        |                      2
   1078 |       IERR = LOCAL(1, NAX, NAY, OTMODE, QUALITY)
   1079 |       IERR = LOCAL(4, TITLE)
        |                      1
  Error: Type mismatch between actual argument at (1) and actual argument at (2) (CHARACTER(132)/INTEGER(4)).
  render.f:4402:22:
  
   1077 |       IERR = LOCAL(5, IBKGND(1), IBKGND(2), IBKGND(3))
        |                      2
  ......
   4402 |  IERR = LOCAL(2, OUTBUF(K+1,1), OUTBUF(K+1,2), OUTBUF(K+1,3),
        |                      1
  Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(2)/INTEGER(4)).
  render.f:4430:13:
  
   4430 |       IERR = LOCAL(3)
        |             1
  Error: Missing actual argument for argument '_formal_4' at (1)
  
  http://package18.nyi.freebsd.org/data/121amd64-default-PR244494/2020-06-10_18h04m44s/logs/errors/raster3d-3.0.3_7.log
  
  PR:		246700

Modified:
  head/graphics/raster3d/Makefile

Modified: head/graphics/raster3d/Makefile
==============================================================================
--- head/graphics/raster3d/Makefile	Sat Jul  4 07:26:06 2020	(r541169)
+++ head/graphics/raster3d/Makefile	Sat Jul  4 07:27:41 2020	(r541170)
@@ -23,7 +23,7 @@ MAKE_ARGS=	INCDIRS="-I${LOCALBASE}/include" LIBDIRS="-
 MAKE_JOBS_UNSAFE=	yes
 
 CFLAGS+=	-DLINUX -DNETWORKBYTEORDER -Dgfortran
-FFLAGS+=	-fno-range-check -ffixed-line-length-132
+FFLAGS+=	-std=legacy -fno-range-check -ffixed-line-length-132
 
 PORTDOCS=	*
 PORTEXAMPLES=	*
@@ -33,6 +33,12 @@ OPTIONS_DEFAULT=IMAGEMAGICK
 OPTIONS_SUB=		yes
 
 IMAGEMAGICK_RUN_DEPENDS=	convert:graphics/ImageMagick6
+
+.include <bsd.port.options.mk>
+
+.if ${FORTRAN_DEFAULT} == gfortran && ${GCC_DEFAULT} >= 10
+FFLAGS+=	-fallow-invalid-boz
+.endif
 
 pre-build: # generation of Makefile.incl has to be separate from 'make all', otherwise the generated Makefile.incl isn't read by 'make all'
 	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} linux



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