-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Rust requires an installed C compiler for linking, but book never mentions this is necessary #32208
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Also note this does depend on the specific target you're using. |
I'm a beginner looking for a good entry level issue to work on and this one caught my eye. What kind of details are needed in the documentation surrounding this issue? |
@dustinlapierre sorry for taking a while to get back to you. Basically, a note should be added in https://github.com/rust-lang/rust/blob/master/src/doc/book/getting-started.md to mention that you will need a c compiler installed. The bits @retep998 mentioned should be the only exception to that rule, as far as I know. |
I would be happy to work with anyone who wants to tackle this issue. |
This detail is already in the the Getting Started guide: 6c56260 perhaps it needs to be called out more prominently under the Installing on Linux or Mac and Installing on Windows sections? If so I'm happy to have a go. |
For what it's worth, on |
@wezm yes, I think that'd be good. Thanks! |
I just noticed, I did not reference the Mac on my pull request. Does anyone know what the situation is on the Mac regarding Linker requirements? |
Improve documention troubleshooting missing linker. Fix rust-lang#32208. @steveklabnik is this in the direction on how you want to see rust-lang#32208 fixed?
From what I understand, Rust executes
cc
for linking programs. However, the book doesn't mention that a C compiler needs to be installed before installing Rust, resulting in a confusing error along these lines when one attempts to compile a Rust program:The text was updated successfully, but these errors were encountered: