ESP-IDF Standard Toolchain fails to install correctly on 32-bit Linux OS (Raspberry Pi Bullseye or Bookworm)

softeky
Posts: 2
Joined: Fri Oct 20, 2023 3:22 am

ESP-IDF Standard Toolchain fails to install correctly on 32-bit Linux OS (Raspberry Pi Bullseye or Bookworm)

Postby softeky » Fri Oct 20, 2023 4:03 am

Full details (including reproducing error steps) are given in this writeup:

https://stackoverflow.com/questions/773 ... -error-too

I'm following the instructions given in:

https://docs.espressif.com/projects/esp ... setup.html

but I get 6 errors (quoted below) when sourcing ~/esp/esp-idf/export.sh into the current shell (as instructed). Searching the forums here give 5 similar issues ranging from 2019 to 2022. Most suggest installing:

Code: Select all

libusb-1.0-0 or libusb-1.0
Those are properly installed (as per linked instructions) but reinstalling make no difference to the errors. e.g.
WARNING: directory for tool xtensa-esp-elf-gdb version 12.1_20221002 is present, but tool was not found
ERROR: tool xtensa-esp-elf-gdb has no installed versions. Please run '/usr/bin/python3 /home/pi/esp/esp-idf/tools/idf_tools.py install' to install it.
Any help appreciated.
TIA

softeky
Posts: 2
Joined: Fri Oct 20, 2023 3:22 am

Re: ESP-IDF Standard Toolchain fails to install correctly on 32-bit Linux OS (Raspberry Pi Bullseye or Bookworm)

Postby softeky » Fri Oct 20, 2023 7:54 pm

Update:

Installing ESP-IDF Standard Toolchain on
  • RPi-4 64-bit Linux Bullseye **Succeeds
  • RPi-4 64-bit Linux Bookworm **Succeeds
  • RPi-4 32-bit Linux Bullseye **Fails
  • RPi-4 32-bit Linux Bookworm **Fails

Using these commands onto a pristine SD-card, written by "Raspberry Pi Image.app" (NOTE: "sudo apt update && sudo apt upgrade" required as the first command to install on 32-bit Linux Bookworm)
  1. sudo apt-get -y install git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
  2. mkdir -p ~/esp
  3. cd ~/esp
  4. git clone --recursive https://github.com/espressif/esp-idf.git
  5. cd ~/esp/esp-idf
  6. ./install.sh esp32,esp32s3
  7. . $HOME/esp/esp-idf/export.sh
Last command fails with 6 similar errors like this:
WARNING: directory for tool xtensa-esp-elf-gdb version 12.1_20221002 is present, but tool was not found
ERROR: tool xtensa-esp-elf-gdb has no installed versions. Please run '/usr/bin/python3 /home/pi/esp/esp-idf/tools/idf_tools.py install' to install it.

Looks like a problem with 32-bit vs 64-bit Linux installing/hosting the ESP-IDF Standard Toolchain. I'm trying to cross compile and then install 32-bit Linux on a ESP32S3 - which seems to require a 32-bit toolchain to properly compile Linux (64-bit toolchain compiler refuses to compile 32-bit Linux (varargs/printf %lu/%u issues plus unresolved function references in the latest C library)).

I need help getting 32-bit (Legacy) Bullseye to host the toolchain just so I can debug the compilation of 32-bit Linux itself.

Who is online

Users browsing this forum: No registered users and 71 guests