-->
Page 1 of 3

Error calling xtensa-lx106-nm, do you have Xtensa toolchain?

PostPosted: Wed Apr 15, 2015 5:18 am
by sean_intez
Hey guys

I have faced this error while compiling in last few days. it used to be fine. I do not know what I have done so it is now giving me this error. I have xtensa-lx106-nm in bin folder along with other tools!
I have tried to re-install the sdk and everything from scratch but it still gives this error while compiling esphttpd. it can successfully compile other projects such blinky etc.

any help would be much appreciated.

Re: Error calling xtensa-lx106-nm, do you have Xtensa toolch

PostPosted: Wed Apr 15, 2015 5:38 am
by Sprite_tm
Check the readme of esphttpd: it gets a fair amount of locations etc from environment variables. You can point those at your toolchain and it should work.

Re: Error calling xtensa-lx106-nm, do you have Xtensa toolch

PostPosted: Wed Apr 15, 2015 6:16 am
by sean_intez
I have done that. this is how mine look like


# Base directory for the compiler. Needs a / at the end; if not set it'll use the tools that are in
# the PATH.
XTENSA_TOOLS_ROOT ?= /opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin/

# base directory of the ESP8266 SDK package, absolute
SDK_BASE ?= /opt/Espressif/ESP8266_SDK

#Esptool.py path and port
ESPTOOL ?= /opt/Espressif/esptool-py/esptool.py
ESPPORT ?= /dev/ttyUSB0
#ESPDELAY indicates seconds to wait between flashing the two binary images
ESPDELAY ?= 3
ESPBAUD ?= 460800

Re: Error calling xtensa-lx106-nm, do you have Xtensa toolch

PostPosted: Wed Apr 15, 2015 7:13 am
by Sprite_tm
sean_intez wrote:I have done that. this is how mine look like
# Base directory for the compiler. Needs a / at the end; if not set it'll use the tools that are in
# the PATH.
XTENSA_TOOLS_ROOT ?= /opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin/
[...]


Is this the Makefile? If not (if it's a bit of bash you source in your session) you may want to change the lines that now are like A?=b into export A=b -like lines. Also, are your binaries really under /opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin/? For example, does /opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin/xtensa-lx106-nm exist?