Index: Mk/bsd.default-versions.mk =================================================================== --- Mk/bsd.default-versions.mk (revision 552706) +++ Mk/bsd.default-versions.mk (working copy) @@ -51,7 +51,7 @@ .if ${ARCH} == "powerpcspe" GCC_DEFAULT?= 8 .else -GCC_DEFAULT?= 9 +GCC_DEFAULT?= 10 .endif # Possible values: 7, 8, 9, agpl GHOSTSCRIPT_DEFAULT?= agpl Index: biology/molden/Makefile =================================================================== --- biology/molden/Makefile (revision 552706) +++ biology/molden/Makefile (working copy) @@ -39,6 +39,13 @@ OPTIONS_DEFINE= DATA DOCS OPTIONS_DEFAULT= DATA +.include + +.if ${GCC_DEFAULT} >= 10 +# workaround for Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/REAL(4)). +FFLAGS+= -fallow-argument-mismatch +.endif + post-patch: @${REINPLACE_CMD} -e \ 's|^CC |#CC | ; \ Index: cad/calculix-ccx/Makefile =================================================================== --- cad/calculix-ccx/Makefile (revision 552706) +++ cad/calculix-ccx/Makefile (working copy) @@ -55,6 +55,11 @@ FFLAGS+= -fpic .endif +.if ${GCC_DEFAULT} >= 10 +# workaround for Missing actual argument for argument '_formal_15' at (1) +FFLAGS+= -fallow-argument-mismatch +.endif + pre-build: @${REINPLACE_CMD} -e 's+%%FC%%+${FC}+g ; s+%%CC%%+${CC}+g ; \ s+%%BLAS_LIBS%%+${BLASLIB}+ ; \ Index: comms/wsjtx/Makefile =================================================================== --- comms/wsjtx/Makefile (revision 552706) +++ comms/wsjtx/Makefile (working copy) @@ -36,6 +36,13 @@ _PATCHES= wsjtx.patch hamlib.patch +.include + +.if ${GCC_DEFAULT} >= 10 +# workaround for More actual than formal arguments in procedure call at (1) +FFLAGS+= -fallow-argument-mismatch +.endif + post-patch: . for _patch in ${_PATCHES} # Keep a copy of the blank patch for the post-build target below Index: math/blacs/Makefile =================================================================== --- math/blacs/Makefile (revision 552706) +++ math/blacs/Makefile (working copy) @@ -35,6 +35,11 @@ .include F77EXTRAFLAGS= #-w -fno-globals -fugly-complex +.if ${GCC_DEFAULT} >= 10 +# workaround for Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1) +F77EXTRAFLAGS+= -fallow-argument-mismatch +.endif + DEBUG_LEVEL= 0 .if ${ARCH} == "sparc64" || ${ARCH} == "amd64" Index: math/dbcsr/Makefile =================================================================== --- math/dbcsr/Makefile (revision 552706) +++ math/dbcsr/Makefile (working copy) @@ -39,6 +39,12 @@ C_API_DESC= Build the C API library C_API_CMAKE_BOOL= WITH_C_API +.include + +.if ${GCC_DEFAULT} >= 10 +BROKEN= fails to build with GCC 10: Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1) +.endif + do-test: # tests are broken: https://github.com/cp2k/dbcsr/issues/150 @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \ Index: math/gotoblas/Makefile =================================================================== --- math/gotoblas/Makefile (revision 552706) +++ math/gotoblas/Makefile (working copy) @@ -78,6 +78,10 @@ GOTOFLAGS+= USE_OPENMP=1 .endif +.if ${GCC_DEFAULT} >= 10 +BROKEN= fails to build with GCC 10: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/INTEGER(4)). +.endif + #.if ${PORT_OPTIONS:MQUAD_PRECISION} #BROKEN= WITH_QUAD_PRECISION is broken; please disable this option #GOTOFLAGS+= QUAD_PRECISION=1 Index: math/ipopt/Makefile =================================================================== --- math/ipopt/Makefile (revision 552706) +++ math/ipopt/Makefile (working copy) @@ -41,6 +41,13 @@ PORTDOCS= * +.include + +.if ${GCC_DEFAULT} >= 10 +# workaround for Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1) +FFLAGS+= -fallow-argument-mismatch +.endif + post-extract: @(${ECHO} "Extracting Metis and Mumps ThirdParty libraries ..." ) @(cd ${WRKSRC}/ThirdParty/Metis && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/metis-4.0.3.tar.gz ${EXTRACT_AFTER_ARGS}); Index: math/mumps/Makefile =================================================================== --- math/mumps/Makefile (revision 552706) +++ math/mumps/Makefile (working copy) @@ -44,6 +44,11 @@ .include .include "${.CURDIR}/../../french/aster/bsd.aster.mk" +.if ${GCC_DEFAULT} >= 10 +# workaround for Type mismatch in argument 's' at (1); passed INTEGER(4) to LOGICAL(4) +FCFLAGS+= -fallow-argument-mismatch +.endif + .ifdef WITH_MPI PKGNAMESUFFIX+= -mpich .endif Index: math/scalapack/Makefile =================================================================== --- math/scalapack/Makefile (revision 552706) +++ math/scalapack/Makefile (working copy) @@ -75,6 +75,11 @@ FFLAGS+= ${FPIC} SVERSION= 2 +.if ${GCC_DEFAULT} >= 10 +# workaround for Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1) +FFLAGS+= -fallow-argument-mismatch +.endif + .if defined(WITH_OPTIMIZED_FLAGS) .if ${ARCH} == "amd64" FFLAGS+= -pipe -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time Index: math/scilab/Makefile =================================================================== --- math/scilab/Makefile (revision 552706) +++ math/scilab/Makefile (working copy) @@ -130,6 +130,13 @@ CONFIGURE_ARGS+= --enable-debug .endif +.include + +.if ${GCC_DEFAULT} >= 10 +# workaround for Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) +FFLAGS+= -fallow-argument-mismatch +.endif + post-patch: @${REINPLACE_CMD} 's,/usr/local,${LOCALBASE},' ${WRKSRC}/etc/librarypath.xml @${REINPLACE_CMD} -e 's, gfortran, ${FC},' ${WRKSRC}/modules/dynamic_link/src/scripts/configure Index: math/sdpa/Makefile =================================================================== --- math/sdpa/Makefile (revision 552706) +++ math/sdpa/Makefile (working copy) @@ -40,6 +40,13 @@ MANUALFILE= sdpa.7.1.1.manual.20080618.pdf +.include + +.if ${GCC_DEFAULT} >= 10 +# workaround for Type mismatch in argument 's' at (1); passed INTEGER(4) to LOGICAL(4) +CONFIGURE_ARGS+= FCFLAGS=-fallow-argument-mismatch +.endif + post-extract: @(cd ${DISTDIR}/${DIST_SUBDIR} && ${PAX} -rw \ mumps_4.10.0.dfsg.orig.tar.gz ${WRKSRC}/mumps) @@ -62,4 +69,4 @@ @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${MANUALFILE} ${STAGEDIR}${DOCSDIR} -.include +.include Index: science/cp2k/Makefile =================================================================== --- science/cp2k/Makefile (revision 552706) +++ science/cp2k/Makefile (working copy) @@ -66,6 +66,10 @@ fi .endif +.if ${GCC_DEFAULT} >= 10 +BROKEN= fails to build with GCC 10: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2) +.endif + post-patch: @${REINPLACE_CMD} -i '' 's|LIBS.*=.*|& ${LDFLAGS}|; s|^FCFLAGS.*=.*|& -I${LOCALBASE}/include|; s| -march=native||' ${WRKSRC}/arch/FreeBSD-* Index: science/dalton/Makefile =================================================================== --- science/dalton/Makefile (revision 552706) +++ science/dalton/Makefile (working copy) @@ -29,6 +29,12 @@ BINARY_ALIAS= python=${PYTHON_CMD} +.include + +.if ${GCC_DEFAULT} >= 10 +BROKEN= fails to build with GCC 10: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/INTEGER(4)). +.endif + post-install: @${MV} ${STAGEDIR}${PREFIX}/${PORTNAME} ${STAGEDIR}${DATADIR} @${REINPLACE_CMD} -i '' 's|%%SCRIPT_DIR%%|${DATADIR}|; s|%%PREFIX%%|${PREFIX}|' ${STAGEDIR}${DATADIR}/${PORTNAME} @@ -35,4 +41,4 @@ @${MV} ${STAGEDIR}${DATADIR}/${PORTNAME}* ${STAGEDIR}${PREFIX}/bin/ @cd ${STAGEDIR}${DATADIR} && ${RM} -r tools/CMakeFiles tools/Makefile tools/cmake_install.cmake -.include +.include Index: science/dlpoly-classic/Makefile =================================================================== --- science/dlpoly-classic/Makefile (revision 552706) +++ science/dlpoly-classic/Makefile (working copy) @@ -36,6 +36,12 @@ GUI_PLIST_FILES= bin/dlpoly-gui \ ${DATADIR_REL}/GUI.jar +.include + +.if ${GCC_DEFAULT} >= 10 +BROKEN= fails to build with GCC 10: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)). +.endif + post-patch: ${CP} ${WRKSRC}/build/MakePAR ${WRKSRC}/build/MakeSEQ ${BUILD_WRKSRC} ${REINPLACE_CMD} 's|gfortran|${FC}|g' ${BUILD_WRKSRC}/MakeSEQ @@ -54,8 +60,6 @@ ${CP} -f MakePAR Makefile && \ ${MAKE} gfortran) -.include - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/execute/dlpoly-classic ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/execute/dlpoly-classic-mpi ${STAGEDIR}${PREFIX}/bin Index: science/getdp/Makefile =================================================================== --- science/getdp/Makefile (revision 552706) +++ science/getdp/Makefile (working copy) @@ -18,6 +18,13 @@ USES= fortran tar:tgz cmake +.include + +.if ${GCC_DEFAULT} >= 10 +# workaround for Rank mismatch in argument 'lines' at (1) (rank-1 and scalar) +FFLAGS+= -fallow-argument-mismatch +.endif + OPTIONS_DEFINE= DOCS EXAMPLES do-test: Index: science/latte/Makefile =================================================================== --- science/latte/Makefile (revision 552706) +++ science/latte/Makefile (working copy) @@ -40,4 +40,11 @@ CONFLICTS_INSTALL= latte-integrale +.include + +.if ${GCC_DEFAULT} >= 10 +# workaround for Type mismatch between actual argument at (1) and actual argument at (2) (COMPLEX(8)/REAL(8)). +FFLAGS+= -fallow-argument-mismatch +.endif + .include Index: science/libgridxc/Makefile =================================================================== --- science/libgridxc/Makefile (revision 552706) +++ science/libgridxc/Makefile (working copy) @@ -37,6 +37,12 @@ LIBXC_LIB_DEPENDS= libxc.so:science/libxc LIBXC_BROKEN= Fails to build with libxc-5.0.0: https://bugs.launchpad.net/libgridxc/+bug/1899578 +.include + +.if ${GCC_DEFAULT} >= 10 +BROKEN= fails to build with GCC 10: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(8)/INTEGER(4)). +.endif + post-patch: @${MKDIR} ${BUILD_WRKSRC} @${CAT} ${WRKSRC}/../extra/fortran.mk \ Index: science/mdynamix/Makefile =================================================================== --- science/mdynamix/Makefile (revision 552706) +++ science/mdynamix/Makefile (working copy) @@ -26,4 +26,11 @@ ${INSTALL_PROGRAM} ${WRKSRC}/md ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/mdp ${STAGEDIR}${PREFIX}/bin +.include + +.if ${GCC_DEFAULT} >= 10 +# workaround for Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)). +FFLAGS+= -fallow-argument-mismatch +.endif + .include Index: science/pnetcdf/Makefile =================================================================== --- science/pnetcdf/Makefile (revision 552706) +++ science/pnetcdf/Makefile (working copy) @@ -37,6 +37,13 @@ OPENMPI3_CONFIGURE_ON= --with-mpi=${LOCALBASE}/mpi/openmpi3 OPENMPI3_LIB_DEPENDS= libmpi.so:net/openmpi3 +.include + +.if ${GCC_DEFAULT} >= 10 +# workaround for Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(8)/CHARACTER(*)). +FCFLAGS+= -fallow-argument-mismatch +.endif + post-patch: @${REINPLACE_CMD} -e '/$$(INSTALL.*$$(PREFIX)/ s|$$(PREFIX)|$$(DESTDIR)&|' ${WRKSRC}/Makefile.in Index: science/quantum-espresso/Makefile =================================================================== --- science/quantum-espresso/Makefile (revision 552706) +++ science/quantum-espresso/Makefile (working copy) @@ -34,6 +34,14 @@ MAKE_JOBS_UNSAFE= yes # https://github.com/QEF/q-e/issues/9 +.include + +.if ${GCC_DEFAULT} >= 10 +# workaround for Error: Rank mismatch between actual argument at (1) +# and actual argument at (2) (scalar and rank-1) +FFLAGS+= -fallow-argument-mismatch +.endif + post-extract: @${RM} ${WRKSRC}/archive/lapack-3.6.1.tgz @cd ${WRKSRC} && ${MKDIR} FoX && ${LN} -s ${LOCALBASE}/include FoX/finclude Index: science/siesta/Makefile =================================================================== --- science/siesta/Makefile (revision 552706) +++ science/siesta/Makefile (working copy) @@ -26,6 +26,13 @@ PLIST_FILES= bin/${PORTNAME} +.include + +.if ${GCC_DEFAULT} >= 10 +# workaround for Type mismatch between actual argument at (1) and actual argument at (2) (COMPLEX(8)/REAL(8)). +FCFLAGS+= -fallow-argument-mismatch +.endif + pre-configure: @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} ../Src/obj_setup.sh @@ -32,4 +39,4 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin -.include +.include