Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
scienceplease opened this issue May 15, 2024 · 0 comments

Comments

@scienceplease
Copy link

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" and "oshmem.pc". Cflags specifies -I/usr/lib64/openmpi/lib, which is not present in oshcc wrapper flags. "/usr/lib64/openmpi/lib" itself does not contain header files, nor is it present in "oshmem-cxx.pc".

Formatted output:

$ oshcc --showme
gcc 
-I/usr/include/openmpi-x86_64 
-L/usr/lib64/openmpi/lib 
-Wl,-rpath -Wl,/usr/lib64/openmpi/lib 
-Wl,--enable-new-dtags 
-loshmem 
-lmpi

$ pkg-config --libs --cflags oshmem-c
-I/usr/include/openmpi-x86_64 
-I/usr/lib64/openmpi/lib               # Discrepancy
-L/usr/lib64/openmpi/lib 
-Wl,-rpath -Wl,/usr/lib64/openmpi/lib 
-Wl,--enable-new-dtags 
-loshmem 
-lmpi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants