Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing core from xtensa-esp32-none-elf #444

Open
IsCoffeeTho opened this issue Aug 28, 2024 · 3 comments
Open

Missing core from xtensa-esp32-none-elf #444

IsCoffeeTho opened this issue Aug 28, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@IsCoffeeTho
Copy link

IsCoffeeTho commented Aug 28, 2024

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 IsCoffeeTho added the bug Something isn't working label Aug 28, 2024
@SergioGasquez
Copy link
Member

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

@IsCoffeeTho
Copy link
Author

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

@SergioGasquez
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants