From ce390fcd75bbd856537996256ffab5607a5e4940 Mon Sep 17 00:00:00 2001 From: Jerome de Tychey Date: Fri, 8 Dec 2017 10:31:21 +0100 Subject: [PATCH] improve building from source (#7239) Lots of people are having trouble building from source and keep up to date. The main reason seems to be that cargo/rustup is hard to work with. The 'abort' panic strategy error is very frustrating and seems to be solved 100% of time with a clean. Adding those lines: When compiling a crate if you receive this error: ``` error: the crate is compiled with the panic strategy `abort` which is incompatible with this crate's strategy of `unwind` ``` Cleaning the repository will most likely solve the issue, try: ``` cargo clean ``` --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 770cbca44..5231447de 100644 --- a/README.md +++ b/README.md @@ -94,12 +94,19 @@ $ cargo build --release ``` This will produce an executable in the `./target/release` subdirectory. -Note: if cargo fails to parse manifest try: +Note1: if cargo fails to parse manifest try: ```bash $ ~/.cargo/bin/cargo build --release ``` - +Note2: When compiling a crate if you receive this error: +``` +error: the crate is compiled with the panic strategy `abort` which is incompatible with this crate's strategy of `unwind` +``` +Cleaning the repository will most likely solve the issue, try: +``` +cargo clean +``` This will always compile the latest nightly builds. If you want to build stable or beta, do a `git checkout stable` or `git checkout beta` first. ----