pkg-config file for fortran contains wrong include dir
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/
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_
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`.