-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
[clang] intercept-build
can't find its Python modules on a lib64
system
#106608
Labels
Milestone
Comments
mgorny
added a commit
to mgorny/llvm-project
that referenced
this issue
Aug 29, 2024
Install scan-build-py modules into the plain `lib` directory, without LLVM_LIBDIR_SUFFIX appended, to match the path expected by `intercept-build` executable. This fixes the program being unable to find its modules. Using unsuffixed path makes sense here, since Python modules are not subject to multilib. This change effectively reverts 1334e12. The commit in question changed the path without a clear justification ("does not respect the given prefix") and the Python code was never modified to actually work with the change.
/cherry-pick 0c4cf79 |
llvmbot
pushed a commit
to llvmbot/llvm-project
that referenced
this issue
Aug 31, 2024
Install scan-build-py modules into the plain `lib` directory, without LLVM_LIBDIR_SUFFIX appended, to match the path expected by `intercept-build` executable. This fixes the program being unable to find its modules. Using unsuffixed path makes sense here, since Python modules are not subject to multilib. This change effectively reverts 1334e12. The commit in question changed the path without a clear justification ("does not respect the given prefix") and the Python code was never modified to actually work with the change. Fixes llvm#106608 (cherry picked from commit 0c4cf79)
/pull-request #106853 |
tru
pushed a commit
to llvmbot/llvm-project
that referenced
this issue
Sep 1, 2024
Install scan-build-py modules into the plain `lib` directory, without LLVM_LIBDIR_SUFFIX appended, to match the path expected by `intercept-build` executable. This fixes the program being unable to find its modules. Using unsuffixed path makes sense here, since Python modules are not subject to multilib. This change effectively reverts 1334e12. The commit in question changed the path without a clear justification ("does not respect the given prefix") and the Python code was never modified to actually work with the change. Fixes llvm#106608 (cherry picked from commit 0c4cf79)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
As the OP pointed out, the code appends a hardcoded
lib
directory:llvm-project/clang/tools/scan-build-py/bin/intercept-build
Lines 10 to 11 in c1248c9
However, the files are installed in suffixed
lib
directory:llvm-project/clang/tools/scan-build-py/CMakeLists.txt
Lines 90 to 92 in c1248c9
I'm going to submit a pull request changing the install directory to
lib
to match. Since these are just Python modules, they don't need multilib.Original bug report: https://bugs.gentoo.org/938665
The text was updated successfully, but these errors were encountered: