ESP32 tools update broken

peterglen
Posts: 27
Joined: Thu Mar 22, 2018 5:55 pm

ESP32 tools update broken

Postby peterglen » Mon Nov 26, 2018 6:01 pm

After update, the following is dispyad when compiling 'hello world'

fatal: 'git status --porcelain=2' failed in submodule components/asio/asio
Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc

peterglen
Posts: 27
Joined: Thu Mar 22, 2018 5:55 pm

Re: ESP32 tools update broken

Postby peterglen » Mon Nov 26, 2018 6:07 pm

The path was broken:

\/opt/xtensa-esp32-elf/bin:/mingw32/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/opt/xtensa-esp32-elf/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

Fix:

Edit /etc/profile.d/esp32_toolchain.sh, remove backslash in front of first forward slash

Restart shell. WORKS!

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: ESP32 tools update broken

Postby ESP_Angus » Mon Nov 26, 2018 10:41 pm

Hi peter,

Thanks for reporting this. The order of paths was changed recently and the backlash escape character wasn't moved correctly in windows_install_prerequisites.sh. Have contributed a fix which should be available shortly.

Actually, after the fix the contents of /etc/profile.d/esp32_toolchain.sh will be similar to previous versions, which was:

Code: Select all

# This file was created by ESP-IDF windows_install_prerequisites.sh
# and will be overwritten if that script is run again.
export PATH="/opt/xtensa-esp32-elf/bin:$PATH"
(The idea being that the parent $PATH is expanded each time the profile is run, so changes in the Windows PATH will become visible in MSYS2.)

Who is online

Users browsing this forum: Gaston1980 and 136 guests