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

pkgconfig files not installed with --enable-script-wrapper-compilers #12609

Open
minrk opened this issue Jun 10, 2024 · 3 comments · Fixed by #12628
Open

pkgconfig files not installed with --enable-script-wrapper-compilers #12609

minrk opened this issue Jun 10, 2024 · 3 comments · Fixed by #12628

Comments

@minrk
Copy link

minrk commented Jun 10, 2024

Background information

I'm exploring the consequences of enabling --enable-script-wrapper-compilers, and noticed that enabling the script wrappers prevents installation of pkg-config files.

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

v5.0.3

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

From source, with this script (for conda-forge, but currently running by hand for testing)

./configure --prefix=$PREFIX \
            --disable-dependency-tracking \
            --enable-mpi-fortran \
            --enable-script-wrapper-compilers \
            --disable-wrapper-rpath \
            --disable-wrapper-runpath \
            --with-wrapper-cflags="-I$PREFIX/include" \
            --with-wrapper-cxxflags="-I$PREFIX/include" \
            --with-wrapper-fcflags="-I$PREFIX/include" \
            --with-wrapper-ldflags="${wrapper_ldflags}" \
            --with-sge \
            --with-hwloc=$PREFIX \
            --with-libevent=$PREFIX \
            --with-zlib=$PREFIX \
            --enable-mca-dso

I think the only relevant argument there is --enable-script-wrapper-compilers , the rest should probably be ignored.

Please describe the system on which you are running

  • Operating system/version: macOS 14.5
  • Computer hardware: M1 macbook
  • Network type: N/A

Details of the problem

The openmpi pkg-config files are conditionally installed, and the condition is:

if (not OPAL_WANT_SCRIPT_WRAPPER_COMPILERS) and OPAL_INSTALL_BINARIES 

when presumably it should be:

if OPAL_WANT_SCRIPT_WRAPPER_COMPILERS  or OPAL_INSTALL_BINARIES

Which means they don't get installed if --enable-script-wrapper-compilers is given. The files are generated correctly, they just get left out of installation, so I imagine this is not deliberate. Adding cp -v ompi/tools/wrappers/*.pc $PREFIX/lib/pkgconfig/ after installation produces the desired result.

Perhaps relevant to #10572 where --enable-script-wrapper-compilers is discussed in reference to pkg-config, but it is not mentioned that enabling it removes all pkg-config files.

@janjust
Copy link
Contributor

janjust commented Jun 13, 2024

@jsquyres Hey, is this intended behavior? Regarding the condition on when to install pkg-config files?

@minrk just fyi - but your link seems to point to an unofficial fork.

@jsquyres
Copy link
Member

Many thanks for the report, @minrk.

Does #12627 fix your issue? (that PR is against main, but it should probably apply pretty easily to the v5.0.x branch)

@minrk
Copy link
Author

minrk commented Jun 18, 2024

@jsquyres yes, that fixes it. Thank you!

Sorry for the weird link, that fork keeps coming up first in my searches. Fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants