Summary: | sys-cluster/mpich-3.3 USE=fortran - configure: error: The Fortran compiler x86_64-pc-linux-gnu-gfortran will not compile files that call the same routine with arguments of different types. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo Cluster Team <cluster> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | atoth, da5id2001, jsmolic, me, O01eg, pavanbalaji.work, sam, the.guard, uleysky |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 706426 | ||
Attachments: |
build.log
other.tar.bz2 config.log.bz2 |
Description
Agostino Sarubbo
![]() Created attachment 642306 [details]
build.log
build log and emerge --info
Created attachment 642308 [details]
other.tar.bz2
other logs
Hello, mpich would generate a collection of config.log files for various subcomponents. Is there a way to view those for this bug? -- Pavan Created attachment 644972 [details]
config.log.bz2
config.log.bz2
It seems there is a fix for this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1795817 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91731 By adding "-fallow-argument-mismatch" to gfortran the error is replaced by a warning. *** This bug has been marked as a duplicate of bug 725722 *** same here "-fallow-argument-mismatch" in CFLAGS doesn't help. build still fails anybody? :/ It must be added to FFLAGs, not to CFLAGs. There is a separate flag-o-matic routine for that: append-fflags. (In reply to Attila Tóth from comment #10) > It must be added to FFLAGs, not to CFLAGs. > There is a separate flag-o-matic routine for that: append-fflags. same with FFLAGS="-fallow-argument-mismatch" (In reply to Oleg Korsak from comment #11) > (In reply to Attila Tóth from comment #10) > > It must be added to FFLAGs, not to CFLAGs. > > There is a separate flag-o-matic routine for that: append-fflags. > > same with FFLAGS="-fallow-argument-mismatch" Unfortunately I must confirm your observation. The flag wouldn't show up where it's necessary. I see several points it can be introduced into the build system. I planned to look into this more extensively but I hadn't have enough time for this over the weekend. Will do it later. I have also hit this issue when using: sys-devel/gcc-10.2.0-r5 but not when using: sys-devel/gcc-9.3.0-r2 # FFLAGS=-fallow-argument-mismatch emerge =sys-cluster/mpich-3.3-r1 does not work due to the line: unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS in the sys-cluster/mpich/mpich-3.3-r1.ebuild file. Adding something like: FFLAGS="${FFLAGS} -fallow-argument-mismatch" export MPICHLIB_CFLAGS="${CFLAGS}" export MPICHLIB_CPPFLAGS="${CPPFLAGS}" export MPICHLIB_CXXFLAGS="${CXXFLAGS}" export MPICHLIB_FFLAGS="${FFLAGS}" export MPICHLIB_FCFLAGS="${FCFLAGS}" export MPICHLIB_LDFLAGS="${LDFLAGS}" #unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS to the relevant part of the ebuild made it build with gcc-10.2.0-r5 (In reply to Fredrik Lingvall from comment #13) > does not work due to the line: > > unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS Nice catch! I've missed the unset line... > # FFLAGS=-fallow-argument-mismatch emerge =sys-cluster/mpich-3.3-r1
>
> does not work due to the line:
>
> unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS
>
> in the sys-cluster/mpich/mpich-3.3-r1.ebuild file.
Thanks. I had set package.env and thought I was going insane. Why would they do that?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14d08304513db0d19e6b4720d747fbce302074c3 commit 14d08304513db0d19e6b4720d747fbce302074c3 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-09-23 20:20:51 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-09-23 20:31:21 +0000 sys-cluster/mpich: workaround build failure with GCC 10 Closes: https://bugs.gentoo.org/725842 Signed-off-by: Sam James <sam@gentoo.org> sys-cluster/mpich/mpich-3.3-r1.ebuild | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=146fff709a4168bd9011831dfb64ff3a021855e9 commit 146fff709a4168bd9011831dfb64ff3a021855e9 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-09-23 20:36:31 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-09-23 20:36:49 +0000 sys-cluster/mpich: workaround build failure with GCC 10 (stable) Bug: https://bugs.gentoo.org/725842 Signed-off-by: Sam James <sam@gentoo.org> sys-cluster/mpich/mpich-3.0.4.ebuild | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) |