Bug 255391 - lang/gcc10: gfortran 10.2 cannot build science/cgnslib v4.2.0
Summary: lang/gcc10: gfortran 10.2 cannot build science/cgnslib v4.2.0
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-toolchain (Nobody)
URL: https://gcc.gnu.org/bugzilla/show_bug...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-25 13:55 UTC by Thierry Thomas
Modified: 2022-04-20 18:17 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry Thomas freebsd_committer freebsd_triage 2021-04-25 13:55:43 UTC
Due the GCC bug reported at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99982
the port science/cgnslib cannot be upgraded to v4.2.0: see also
https://github.com/CGNS/CGNS/releases/tag/v4.2.0

Trying to build it anyway brings this message:
  Fortran mapping (cg_goto_f) is broken for the specified gfortran version.

                             !!! IT'S ADVISABLE TO AVOID VERSION 10.2 !!!

It seems that this bug is not yet fixed upstream, but when it will be available, please back-port the fix or upgrade when possible.
Comment 1 Gerald Pfeifer freebsd_committer freebsd_triage 2021-04-25 15:01:27 UTC
Thanks for the report and reference.  I have the upgrade of lang/gcc10
to GCC 10.3 in the works and plan to commit in the following week, alas
you (and the upstream report) indicate this doesn't yet address the issue.

I'll keep on eye on the upstream report and will backport a fix once it
develops if possible.
Comment 2 Thierry Thomas freebsd_committer freebsd_triage 2022-04-20 16:21:58 UTC
Fixed with gfortran bundled with Gcc 10.3.0.
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-04-20 18:17:40 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=51d1ea8ed77c6d526c6913c399180a21bd5359d1

commit 51d1ea8ed77c6d526c6913c399180a21bd5359d1
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2021-04-25 13:56:52 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2022-04-20 18:17:05 +0000

    science/cgnslib: upgrade to v4.3.0

    Release notes at <https://github.com/CGNS/CGNS/releases>.

    PR:             255391

 science/cgnslib/Makefile                           |  7 +++---
 science/cgnslib/distinfo                           |  6 ++---
 .../patch-src_cgnstools_cgnscalc_CMakeLists.txt    | 18 +++++++--------
 .../patch-src_cgnstools_cgnscalc_Makefile.unix     | 15 +++++++------
 ...h-src_cgnstools_cgnscalc_unitconv.desktop (new) |  9 ++++++++
 science/cgnslib/pkg-plist                          | 26 ++++++++++++++--------
 6 files changed, 50 insertions(+), 31 deletions(-)