Description
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.