boostrap.sh always force install xargo
-
I agree that I have searched opened and closed issues to prevent duplicates.
Description
trying to build redox i ended up with the following error
xargo rustc --lib --target x86_64-unknown-none --release -- -C soft-float -C debuginfo=2 --emit link=../build/libkernel.a
error: `rust-src` component not found. Run `rustup component add rust-src`.
note: run with `RUST_BACKTRACE=1` for a backtrace
make: *** [mk/kernel.mk:2: build/libkernel.a] Error 1
turns out my xargo installation was just to old. Looking at the bootstrap.sh turns out that xargo is only installed if its not already installed on the system, but this could mean there is a version installed that is just to old.
Environment info
Linux 4.20.1-arch1-1-ARCH
- Redox OS Release: current git version
- Operating system: arch linux
-
uname -a
:Linux archdesk 4.20.1-arch1-1-ARCH #1 SMP PREEMPT Wed Jan 9 20:25:43 UTC 2019 x86_64 GNU/Linux
-
rustc -V
:rustc 1.33.0-nightly (e2f221c75 2019-01-15)
-
git rev-parse HEAD
:d294563cf276c44913e544b74b6227ff3ad5e9eb
Steps to reproduce
install an old version of xargo and make all
-
Proposed solution:
should we always
cargo install -f xargo
?