Esp-idf: Update SDK fail xtensa-esp32s2-elf has no installed versions (IDFGH-2108)

Created on 31 Oct 2019  路  30Comments  路  Source: espressif/esp-idf

Adding ESP-IDF tools to PATH...
WARNING: tool xtensa-esp32s2-elf version esp32s2-dev-4-g3a626e9-8.2.0 is installed, but has reported version esp32s2-dev-4-g3a626e93-8.2.0
ERROR: tool xtensa-esp32s2-elf has no installed versions. Please run 'python.exe idf_tools.py install' to install it.

its cyclical, even running export.bat or install.bat keep eternal as this, need to update install and setup files to fix it, but didnt work so far.

Most helpful comment

The following patch should solve the issue until we push the fix to the master branch.

win.zip

I'm sorry for the inconvenience.

EDIT:
The patch can be applied as follows:

cd $IDF_PATH
unzip win.zip
git am < 0012-tools-Fix-toolchain-installer-for-Windows.patch

All 30 comments

The following patch should solve the issue until we push the fix to the master branch.

win.zip

I'm sorry for the inconvenience.

EDIT:
The patch can be applied as follows:

cd $IDF_PATH
unzip win.zip
git am < 0012-tools-Fix-toolchain-installer-for-Windows.patch

Just for future reference, commit bdb08de87555bd070905d416840d46405ead1ee0 will solve this issue.

Can any confirmed that the patch file solve this issue? Thanks alot

The error was corrected. Everything worked. But ... It is difficult to understand what and where to change. Maybe it was easier to lay out the corrected tools.json file?

i did git apply --stat 0012-tools-Fix-toolchain-installer-for-Windows.patch, and then run install.bat and export.bat, still I get this error:
ERROR: tool xtensa-esp32s2-elf has no installed versions.

you must replace the file /esp-idf/tools/tools.json
tools.zip

Perfect, worked.

you must replace the file /esp-idf/tools/tools.json
tools.zip

perfect, worked

I updated my original comment with the command for applying the patch.

Wow thanks. It works now...

Hi I have the sme problem and this patch doesnt work on linux

Adding ESP-IDF tools to PATH...
WARNING: tool xtensa-esp32s2-elf version esp32s2-dev-4-g3a626e93-8.2.0 is installed, but has reported version esp32s2-dev-4-g3a626e9-8.2.0
ERROR: tool xtensa-esp32s2-elf has no installed versions. Please run '/mnt/c/Users/sownet/Desktop/esp-idf/install.sh' to install it

@HemanthSingh This patch is for Windows and Mac. What is your architecture (amd64/i686)? Please give the full log of the install script.

Macos/windows issue should be fixed by https://github.com/espressif/esp-idf/commit/bdb08de87555bd070905d416840d46405ead1ee0. Please open a new issue if you are still seeing the error.

Edit: Sorry, the master branch hasn't been synced yet. Keeping open.

@HemanthSingh This patch is for Windows and Mac. What is your architecture (amd64/i686)? Please give the full log of the install script.

Hi, Sorry this is full install log:
Installing ESP-IDF tools
Installing tools: xtensa-esp32-elf, xtensa-esp32s2-elf, esp32ulp-elf, openocd-esp32
Skipping [email protected] (already installed)
WARNING: tool xtensa-esp32s2-elf version esp32s2-dev-4-g3a626e93-8.2.0 is installed, but has reported version esp32s2-dev-4-g3a626e9-8.2.0
Installing [email protected]
file xtensa-esp32s2-elf-gcc8_2_0-esp32s2-dev-4-g3a626e-linux-amd64.tar.gz is already downloaded
WARNING: destination path already exists, removing
Extracting /home/sownet/.espressif/dist/xtensa-esp32s2-elf-gcc8_2_0-esp32s2-dev-4-g3a626e-linux-amd64.tar.gz to /home/sownet/.espressif/tools/xtensa-esp32s2-elf/esp32s2-dev-4-g3a626e93-8.2.0
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Installing Python environment and packages
Creating a new Python environment in /home/sownet/.espressif/python_env/idf4.1_py2.7_env
Installing virtualenv
Collecting virtualenv .. ..

@HemanthSingh This patch is for Windows and Mac. What is your architecture (amd64/i686)? Please give the full log of the install script.

It is x86_64

@HemanthSingh This patch is for Windows and Mac. What is your architecture (amd64/i686)? Please give the full log of the install script.

It is x86_64

Me too on Win10

@HemanthSingh This patch is for Windows and Mac. What is your architecture (amd64/i686)? Please give the full log of the install script.

It is x86_64

Me too on Win10

you must replace the file /esp-idf/tools/tools.json
tools.zip

@HemanthSingh This patch is for Windows and Mac. What is your architecture (amd64/i686)? Please give the full log of the install script.

It is x86_64

Me too on Win10

you must replace the file /esp-idf/tools/tools.json
tools.zip

Worked! Thanks!

Any workarounds or updates for Linux?

For Linux users: Have you using the toolchain for esp32s2beta from the preview branch before it was merged into master? Otherwise I cannot explain that you experience these issues.

Please try to remove the installer from the .espressif/dist directory, so the installer would download it again. Another thing you can try is to remove the installed tool from .espressif/tools directory as well and after that run the installer again.

rm ~/.espressif/dist/xtensa-esp32s2-elf*
rm -r ~/.espressif/tools/xtensa-esp32s2-elf/
$IDF_PATH/install.sh

The fix (bdb08de87555bd070905d416840d46405ead1ee0) is now available in the master branch.

Adding ESP-IDF tools to PATH...
WARNING: tool xtensa-esp32s2-elf version esp32s2-dev-4-g3a626e93-8.2.0 is installed, but has reported version esp32s2-dev-4-g3a626e9-8.2.0
ERROR: tool xtensa-esp32s2-elf has no installed versions. Please run '/mnt/c/Users/sownet/Desktop/esp-idf/install.sh' to install it

I'm having the same issue on linux-arm64 (note that I added arm64 references in tools.json to download the armel version which works regardless). The installation completes successfully, but I find this error when sourcing export.sh

@Maldus512 Note that there are two different blocks: one for esp32s2-dev-4-g3a626e9-8.2.0 and one for esp32s2-dev-4-g3a626e93-8.2.0.

https://github.com/espressif/esp-idf/blob/bdb08de87555bd070905d416840d46405ead1ee0/tools/tools.json#L79-L97

https://github.com/espressif/esp-idf/blob/bdb08de87555bd070905d416840d46405ead1ee0/tools/tools.json#L98-L115

Also note that now the toolchain has been updated to esp-2019r2-8.2.0 where should be no problem with the versions.

Also note that now the toolchain has been updated to esp-2019r2-8.2.0 where should be no problem with the versions.

True, I didn't notice that. With the latest master now there is no more version discrepancy, now exporting the environment fails complaining that openocd-esp32 is not installed

$ . export.sh
Adding ESP-IDF tools to PATH...
WARNING: directory for tool openocd-esp32 version v0.10.0-esp32-20190708 is present, but tool was not found
ERROR: tool openocd-esp32 has no installed versions. Please run '/home/maldus/Source/esp-idf/install.sh' to install it

openocd-esp32 is indeed installed at ~/.espressif/tools/openocd-esp32/

@Maldus512 But can it be run?

~/.espressif/tools/openocd-esp32/v0.10.0-esp32-20190708/openocd-esp32/bin/openocd --version

If it doesn't, you may need to install libusb (https://github.com/espressif/esp-idf/issues/4095)

I realized only now it would not run because it relies on /lib/ld-linux.so.3 which was missing from my system (I had /lib/ld-linux-armhf.so.3). After creating the symlink it works. Many thanks for the assistance!

Hi experts, same behavioral here when trying to install the SDK into debian:10.3-slim (container).

apt-get update && apt-get install git wget libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-click python-cryptography python-future python-pyparsing python-pyelftools cmake ninja-build ccache libffi-dev libssl-dev

mkdir /root/esp
cd /root/esp

git clone --recursive https://github.com/espressif/esp-idf.git

cd esp-idf

git submodule update --init --recursive

./install.sh

. ./export.sh

# ERROR

Setting IDF_PATH to '/root/esp/esp-idf'
Adding ESP-IDF tools to PATH...
WARNING: tool openocd-esp32 version v0.10.0-esp32-20200420 is installed, but the tool failed to run
ERROR: tool openocd-esp32 has no installed versions. Please run '/root/esp/esp-idf/install.sh' to install it.

Any light on this please ? thanks a lot!!

Can you please try installing libusb using your OS package manager?

Can you please try installing libusb using your OS package manager?

Worked! thanks a lot @igrr

Ubuntu 18.04
It still reproduce in latest esp-adf/esp-idf

I download openocd-esp32 in folder tools/

wget https://github.com/espressif/openocd-esp32/releases/download/v0.10.0-esp32-20190313/openocd-esp32-linux64-0.10.0-esp32-20190313.tar.gz
tar -xvzf openocd-esp32-linux64-0.10.0-esp32-20190313.tar.gz

But for run command: tools/openocd-esp32/v0.10.0-esp32-20190708/openocd-esp32/bin/openocd --version

There was error: error while loading shared libraries: libusb-1.0.so.0: cannot open shared object file: No such file or directory

Its help me:
apt install libusb-1.0-0

Also it connected with that issue:
https://github.com/espressif/esp-idf/issues/3740

Was this page helpful?
0 / 5 - 0 ratings