-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Building rustc-1.84.0 tarball fails when using system LLVM #135356
Comments
The commit that is causing the build to blow up is
There seems to be other work involved in this that I have not identified yet. This scheme needs to be conditional based on whether we are building and also installing the llvm tools. Note that I have the following in my
|
The problem is that the compiler unconditionally expects llvm-tools to be available (specifically When you disable |
Okay, but if we are not building LLVM and hence not installing the llvm-tools, then it seems to me that we should be creating a symlink from the installed |
#134240 fixes that, but it's not on stable yet. |
I made an error in my previous comment. The correct behavior is to copy the system |
Yes, that will fix this problem, but you still end up with a broken toolchain due to the missing |
|
|
Seems like we are already doing that rust/src/bootstrap/src/core/build_steps/compile.rs Lines 1765 to 1774 in 00ded39
but you have to set |
Could this be the cause of my issue with the following?
|
That seems like a different problem... Can you file an issue with more details? |
Isn't |
I set |
|
I can verify that setting I have tested both version |
Should be fixed now in 1.84.1. |
Verified in 1.84.1. |
I have LLVM 19.1.6 installed on my system, and when building, I encounter the following:
It appears that it is trying to invoke a built copy of
llvm-objcopy
, when it should be using the installed version.This is a regression.
The text was updated successfully, but these errors were encountered: