Skip to content

Error message not explicit enough on install  #56690

Closed
@mishaker

Description

@mishaker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions