rust:rust_on_esp_install

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
rust:rust_on_esp_install [2024/10/20 20:40] – [Cargo B(inary)Install のインストール] ともやんrust:rust_on_esp_install [2024/10/28 16:11] (現在) – [error: package `esp-hal-embassy v0.4.0 (path)` cannot be built because it requires rustc 1.79.0 or newer, while the currently active rustc version is 1.77.0-nightly エラーが発生する🤪] ともやん
行 1770: 行 1770:
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-1.6.5+1.10.8
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
行 2871: 行 2871:
  
 ==== トラブルシューティング ==== ==== トラブルシューティング ====
 +
 +=== error: package `esp-hal-embassy v0.4.0 (path)` cannot be built because it requires rustc 1.79.0 or newer, while the currently active rustc version is 1.77.0-nightly エラーが発生する🤪 ===
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269">cargo</font> <u style="text-decoration-style:solid">xtask</u> build-examples <u style="text-decoration-style:solid">esp-hal</u> esp32 embassy_hello_world
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +<font color="#26A269"><b>    Finished</b></font> `dev` profile [unoptimized + debuginfo] target(s) in 0.07s
 +<font color="#26A269"><b>     Running</b></font> `target/debug/xtask build-examples esp-hal esp32 embassy_hello_world`
 +<font color="#5E5C64">[</font>2024-10-28T06:04:51Z <font color="#A2734C">WARN </font> xtask<font color="#5E5C64">]</font> Package &apos;esp-hal&apos; specified, using &apos;examples&apos; instead
 +<font color="#5E5C64">[</font>2024-10-28T06:04:51Z <font color="#26A269">INFO </font> xtask<font color="#5E5C64">]</font> Building example &apos;/home/tomoyan/my_projects/_crates_src/esp-hal/examples/src/bin/embassy_hello_world.rs&apos; for &apos;esp32&apos;
 +<font color="#5E5C64">[</font>2024-10-28T06:04:51Z <font color="#26A269">INFO </font> xtask<font color="#5E5C64">]</font> Features: embassy,esp-hal-embassy/integrated-timers
 +<font color="#5E5C64">[</font>2024-10-28T06:04:51Z <font color="#26A269">INFO </font> xtask<font color="#5E5C64">]</font> Package: src/bin/embassy_hello_world.rs
 +<font color="#C01C28"><b>error</b></font><b>:</b> package `esp-hal-embassy v0.4.0 (/home/tomoyan/my_projects/_crates_src/esp-hal/esp-hal-embassy)` cannot be built because it requires rustc 1.79.0 or newer, while the currently active rustc version is 1.77.0-nightly
 +
 +Error: Failed to execute cargo subcommand
 +</pre></html></WRAP>
 +</WRAP>
 +
 +<WRAP color_term>
 +<WRAP color_mincode><code>
 +cannot be built because it requires rustc 1.79.0 or newer, while the currently active rustc version is 1.77.0-nightly
 +</code></WRAP>
 +<WRAP color_mincode><code>
 +現在アクティブな rustc バージョンは 1.77.0-nightly ですが、rustc 1.79.0 以降が必要なためビルドできません。
 +</code></WRAP>
 +</WRAP>
 +
 +Xtensa Rust toolchain を最新化してから実行し直す🤔\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269">espup</font> install
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +[info]: Installing the Espressif Rust ecosystem
 +[info]: Checking Rust installation
 +[info]: Installing RISC-V Rust targets (&apos;riscv32imc-unknown-none-elf&apos;, &apos;riscv32imac-unknown-none-elf&apos; and &apos;riscv32imafc-unknown-none-elf&apos;) for &apos;nightly&apos; toolchain
 +[info]: Installing GCC (xtensa-esp-elf)
 +[warn]: Previous installation of GCC exists in: &apos;/home/tomoyan/.rustup/toolchains/esp/xtensa-esp-elf/esp-13.2.0_20230928&apos;. Reusing this installation
 +[info]: Installing Xtensa LLVM
 +[info]: Downloading &apos;idf_tool_xtensa_elf_clang.libs.tar.xz&apos;
 +[info]: Uninstalling Xtensa Rust toolchain
 +[info]: Installing Xtensa Rust 1.82.0.1 toolchain
 +[info]: Downloading &apos;rust.tar.xz&apos;
 +[info]: Creating symlink between &apos;/home/tomoyan/.rustup/toolchains/esp/xtensa-esp32-elf-clang/esp-17.0.1_20240419/esp-clang/lib&apos; and &apos;/home/tomoyan/.espup/esp-clang&apos;
 +[info]: Installing &apos;rust&apos; component for Xtensa Rust toolchain
 +[info]: Downloading &apos;rust-src.tar.xz&apos;
 +[info]: Installing &apos;rust-src&apos; component for Xtensa Rust toolchain
 +[info]: Installation successfully completed!
 +
 + To get started, you need to set up some environment variables by running: &apos;. /home/tomoyan/export-esp.sh&apos;
 + This step must be done every time you open a new terminal.
 +     See other methods for setting the environment in https://esp-rs.github.io/book/installation/riscv-and-xtensa.html#3-set-up-the-environment-variables
 +</pre></html></WRAP>
 +</WRAP>
  
 === error: several matching instances of `target.'cfg(..)'.runner` in configurations エラーが発生する🤪 === === error: several matching instances of `target.'cfg(..)'.runner` in configurations エラーが発生する🤪 ===
  • rust/rust_on_esp_install.1729424405.txt.gz
  • 最終更新: 2024/10/20 20:40
  • by ともやん