[Bug 1883855] [NEW] gfortan does not include system .mod files

Rostislav 1883855 at bugs.launchpad.net
Wed Jun 17 08:18:30 UTC 2020


Public bug reported:

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...

** Affects: gcc-defaults (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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