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

Error: Could not find the package with 'platformio/toolchain-xtensa32 @ ~2.80400.0' requirements for your system 'linux_aarch64' #63

Closed
cracrama opened this issue Oct 22, 2021 · 4 comments

Comments

@cracrama
Copy link

Hiya
After update to 2021.10.0 (and later) I'm getting error.

Obviously old config returned plenty of errors after update of ESPhome
So I have removed old code and copied new config from your Github and on the begining of compiling I'm getting below:

INFO Reading configuration /config/esphome/bedside-lamp.yaml...
INFO Updating https://github.com/mmakaay/esphome-xiaomi_bslamp2@dev
INFO Generating C++ source...
INFO Compiling app...
Processing bedside-lamp (board: esp32doit-devkit-v1; framework: espidf; platform: espressif32 @ 3.3.2)
Tool Manager: Installing platformio/toolchain-xtensa32 @ ~2.80400.0
Error: Could not find the package with 'platformio/toolchain-xtensa32 @ ~2.80400.0' requirements for your system 'linux_aarch64'

Is this something with ESPhome itself or can I correct it somehow?

I'm using "old" config file where I have just pasted new config.
Please advise.
Best regards.

@mmakaay
Copy link
Owner

mmakaay commented Oct 23, 2021

This happens when using an ESP-IDF build (which is what the current configuration for the Bedside Lamp 2 is using) on a Raspberry Pi.

It is not a problem with your config, but it's related to the named package not being available for the CPU type that the Raspberry Pi uses. Compiling on intel/amd Linux does work. This would happen for all projects that use the new ESP-IDF framework support for ESP32 chips, so I would indeed call it an ESPHome issue yes.

I have no work-around for this at this moment, other than compiling on a different architecture. I want to spin up ESPHome on a Raspberry Pi this weekend though, to check if I can find a solution for this.

@mmakaay
Copy link
Owner

mmakaay commented Oct 23, 2021

An idea that I had for working around this, is using an older platform package for the xtensa32 tool chain. I haven't tested this out on a Raspberry yet, but this is what the syntax would look like. No promises, but you can try if this works for your setup.

Add platform_options to your esphome section. The relevant items:

esphome:
  platformio_options:
    platform_packages:
      - toolchain-xtensa32@2.80200

##Update:

I tried this on a Raspberry Pi, and while the toolchain gets installed with this, the build fails quite early, complaining that the as tool cannot be executed. Not a healthy build environment :-/ Back to the drawing board

image

@cracrama
Copy link
Author

Many thanks for clear explanation.
Really appreciate your work and great communication. 👍
I will highlight issue on ESPhome board.
Best regards.

@tabacha
Copy link
Contributor

tabacha commented Nov 13, 2021

see: esphome/issues#2607

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants