You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
error: manifest path /public/home/litz/mysw/rust-31032ecb1550a402a726e9c244f6a716b214cc9d/src/tools/cargo/Cargo.toml does not exist #115041
here are what I have done to install rust from source, and I am new in rust. can someone offer me some help about this error and give me detailed instruction on how to install rust from source correctly?
I download the zip file to /public/home/litz/mysw
unzip the zip file in the same dir
cd ./rust-31032ecb1550a402a726e9c244f6a716b214cc9d
error: manifest path `/public/home/likun/mysw/rust-31032ecb1550a402a726e9c244f6a716b214cc9d/src/tools/cargo/Cargo.toml` does not exist
thread 'main' panicked at 'command did not execute successfully: RUSTC_BOOTSTRAP="1" "/public/home/litz/mysw/rust-31032ecb1550a402a726e9c244f6a716b214cc9d/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "metadata" "--format-version" "1" "--no-deps" "--manifest-path" "/public/home/litz/mysw/rust-31032ecb1550a402a726e9c244f6a716b214cc9d/src/tools/cargo/Cargo.toml"
i see that you downloaded the repo as a .zip, i suggest cloning it and checking out the submodules, then try again (i encountered a similar error message and checking out the submodules solved my issues):
It seems like you are downloading the source as a zip file without using Git. During the bootstrapping, we fetch the submodules before invoking Cargo on those paths. However, in your case, since your source doesn't have Git, you don't get the submodules. We should definitely provide better error message for such situations. Thanks for reporting this!
If you don't want to use git, then you can download dist tarballs from static.rust-lang.org(e.g., wget "https://static.rust-lang.org/dist/2023-08-24/rustc-1.72.0-src.tar.xz) which includes submodules out of the box(so you don't need to fetch them with git).
Activity
jmintb commentedon Aug 21, 2023
I think I am hitting the same issue, running git bisect.
Edit: nevermind I missread the issue.
gemesa commentedon Aug 29, 2023
i see that you downloaded the repo as a .zip, i suggest cloning it and checking out the submodules, then try again (i encountered a similar error message and checking out the submodules solved my issues):
onur-ozkan commentedon Sep 30, 2023
It seems like you are downloading the source as a zip file without using Git. During the bootstrapping, we fetch the submodules before invoking Cargo on those paths. However, in your case, since your source doesn't have Git, you don't get the submodules. We should definitely provide better error message for such situations. Thanks for reporting this!
If you haven't read, there is https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html?highlight=build#get-the-source-code.
If you don't want to use git, then you can download dist tarballs from static.rust-lang.org(e.g.,
wget "https://static.rust-lang.org/dist/2023-08-24/rustc-1.72.0-src.tar.xz) which includes submodules out of the box(so you don't need to fetch them with git).Rollup merge of rust-lang#116292 - onur-ozkan:warn-wrong-sources, r=c…
Unrolled build for rust-lang#116292