-
Notifications
You must be signed in to change notification settings - Fork 13k
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
error: failed to load source for a dependency on 'cc' #49269
Comments
It would be appreciated if you could provide more details, such as your environment. While it doesn't work for you, it works for many people. |
I have the same problem on gentoo (using rust overlay and rust-9999 package, which builds rust from git). The build issue was introduced between todays rust version and "rustc 1.26.0-dev (24e679c 2018-03-14)" - this is the last version I have installed. Here's the error message from the log:
'cc' - I guess it means, it can't find the C++ compiler - I don't have clang installed (though I have llvm-4, llvm-5 and llvm-6). I have gcc-7.3.0 and gcc-6.4.0. cc is gcc-7.3.0. On different system with clang installed the build issue also shows up. |
The I don't know too much about the build process for a global install, but here's a similar issue about the (older) Makefile-based build process, which apparently expects to find vendored sources when run with |
I found a relatively simple solution to this:
|
@Randl: you probably are refering to: rust/src/bootstrap/bootstrap.py Line 792 in bc87c71
thanks for pointing out! (your link points to master, and that changed...) |
Add additional instructions when `sudo ./x.py install` fails to complete the build. This resolves issues rust-lang#40108 and rust-lang#49269.
Update build instructions in README.md Add additional instructions when `sudo ./x.py install` fails to complete the build. This resolves issues rust-lang#40108 and rust-lang#49269. r? @steveklabnik
Update build instructions in README.md Add additional instructions when `sudo ./x.py install` fails to complete the build. This resolves issues rust-lang#40108 and rust-lang#49269. r? @steveklabnik
Update build instructions in README.md Add additional instructions when `sudo ./x.py install` fails to complete the build. This resolves issues rust-lang#40108 and rust-lang#49269. r? @steveklabnik
Update cargo-vendor usage This contains a variety of updates to clean up the usage of cargo-vendor. - Remove the install step for the old cargo-vendor now that it is built-in to cargo and available in the stage0 install. - Update installation instructions, dealing with vendoring. The current instructions of running `sudo ./x.py install` is broken, it will almost always fail (since the vendor directory doesn't exist). Since the steps for properly handling this are numerous, I'm recommending removing the suggestion to use `sudo` altogether. - If the sudo-forced-vendoring detects that the vendor directory is not available, abort with instructions on how to fix. - Now that cargo-vendor is built-in, automatically run it if it looks like it is needed. - Update instructions on how to install cargo. - Remove the unused markdown link references in README/CONTRIBUTING. This reverts most of #44935. These references don't do anything if they are unused. Closes #49269 cc #61142 #48771 #40108
Update cargo-vendor usage This contains a variety of updates to clean up the usage of cargo-vendor. - Remove the install step for the old cargo-vendor now that it is built-in to cargo and available in the stage0 install. - Update installation instructions, dealing with vendoring. The current instructions of running `sudo ./x.py install` is broken, it will almost always fail (since the vendor directory doesn't exist). Since the steps for properly handling this are numerous, I'm recommending removing the suggestion to use `sudo` altogether. - If the sudo-forced-vendoring detects that the vendor directory is not available, abort with instructions on how to fix. - Now that cargo-vendor is built-in, automatically run it if it looks like it is needed. - Update instructions on how to install cargo. - Remove the unused markdown link references in README/CONTRIBUTING. This reverts most of #44935. These references don't do anything if they are unused. Closes #49269 cc #61142 #48771 #40108
./x.py build && sudo ./x.py install
Doesn't work.
error: failed to load source for a dependency on 'cc'.
The text was updated successfully, but these errors were encountered: