espup icon indicating copy to clipboard operation
espup copied to clipboard

Missing core from xtensa-esp32-none-elf

Open IsCoffeeTho opened this issue 1 year ago • 5 comments

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:

  1. Remove previous installation of espup (if applicable)
  2. Remove ~/.rustup/toolchains/esp (if applicable)
  3. $ cargo install espup <- . ~/export-esp.sh implied
  4. Navigate to a clean embedded project
  5. $ cargo +esp build

Expected behavior

Clean build of project

Screenshots

error[E0463]: can't find crate for core

error: toolchain 'esp' does not support componenents

Environment

  • OS: Arch Linux x86_64 (Linux 6.10.5-arch1-1)
  • espup version: 0.12.2

IsCoffeeTho avatar Aug 28 '24 14:08 IsCoffeeTho

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

SergioGasquez avatar Aug 30 '24 08:08 SergioGasquez

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

IsCoffeeTho avatar Aug 30 '24 20:08 IsCoffeeTho

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.

SergioGasquez avatar Sep 02 '24 08:09 SergioGasquez

$ 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.

kernelPanic0x avatar Dec 23 '24 09:12 kernelPanic0x

I can compile project on windows but i can't list targets.

Try using rustc +esp --print target-list

SergioGasquez avatar Jan 09 '25 09:01 SergioGasquez

Closing due to inactivity, if the issue persists feel free to reopen the issue!

SergioGasquez avatar Apr 30 '25 14:04 SergioGasquez