FTBFS with GCC/GFortran 11

Bug #1942265 reported by Sergio Durigan Junior
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mpich (Debian)
Fix Released
Unknown
mpich (Ubuntu)
Fix Released
High
Sergio Durigan Junior

Bug Description

mpich is FTBFS'ing with GCC/GFortran 11:

https://launchpad.net/ubuntu/+source/mpich/3.4.1-5/+build/21966757/+files/buildlog_ubuntu-impish-amd64.mpich_3.4.1-5_BUILDING.txt.gz

...
checking whether f77 allows mismatched arguments... yes, with -fallow-argument-mismatch
configure: error: The Fortran compiler f77 does not accept programs that call the same routine with arguments of different types without the option -fallow-argument-mismatch. Rerun configure with FFLAGS=-fallow-argument-mismatch
 tail -v -n \+0 config.log
==> config.log <==
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
...

Upon some investigation, I found that the only thing needed is to adjust the existing GF10_FLAGS (from d/rules) to account for gfortran-11.

I will post a patch soon.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Here's the patch.

There's a PPA with the proposed package here:

https://launchpad.net/~sergiodj/+archive/ubuntu/mpich-ftbfs/+packages

autopkgtest is happy:

autopkgtest [21:43:41]: @@@@@@@@@@@@@@@@@@@@ summary
version PASS
hello1 PASS
hello2 PASS
hello4 PASS

tags: added: patch
Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Thanks for the patch Sergio! The package built fine locally as well and autopkgtest also successfully passed for me. Is this something we want to forward to Debian? Anyway, +1 for the proposed changes.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote : Re: [Bug 1942265] Re: FTBFS with GCC/GFortran 11

On Wednesday, September 01 2021, Lucas Kanashiro wrote:

> Thanks for the patch Sergio! The package built fine locally as well and
> autopkgtest also successfully passed for me. Is this something we want
> to forward to Debian? Anyway, +1 for the proposed changes.

Thanks for the review, Lucas.

Yeah, I will file a bug against the Debian package just to let them know
that we've had to adjust d/rules because of GCC11. Based on some
discussions I've seen on the BTS I think they're well aware of the need
to change this when the time comes, but it doesn't hurt to file the bug
anyway.

Cheers,

--
Sergio
GPG key ID: E92F D0B3 6B14 F1F4 D8E0 EB2F 106D A1C8 C3CB BF14

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Uploaded:

$ dput mpich_3.4.1-5ubuntu1_source.changes
Trying to upload package to ubuntu
Checking signature on .changes
gpg: /home/sergio/work/mpich/mpich_3.4.1-5ubuntu1_source.changes: Valid signature from 106DA1C8C3CBBF14
Checking signature on .dsc
gpg: /home/sergio/work/mpich/mpich_3.4.1-5ubuntu1.dsc: Valid signature from 106DA1C8C3CBBF14
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading mpich_3.4.1-5ubuntu1.dsc: done.
  Uploading mpich_3.4.1-5ubuntu1.debian.tar.xz: done.
  Uploading mpich_3.4.1-5ubuntu1_source.buildinfo: done.
  Uploading mpich_3.4.1-5ubuntu1_source.changes: done.
Successfully uploaded packages.

I've also linked the existing Debian bug, and forwarded the patch there.

Thanks.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mpich - 3.4.1-5ubuntu1

---------------
mpich (3.4.1-5ubuntu1) impish; urgency=medium

  * d/rules: Make GF10_FLAGS become GF11_FLAGS, to account for
    GCC/GFortran 11. (LP: #1942265)

 -- Sergio Durigan Junior <email address hidden> Tue, 31 Aug 2021 21:12:19 -0400

Changed in mpich (Ubuntu):
status: In Progress → Fix Released
Changed in mpich (Debian):
status: Unknown → New
Changed in mpich (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.