-->
Page 1 of 1

Need help with /bin/sh: 2: xtensa-lx106-elf-gcc: not found.

PostPosted: Mon Jun 05, 2017 12:35 pm
by snowerest
Hello,
I'm am a very begginer and I have a problem compiling an example from ESP8266_NONOS_SDK-master (took it here: https://github.com/espressif/ESP8266_NONOS_SDK.)
I've been following steps described in ESP8266 SDK Getting Started Guide (took it here: https://espressif.com/en/support/download/documents?keys=&field_type_tid%5B%5D=14).
That means that I downloaded virtual box esp8266 image (ESP8266_lubuntu_20141021.ova) where all tools as I understood must be set up.
But while compiling the example I am getting:

Code: Select all/bin/sh: 2: xtensa-lx106-elf-gcc: not found
error.
echo $PATH returns: /opt/xtensa-lx106-elf/bin:/usr/local/sbin:/usr/local/bin:/us‌​r/sbin:/usr/bin:/sbi‌​n:/bin:/usr/games:/u‌​sr/local/games:/snap‌​/bin

Can someone tell me what am I missing and how to get SDK to 'see' xtensa-lx106-elf-gcc?

Thanks in advance!

Re: Need help with /bin/sh: 2: xtensa-lx106-elf-gcc: not fou

PostPosted: Thu Jun 08, 2017 4:02 pm
by snowerest
Xtensa crosstool-NG was missing. To install it I used this https://github.com/esp8266/esp8266-wiki/wiki/Toolchain#install-the-xtensa-crosstool-ng-as-local-user method. (Do not forget to chown $username /opt/espressif/ in order to avoid 'Permission denied' error while compilation. Also to upgrade OS (if this is chosen) and build crosstool-NG in /opt/espressif, enlarge VM disc size (https://stackoverflow.com/a/12456219/1990161), as it might run out of free space.)

Re: Need help with /bin/sh: 2: xtensa-lx106-elf-gcc: not fou

PostPosted: Fri Jun 09, 2017 7:34 am
by martinayotte
Add it to the PATH variable ...