Page 1 of 1

ESP32 tools update broken

Posted: Mon Nov 26, 2018 6:01 pm
by peterglen
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

Re: ESP32 tools update broken

Posted: Mon Nov 26, 2018 6:07 pm
by peterglen
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!

Re: ESP32 tools update broken

Posted: Mon Nov 26, 2018 10:41 pm
by ESP_Angus
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.)