[Bug 1883855] Re: gfortan does not include system .mod files
Rostislav
1883855 at bugs.launchpad.net
Mon Nov 7 16:53:13 UTC 2022
Same for GNU Fortran (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0.
At least libodc-dev, libeccodes-dev, libpnetcdf-dev, libcoarrays-dev,
libopenmpi-dev, and libmpich-dev put their .mod files to
/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15, where gfortran
cannnot find them by default.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1883855
Title:
gfortan does not include system .mod files
Status in gcc-defaults package in Ubuntu:
New
Bug description:
Ubuntu 20.04
gfortran can not find .mod files located in
/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15
The .mod files from /usr/include work perfectly well.
I have found two workarounds:
- To explicitly specify -I flag with that directory
or
- to symlink needed .mod files to /usr/include
$ dpkg -l |grep gfortran
ii gfortran 4:9.3.0-1ubuntu2 amd64 GNU Fortran 95 compiler
ii gfortran-9 9.3.0-10ubuntu2 amd64 GNU Fortran compiler
ii libgfortran-9-dev:amd64 9.3.0-10ubuntu2 amd64 Runtime library for GNU Fortran applications (development files)
ii libgfortran5:amd64 10-20200411-0ubuntu1 amd64 Runtime library for GNU Fortran applications
It would be great to somehow instruct gfortran to search for
.mod files in /usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15 as well...
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1883855/+subscriptions
More information about the foundations-bugs
mailing list