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)
- 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
- mkdir -p ~/esp
- cd ~/esp
- git clone --recursive https://github.com/espressif/esp-idf.git
- cd ~/esp/esp-idf
- ./install.sh esp32,esp32s3
- . $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.