[llvm-bugs] [Bug 48180] New: honor Python2_EXECUTABLE and Python3_EXECUTABLE when they are passed to cmake
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Nov 13 17:37:33 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48180
Bug ID: 48180
Summary: honor Python2_EXECUTABLE and Python3_EXECUTABLE when
they are passed to cmake
Product: compiler-rt
Version: 11.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: compiler-rt
Assignee: unassignedbugs at nondot.org
Reporter: rr.underwood94 at gmail.com
CC: llvm-bugs at lists.llvm.org
CMake's find_package(Python3) and find_package(Python2) packages have a
PYTHON_EXECUTABLE, Python2_EXECUTABLE, and Python3_EXECUTABLE cmake variables
which control which version of python is built against. As far as I can tell,
the rest of LLVM honors these variables. This can cause the build process to
fail when if the automatically selected version of Python can't run due to
modifications of LD_LIBRARY_PATH when using spack. The corresponding Spack
issue is https://github.com/spack/spack/issues/19908
I believe an appropriate fix is to add the variables to the list of
PASSTHROUGH_VARIABLES in cmake/Modules/AddCompilerRT.cmake, and this fix worked
for me.
This bug affects distributions like Gentoo and package managers like Spack
which allow for combinatorial versioning.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201114/e7e59752/attachment.html>
More information about the llvm-bugs
mailing list