ompi icon indicating copy to clipboard operation
ompi copied to clipboard

Discrepancy between 'oshcc' compiler wrapper and corresponding pkg-config files "oshmem-c.pc" and "oshmem.pc"

Open scienceplease opened this issue 9 months ago • 0 comments

Background information

What version of Open MPI are you using? (e.g., v4.1.6, v5.0.1, git branch name and hash, etc.)

5.0.2

Describe how Open MPI was installed (e.g., from a source/distribution tarball, from a git clone, from an operating system distribution package, etc.)

Official Fedora package repository, i.e.

 openmpi         x86_64    5.0.2-2.fc40
 openmpi-devel   x86_64    5.0.2-2.fc40

Please describe the system on which you are running

  • Operating system/version: Fedora 40
  • Computer hardware: N/A
  • Network type: N/A

Details of the problem

Discrepancy between compiler wrapper oshcc and corresponding pkg-config files (oshmem-c.pc, oshmem.pc). Pkg-config cflags specifies -I/usr/lib64/openmpi/lib, which is not present in oshcc or oshcxx wrapper flags nor oshmem-cxx.pc. /usr/lib64/openmpi/lib does not contain header files.

Formatted output:

$ oshcc --showme:compile
    -I/usr/include/openmpi-x86_64

$ pkg-config --cflags oshmem-c
    -I/usr/include/openmpi-x86_64
    -I/usr/lib64/openmpi/lib        # Discrepancy

$ oshcxx --showme:compile
    -I/usr/include/openmpi-x86_64

$ pkg-config --cflags oshmem-cxx
    -I/usr/include/openmpi-x86_64

scienceplease avatar May 15 '24 22:05 scienceplease