Description of problem: The nf-config utility (provided by package netcdf-fortran-devel) is supposed to paths where netcdf.mod is found when specifying the --fflags. On Fedora 30, it returns /usr/include, however netcdf.mod is found in a different directory, /usr/lib64/gfortran/modules. Thus when compiling software that queries nf-config to find the module include path, it gets a path that doesn't have netcdf.mod, and compilation fails when it does not find netcdf.mod This is exactly the same problem as in https://bugzilla.redhat.com/show_bug.cgi?id=1554621 which was closed as EOL for Fedora 26. The problem was also present in Fedora 29. I would have re-opened that bug, but I couldn't. Version-Release number of selected component (if applicable): $ rpm -qa | grep netcdf-fortran netcdf-fortran-devel-4.4.4-12.fc30.x86_64 netcdf-fortran-4.4.4-12.fc30.x86_64 Steps to Reproduce: 1. nf-config --fflags Actual results: $ nf-config --fflags -I/usr/include Expected results: $ nf-config --fflags -I/usr/include -I/usr/lib64/gfortran/modules/ Note that /usr/include contains netcdf.inc which may also be needed for netcdf-using Fortran programs, thus I think /usr/include should be kept in the response. Additional info: One workaround, which fixes the problem for me, is to patch /usr/bin/nf-config to return also the module directory: includedir=${prefix}/include +moduledir=/usr/lib64/gfortran/modules/ cc="gcc" fc="gfortran" cflags=" -I${includedir} " -fflags="-I${includedir}" +fflags="-I${includedir} -I${moduledir}"
FEDORA-2020-b218fe02ad has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-b218fe02ad
netcdf-fortran-4.5.2-3.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-b218fe02ad
netcdf-fortran-4.5.2-3.el8 has been pushed to the Fedora EPEL 8 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-ea68ebc8bf
netcdf-fortran-4.5.2-3.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.
netcdf-fortran-4.5.2-3.el8 has been pushed to the Fedora EPEL 8 stable repository. If problems still persist, please make note of it in this bug report.