-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Build and install error #95608
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
Can you say more about how you obtained and extracted the rust source? If you downloaded and extracted from https://static.rust-lang.org/dist/rustc-1.59.0-src.tar.gz, the |
I downloaded the source from here: https://github.com/rust-lang/rust/releases/tag/1.59.0 |
Ah, the tagged GitHub releases shouldn't be used. They do not include the git submodules. The link above is the one that should be used. Unfortunately we don't have the ability to disable GitHub releases, but we can probably add an error message to x.py if it can detect this scenario. |
I did ./x.py build && ./x.py install and got $ ./x.py build && ./x.py install build script failed, must exit now', C:\Users\Dragon boy.cargo\registry\src\gb.xjqchip.workers.dev-1ecc6299db9ec823\cmake-0.1.44\src\lib.rs:885:5 |
…lacrum Check for git submodules in non-git source tree. People occasionally download the source from https://github.com/rust-lang/rust/releases, but those source distributions will not work because they are missing the submodules. They will get a confusing `failed to load manifest for workspace member` error. Unfortunately AFAIK there is no way to disable the GitHub source links. This change tries to detect this scenario and provide an error message that guides them toward a solution. Closes rust-lang#95608
I run cp config.toml.example config.toml ans then ./x.py build && ./x.py install and I get:
$ ./x.py build && ./x.py install
downloading https://static.rust-lang.org/dist/2022-01-13/rust-std-1.58.0-x86_64-pc-windows-gnu.tar.xz
extracting G:\rust-1.59.0\rust-1.59.0\build\cache\2022-01-13\rust-std-1.58.0-x86_64-pc-windows-gnu.tar.xz
downloading https://static.rust-lang.org/dist/2022-01-13/rustc-1.58.0-x86_64-pc-windows-gnu.tar.xz
extracting G:\rust-1.59.0\rust-1.59.0\build\cache\2022-01-13\rustc-1.58.0-x86_64-pc-windows-gnu.tar.xz
downloading https://static.rust-lang.org/dist/2022-01-13/cargo-1.58.0-x86_64-pc-windows-gnu.tar.xz
extracting G:\rust-1.59.0\rust-1.59.0\build\cache\2022-01-13\cargo-1.58.0-x86_64-pc-windows-gnu.tar.xz
Building rustbuild
error: failed to load manifest for workspace member
G:\rust-1.59.0\rust-1.59.0\src\tools\rust-installer
Caused by:
failed to read
G:\rust-1.59.0\rust-1.59.0\src\tools\rust-installer\Cargo.toml
Caused by:
The system cannot find the file specified. (os error 2)
failed to run: G:\rust-1.59.0\rust-1.59.0\build\x86_64-pc-windows-gnu\stage0\bin\cargo.exe build --manifest-path G:\rust-1.59.0\rust-1.59.0\src/bootstrap/Cargo.toml
Build completed unsuccessfully in 0:08:36
The text was updated successfully, but these errors were encountered: