Skip to content
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 message not explicit enough on install #56690

Closed
mishaker opened this issue Dec 10, 2018 · 3 comments
Closed

Error message not explicit enough on install #56690

mishaker opened this issue Dec 10, 2018 · 3 comments
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@mishaker
Copy link
Contributor

Summary

New to Rust, wanted to try and toy with it on my new project.
I tried to follow install guide but then I have an implicit error:

error: couldn't read src/rustc/compiler_builtins_shim/../../libcompiler_builtins/build.rs: No such file or directory (os error 2)ld.rs)

IMO the error message can be enhanced.
I searched in issues I didn't find any on it. my apologies if it is duplicate.

Followed the doc for installation:

 git clone https://github.com/rust-lang/rust.git
$ cd rust
$ git submodule update --init --recursive --progress
$ ./x.py build && sudo ./x.py install

I have this error:

Compiling cc v1.0.25
   Compiling core v0.0.0 (/Users/mishaker/Projects/rust/src/libcore)
   Compiling build_helper v0.1.0 (/Users/mishaker/Projects/rust/src/build_helper)
   Compiling unwind v0.0.0 (/Users/mishaker/Projects/rust/src/libunwind)
   Compiling compiler_builtins v0.0.0 (/Users/mishaker/Projects/rust/src/rustc/compiler_builtins_shim)
   Compiling cmake v0.1.33
   Compiling std v0.0.0 (/Users/mishaker/Projects/rust/src/libstd)
error: couldn't read src/rustc/compiler_builtins_shim/../../libcompiler_builtins/build.rs: No such file or 

directory (os error 2)ld.rs)

error: aborting due to previous error

error: Could not compile `compiler_builtins`.
warning: build failed, waiting for other jobs to finish...
warning: unnecessary `unsafe` block                                     ] 6/23: core

Then after a bunch of warning: unnecessary `unsafe` block :

error: build failed
command did not execute successfully: "/Users/mishaker/Projects/rust/build/x86_64-apple-darwin/stage0/bin/cargo" "build" "--target" "x86_64-apple-darwin" "-j" "4" "--release" "--features" "panic-unwind backtrace" "--manifest-path" "/Users/mishaker/Projects/rust/src/libstd/Cargo.toml" "--message-format" "json"
expected success, got: exit code: 101
failed to run: /Users/mishaker/Projects/rust/build/bootstrap/debug/bootstrap build
Build completed unsuccessfully in 0:07:05

OS

Mac OS 10.12.6

@jonas-schievink
Copy link
Contributor

You are trying to build the compiler from source, you don't need to do that. Follow the instructions in the Rust book instead.

@mishaker
Copy link
Contributor Author

Ok then the link is broken if I am not mistaken. #56691 solves it.

@estebank estebank added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Dec 10, 2018
pietroalbini added a commit to pietroalbini/rust that referenced this issue Dec 11, 2018
…k, r=jonas-schievink

fix install broken link

solves rust-lang#56690
kennytm added a commit to kennytm/rust that referenced this issue Dec 12, 2018
…k, r=jonas-schievink

fix install broken link

solves rust-lang#56690
pietroalbini added a commit to pietroalbini/rust that referenced this issue Dec 12, 2018
…k, r=jonas-schievink

fix install broken link

solves rust-lang#56690
pietroalbini added a commit to pietroalbini/rust that referenced this issue Dec 13, 2018
…k, r=jonas-schievink

fix install broken link

solves rust-lang#56690
kennytm added a commit to kennytm/rust that referenced this issue Dec 13, 2018
…k, r=jonas-schievink

fix install broken link

solves rust-lang#56690
kennytm added a commit to kennytm/rust that referenced this issue Dec 14, 2018
…k, r=jonas-schievink

fix install broken link

solves rust-lang#56690
kennytm added a commit to kennytm/rust that referenced this issue Dec 14, 2018
…k, r=jonas-schievink

fix install broken link

solves rust-lang#56690
pietroalbini added a commit to pietroalbini/rust that referenced this issue Dec 14, 2018
…k, r=jonas-schievink

fix install broken link

solves rust-lang#56690
pietroalbini added a commit to pietroalbini/rust that referenced this issue Dec 15, 2018
…k, r=jonas-schievink

fix install broken link

solves rust-lang#56690
@Mark-Simulacrum
Copy link
Member

Closing as the underlying problem has been fixed (broken install link) and this specific case is likely no longer a direct issue. If we can get concrete reproduction instructions then we can possibly reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

No branches or pull requests

4 participants