Missing core from xtensa-esp32-none-elf
Bug description
Upon a fresh install from cargo (cargo install espup): xtensa-esp32-none-elf has no core crate
As well as attempting to remedy the 'may not be installed' message: rust errors saying toolchain 'esp' does not support components
To Reproduce
Steps to reproduce the behavior:
- Remove previous installation of espup (if applicable)
- Remove
~/.rustup/toolchains/esp(if applicable) $ cargo install espup<-. ~/export-esp.shimplied- Navigate to a clean embedded project
$ cargo +esp build
Expected behavior
Clean build of project
Screenshots
Environment
- OS: Arch Linux x86_64 (Linux 6.10.5-arch1-1)
- espup version: 0.12.2
Hi! I tried reproducing your issue but I was not able to. I followed your reproduction steps, but included espup install and . /home/esp/export-esp.sh after step 3. Here is how I did the reproduction:
cargo generate esp-template
✔ 🤷 Which MCU to target? · esp32s2
✔ 🤷 Configure advanced template options? · true
✔ 🤷 Enable allocations via the esp-alloc crate? · false
✔ 🤷 Enable WiFi/Bluetooth/ESP-NOW via the esp-wifi crate? · false
? 🤷 Configure project to use Dev Containers (VS Code and GitHub Codespaces✔ 🤷 Configure project to use Dev Containers (VS Code and GitHub Codespaces)? · true
? 🤷 Configure project to support Wokwi simulation with Wokwi VS Code exten✔ 🤷 Configure project to support Wokwi simulation with Wokwi VS Code extension? · false
✔ 🤷 Add CI files for GitHub Action? · false
✔ 🤷 The template is requesting to run the following command. Do you agree?
cargo fmt · no
Inside the devcontainer of the project:
espup uninstall
rm -rf /home/esp/.rustup/toolchains/esp
espup install
. /home/esp/export-esp.sh
cargo build
The previous comment has told me nothing about continuing,
- Did this reproduction consider 'Operating System' and 'Kernel'?
- What are some more steps to continue with resolving this issue?
- Is there more information needed, or am i just stuck in the mud?
Any information and/or questions more than "it works on my machine" would be appreciated
Did this reproduction consider 'Operating System' and 'Kernel'?
In the dev container uses bookworm-slim
What are some more steps to continue with resolving this issue?
Have you tried doing espup install and sourcing the export-esp.sh file? Your reproduction steps do not include this steps.
Is there more information needed, or am i just stuck in the mud?
I think you provided all the required information, but there is something wrong in the steps. FYI, I use 6.10.6-arch1-1 and espup 0.12.2 on my local machine and no issues encountered.
$ rustup target list
error: toolchain 'esp' does not support components
OS: Windows 10
espup version: 0.13.0
rustup 1.27.1 (54dd3d00f 2024-04-24)
info: The currently active rustc version is rustc 1.82.0-nightly (a87c0551c 2024-10-30) (1.82.0.3)
I had the same issue on nixos and thought i should try it on windows, but there it is too... I can compile project on windows but i can't list targets.
I can compile project on windows but i can't list targets.
Try using rustc +esp --print target-list
Closing due to inactivity, if the issue persists feel free to reopen the issue!