両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
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 エラーが発生する🤪] ともやん |
---|
</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> |
| |
==== トラブルシューティング ==== | ==== トラブルシューティング ==== |
| |
| === 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 'esp-hal' specified, using 'examples' instead |
| <font color="#5E5C64">[</font>2024-10-28T06:04:51Z <font color="#26A269">INFO </font> xtask<font color="#5E5C64">]</font> Building example '/home/tomoyan/my_projects/_crates_src/esp-hal/examples/src/bin/embassy_hello_world.rs' for 'esp32' |
| <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 ('riscv32imc-unknown-none-elf', 'riscv32imac-unknown-none-elf' and 'riscv32imafc-unknown-none-elf') for 'nightly' toolchain |
| [info]: Installing GCC (xtensa-esp-elf) |
| [warn]: Previous installation of GCC exists in: '/home/tomoyan/.rustup/toolchains/esp/xtensa-esp-elf/esp-13.2.0_20230928'. Reusing this installation |
| [info]: Installing Xtensa LLVM |
| [info]: Downloading 'idf_tool_xtensa_elf_clang.libs.tar.xz' |
| [info]: Uninstalling Xtensa Rust toolchain |
| [info]: Installing Xtensa Rust 1.82.0.1 toolchain |
| [info]: Downloading 'rust.tar.xz' |
| [info]: Creating symlink between '/home/tomoyan/.rustup/toolchains/esp/xtensa-esp32-elf-clang/esp-17.0.1_20240419/esp-clang/lib' and '/home/tomoyan/.espup/esp-clang' |
| [info]: Installing 'rust' component for Xtensa Rust toolchain |
| [info]: Downloading 'rust-src.tar.xz' |
| [info]: Installing 'rust-src' component for Xtensa Rust toolchain |
| [info]: Installation successfully completed! |
| |
| To get started, you need to set up some environment variables by running: '. /home/tomoyan/export-esp.sh' |
| 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 エラーが発生する🤪 === |