summaryrefslogtreecommitdiff
path: root/net/mpich/files/patch-configure
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2020-07-05 14:55:08 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2020-07-05 14:55:08 +0000
commitff622bd3f1442531a9a42675bd27fdcc42b7f308 (patch)
tree9593f9831510b72249281adb50d7f39426f91356 /net/mpich/files/patch-configure
parent- update to 8.16.1 (diff)
net/mpich: 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/mpich-3.2.1_6.log PR: 246700
Notes
Notes: svn path=/head/; revision=541283
Diffstat (limited to '')
-rw-r--r--net/mpich/files/patch-configure30
1 files changed, 30 insertions, 0 deletions
diff --git a/net/mpich/files/patch-configure b/net/mpich/files/patch-configure
new file mode 100644
index 000000000000..3ae7bf6a371b
--- /dev/null
+++ b/net/mpich/files/patch-configure
@@ -0,0 +1,30 @@
+--- configure.orig 2017-11-11 02:22:24 UTC
++++ configure
+@@ -32904,7 +32904,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
+@@ -32946,17 +32946,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"
+
+ bindings="$bindings f77"
+