You can chat about native SDK questions and issues here.

User avatar
By IMAN4K
#72266 Hi all.
While I've built the tool chain (esp-open-sdk 2.0.0) i'm having trouble building the mesh demo:
Code: Select allstart...

fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
make -C demo clean;
make[1]: Entering directory '/home/iman4k/ESP8266_MESH_DEMO-master/mesh_demo/demo'
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
rm -f -r .output/eagle/debug
make[1]: Leaving directory '/home/iman4k/ESP8266_MESH_DEMO-master/mesh_demo/demo'
rm -f -r .output/eagle/debug
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
make[1]: Entering directory '/home/iman4k/ESP8266_MESH_DEMO-master/mesh_demo/demo'
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle devicefind.c
/bin/sh: 2: xtensa-lx106-elf-gcc: not found
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_demo.c
/bin/sh: 2: xtensa-lx106-elf-gcc: not found
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_bin.c
/bin/sh: 2: xtensa-lx106-elf-gcc: not found
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_mqtt.c
/bin/sh: 2: xtensa-lx106-elf-gcc: not found
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_http.c
/bin/sh: 2: xtensa-lx106-elf-gcc: not found
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_none.c
/bin/sh: 2: xtensa-lx106-elf-gcc: not found
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_parser.c
/bin/sh: 2: xtensa-lx106-elf-gcc: not found
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle esp_touch.c
/bin/sh: 2: xtensa-lx106-elf-gcc: not found
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_json.c
/bin/sh: 2: xtensa-lx106-elf-gcc: not found
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP_MESH_SUPPORT -I include -I ./ -I ../include -I ../../include -I ../../include/eagle mesh_device.c
/bin/sh: 2: xtensa-lx106-elf-gcc: not found
xtensa-lx106-elf-gcc -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections  -DICACHE_FLASH -DESP_MESH_SUPPORT   -I include -I ./ -I ../include -I ../../include -I ../../include/eagle  -o .output/eagle/debug/obj/mesh_device.o -c mesh_device.c
make[1]: xtensa-lx106-elf-gcc: Command not found
../../Makefile:323: recipe for target '.output/eagle/debug/obj/mesh_device.o' failed
make[1]: *** [.output/eagle/debug/obj/mesh_device.o] Error 127
make[1]: Leaving directory '/home/iman4k/ESP8266_MESH_DEMO-master/mesh_demo/demo'
../Makefile:309: recipe for target '.subdirs' failed
make: *** [.subdirs] Error 2


However i have xtensa-lx106-elf-gcc right in my path:
Code: Select alliman4k@VAIO:~/ESP8266_MESH_DEMO-master/mesh_demo$ xtensa-lx106-elf-gcc -v
Using built-in specs.
COLLECT_GCC=xtensa-lx106-elf-gcc
COLLECT_LTO_WRAPPER=/home/iman4k/esp-open-sdk/xtensa-lx106-elf/libexec/gcc/xtensa-lx106-elf/4.8.5/lto-wrapper
Target: xtensa-lx106-elf
Configured with: /home/iman4k/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu --target=xtensa-lx106-elf --prefix=/home/iman4k/esp-open-sdk/xtensa-lx106-elf --with-local-prefix=/home/iman4k/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot --with-sysroot=/home/iman4k/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot --with-newlib --enable-threads=no --disable-shared --with-pkgversion='crosstool-NG crosstool-ng-1.22.0-60-g37b07f6' --disable-__cxa_atexit --enable-cxx-flags='-fno-exceptions -fno-rtti' --with-gmp=/home/iman4k/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools --with-mpfr=/home/iman4k/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools --with-mpc=/home/iman4k/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools --with-isl=/home/iman4k/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools --with-cloog=/home/iman4k/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools --with-libelf=/home/iman4k/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools --enable-lto --enable-target-optspace --without-long-double-128 --disable-libgomp --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libquadmath-support --disable-nls --disable-multilib --enable-languages=c,c++
Thread model: single
gcc version 4.8.5 (crosstool-NG crosstool-ng-1.22.0-60-g37b07f6)


Any ideas ?

Regards.
Iman.