-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustbuild: if stage0 binaries can't be run, kindly inform user #40529
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
Comments
There is a downside to adding The security risks of this might be minimal (I'm not very familiar with the bootstrap process), or could be mitigated by correctly escaping the arguments passed to the shell. In this particular case it would probably be simpler to improve the bootstrap.py script to catch this exception and improve the error message instead. |
That sounds so much better. |
Hello @alexcrichton! (Moving the discussion into issue) Yes, I know that musl is not directly supported. But I'm throwing ideas right now. Instead of changing it to a shell (like I did), I think we can catch the error and report it with more context, like Execution error: /path/bin/cargo could not be run. Please check your _______ |
@cengizio that sounds totally plausible to me! |
Triage: Since musl binaries have been shipped for many years now, we can probably close this as won't fix? If not, in what realistic scenario would a user benefit from this feature being implemented? |
Hello!
I was trying to build rust within Alpine linux and since it comes with
musl
instead ofglibc
I've bumped into this confusing error message from rustbuild.cargo
is there, in stage0 directory but since it's not compatible withmusl
. execution fails.My proposal is (thanks @matt36 for the idea) that we should catch the error and inform the user with more context.
(If you're wondering "why cargo is not found?" please refer to #31322)
Thanks
The text was updated successfully, but these errors were encountered: