marcelstoer / docker-nodemcu-build

Docker image to build NodeMCU firmware for the ESP8266 on your machine
https://hub.docker.com/r/marcelstoer/nodemcu-build/
MIT License
129 stars 63 forks source link

recipe for target 'spiffsimg' failed #24

Closed CyanoFresh closed 7 years ago

CyanoFresh commented 7 years ago

Hello. I try to make bin files but at the end of running docker command I have this:

xtensa-lx106-elf-gcc -L/opt/nodemcu-firmware/sdk/esp_iot_sdk_v1.5.4.1/lib -L/opt/nodemcu-firmware/sdk/esp_iot_sdk_v1.5.4.1/ld  -Wl,--gc-sections -Wl,-Map=mapfile -nostdlib -T../ld/nodemcu.ld -Wl,@../ld/defsym.rom -Wl,--no-check-sections -Wl,--wrap=_xtos_set_exception_handler -Wl,-static -u WEBSOCKET_module_selected -u OW_module_selected -u BIT_module_selected -u UART_module_selected -u DHT_module_selected -u NET_module_selected -u NODE_module_selected -u FILE_module_selected -u GPIO_module_selected -u SPI_module_selected -u PWM_module_selected -u CJSON_module_selected -u WIFI_module_selected -u TMR_module_selected -u ADC_module_selected -Wl,--start-group -lc -lgcc -lhal -lphy -lpp -lnet80211 -lwpa -lwpa2 -lmain -lsmartconfig -lssl -lcrypto user/.output/eagle/debug/lib/libuser.a driver/.output/eagle/debug/lib/libdriver.a pcm/.output/eagle/debug/lib/pcm.a platform/.output/eagle/debug/lib/libplatform.a task/.output/eagle/debug/lib/libtask.a libc/.output/eagle/debug/lib/liblibc.a lua/.output/eagle/debug/lib/liblua.a lwip/.output/eagle/debug/lib/liblwip.a coap/.output/eagle/debug/lib/coap.a mqtt/.output/eagle/debug/lib/mqtt.a u8glib/.output/eagle/debug/lib/u8glib.a ucglib/.output/eagle/debug/lib/ucglib.a smart/.output/eagle/debug/lib/smart.a spiffs/.output/eagle/debug/lib/spiffs.a fatfs/.output/eagle/debug/lib/libfatfs.a cjson/.output/eagle/debug/lib/libcjson.a crypto/.output/eagle/debug/lib/libcrypto.a dhtlib/.output/eagle/debug/lib/libdhtlib.a tsl2561/.output/eagle/debug/lib/tsl2561lib.a http/.output/eagle/debug/lib/libhttp.a websocket/.output/eagle/debug/lib/libwebsocket.a esp-gdbstub/.output/eagle/debug/lib/libgdbstub.a net/.output/eagle/debug/lib/libnodemcu_net.a modules/.output/eagle/debug/lib/libmodules.a -Wl,--end-group -lm -o .output/eagle/debug/image/eagle.app.v6.out
../tools/esptool.py elf2image .output/eagle/debug/image/eagle.app.v6.out -o ../bin/
esptool.py v1.2-dev
make[1]: Leaving directory '/opt/nodemcu-firmware/app'
make -C tools remove-image spiffsimg/spiffsimg
make[1]: Entering directory '/opt/nodemcu-firmware/tools'
if [ -r ../bin/spiffs-4mb.dat ]; then rm -f ../bin/$(cat ../bin/spiffs-4mb.dat)-4mb.bin; fi;   if [ -r ../bin/spiffs-32mb.dat ]; then rm -f ../bin/$(cat ../bin/spiffs-32mb.dat)-32mb.bin; fi;   if [ -r ../bin/spiffs-8mb.dat ]; then rm -f ../bin/$(cat ../bin/spiffs-8mb.dat)-8mb.bin; fi;
rm -f ../bin/spiffs*.dat
make[2]: Entering directory '/opt/nodemcu-firmware/tools/spiffsimg'
gcc -g -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -I. -I../../app/spiffs -I../../app/include -DNODEMCU_SPIFFS_NO_INCLUDE --include spiffs_typedefs.h main.c ../../app/spiffs/spiffs_cache.c ../../app/spiffs/spiffs_check.c ../../app/spiffs/spiffs_gc.c ../../app/spiffs/spiffs_hydrogen.c ../../app/spiffs/spiffs_nucleus.c  -o spiffsimg
make[2]: gcc: Command not found
Makefile:8: recipe for target 'spiffsimg' failed
make[2]: *** [spiffsimg] Error 127
make[2]: Leaving directory '/opt/nodemcu-firmware/tools/spiffsimg'
Makefile:40: recipe for target 'spiffsimg/spiffsimg' failed
make[1]: *** [spiffsimg/spiffsimg] Error 2
make[1]: Leaving directory '/opt/nodemcu-firmware/tools'
Makefile:276: recipe for target 'spiffs-image-remove' failed
make: *** [spiffs-image-remove] Error 2

Maybe related to #7 but I am not sure.

CyanoFresh commented 7 years ago

Found solution: http://stackoverflow.com/a/39979152/4009260