[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250903095315.15057-2-yangtiezhu@loongson.cn>
Date: Wed, 3 Sep 2025 17:53:13 +0800
From: Tiezhu Yang <yangtiezhu@...ngson.cn>
To: Huacai Chen <chenhuacai@...nel.org>,
Miguel Ojeda <ojeda@...nel.org>
Cc: WANG Rui <wangrui@...ngson.cn>,
rust-for-linux@...r.kernel.org,
loongarch@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: [RFC PATCH 1/3] docs: rust: quick-start: Add another way to install
When compiling with LLVM and CONFIG_RUST is set, there is build error on
LoongArch:
--> rust/kernel/lib.rs:331:13
|
331 | loc.file_with_nul()
| ^^^^^^^^^^^^^ method not found in `&'a Location<'a>`
error: aborting due to 1 previous error
It seems that the latest version of rustc is not compatible, in order to
install the workable rustc version for LoongArch, there is another simple
and easy way, add it to the Quick Start guide.
Suggested-by: WANG Rui <wangrui@...ngson.cn>
Signed-off-by: Tiezhu Yang <yangtiezhu@...ngson.cn>
---
Documentation/rust/quick-start.rst | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/Documentation/rust/quick-start.rst b/Documentation/rust/quick-start.rst
index 155f7107329a..fdd9f54f4fe4 100644
--- a/Documentation/rust/quick-start.rst
+++ b/Documentation/rust/quick-start.rst
@@ -21,6 +21,20 @@ Alternatively, the next two "Requirements" sections explain each component and
how to install them through ``rustup``, the standalone installers from Rust
and/or building them.
+Additionally, if you want to install a specified version, you can remove the
+exist packages from your Linux distribution first, e.g. for Fedora Linux::
+
+ dnf remove rust
+
+and run the following in your terminal::
+
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
+
+then follow the onscreen instructions to install from the official release
+channels, enabling you to easily switch between stable, beta, and nightly
+compilers and keep them updated. Please see https://rustup.rs/ for more
+information.
+
The rest of the document explains other aspects on how to get started.
--
2.42.0
Powered by blists - more mailing lists