pkg-config file for fortran contains wrong include dir

Bug #1929549 reported by Jonas L. B.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openmpi (Ubuntu)
New
Undecided
Unassigned

Bug Description

It seems that the pkg-config file for openmpi fortran (`ompi-fort.pc`) does not contain the correct include path for `mpi.mod`. It is installed at `/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15/openmpi/mpi.mod` but this path is apparently not in the pc file.

Basically the following program should be compilable with `gfortran $(pkg-config ompi-fort --libs --cflags) helloworld.F90`:

```
program helloworld
use mpi
integer ierr, rank
call MPI_INIT(ierr)
call MPI_COMM_RANK(MPI_COMM_WORLD, rank, ierr)
write(*,*) rank, "Hello world"
call MPI_FINALIZE(ierr)
end program
```

It works on my fedora machine where the paths are correct in the pc file, but on Ubuntu, `mpi.mod` cannot be found, because it is not included in `ompi-fort.pc`.

Jonas L. B. (jonaslb)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.