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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1883855

Title:
  gfortan does not include system .mod files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1883855/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to