2

I'm am a very beginner at this area and I have a problem compiling an example from ESP8266_NONOS_SDK-master. I've been following steps described in ESP8266 SDK Getting Started Guide from the documentation. 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:

/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

and xtensa-lx106-elf-gcc -v returns Configured with ...gcc version 4.8.2 (crosstool-NG 1.20.0)

The compilation happens under esp8266/Share folder.

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

  • 1
    It seems that you are missing Xtensa crosstool-NG Please try this method to install it : github.com/esp8266/esp8266-wiki/wiki/… – Ali Razmdideh Jun 6 '17 at 21:43
  • Indeed, I had to install Xtensa crosstool-NG at /opt/espressif and chown $username /opt/espressif/ in order to compile it. Also in order to compile SDK I had to move SDK folder out of Share folder as it has root owner and while compilation throws Permission denied. – snowerest Jun 8 '17 at 20:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.