Solution to issue cannot be found in the documentation.
[X] I checked the documentation.
Issue
The provided package config files in lib/pkgconfig/ have build env absolute paths encoded causing the output to be non portable.
ompi.pc
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
# Copyright (c) 2016 IBM Corporation. All rights reserved.
#
Name: Open MPI
Description: Portable high-performance MPI implementation
Version: 4.1.6
URL: http://www.open-mpi.org/
#
prefix=/Users/runner/miniforge3/conda-bld/openmpi-mpi_1696591847237/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib
pkgincludedir=${includedir}/openmpi
#
# Note that -lopen-pal and all the EXTRA_LIBS are only necessary when
# static linking (they're pulled in by libopen-rte.so's implicit
# dependencies), so only list these in Libs.private.
#
Libs: -L${libdir} -L/Users/runner/miniforge3/conda-bld/openmpi-mpi_1696591847237/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib -Wl,-rpath,/Users/runner/miniforge3/conda-bld/openmpi-mpi_1696591847237/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib -lmpi
Libs.private: -lm -lz
#
Cflags: -I${includedir} -I/Users/runner/miniforge3/conda-bld/openmpi-mpi_1696591847237/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/include
Closing.
The issue was on my side by manually installing the openmpi package instead of using conda install and so I was getting the untransformed paths
Solution to issue cannot be found in the documentation.
Issue
The provided package config files in
lib/pkgconfig/
have build env absolute paths encoded causing the output to be non portable.ompi.pc
Installed packages
Environment info