From owner-svn-ports-all@freebsd.org Sun Jul 5 15:02:18 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9E7B836D7FF; Sun, 5 Jul 2020 15:02:18 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B0Bkf3kSTz439D; Sun, 5 Jul 2020 15:02:18 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 64579EFF5; Sun, 5 Jul 2020 15:02:18 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 065F2IWn039179; Sun, 5 Jul 2020 15:02:18 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 065F2I8o039178; Sun, 5 Jul 2020 15:02:18 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <202007051502.065F2I8o039178@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Sun, 5 Jul 2020 15:02:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r541285 - head/net/mpich2/files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/net/mpich2/files X-SVN-Commit-Revision: 541285 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jul 2020 15:02:18 -0000 Author: tobik Date: Sun Jul 5 15:02:17 2020 New Revision: 541285 URL: https://svnweb.freebsd.org/changeset/ports/541285 Log: net/mpich2: Unbreak build with GCC 10 checking whether gfortran10 allows mismatched arguments... no configure: error: The Fortran compiler gfortran10 will not compile files that call the same routine with arguments of different types. http://package18.nyi.freebsd.org/data/121amd64-default-PR244494/2020-06-10_18h04m44s/logs/errors/mpich2-1.5_14,5.log PR: 246700 Added: head/net/mpich2/files/patch-test_mpi_configure (contents, props changed) Modified: head/net/mpich2/files/patch-configure Modified: head/net/mpich2/files/patch-configure ============================================================================== --- head/net/mpich2/files/patch-configure Sun Jul 5 14:55:49 2020 (r541284) +++ head/net/mpich2/files/patch-configure Sun Jul 5 15:02:17 2020 (r541285) @@ -1,6 +1,35 @@ ---- configure.orig 2009-11-18 17:40:48.000000000 +0100 -+++ configure 2009-11-24 21:26:56.000000000 +0100 -@@ -40383,12 +40383,12 @@ +--- configure.orig 2012-10-08 19:02:38 UTC ++++ configure +@@ -31361,7 +31361,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ + # The best solution is to turn off errors on particular routines + # if that isn't possible (e.g., too many of them), then + # just try arguments that turn off all checking +- for flags in "-mismatch" ; do ++ for flags in "-fallow-argument-mismatch" "-mismatch" ; do + testok=no + FFLAGS="$FFLAGS $flags" + cat > conftest.$ac_ext <<_ACEOF +@@ -31403,18 +31403,8 @@ the same routine with arguments of different types." " + fi + + addarg=$pac_cv_prog_f77_mismatched_args_parm ++FFLAGS="$FFLAGS $addarg" + +- if test "X$addarg" != "X" ; then +- # We could add the names of all of the MPI routines that +- # accept different types. Instead, we fail cleanly. +- # Some Fortran compilers allow you to turn off checking for +- # mismatched arguments for *all* routines. Adding an argument +- # that turns off checking for *everything* is not something that +- # configure should do - if the user wants this, they can follow +- # the instructions in the following error message. +- as_fn_error $? "The Fortran compiler $F77 does not accept programs that call the same routine with arguments of different types without the option $addarg. Rerun configure with FFLAGS=$addarg" "$LINENO" 5 +- fi +- + bindings="$bindings f77" + bindings_dirs="$bindings_dirs src/binding/f77" + +@@ -43769,12 +43759,12 @@ return thr_create (); return 0; } _ACEOF @@ -14,5 +43,5 @@ + ac_res=$ac_lib + LIBS="$ac_lib $ac_func_search_save_LIBS" fi - rm -f conftest.$ac_objext conftest$ac_exeext - if { (ac_try="$ac_link" + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_thr_create=$ac_res Added: head/net/mpich2/files/patch-test_mpi_configure ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/mpich2/files/patch-test_mpi_configure Sun Jul 5 15:02:17 2020 (r541285) @@ -0,0 +1,30 @@ +--- test/mpi/configure.orig 2012-10-08 19:02:24 UTC ++++ test/mpi/configure +@@ -9835,7 +9835,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ + # The best solution is to turn off errors on particular routines + # if that isn't possible (e.g., too many of them), then + # just try arguments that turn off all checking +- for flags in "-mismatch" ; do ++ for flags in "-fallow-argument-mismatch" "-mismatch" ; do + testok=no + FFLAGS="$FFLAGS $flags" + cat > conftest.$ac_ext <<_ACEOF +@@ -9877,17 +9877,7 @@ the same routine with arguments of different types." " + fi + + addarg=$pac_cv_prog_f77_mismatched_args_parm +- +- if test "X$addarg" != "X" ; then +- # We could add the names of all of the MPI routines that +- # accept different types. Instead, we fail cleanly. +- # Some Fortran compilers allow you to turn off checking for +- # mismatched arguments for *all* routines. Adding an argument +- # that turns off checking for *everything* is not something that +- # configure should do - if the user wants this, they can follow +- # the instructions in the following error message. +- as_fn_error $? "The Fortran compiler $F77 does not accept programs that call the same routine with arguments of different types without the option $addarg. Rerun configure with FFLAGS=$addarg" "$LINENO" 5 +- fi ++FFLAGS="$FFLAGS $addarg" + + # Check whether we need -lU77 to get iargc and getarg, which + # are used for a few of the tests in spawn (U77 was needed with